Repository navigation
Claude Code Mods
On Claude Code builds with mods, Lagrange loads one module (hooks/hooks.json → "modules"). Older builds and
other hosts keep the command hooks; Codex never sees the module.
-
Mailbox notice (FEAT-100). New
messagemessages wake an idle session with a plugin prompt instead of a blocked Stop. Only the notice; the text still comes through themessagetool. See Sessions and Messages. -
Panel (FEAT-101).
/lagrange-panelopens a side panel with the running fan-out, quota used and the Lagrange version in each account. While a fan-out runs, its line shows in the status line unless your status line already runsfanout-statusline.js. -
Network in the panel (FEAT-121). A Red section shows this daemon (name, role, version), each node it knows with its connection and the version its daemon reports, and what each lane is running or queueing. It reads
GET /redon the local link with the same token asmessage; names, versions and counts only, no hosts or ids. A toast tells you once when a node drops, comes back, runs another version, or the daemon stops answering — 20 s after the session starts and every 5 minutes, panel open or not. -
Background toasts (FEAT-135). A toast when something finishes or changes while you look elsewhere: a fan-out in this repo or a confined batch from any session, an exhausted quota window that freed up, this account crossing 90 % of its 5-hour window (once per window), and a new message. What the current session is waiting on is not announced; it arrives as the tool result. No toast on start or after a mod reload. Batches and quota are checked every minute through
panel.js avisos, which returns ids, states and counts only. Pick the kinds withset_config background_toasts(all,none, or a list offanout,lotes,cuota,mensajes). -
What could run on Haiku 5.5 (FEAT-117, measurement only). The mod classifies every model request — a main-loop step that only chains read-only tools, any other main-loop step, or a subagent step by type — and adds up steps, tokens, cache reads and models across sessions.
/lagrange-haikushows the table and the share of tokens that would be candidates; nothing is rerouted. Prompt caching is per model, so switching mid-turn rereads the context uncached. Theagysubagent itself runs on Haiku because it only relays to agy's tools. -
Claude Code in the Providers view (FEAT-137). The web console's Proveedores tab shows the Claude Code version Lagrange runs, the latest release with the notes in between, and
claude updateto copy. Lagrange never runs Claude's updater. The card also shows the version the confined-batch image pins and whether each account's batch probes are current. -
Summary with full context (FEAT-103).
/lagrange-resumen [full|decisions|changes|debugging|handoff]first shows how much context it would reread;/lagrange-resumen <focus> siruns it with$.model.fork(the session's own model and prompt cache) and saves the document to~/.claude/session-summaries/<date>-<id>-fork.md. Only the path and token cost come back. It rereads the whole conversation, so in long sessionssession_summaryis cheaper. See Session Summary and Usage. -
Resume from a handoff (FEAT-182). In a session with no turns yet, after
/clearor a relaunch, the band offers the project's newest handoff from the last 7 days:[s]resume,[p]copy,[x]not now.[s]sends a short prompt with the path and the agent reads the document withRead, so it arrives as tool output rather than as your words.[s]and[x]remember that handoff per account (handoff-visto) until the file changes;[p]does not. The band never clears the session for you. Nothing is offered in sessions with turns, in-p, VS Code or mobile. The "Handoff saved" row now stays 5 minutes, with[p]and[x], unless a new context threshold replaces it. -
Guards (FEAT-102 + FEAT-188). Rules in
~/.claude/antigravity.jsonthat make Claude ask before aBashorPowerShellcommand that matches (and tell the model why if the session cannot ask):"guardas": [ { "secuencia": ["git", "switch", "main"], "motivo": "the daemon runs from this checkout", "vence": "2026-10-09T05:37:00Z", "raiz": "C:/work/my-project" }, { "secuencia": ["stop-process", "*", "node"], "motivo": "kills the daemon and the Lagrange MCP servers" } ]
secuenciais 1–8 whole words that must appear together, case-insensitive, after quotes and backslashes are dropped;*stands for any words in between. No regular expressions.venceturns the rule off at that time;raizlimits it to one project folder. The file is reread every 10 s.A matching guard asks by default (
"guardas_efecto": "ask"). In a non-interactive Claude Code session it falls back todenyso the command cannot slip through where nobody can answer. Set"guardas_efecto": "deny"to keep the old hard stop in every session; any value other thanaskordenyalso falls back todeny.It is a good-faith brake, not a barrier: an obfuscated command (variables, base64, a script file) can slip past. It only sees Claude's
BashandPowerShell, not what agy runs (SEC-020), and it adds topermissions.deny, which does not see insidebash -c "…". The file is global, so a rule applies to every account that opens that folder. Lagrange ships no rules.The same
guardasapply in opencode through the Lagrange plugin'spermission.evaluatehook (FEAT-187 + FEAT-188): a matchingshellcommand asks with the rule's reason, or denies withguardas_efecto: "deny". OpenCode's--autoauto-approves the ask (the host does not expose the permission mode to the plugin), so usedenyif you need the guard to hold in an unattended session. If no rule matches, the plugin also ports the damage preview of FEAT-112 and asks before a command that would follow a link, delete tracked files, lose commits in a forced push, or kill everynode. It only sees opencode'sshelltool, notrunor MCP tools. A rule'sraizand the preview's relative paths are resolved against the session directory, not the shell tool'sworkdir, so a relative path run from a differentworkdircan pass unmeasured. The guards withoutraizstill apply in anyworkdir.
Getting started
Operations
- Fan-Out, Watch and Confined Batches
- Sessions and Messages
- Session Summary and Usage
- Telegram Bridge
- Node Network
- Claude Code Mods
Agents and memory
Voice
Architecture
Decisions
- Decisions
- ADR-001: Contain, don't prohibit
- ADR-002: Isolation is verified, not assumed
- ADR-003: agy first, opt-in fallback
- ADR-004: The marketplace is the only channel
Contributing