feelcouchLagrange
EN
Установить

Agent rules: details moved out of AGENTS.md / CLAUDE.md

Instructions for agents (English). AGENTS.md + CLAUDE.md must stay <= 8192 bytes together (bin/dev/cc-size budget fails above it). Long lists and per-tool details live here; the constraints themselves (Cyrillic, licenses, personal data, hsx, size limits) stay in AGENTS.md.

Agent tools (use these, don't reinvent)

The name is Lagrange everywhere; "Polaris" is an old codename, never write it.

Before every nontrivial task and every new authorized agent/AI CLI run, read plugins/lagrange-core/skills/model-route/SKILL.md and run local cc-routing plan with a bounded task and explicit class. Preserve exact overrides and all eligibility guards. Apply a supported candidate only to a new authorized run; a running model cannot self-switch. Do not run model benchmarks; published results are dated priors, not measured subscription savings. Missing executor/eligible candidates must be reported.

Feature module directories

hammerspoon/{core,panel,projects,settings,live,stats,wide,timemachine,chat,brief,assistant,links,macos,nav,sessions,scheduler,power}/ — linked flat into ~/.hammerspoon, require names unchanged; manifest hammerspoon/load-order.txt.

Тяжёлые прогоны и авто-обновление

Workspace chrome

Sidebar --workspace-side-w 236px, rail 44px, toolbar 40px. Keep chrome mounted on refresh; Docs: inner frame; Settings keeps the focused search field.

Quiet UI tests (CC_TEST_QUIET)

tests/run.sh --quiet (or CC_TEST_QUIET=1 bash tests/panel.sh) runs live suites without stealing focus. hsx prepends _G.ccQuiet=os.time()+120 to each call (the flag is a deadline, so it expires by itself and never leaves the real panel quiet). U.quiet() (core/core_ui.lua) guards every focus/activate site: U.raise, palette, panel, workspace, sessions. Windows are shown at alpha 0 (frames stay real). New focus-taking code must use the same guard. voice.sh steps 6/8/13/17 and the panel-features idle-CPU gate print SKIP(quiet).