Repository navigation
v1.2.0 — Hardened routing, lifecycle guards, workspace scope guard
Classifier fixes, five lifecycle guards, an opt-in workspace scope guard, and 35 unit tests. All hooks verified live on agy 1.4.0.
Fixed
- Classifier misrouted heavy work to
flash_lite. A single lite keyword such asfindcould override strong signals (test,trace,call graph,refactor). Strong signals now always win, and mutation prompts never stay onflash_literegardless ofWorkspace. - Over-broad
flash_litevocabulary. Bare wordsfind,ls,rg,count,version,format,status,check ifwere removed; only concrete lookup phrases remain.
Changed
SessionStartno longer rewritessettings.jsonby default. It warns when the primary model is not Argon. SetAGY_ARGON_PIN_SETTINGS=1to restore the 1.1.x rewrite behaviour.flash-lite-scoutlostsearch_web,read_url_contentandschedule; web research isflash-workerwork per the routing matrix. Both agents now return a fixed four-line report (STATUS / FILES_CHANGED / VERIFICATION / NOTES).rules/AGENTS.mdgained the subagent prompt contract,send_messagerules and branch-cleanup rules.
Added
PreInvocationhook: checks the live session model every turn and warns once per invocation if it is not Argon/Pro-tier. Catches model switches made in the UI after session start.send_messageguard: denies mutation or multi-step (>3 numbered rules) instructions sent to a knownflash_literecipient.run_workflowguard: denies scripts whoseagent(...)calls omitmodel="flash"/model="flash_lite".define_subagentguard: forcesenable_subagent_tools=false(no nested spawning).- Branch worktree lifecycle tracking via
PostToolUse+Stop: pending spawns are paired with the per-subagent metadata agy writes under<artifactDirectoryPath>/.system_generated/subagents/(type, role, live state, worktree URI), with the transcript as fallback; theStophook asks once per set of liveWorkspace:"branch"workers to merge/discard and kill them (agy bumpsexecutionNumafter everycontinue, so per-execution dedup would nag on every attempt). - A
flash-lite-scoutinvoked with a mutation prompt is upgraded toflash-workerinstead of failing for lack of write tools. - Workspace scope guard (opt-in,
AGY_ARGON_AUTO_ALLOW=1): thePreToolUsematcher is now*.run_commandand file tools that stay insideworkspacePaths/artifactDirectoryPathare answeredallow(with apermissionOverridesentry for the exact command); paths outside the workspace, privilege escalation, recursive deletes of a root, system-altering commands, force pushes and downloads piped to a shell are answeredask; tools without path arguments get no opinion. Unknown tools and hook errors now return{}instead ofallow. File tools carry a matchingread_file(<path>)/write_file(<path>)override. Interactive sessions only (verified on agy 1.4.0: no prompts for in-workspace edits and commands); headlessagy -psoft-denies prompt-requiring tools regardless of hook output. AGY_ARGON_DEBUG=1writes one JSON line per hook call for diagnosing payloads.tests/test_enforce_orchestrator.py: 27 unit tests, including a table of prompt → tier cases (the first three rows are the 1.1.0 misroutes).
Upgrade note: SessionStart no longer rewrites ~/.gemini/antigravity-cli/settings.json. Set AGY_ARGON_PIN_SETTINGS=1 to keep the 1.1.x behaviour. The workspace scope guard is off by default; enable it with AGY_ARGON_AUTO_ALLOW=1 (interactive sessions only).
Install / upgrade
git clone https://github.com/ivanusto/argon-orchestrator.git ~/argon-orchestrator
agy plugin install ~/argon-orchestrator