Repository navigation
Configuration
Lagrange reads antigravity.json from two places, in this order:
-
Global —
~/.claude/antigravity.json -
Project —
.claude/antigravity.jsonin the project root
The project file wins key by key. Two merge rules are worth knowing:
-
permissionsis merged one level deep: a project that setsdeny_commandsreplaces the globaldeny_commandslist, it does not append to it. -
voice_setupandmotores.rolesare replaced as a whole by the project's version.
You can also set most keys with the set_config tool (scope: "global" or "project"), and the model, effort and
timeout with environment variables (AGY_MODEL, AGY_EFFORT, AGY_TIMEOUT_MINUTES). A value passed in a call
beats all of them.
agy_run, agy_plan, agy_review, agy_audit and the other delegating tools accept model, effort and
timeout_minutes in the call. effort accepts low, medium or high, and xhigh with Gemini 4 Hydrogen when you ask for it in the call (never as a default); max belongs to the DeepSeek/OpenCode Go
read-only engines. Models that do not support effort reject an explicit value. timeout_minutes must be an integer
from 1 to 120; an invalid per-call value is rejected before launching.
set_config writes the same keys to the global or project file. timeout_minutes is validated between 1 and 120.
AGY_MODEL, AGY_EFFORT and AGY_TIMEOUT_MINUTES set defaults for the current process; they are useful for a
one-off shell. AGY_RUN_MAX_CONCURRENT (integer 1..8, default 2) caps concurrent agy_run calls in one MCP process;
an invalid value falls back to 2 with a stderr warning. It does not throttle agy_fanout, which keeps its own
per-batch cap.
{
"prompt": "Investigate the authentication bug in src/server/auth.ts",
"permissions": {
"deny": ["edit"],
"deny_paths": [".env*", "config/secrets.json"],
"sandbox": true
}
}{
"model": "gemini-4-hydrogen",
"effort": "medium",
"timeout_minutes": 15,
"permissions": {
"allow": ["read", "edit", "commands"],
"deny": [],
"deny_paths": [".env*", "**/*.key", "**/*.pem"],
"deny_commands": ["git push*", "npm publish*", "rm -rf*"],
"sandbox": false
},
"fanout_statusline": true,
"fanout_progress_log": true,
"fanout_control": true,
"voice_setup": {
"version": 3,
"status": "configured",
"languages": ["es", "en"],
"default_language": "en",
"defaults": {
"es": {
"identity": { "mode": "soul", "soul": "brisa" },
"audio": { "profile": "Marina Sol", "provider": "omnivoice" }
},
"en": {
"identity": { "mode": "neutral" },
"audio": { "profile": "Rowan Vale", "provider": "voicebox", "engine": "qwen", "model_size": "0.6B" }
}
},
"fallbacks": {
"es": [
{ "profile": "Cobre Claro", "provider": "voicebox", "engine": "kokoro" }
],
"en": [
{ "profile": "Juniper Reed", "provider": "omnivoice" }
]
}
}
}The voice_setup block is documented in Voice; the set_config row is in the
Reference.
Some settings decide which account, key or third party sees your data. A repository you cloned must not be able to choose that for you, so these are read only from the global file; in a project file they are ignored with a warning:
| Key | Why it is global-only |
|---|---|
fallback_agy |
Sends texts, Soul chats and session transcripts to another account or provider |
motores.cuentas |
Which Claude logins exist |
Roles on deepseek / opencode-go in motores.roles
|
Sends a Soul's memory to a third party with your key |
identidad_sesion |
Which voice each Claude account speaks with |
sesiones_claude |
Remote Claude Code sessions launched from the console |
orquestacion_modo |
How much a session may do in the web console without asking you |
agy_modo |
Whether Lagrange may launch agy at all; a cloned repository must not turn it back on |
guardas / guardas_efecto
|
Which commands ask or deny for every account; a cloned repository must not choose that |
| Key | Default | What it does |
|---|---|---|
model |
none (agy decides) | Default model for delegated work |
effort |
none | Default reasoning effort (low, medium or high; xhigh is ignored with a warning); only applied to Gemini models without an effort suffix. Without it Gemini 4 Hydrogen runs medium, and agy_audit high
|
timeout_minutes |
15 |
Default for agy_run, agy_plan and the others without their own default (reviews use 20, audits 25, images 10) |
permissions |
see below | The ALLOW / DENY policy |
guardas_efecto |
"ask" |
Whether a matching guard asks or denies; "deny" keeps the old hard stop, and an invalid value also falls back to deny
|
readonly_isolation |
"auto" |
Where plans, reviews and audits run — see Isolation and Security Model |
motores |
everything on agy | Engine per role — see Engines and Fallback |
fallback_agy |
off | Who answers when agy cannot |
orquestacion_modo |
"pedir" |
What a session orchestrating the web console may do: operar, pedir (ask before launching), yolo
|
agy_modo |
"auto" |
"manual": Lagrange never launches agy (no agy_* model calls, batches on agy, the bot, isolation probes or /usage refresh); tools with fallback_agy use it, and agy_audit / agy_review / agy_plan write a request for you to run in your agy (npm run agy:plugin installs its /lagrange-audit, /lagrange-review and /lagrange-plan skills) and collect the report with pedido: "<id>", or take engine: "opencode-go" / "deepseek". You run agy yourself, in your own terminal. Meant for an account that already got a Google warning for automated use. LAGRANGE_AGY_MODO=manual also forces it |
The Reference has the full list in the
set_config row and a complete
example file.
{
"permissions": {
"allow": ["read", "edit", "commands", "network"],
"deny": [],
"deny_paths": [".env*", "**/*.key", "**/*.pem"],
"deny_commands": ["git push*", "git reset --hard*", "npm publish*", "rm -rf /*",
"Stop-Process -Name*", "kill -Name*", "taskkill /IM*", "taskkill /F /IM*", "pkill*", "killall*"],
"sandbox": false
}
}Those are the defaults. Read Isolation and Security Model before relying on them: on your machine they are
instructions to the model, not a barrier. Inside the read-only container, deny_paths becomes real — the
matching files are not copied in at all.
The policy applies to every delegating tool except agy_image: agy_run plus the no-edit ones (agy_plan,
agy_review, agy_audit, agy_research, agy_session_summary). The no-edit tools always tell the subagent not to
edit, whatever the policy says, and run it with --mode plan; commands, network, deny_paths and
deny_commands travel with that instruction. agy_image uses a fixed read + network / no edit / no commands
policy in an empty temporary directory and only propagates deny_paths; its default timeout is 10 minutes.
sandbox also applies except to agy_audit, which always forces it off because the Windows implementation is
harmful for long headless audits. Each tool's output footer prints the policy it ran under. The field table is in the
Reference.
Secrets never go in antigravity.json. The Telegram token, DEEPSEEK_API_KEY and OPENCODE_GO_API_KEY live in
the bridge's .env (on Windows, %LOCALAPPDATA%\antigravity-telegram-bridge\.env), which you create yourself.
Lagrange strips its own secrets from the environment of every child process that runs a model.
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