Repository navigation
Releases
Releases · ivanusto/just-agy-orchestrator
v3.0.5
Ports the agy fix of mitosis-orchestrator 2.8.0 (verified on agy 1.5.20; the hook model logic is shared). After updating, start a new agy session.
Fixed
- SessionStart named and judged the
settings.jsonmodel when agy runs with--model(for exampleagy --model claude-opus-5-5-highwhile settings.json names Gemini 4 Hydrogen). It now names the livemodelNamefrom the payload and judges that one: a frontier model or the Orchestrator executor gets no warning, a non-frontier one is warned about (JUST_AGY_ALLOW_NON_PRIMARY=1silences it). The settings.json pin (JUST_AGY_PIN_SETTINGS=1) is unchanged.
Compatibility
- agy 1.5.20 lists Claude Opus 5.5 and Sonnet 5.5 (low, medium, high) and
gpt-oss-120b. Claude models were already accepted as frontier primaries;gpt-oss-120bis warned about. Verified with mitosis-orchestrator 2.8.0 on agy 1.5.20 withclaude-opus-5-5-highas primary.
v3.0.4: Gemini 4 Neon
Ports the agy changes of mitosis-orchestrator 2.7.8 (verified on agy 1.5.12; the hook model logic is shared).
Added
- Gemini 4 Neon is a frontier primary at every level (
gemini-4-neon-low|medium|high|xhigh, display names too);Gemini 4 Neon (High),(Medium),(XHigh)andOrchestrator (Neon)are validJUST_AGY_PRIMARY_MODELpin targets.gemini-pro-orchestrator-neonis frontier. - One-time primary cost advice: when the primary is an XHigh / Extra High model or an agy Orchestrator (not its executor), SessionStart appends a note (live
modelNamepreferred over settings.json) and PreInvocation emits it once per model as anephemeralMessage. The model is never changed.JUST_AGY_PRIMARY_ADVICE=0silences it. New helpersmodel_keyandprimary_cost_advice. - README section "Choosing the primary on agy". Measured 2026-11-19 on the agy harness-bench (token-equivalent cost, n=3): Neon High 21/21 US$7.85, Hydrogen High 21/21 US$2.10, Neon XHigh 19/21 US$22.24, Orchestrator (Neon) 20/21 US$21.75.
Changed
- The default primary (
JUST_AGY_PRIMARY_MODELfallback) is nowGemini 4 Hydrogen (High)instead ofGemini 4 Argon (High). - Non-frontier warning texts mention Neon.
v3.0.3: agy primary does sequential research itself; deliverable nudge
Changed
- Policy notice, skill and rules: web/docs research is no longer listed as always going to
flash. The primary does sequential web/docs research and tracing itself (search_web,read_file), delegates only independent parallel work, and writes a requested output file as soon as it has an evidence-backed answer before opening new verification branches. - Why: real agy 1.5.7 data from the sibling mitosis plugin, which shares this policy design. Harness task "read vllm-startup.log, find root cause, write answer.md": pure agy with Gemini 4 Hydrogen High passed 3/3 in 302-482 s; with the plugin 3/3 never wrote answer.md and hit the 900 s print timeout. The primary had the root cause within 20-90 s but sent research and source tracing to flash-worker subagents one after another (170-430 s each) and kept adding verification follow-ups.
Added
- Turn nudge (primary only): when 300 s or more have passed since the current user request (anchored on
lastUserInput, notinvocationNum) and at least one subagent was dispatched during that request (pending or already reported; follow-upsend_messagecalls to reported subagents do not reset this), oneephemeralMessageasks the primary to write the deliverable now from the evidence it has, mark what is unverified, and not dispatch new research or follow-ups. Once per request.JUST_AGY_TURN_NUDGE_SECONDS=<sec>(legacyAGY_ARGON_TURN_NUDGE_SECONDS): default 300,0disables, invalid uses the default, negative is0. - Re-run of the same task (agy 1.5.7, Hydrogen High, same harness and 900 s budget, isolated home with only this plugin): mitosis 2.7.5 passed 3/3 in 846, 811 and 503 s with 2 to 4 subagents per run; mitosis 2.7.6 (same policy and nudge as this release) passed 3/3 in 536, 627 and 517 s with no subagents (the primary did its own web research), close to plain agy (302 to 482 s). The other six harness tasks passed once each in 18 to 31 s. With a 15 s threshold this plugin's nudge fired once in a live
/orchestraterun and the primary still wrote its deliverable.
v3.0.2: report length ignores file:// link targets; small logs readable
Changed
- Report length check: markdown links whose target starts with
file://are collapsed to their link text (orlinkif empty) before measuring; http(s) links are unchanged. The limit stays 1,600 characters. In real agy 1.5.7 (Gemini 4 Hydrogen) data, 6 of 22 subagent reports failed as too long; in 4 of them the excess was[calc.py](file:///.../calc.py#L1-L2)citations (up to 9 per report), which agy's own system prompt asks agents to write. Those 4 now pass; the 2 verbatim log dumps still fail. - Context-hygiene guard: the primary may read a log or transcript directly when it is a regular file of at most 16 KiB (
SMALL_LOG_MAX_BYTES = 16 * 1024) at an absolute path; anyOSErrorkeeps blocking. This avoids a scout round trip for a 25-line log. Override withJUST_AGY_SMALL_LOG_BYTES(legacyAGY_ARGON_SMALL_LOG_BYTES);0disables, an invalid value uses the default.JUST_AGY_ALLOW_DIRECT_LOGS=1is unchanged. - A
file://link target longer than 512 characters is counted in full, so the link form cannot carry a long payload past the limit.
v3.0.1: Gemini 4 Hydrogen and agy Orchestrator
Added
- Gemini 4 Hydrogen (agy 1.5.7; ids
gemini-4-hydrogen-low|medium|high|xhigh, plaingemini-4-hydrogenis High) is a frontier primary at High and XHigh (also "Extra High"); Low and Medium are warned about. - agy Orchestrator (
gemini-pro-orchestrator= "Orchestrator (Carbon)",gemini-pro-orchestrator-argon= "Orchestrator (Argon)") is a frontier primary. It plans with Carbon/Argon and executes with Hydrogen internally, so the plugin's dispatch stacks on top of it. Gemini 4 Hydrogen (High),(XHigh),Orchestrator (Carbon)andOrchestrator (Argon)are validJUST_AGY_PRIMARY_MODELpin targets. The default staysGemini 4 Argon (High).- agy Orchestrator (Carbon) hands execution to an internal executor that hook payloads report as
gemini-flash-worker-agy; it is accepted and no longer triggers the non-frontier warning. - Verified on agy 1.5.7 with headless
/orchestrateruns (scout read plus worker edit) usinggemini-4-hydrogen-highandgemini-pro-orchestratoras primary, in an isolated home with only this plugin installed: subagents pinned toflash_lite/flash, reports passed the four-header check, and no primary-model warning was injected (including the executor phase reported asgemini-flash-worker-agy). The concrete model behind theflashtier is resolved server side and is not visible to the CLI or hooks.
v3.0.0: just-agy-orchestrator
Breaking: renamed to just-agy-orchestrator
- Plugin name is now
just-agy-orchestrator(display name "Just agy Orchestrator"); it wasargon-orchestrator. User-visible hook messages read[Just agy Orchestrator]. hooks.jsontop-level key is nowjust-agy-orchestrator.- Package renamed from
scripts/argon_hook/toscripts/just_agy_hook/. State, lock and debug files are renamed too (just_agy_orchestrator_state.json,.just_agy_orchestrator_state.lock,just_agy_orchestrator_debug.log); old files are not read. - Environment prefix is now
JUST_AGY_*(AGY_ARGON_<X>becomesJUST_AGY_<X>;AGY_ALLOW_NON_ARGON_PRIMARYandAGY_ARGON_ALLOW_NON_PRIMARYbecomeJUST_AGY_ALLOW_NON_PRIMARY). The legacy names still work as a fallback, andJUST_AGY_*wins when both are set. Judge settings fall backJUST_AGY_JUDGE_*,AGY_ARGON_JUDGE_*,MITOSIS_JUDGE_*. is_frontier_tieris the primary name;is_argon_tierstays as an alias.- Migration:
agy plugin uninstall argon-orchestrator, then installjust-agy-orchestrator(https://github.com/ivanusto/just-agy-orchestrator). Environment variables need no change. It still cannot be enabled together withmitosis-orchestrator(same skill and agent names).
Fixed
- Gemini 4 Carbon (agy 1.5.5, ADC sign-in only; ids
gemini-4-carbon-low|medium|high) is a frontier primary on the same rule as Argon: Medium and High accepted, Low warned about, display and id forms both recognised.Gemini 4 Carbon (High)and(Medium)are validJUST_AGY_PRIMARY_MODELpin targets. The default staysGemini 4 Argon (High). - agy 1.5 toolset (verified on agy 1.5.5):
find_by_name,grep_searchandlist_dirare retired, so a scout has onlyread_file,send_messageandmanage_task. The scout instructions and the session policy notice now say scouts only read paths you name and that searches, git/log checks, test runs, web research and edits go toflash-worker. The agent tool lists keep the old names, which agy resolves as aliases ofread_file,edit_fileandwrite_file; listing an old name next to its new name fails the agent build. - Windows: agy runs hooks via
cmd /c, where the Store aliaspython3.exeexits 9009 with no output and agy treats a failed PreToolUse hook as a tool error, so every tool call failed. Each hook command now triespython3, thenpython, thenpy -3, and ends inexit 0(neverecho {}, which PreToolUse reads as a denial). The hook also reads stdin as UTF-8 bytes and strips a BOM. - agy 1.5 edit budget:
write_fileandedit_file(argPath) are now counted, andturn_edited_filesresets only wheninvocationNumis 0 (a new user turn) instead of on every model call. The circuit breaker is unchanged. The budget never counted on agy 1.5 before; it now denies the 4th distinct file per turn (default 3,JUST_AGY_MAX_DIRECT_EDITS), andJUST_AGY_ALLOW_DIRECT_FASTPATH=1turns it off. - Report check: a bare
NOTES:line followed by-bullets is now accepted, as in mitosis-orchestrator. In a live agy 1.5.5 run two of three scouts wrote their findings that way and were flagged as breaking the report contract.
Added
tests/test_agy_toolset.py,tests/test_hook_launcher.py(runs the realhooks.jsoncommands throughcmd.exeor/bin/shwith a PATH holding selected interpreters, plus a stdin encoding test), a packaging test for the launcher chain, and Carbon andPath-budget tests.hooks-windowsCI job onwindows-latestrunning the launcher and packaging tests.
v2.0.0: agy-only orchestrator
Antigravity (agy)-only release.
Breaking
- Primary-model list narrowed to what agy 1.4.6 offers: Gemini 4 Argon (Medium / High), Claude Opus 5.5, Claude Sonnet 5.5. Argon Low, Gemini 3.8 Flash and GPT-OSS 120B are warned about as non-frontier.
- GPT-4 / o-series / DeepSeek / Grok and generic Gemini Pro / Ultra are no longer accepted as primary models, including via
AGY_ARGON_PRIMARY_MODEL.
Added
- agy 1.4.6 sends one flat
invoke_subagentcall per subagent (Prompt,Role,TypeName, optionalModel); both the flat form and theSubagentslist form are handled. - Code split into
scripts/argon_hook/(common,models,routing,judge,report,state,guards,tools,handlers); entry point staysscripts/enforce-orchestrator.py. - Routing engine ported verbatim from mitosis-orchestrator 2.3.0:
Decisionwith confidence,scout-unprovenrule (scout needs positive read-only evidence), worker-lookup downgrade, Chinese rules, optional judge (AGY_ARGON_JUDGE_URL, fallbackMITOSIS_JUDGE_URL). tests/routing_cases.jsonl(855) androuting_holdoutv1 to v8 (40 each);tests/test_routing_eval.pythresholds: accuracy >= 0.95, cost errors <= 0.05, zero worker tasks to the scout.scripts/routing-parity.py <mitosis_repo>proves 0 differences.- State lock (
flock, fail open,AGY_ARGON_LOCK_TIMEOUT) and atomic state saves. - REPORT FORMAT block auto-appended to subagent prompts missing the four headers (
AGY_ARGON_APPEND_REPORT_FORMAT=0disables). - Report enforcement: a subagent's own
send_messagereport to its parent is validated; invalid reports are denied once so the subagent resends (AGY_ARGON_ENFORCE_REPORT=0). - Scout read-only layer for
flash-lite-scoutsubagents. - Scout escalation: after a scout reports
FAILEDorBLOCKED, the next scout dispatch is escalated toflash-workeronce, within 3 dispatches or 30 minutes (AGY_ARGON_ESCALATE=0). First agy implementation. AGY_ARGON_WORKER_DOWNGRADE=0and judge tuning variables (AGY_ARGON_JUDGE_{KEY,MODEL,TIMEOUT,MIN_CONFIDENCE,ALLOW_HTTP_KEY,THRESHOLD}).- Coexistence:
SessionStartwarns when mitosis-orchestrator is also enabled (same skill and agent names; useagy plugin disable mitosis-orchestrator). - Engineering scaffolding:
pyproject.toml, GitHub Actions CI (unittest on 3.11 to 3.13, ruff, vermin 3.8),tests/test_packaging.py,CONTRIBUTING.md,SECURITY.md.
Changed
- README, README.zh-TW,
rules/AGENTS.mdand the/orchestrateskill rewritten for agy only; agent files no longer imply an Argon-only primary. - The four-header report contract is unchanged.
- Routing keyword rules read the
Promptonly;Roleis a label and no longer feeds them (a lookup scout with Role "Add Scout" was wrongly upgraded toflash-worker). Tests added. - Documented that the bundled agents keep
inheritCustomizations: false, so subagent-side report rejection and the scout read-only layer only fire for types that inherit customizations; primary-side message scan and scout-failure escalation cover the bundled types.
Verified
- agy 1.4.6 (2026-10-23): agy does not run plugin hooks inside subagents with
inheritCustomizations: false, and enforces the agent tool lists itself (a scout given an edit task could not edit). Routing parity with mitosis stays at 0 differences (parity cases carry no role). - agy 1.4.6 (2026-10-23): hook
{}is a deny;{"decision":"allow"}means no objection and agy still shows its own permission prompt for commands and file writes. The plugin keeps returning explicit allow when it has no opinion and never bypasses agy prompts;AGY_ARGON_AUTO_ALLOW=1is the only path that grantspermissionOverrides(in-workspace only).
v1.4.0 — Claude & Frontier Model Support for Primary Orchestrator
Added
- Frontier Model Support for Primary Orchestrator: Expanded is_argon_tier (aliased as is_frontier_tier) to support Claude (Opus / Sonnet), Gemini Pro / Ultra, OpenAI frontier/reasoning models (GPT-4, GPT-5, o1, o3, o4), DeepSeek, and Grok alongside Gemini 4 Argon (High / Medium).
- Small-Tier Rejection Guard: Word-boundary regex filtering (\b(flash|lite|mini|nano|haiku)\b) rejects small-tier models (such as Claude Haiku, GPT-4o mini, o3-mini) from being accidentally treated as primary orchestrators while correctly distinguishing gemini.
- Flexible Primary Model Pinning: check_primary_model_settings() now honors any valid Argon or frontier model specified via AGY_ARGON_PRIMARY_MODEL (e.g., Claude 3.7 Sonnet) when AGY_ARGON_PIN_SETTINGS=1 is opted in.
- Unit Tests: Added test cases covering frontier model matching, rejection of mini/haiku models, alias verification, and custom model pinning via environment variable.
v1.3.0 — Context Hygiene, Fast-Path Budget, Circuit Breaker & PreToolUse Fix
Fixed
- PreToolUse hook no longer returns empty {} (which Antigravity treated as an unapproved tool denial). When AGY_ARGON_AUTO_ALLOW is unset, when a tool has no path arguments (
ead_url_content, search_web, browser/MCP tools), or on fallback/error, it now returns an explicit pass-through {"decision": "allow", "reason": "Argon Orchestrator: pass-through."}.
Added
- Context Hygiene Guard: Blocks direct inspection of .log or ranscript.jsonl / ranscript_full.jsonl files by the primary agent in PreToolUse (unless AGY_ARGON_ALLOW_DIRECT_LOGS=1), delegating log slicing to lash-lite-scout.
- Fast-Path Direct Execution Budget: Tracks direct workspace file mutations in urn_edited_files, capping the primary agent at AGY_ARGON_MAX_DIRECT_EDITS (default 3 distinct workspace files in one turn) and blocking direct workspace edit followed by test runner execution in the same turn (unless AGY_ARGON_ALLOW_DIRECT_FASTPATH=1), delegating code editing and test execution loops to lash-worker.
- Two-Failure Circuit Breaker: Tracks consecutive failures across
un_command and invoke_subagent in PostToolUse (matcher updated to invoke_subagent|manage_subagents|run_command). Trips after 2 consecutive failures and denies further commands or subagent invocations in PreToolUse (unless AGY_ARGON_CIRCUIT_BREAKER=0). - Per-Turn Tracking Reset: PreInvocation automatically resets urn_edited_files and consecutive_failures on each turn.
- Bounded 4-Header Subagent Report Contract: Expanded the subagent report format across rules and agents to support up to 10 compact bullet lines (- or * ) under NOTES: (total length <= 1,600 characters) and mandatory ile:// scratch log URI on BLOCKED or FAILED. Added �alidate_subagent_report(text) validation helper in enforce-orchestrator.py.
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