Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Local MCP switchboard for Codex, Claude Code, Gemini and Antigravity: bounded delegation, parallel tests, cross-model reviews, shared project context, and optional Graphify code maps using your existing CLIs and subscriptions.
Fetched from the repository for this visit.
Use Claude Code, Codex, Gemini, Antigravity, and VS Code together — without copy-pasting context between them.
Agent Switchboard is a local MCP server that connects your coding assistants through their existing CLIs and IDE routes. Delegate bounded work, run independent test packages in parallel, request cross-model reviews, and share compact project context. Optional Graphify-backed code maps help agents locate relevant symbols, files, and dependencies before reading source.
No API keys. No cloud broker. No extra billing. It uses the local CLIs, IDE bridge routes, and subscriptions you already have where possible.
⭐ If this saves your agent workflow, please star the repo so others can find it!
Modern AI coding workflows are fragmented. You might use Codex or Claude Code as the reasoning brain, Gemini Hydrogen for bounded workhorse tasks, and Antigravity / VS Code for workspace context — but normally they can't talk to each other, so you end up manually copying plans, files, errors, and context from one assistant to another. That's fine for small tasks; it gets messy fast on real projects. Agent Switchboard gives those agents a shared local coordination layer so they cooperate instead of working blind to each other.
consult_decision adds only the bounded cross-vendor leg needed for the task; Gemini uses the broker for both.route_agent_task tool by default (target_model hydrogen; effort high, xhigh for heavier packages), without treating it as a native child or authoritative brain. The lane keeps its historical "Flash" names (flash_skip, flash-failed, Flash package) and now runs Gemini Hydrogen; newest Flash High is only the automatic fallback when no Hydrogen slug is live, and AGENT_BROKER_ANTIGRAVITY_WORKHORSE=flash rolls back to Flash High. Gemini, Antigravity, and unknown hosts receive no automatic downward routing, though explicit routes remain available.~/.agent-broker; no private chat scraping, no cloud broker.doctor reports which routes are full, partial, or app-only on your machine.Everything user-facing — the agent-switchboard.exe binary, the command, and the MCP server key — is agent-switchboard. Internally, local state stays in ~/.agent-broker and the Python entrypoint is agent_broker_mcp.py.
Built for Antigravity and VS Code users. Antigravity is a VS Code fork, so the same bridge extension installs in both.
Honest scope: only Antigravity has a true programmatic in-app send and a structured reply back to the broker. Claude/Codex are reached through a CLI round-trip or an auto-opened inbox file - see Delivery, honestly. This is a power-user tool for people who already run these assistants; it drives logged-in subscription UIs, so read Terms & risk first.
Two supported install paths — pick one:
agent-switchboard.exe (no Python needed). One file from the Releases page does everything: installs the MCP server into every assistant, installs the bridge extension (the VSIX is embedded), and runs the MCP server itself (agent-switchboard.exe serve). Has a built-in uninstall.python agent_broker_mcp.py.Other notes:
agy) is required for the default headless Antigravity route. Install it from the official Antigravity CLI docs; without it, Switchboard falls back to the existing in-app bridge/inbox.pip install tiktoken for exact token accounting (a chars/4 estimate is used if it's absent; the exe bundles it).Close Antigravity and VS Code. The installer refuses to run while either IDE is open, so extensions and debug flags can't be left half-updated.
Install one of two ways:
A — Self-contained exe (no Python): download agent-switchboard.exe from the Releases page and run it. Pick Install from the menu (or agent-switchboard.exe install).
B — From source (Python 3.10+):
powershell -NoProfile -ExecutionPolicy Bypass -File .\install-agent-broker.ps1
Either way the installer detects which assistants you have (Codex, Claude Code, Antigravity, VS Code), registers the MCP server with each, installs the bridge extension (VSIX embedded in the exe; auto-built/located from source), and writes config. If Antigravity is installed, it then offers (default Yes) to enable automated in-app model selection — press Enter to accept (it patches the Antigravity launcher to open a local debug port) or decline to skip. Every config it edits is backed up first.
Open Antigravity / VS Code again so the Agent Switchboard Bridge extension activates.
Try it. In any registered assistant: "Use Agent Switchboard to ask Claude Opus to audit this function."
Check what actually works on your machine: run agent-switchboard.exe doctor (or python agent_broker_mcp.py bridge doctor). It's read-only and tells you, per assistant, whether a CLI/extension is present, which delivery route you'll get, and whether a headless debate can run — see Diagnostics: doctor.
Uninstall / rollback (both paths): run agent-switchboard.exe uninstall (or python setup.py uninstall), or pick Uninstall from the menu. It reverses MCP registration in all four hosts, removes the bridge extension, and removes the installed broker exe. Add --remove-data to also delete ~/.agent-broker. The broker uses whatever subscriptions your assistants are already logged into.
| Goal | ✅ |
|---|---|
| Let Codex, Claude Code, and Antigravity consult each other | ✅ |
| Use existing subscriptions — no API keys, no extra billing | ✅ |
| Keep all shared state local (SQLite), never scrape private chat history | ✅ |
| Token compaction so cross-agent calls don't burn context | ✅ compressed handoffs + compact context packs with a locally-stored, retrievable original (Headroom-style retrieval, not a reversible codec) |
| Keep a short per-topic work memory so the next model sees what changed, where, why, checks, risks, and next step | ✅ |
| Peek at another open chat — fetch a compact snapshot of what another agent's session knows, on request (opt-in, local, never silent scraping) | ✅ active context snapshots; Codex & Claude Code read on disk, with Antigravity local task/log/activity fallback (request_context_snapshot → get_latest_context_snapshot) |
| Cross-model debate — two assistants debate N rounds headless on your subscriptions, then a synthesis judge writes a verdict | ✅ (agent-switchboard debate) |
| Route Codex, Claude, and Antigravity to their headless CLIs by default; use the in-app chat/inbox only when asked or as fallback | ✅ |
Select Antigravity CLI models naturally (gemini flash for the moving workhorse, or an exact version pin) and discover future models from live agy models output | ✅ |
| Let Codex/Claude proactively use newest live Gemini Hydrogen High as a cheap external workhorse, with native fallback and independent-package concurrency rules | ✅ |
| Run a structured decision pipeline (Gemini Neon evaluator reviews the brain's proposed choice, Astra gives the final verdict, and Fable joins only on request) using a hard-bounded brief, with self-consult prevention and skip notices | ✅ (consult_decision) |
| Fall back to the in-app extension / app automatically when a CLI isn't installed | ✅ (see caveats in the docs) |
| Send a prompt straight into Antigravity's chat panel + get a structured reply back | ✅ (antigravity.sendPromptToAgentPanel, the only full in-app round-trip) |
| Pick the Antigravity model automatically | ✅ Offered at install (default on) when Antigravity is detected — patches the launcher to open a local CDP debug port so the broker auto-selects the model in-app; just decline at the prompt to skip |
The broker is a dependency-free Python MCP server. Each assistant talks to it over stdio JSON-RPC; the broker keeps shared state in one local SQLite file (WAL mode, so multiple hosts can poll it concurrently) and routes work to the right place.
Routing priority:
agy executable, not the IDE's antigravity chat launcher. Say "in app" / "inbox", pass surface: extension / surface: inbox, or set use_inbox: true to force the bridge panel. If agy is absent, an automatic Antigravity route falls back to that bridge/inbox.astra, sol, luna) from live codex debug models metadata plus the Astra capability seed, falling back to capability tier or catalog priority only when a family is absent; bare family names (astra, sol, luna, terra) and major-only requests (gpt-6) resolve to the newest live model in that family while exact IDs still pin. Claude frontier consults use the moving fable alias (with no automatic Opus fallback; explicit opus requests still run as asked). Bare Antigravity, "hydrogen", "workhorse" and the old "Gemini Flash" select the newest exact stable gemini-<numeric>-hydrogen-high slug (Flash High only as fallback when none is live) advertised by live agy models, using numeric version order; the bundled static slug is offline fallback only. Explicit version pins remain exact, and preview/nonconforming SKUs are never auto-promoted. The Gemini workhorse (Hydrogen or Flash) remains a non-authoritative labour model regardless of version.brief.proposed_choice first, then consult_decision runs the newest live Gemini Neon (high for bounded, xhigh for architecture / critical; pin or disable via AGENT_BROKER_DECISION_EVALUATOR_MODEL) as a short background advisory evaluator before Astra gives the final verdict (bounded / architecture / critical map to high / xhigh / max). Sol-or-lower Codex hosts consult Astra through a native Codex child agent (receiving the evaluator review and returning needs_native_consultation when missing without launching a nested same-vendor CLI) and pass native_consultation back to consult_decision; Claude and Gemini hosts get Astra through Switchboard. Fable joins only on request (include_fable=true when AGENT_BROKER_FABLE_MODE=on_request is set, or skip per call with include_fable=false; runs at high, xhigh on critical, never max, under 250 words — via native Claude child agent when the host is below Fable, or via Switchboard otherwise). Every path keeps the 12,000-byte / roughly 3,000-token brief cap (or 3x with prompt_budget="extended") and continues with available advisers while reporting unavailable ones instead of substituting the workhorse for flagship judgment.stage_repo=true when repository imports or tests are needed), and independent parallel packages. Gemini, Antigravity, and unknown hosts receive no automatic downward cost route; they may still request an explicit route, and Gemini retains its upward decision consultation described above. Flash is not a native child agent. Each call carries exactly one package and schema-enforced output; implementation requires a package id, a 1-5-file allowlist, and explicit numbered acceptance criteria. Flash cannot receive danger-full-access or live production work. Read-only packages that answer from their given files and report only out-of-scope scope_gaps or single-probe weak_answers return completed_with_gaps (credited while still requiring brain verification). Reworkable rejections, blocks, and non-outage failures return Codex/Claude callers a fix_and_redispatch handoff with suggested context and failure details first; native fallback (flash-failed single-use per package, or 30-minute flash-unavailable) unlocks only for availability/infrastructure outages or after a corrected resend of the same package also fails. Switchboard never auto-launches native work; the brain reviews every handoff and independently verifies cited lines, the actual diff, and checks.implementation_plan, co_audit, debate, review, …) with a word budget, and a compressed context pack instead of raw history. If a caller inlines a bloated prompt (over a soft token limit), the broker stashes the full text as a retrievable context_ref and returns a prompt_notice nudging it to send a short instruction + ref next time — so token discipline is enforced by the system, not left to each agent.Use the Switchboard MCP tool route_agent_task with target_agent: "antigravity", surface: "cli", target_model: "gemini flash", and effort: "high". The sender brain must not run agy directly; surface: "cli" tells Switchboard to invoke its internal CLI backend. Set mode: "plan" for read-only work. For implementation, set mode: "accept-edits" and include work_package_id, 1-5 exact allowed_files, and acceptance_criteria; Switchboard rejects an incomplete or whole-plan handoff.
For Codex tests or scripts that need temporary files or reports, use target_agent: "codex", surface: "cli", and mode: "workspace-write". accept-edits and acceptEdits are aliases for the same sandbox. New task_kind: "implementation" requests default to workspace-write when mode is omitted; research and other tasks default to read-only. Explicit plan or read-only always remains read-only. Unknown modes are rejected instead of silently reducing access. For parallel test packages, set async: true, give each package independent output paths, and collect each returned ID with request_result.
Codex children receive live built-in web search by default. Workspace-write children also receive an explicit network grant for shell commands; read-only children keep their filesystem and shell-network restrictions and use built-in web tools for public research. Broker config.json supports codex_web_search (live, cached, or disabled) and boolean codex_network_access (default true) to override these child defaults. Disabling shell networking does not disable hosted web search; set both options when both should be unavailable.
On Windows, a restricted-token curl.exe can fail with Schannel SEC_E_NO_CREDENTIALS even when verified Python HTTPS succeeds. Use a working TLS-verifying client or built-in web tools; do not disable certificate verification to work around that client error.
Working in one assistant but need the current state another open chat is holding? Ask for a context snapshot — a COMPACT continuation state (objective, plan, touched files, checks, risks, next step), not a full transcript, and never silent scraping (it's opt-in and local).
request_context_snapshot(project, topic, target_agent) asks the best available open surface for that compact state.~/.codex, Claude Code from ~/.claude/projects — redacted + truncated and scoped to the session whose cwd matches the project (no cross-project leak), returning immediately with no agent cooperation or CDP needed. The two CLIs are symmetric.~/.gemini/antigravity-ide/brain plus workspace/file history) and return a bounded, clearly low/medium-confidence continuation snapshot. This is not guaranteed to be the visible chat transcript, but it prevents dead-end "cannot find context" failures.claim_context_snapshot_request / complete_context_snapshot_request, race-safe + idempotent, with a stale-claim reaper), or picked up from a .agent-broker/context-snapshots/ fallback file. If no live surface is heartbeating and no local fallback exists, the request reports no_live_surface (with guidance) instead of queuing forever with no claimer.doctor shows exactly which surfaces can contribute, so blind spots are visible, not surprising.get_latest_context_snapshot — it also folds into get_context_pack ("Latest Context Snapshots") and get_topic_status, so the next model picks it up automatically. Live-host routing uses record_surface_heartbeat / list_live_surfaces.This is the cross-chat "peek" layer: agents and IDEs can see what another agent's session currently knows and fetch it on request, without copy-pasting transcripts.
There is a real difference between delivered (a file/prompt reached the surface), auto-opened (the bridge opened it for you), submitted (it was actually sent into a chat), and completed back to broker state (a model-tagged reply landed in the broker). Antigravity is still the only true structured in-app round-trip; queued Codex requests also get a broker-owned CLI worker when the Codex CLI is available.
| Target | Mechanism | How far it gets |
|---|---|---|
| Antigravity CLI (default) | agy --print <prompt> --model … --effort … --output-format json --json-schema … (direct argument-array invocation, no shell) | reported, pending brain verification — schema-enforced headless round-trip; plan is sandboxed, while bounded implementation uses accept-edits |
| Antigravity (in-app Gemini/Claude) | antigravity.sendPromptToAgentPanel (+ optional CDP model select) | delivered → submitted → completed back to broker (complete_antigravity_request) — the only structured round-trip |
| Claude extension | claude-inbox markdown, auto-opened + best-effort CDP auto-submit | delivered → auto-opened → (often) submitted → recorded back to broker: the request now has a durable claude_requests row, so a reply via respond_to_request lands on it, or a file written to claude-responses/ is ingested by bridge claude-responses |
| Claude CLI | claude -p headless (prompt via stdin) | completed — full headless round-trip |
| Codex extension / inbox | codex-inbox markdown, auto-opened, plus bounded Codex CLI worker when available | delivered → auto-opened for visibility; the worker records completed/failed back to broker state so polling does not hang forever. Extension-only/no-CLI installs remain manual via respond_to_request |
| Codex CLI | codex exec headless | completed — full headless round-trip |
| Gemini | gemini CLI (-m <model> honored) or GEMINI_API_KEY | completed via CLI; the API path is an off-by-default escape hatch |
Answer return-path: any surface without a native completion API closes the loop by calling
respond_to_request(request_id, response)— the broker records the answer + timing on the request and refreshes a per-topicledger.md(get_request_ledger). Codex inbox requests now also start a bounded CLI worker by default, sorequest_resultreturns an answer or a terminal error instead of stayingdeliveredforever.
Model enforcement, honestly: the broker can only switch the answering model programmatically on Antigravity (CDP UI automation, best-effort) and the CLIs (
--model/-mflag). Codex/Claude CLI responses are attested from runtime metadata and fail closed when metadata is missing or mismatched.agyreceives the exact dynamically resolved Flash slug and returns a conversation id, but currently does not expose independent actual-model attestation, so the result labels the requested route without claiming stronger proof. Answer prose and usage summaries are never accepted as model proof. The broker cannot drive the Codex- or Claude-extension model picker, so those surfaces still receive a strict guard plus a notification to select the requested model.
Model + effort on the CLIs: model and reasoning effort are separate inputs, never folded together. Pass
effortand the broker sets the CLI's own effort flag. A bare family request defaults to the live Codex frontier atmax, Claude's movingfablealias atmax(no automatic Opus fallback), or Antigravity's dynamically selected latest stable Gemini Hydrogen High workhorse (Flash High as fallback) athigh. Explicitcheap_readandbalancedpolicies select dynamically discovered Codex reader/workhorse models or Claudehaiku/sonnet; prompt keywords never guess. Flash remains a non-authoritative external workhorse regardless of version. If Claude's frontier is unavailable, Flash supplies a degraded advisory second opinion; for routine bounded labour, both Codex and Claude may proactively use it with the failure/concurrency safeguards above. The selected main-session model is never rewritten. Flash permission bypass is prohibited; production deployment remains with the brain.
The broker is target-driven when a target is named. If a Codex/Claude caller leaves the target completely empty, Switchboard uses the caller only as a fallback: Codex defaults to Claude, and Claude defaults to Codex. A named target or prompt phrase like "consult with Claude" still wins.
doctorBecause "what works" depends on what you have installed, the broker ships a
read-only doctor that probes this machine and tells you the truth — no state is
changed.
agent-switchboard.exe doctor # rendered report
agent-switchboard.exe doctor --json # machine-readable
# from source: python agent_broker_mcp.py bridge doctor
For each assistant it reports: whether the CLI is found (and a live
--version smoke test), whether the extension is installed, the CDP port,
the delivery route you'll actually get, the reply path, and whether a
headless debate can run. It also prints a nerve-system view — which
surfaces can feed request_context_snapshot (on-disk fast-path vs live bridge vs
push-only), so a blind spot like a disconnected desktop app is visible. It flags
broker/bridge version drift and prints actionable next steps.
For Antigravity MCP specifically, doctor reads the selected effective registration and runs a bounded stdio probe against that exact registered command, arguments, and environment: JSON-RPC initialize, initialized, tools/list, then one harmless read-only tool call. The process is always reconciled and only environment key names are reported. A locally callable server proves registration and stdio behavior, not that an existing Antigravity chat imported the tools; host exposure therefore remains unverified until the user gracefully reloads/restarts Antigravity and checks a fresh chat.
On Windows, Switchboard-owned bounded subprocesses use hidden-window flags and are waited on or killed/reaped on timeout. Launches of persistent user-facing IDE/app windows are explicitly external-owned and are not reconciled as package workers. When diagnosing empty cmd.exe chains, parentage matters: the observed Antigravity language_server → cmd /c npx → chrome-devtools-mcp chains were external to Switchboard, not broker-owned; that distinction identifies those observed processes rather than asserting a universal cause.
What each install combination gets you (this is what doctor checks):
| You have… | Codex / Claude result |
|---|---|
| CLI on PATH | full headless round-trip (best); answer returns inline |
| Extension only, no CLI | the broker still delivers into the extension (auto-opened inbox + best-effort CDP auto-submit), but it's semi-manual and not a silent headless round-trip. doctor reports this as partial / delivery-only |
| Desktop app only | clipboard hand-off only — no programmatic return path |
| Neither | doctor tells you exactly what to install |
Headless debate (running both sides automatically) needs both the Codex and Claude CLIs present —
doctorreportsheadless autonomous debate runnable: YES/nobefore you try. Extension-only setups can still get a one-shot second opinion, just not an autonomous multi-round run.
codex_web_search, codex_network_access) can opt out of either capability.hydrogen or workhorse aliases; high effort for routine packages and xhigh added to the Antigravity effort ladder for heavier work, with omitted effort defaulting to high and --effort matching any explicit slug level). Newest live Flash High serves only as the automatic fallback when no Hydrogen slug is live, and AGENT_BROKER_ANTIGRAVITY_WORKHORSE=flash rolls back to Flash High without rebuilding.consult_decision runs a short background advisory evaluator on brief.proposed_choice before Astra's final verdict using the newest live Gemini Neon (high for bounded, xhigh for architecture and critical, falling back to gemini-4-neon-high / gemini-4-neon-xhigh). AGENT_BROKER_DECISION_EVALUATOR_MODEL pins one evaluator model across decisions or disables it with off, and Neon slugs are classified in the Antigravity catalog.AGENT_BROKER_FABLE_MODE=on_request (or request/off/none) and toggled per consult_decision call with include_fable. When included, Fable receives the evaluator review, runs at high (xhigh for critical, never max), and stays under 250 words.select_codex_roles) chooses the newest live version in each Codex family (astra frontier, sol workhorse, luna reader), falling back to capability-tier or priority ordering only when a family is absent. Bare family words (astra, sol, luna, terra) and major-only names (gpt-6) resolve to the newest live model of that family while exact IDs (such as gpt-6.1-sol) still pin verbatim.completed_with_gaps for scope_gaps and weak_answers: Read-only (mode=plan) packages that finish with in-scope evidence, no ambiguities, and up to 3 out-of-scope scope_gaps entries (or single-probe research answers recorded in weak_answers) return completed_with_gaps and earn gate relief while remaining pending brain verification. Single-probe not_found is accepted when paired with a linked scope_gaps entry citing every declared read_context file; zero-evidence questions, missing primary citations, missing competing-explanation checks, in-scope paths in scope_gaps, and implementation packages stay strict.request_result responses preserve native_handoff fields, weak_answers, and scope_gaps; stored envelopes are pretty-printed before line-based redaction so one secret-looking field does not blank the whole result, and disposition truthfully reports blocked or rejected.stage_repo): Setting stage_repo=true stages a read-only copy of git-tracked project files (excluding .git, caches, build outputs, and secret-like paths, refusing symlinks/reparse points, capped at 5,000 files and 200 MB with manifest-only fallback on error) so workhorse packages can import sibling modules and run repository tests. Writes remain confined to declared files, edits to non-allowed staged files reject, and Python/pytest caches are redirected outside staging (PYTHONDONTWRITEBYTECODE=1, PYTEST_ADDOPTS=-p no:cacheprovider, PYTHONPYCACHEPREFIX).fix_and_redispatch guidance (validation_failures, suggested_read_context, stage_repo_hint, brain_adjudication_required, and do_not_replay after applied outcomes) so packages are fixed and resent first. Native fallback unlocks only for availability/infrastructure outages or after a corrected resend of the same package also fails.acceptance_criteria are numbered AC1..ACn in prompts and the output schema id enum, and validated by ID with non-empty evidence per passing entry. Missing, duplicate, or unknown IDs or an exact text swap with another criterion reject, while rewording records an acceptance_criterion_paraphrased caveat.agy reports a trailing malformed or empty tool-call error alongside a complete, schema-valid, in-scope structured_output, Switchboard preserves the result with an agy_malformed_tool_call caveat instead of discarding valid work.agy's USER_EXPLICIT / USER_INPUT <USER_SETTINGS_CHANGE> records (last record wins) rather than MODEL or tool-output records, preventing read files from spoofing model attestation. The post-exit transcript wait increased from 3 s to 20 s, and when agy omits conversation_id (such as under stage_repo), Switchboard matches the transcript by work_package_id and run start time (rejecting unattested implementation writes before apply and attaching model_unattested to read-only results).flash_skip gate and package-bound receipts: Native cheap-role spawns (explorer/worker, Explore/economy-worker) and Codex followup_task (including collaboration* tool names) require a flash_skip: <host-tools|unshared-state|flash-failed|flash-unavailable|atomic-oversize>:<evidence> line, while flagship or roleless spawns require a consult_decision within 900 seconds (AGENT_BROKER_NATIVE_FLASH_SKIP=warn|off). flash-failed receipts are persisted, single-use, and bound to their work_package_id (follow-ups to that authorized agent stay allowed), while flash-unavailable receipts cover any package for 30 minutes.routing-override grants at most 6 direct calls (AGENT_BROKER_OVERRIDE_MAX_BUDGET) with a rolling cap of 12 override calls per hour per session (AGENT_BROKER_OVERRIDE_HOURLY_BUDGET), refusing further overrides (exit code 2) until the hour passes without being cleared by workhorse credits (AGENT_BROKER_OVERRIDE_CAP=warn|off). Pure ssh, scp, sftp, and rsync commands (alone or in one cmd /c wrapper with at most one < file input, without dangerous SSH options) are exempted (live-remote) from direct-labour charges.stdin=subprocess.DEVNULL so child processes never inherit the stdio server's stdin pipe and hang on Windows; code_graph map builds also cap workers (GRAPHIFY_MAX_WORKERS=8), terminate the full process tree on timeout, and broker SQLite connections are closed explicitly on exit.workspace-write; other work defaults to read-only, and explicit read-only intent is preserved. async: true returns a request ID without waiting inline; poll each ID with request_result.code_graph: literal search, context suggestions, usage events, hot-reloading adapter)find_text answers "where does this message come from?"; a quoted phrase in locate now puts literal matches first. Every response carries an integer hits.context_for (1-5 Python files): up to 5 suggested files to read next (imports, conftest, tests). Suggestion only: never includes the declared files and never widens allowed writes.kind=code_graph row per call, with no query content. agent-switchboard.exe code-graph-usage [--days N] reports counts, hit/stale/truncated rates and per-session code_graph versus Read/Grep. It is descriptive only, and session attribution currently resolves Codex sessions only (other hosts show unknown).install_code_graph.ps1 publishes immutable releases under <home>\releases\<sha256-12>, validates them (py_compile plus a stdio health), and writes the runtime.json marker last and atomically; the bridge switches to a new release after a health handshake, keeps the old child if it fails (adapter_update_pending), and never counts a planned reload toward the crash cap.RELEASE_NOTES_v1.0.57.md.rejected / "NOT applied". Cause: two validations (the second ran after apply without the staging roots, so staged-path reports became out-of-scope) and model attestation ran after apply.completed worker; blocked/failed edits are quarantine-only.applied_then_rejected, apply_outcome_uncertain and needs_context, backed by a durable write-back journal keyed by package id and a unique run token (committed records are sticky). apply_changes rolls back to the baseline on any mid-apply failure and reports rolled_back / rollback_incomplete..pyc/.pytest_cache artifacts are ignored; the worker runs with PYTHONDONTWRITEBYTECODE=1 and -p no:cacheprovider; any reparse point or junction in staging is refused.needs_context: only import-only failed checks whose module exists in the workspace but was not staged; nothing is applied and the missing files are listed for read_context.RELEASE_NOTES_v1.0.56.md.code_graph locator tool, gate exemption, host rule, runtime installer)code_graph (ops locate, expand, path, stats, refresh, health) backed by a supervised, lazily started adapter child running code-only graphify 0.9.77 with no network. Results are locators (file, symbol, line, confidence), not evidence: confirm with a targeted read. Default response 1,500 chars, hard ingress cap 8,000, projects restricted to an allowlist (projects.json).code_graph read ops are exempt from the direct-labour count and grant no relief; refresh is counted normally.code_graph before broad grep; low confidence -> targeted grep") is added to the managed rules for every host (also in COST_AWARE_ROUTING_RULES); the upgrade path relies on the self-consistent checksum.code_graph_runtime/ is the single source of truth; install_code_graph.ps1 (idempotent, -CodeGraphHome, default $HOME\.agent-broker\code-graph) builds the pinned venv, copies the runtime, registers agent-broker in projects.json only when missing, then runs refresh and health. It never touches the exe, the Switchboard DB or host config.tests/test_code_graph_live.py maps Switchboard with its own graph; symbol coverage grows automatically. Add a question to tests/code_graph_questions.json per new feature. Skip with AGENT_BROKER_SKIP_CODE_GRAPH_LIVE=1.update/watch.route_agent_task codex_cli/claude_code now forwards outbound_reviewed to consult(), so the stored codex_requests row carries the approval and an approved needs_owner_review request is no longer held again.consult() stops forcing every serious Astra consult back to max: bounded -> high, unrated -> xhigh, risk flag -> max, explicit effort wins (sync and async).changes.diff are copied into quarantine (never applied) and reported as quarantine_files / quarantine_diff in the result and native_handoff.last_action is now read from the real agy transcript (tool_calls[].args.toolAction/toolSummary).route_agent_task with target_agent="antigravity" (CLI surface) defaults to async for mode="accept-edits" and for task_kind research/implementation; quick_check/search stay sync, and an explicit async always wins. The worker reuses the Codex/Claude pattern (request row, detached run-flash-request bridge process, request_status/request_result polling) and runs the same consult() dispatch -- staging, agy, structured validation, apply -- with a per-call timeout_seconds bounded to 240-10800 s (default 3600 s, env AGENT_BROKER_FLASH_ASYNC_TIMEOUT_SECONDS).status queued/running, request_id, work_package_id, the broker receipt (issued at queue time), async_worker {started, pid, timeout_seconds, log} and a poll hint, all inside the response envelope budget.request_result/request_status show elapsed seconds plus live agy step count and last action from the transcript; when done, the final envelope under the stored max_response_chars (full result under response_ref). A dead or overdue worker is failed with the WP-SB3 timeout classification and the flash-failed/flash-unavailable native handoff.cancel verb / tool) now kills the Flash worker and its agy process tree. Overlap guard: a new accept-edits package whose write/create paths overlap a queued or running Flash package is refused with the conflicting request_id.tests/conftest.py now forbids any test from spawning a real Flash worker. See RELEASE_NOTES_v1.0.53.md for the exact pytest evidence.opus catalog alias, and claude --model opus resolved inside the installed Claude CLI's own (possibly stale) alias table -- silently running Opus 4.8 instead of 5.5. Static catalog entries for claude-fable-5-1, claude-opus-5-5, claude-sonnet-5, and claude-haiku-4-5-20251001 now match their versioned aliases exactly; the bare fable/opus/sonnet/haiku entries keep only unversioned aliases.parse_claude_versioned_model) handles any Claude version not in the static catalog (e.g. "sonnet 5.2" -> claude-sonnet-5-2, "opus 4.8" -> claude-opus-4-8), used only when no exact catalog alias matches._PROMPT_MODEL_PATTERNS now resolves a versioned mention in prompt text (e.g. "Opus 5.5") before any bare pattern, so free-text routing requests get the same explicit-id treatment as structured target_model args.claude_frontier_candidates() no longer retries under opus when best/fable are unavailable -- the chain now ends at fable. An explicit "opus ..." request is still honoured as asked.RELEASE_NOTES_v1.0.52.md for the exact pytest evidence._route_task_flagship_fallback() had no available fallback for an actively-latched route_agent_task target, it silently proceeded on the original (latched) model with a notice. It now returns a structured skipped_unavailable/skipped_quota result instead -- carrying the latch reason/kind (and expires_at for quota) plus guidance to use consult_decision for the cross-vendor fallback or retry with retry_unavailable=true -- and never dispatches.retry_unavailable on route_agent_task. Forces exactly one dispatch despite an active latch (for after switching accounts or topping up): a genuine success clears the latch, a fresh availability failure refreshes it, using the same classifier consult_decision's own retry path uses (_decision_failure_kind).apply_response_envelope_budget() now bounds every header field individually and guarantees the final size. The header used to be kept whole, so a large native_handoff (or any bulky header object/string) could push the result past max_response_chars with no final re-check. Header scalars are now truncated when oversized; bulky header objects (native_handoff, caveats) collapse to essential scalar keys (native_handoff: family, role, model, flash_skip_reason, action) or a small condensed stub, with the full object always recoverable via response_ref. A final serialized-size check (_enforce_envelope_size_guarantee) guarantees len(json.dumps(result)) <= max_response_chars in every case, including a pathological result where every field is huge: it drops non-essential keys (largest first), then shrinks remaining string values, then -- only if the budget is too small even for the essential set (status, outcome, accepted, credit_eligible, receipt, work_package_id, response_ref, truncated) -- falls back to status/truncated alone.AGENT_BROKER_CHILD=1) is no longer brain-gated. Since v1.0.50, a Codex/Claude child launched by Switchboard loads the owner's own config and therefore the routing hooks -- a live Astra audit child hit the 4-call direct-labour gate on its 5th read, and the Stop hook demanded a flagship-consultation receipt (a recursive requirement, since satisfying it would mean the child spawning/consulting another agent, which its own PreToolUse guard had just denied). Every hook entry point (pre_tool_use, post_tool_use, stop, subagent_start, subagent_stop, user_prompt_submit) now short-circuits under the child flag to only the behaviour appropriate for a depth-1 adviser/worker: PreToolUse keeps only the existing spawn/consult guard (no labour counting, no flagship prompt cap, no Claude-circuit-breaker deny); PostToolUse keeps only the ingress quarantine (no labour checkpoint, no credit/decision-receipt bookkeeping); Stop/SubagentStop/SubagentStart never block and record nothing; UserPromptSubmit injects one short role-reminder line instead of the brain's delegation policy. Non-child behaviour is unchanged.RELEASE_NOTES_v1.0.51.md for the exact pytest evidence.--ignore-user-config (added in WP-SB6 to keep a Codex child from seeing the Switchboard MCP server or spawning sub-agents) also skipped ~/.codex/config.toml entirely, including the [projects.'<path>'] trust_level = "trusted" entry -- so every child became untrusted and even read-only shell commands (git log, etc.) were rejected as "blocked by policy" (confirmed live: a real Astra audit's git diff failed this way). The command now drops --ignore-user-config and instead passes -c mcp_servers.agent_switchboard.enabled=false (a documented per-server config key, confirmed via codex mcp get agent_switchboard) alongside the existing --disable multi_agent. Verified with real codex exec dry runs (gpt-6-luna/low, --sandbox read-only --skip-git-repo-check --json): the old flags left git log -1 --oneline blocked by policy with only built-in tools visible; the new flags ran the git command successfully (its real output appeared in the JSON stream) while the full MCP tool list came back with every one of the owner's other servers present and agent_switchboard completely absent.queue_codex_request no longer swallows an owner-approved resend. Its dedup query matched any prior request for the same project/topic/prompt/mode regardless of status, so a request the outbound screen had held, which the owner then approved and resent with outbound_reviewed=true, deduped against the original FAILED/errored row and returned deduped: true, "request already terminal" without ever running. The dedup query now excludes every real failure terminal state (error, cancelled, canceled, expired, failed) outright, and includes outbound_reviewed in the dedup key so a resend carrying a different reviewed flag than a stored row is treated as a new request rather than matched to the stale one; a queued/running/completed row with the same outbound_reviewed value still dedupes exactly as before.max_response_chars used to cap only the raw response string; a Flash dispatch's structured_output came back in full, duplicated a second time inside response as a JSON string, and the host's own context gate quarantined the oversized result (hiding status/receipt with it). Every route_agent_task/consult/queue-request result is now fit to max_response_chars (default 6,000 when unset) with apply_response_envelope_budget: a compact header (status, outcome, accepted, credit_eligible, worker_status, disposition, receipt, work_package_id, model/attested_model/attestation/model_attested, elapsed_seconds, native_handoff, response_ref, truncated) always survives whole; the duplicated raw response is dropped once structured_output is present; long string leaves in structured_output are trimmed proportionally with a "...[truncated; full text in response_ref]" marker; and bulky diagnostic blocks (model_resolution.catalog_status, verbose progress/containment) are condensed first. The full untrimmed result is always stored and retrievable via response_ref + retrieve_shared_context.prompt_budget tier. route_agent_task, consult_codex/consult_claude, queue_codex_request/queue_claude_request, and consult_decision all take prompt_budget ("standard", the default, or "extended") plus a required, non-empty, <=200-char budget_reason when extended. Standard keeps every existing bounded cap (14,000-byte/3,500-token frontier provider prompt; 12,000-byte/3,000-token decision brief; 4,000-byte evidence excerpts; 8,000-byte combined decision result). Extended multiplies every one of those byte/token budgets by 3 (42,000 bytes/10,500 tokens for the provider prompt, matching routing_gate.FLAGSHIP_PROMPT_EXTENDED_MAX_BYTES so the PreToolUse delegation gate and this in-process cap never disagree) -- the fixed count limits (questions/options/evidence_refs) are unchanged. Over-standard rejections now say how to opt in; prompt_budget/budget_reason are echoed in every result and recorded in the consult_decision ledger entry.research_coverage[].answer field in the --json-schema contract passed to agy had a 2,000-char cap that once cost a worker its whole 240s sync timeout writing a script to shrink its output to fit; it is now 20,000 chars, and the worker contract prompt states plainly: "There is no length limit on your answer; the broker stores the full result. Do not measure, trim or shorten your output." (the old "keep the full report within 8,000 characters" line is gone).research_questions item over 500 characters now raises a useful error naming the item's index, its actual length, the limit, and suggesting the question be split -- not a bare ValueError.PostToolUse MCP response over the ingress cap is quarantined to a local evidence file exactly as before, but the notice handed back now also carries a compact scalar projection (status/outcome/accepted/credit_eligible/worker_status/disposition/receipt/work_package_id/attested_model/attestation/response_ref/elapsed_seconds) pulled straight from the quarantined body, so the brain can often decide the next step without opening the file at all.get_*/list_* MCP lookups and an explicit exempt set (run_evidence_probe, retrieve_shared_context, resolve_model_request, request_status, request_result, compact_topic) are the gate checking its own ledger, not the brain doing work, and no longer count toward the allowance.routing-override exemption is looser and safer. Any routing-override invocation (including a bare --help) is now exempt from the shell-command labour count, not just the exact --session/--package/--reason form; a shell separator is neutralized only inside a quoted string, so a chained command tacked on after the override (;, &&, |) still fails to match and earns no free pass.route_agent_task snippet is shaped to the blocked category -- a research-shaped block (reads/searches/evidence) is never pointed at the quick_check lane, which would skip the mandatory research_questions coverage/depth contract.FLAGSHIP_PROMPT_MAX_BYTES (14,000) is allowed silently as before; between that and the new FLAGSHIP_PROMPT_EXTENDED_MAX_BYTES (42,000) is allowed but logged and named in the permission reason so the extended budget is visible, not silent; past the extended cap the call is denied exactly as before, with both limits named.RELEASE_NOTES_v1.0.50.md for the exact pytest evidence.consult_decision now has a real fallback chain. A latched or unavailable native flagship (e.g. Fable blocked on credits) walks the rest of its same-vendor chain, then the opposite-vendor chain, at the same ladder effort, instead of failing outright or asking for the same blocked model again.complexity: bounded/architecture/critical, plus risk_flags) instead of always running at max, and oversized prompts to expensive models are rejected with guidance instead of silently truncated.flash-failed with transcript evidence instead of being mislabelled flash-unavailable/model_resolution failed.gpt-5.6-terra references are gone. The generated hierarchy text and static Codex catalog now reflect the live gpt-6-sol/gpt-6-luna workhorse and reader roles.~/.codex/hooks.json; hooks in config.toml is a table for inline hooks and trust state, not a scalar file path. Switchboard no longer tries to add that invalid scalar and preserves the Codex App-owned [hooks.state] table byte-for-byte.doctor now asks Codex itself whether Switchboard hooks are ready. A bounded read-only hooks/list app-server probe reports each required handler's discovery, enabled state, and trust state. New or changed hooks are reported as pending_user_review with the supported /hooks remediation instead of being mistaken for active enforcement; Switchboard never manufactures private trust hashes.gemini flash still resolves to the newest live stable Flash High (3.8 now, future 3.9/4 automatically), while Astra remains the flagship decision tier over Sol.hooks path activation was incompatible with Codex's table-valued hook configuration. Use v1.0.47 or newer.gemini flash to the newest live stable numeric Flash High, including 3.8 today and future 3.9/4 releases.routing-report no longer borrows the newest unrelated audit; historical fallback requires --last. Native lifecycle, Flash dispatch/failure/handoff, and linked flagship consultation events are rendered together without double-counting, and important read-only turns cannot complete without a decision receipt.doctor exposes the resolved executable and gate-harness command, while research locator and attestation constraints are described consistently in MCP schemas and validation errors.~/.gemini/config/mcp_config.json without the forbidden type field, safely handles an empty file, and migrates recognized legacy registrations without overwriting unrelated entries.~/.agent-broker/agent-switchboard.exe, then falls back to the source agent_broker_mcp.py through Python; explicit executable and script paths remain supported.gemini flash routing refreshes the live CLI catalog before dispatch. It selects the newest advertised stable numeric Flash High (3.8 when the CLI advertises it, then future 3.9, 4, and later releases automatically), preserves explicit model pins, and retains bounded breaker/cache fallback behavior when live discovery fails.doctor performs a bounded stdio initialize/list/read-only-call probe and keeps chat-level host exposure explicitly unverified until a user-controlled reload/fresh-chat check.consult_decision, which invokes only the opposite-vendor adviser required for architecture/critical work. If that native result is missing, the broker returns an explicit request without contacting any provider.consult_decision orchestration route. Codex, Claude, and Gemini hosts can send one structured decision brief to the appropriate higher-tier Astra/Fable adviser(s). Complexity selects high, xhigh, or max; the current host model is excluded; quota/provider failures are isolated and returned as final-handoff notices.route_agent_task now forwards required research_questions to the Flash backend instead of silently dropping them.gemini flash target still resolves against the live Antigravity catalog, so a newer stable Flash High release is selected without another hardcoded version update.task_kind=research with one to three exact questions. Switchboard repeats the depth rules in every package, requires ordered per-question coverage, multiple evidence probes, a primary citation and competing-explanation check for answers, and searched boundaries/gaps for NOT FOUND; shallow, missing, reordered, low-confidence, or unsupported completed reports are rejected for brain review.PYTHONUTF8=1, and new end-to-end tests exercise the server as a real subprocess.refresh/hierarchy now re-points any host still registered to an older broker binary at the canonical agent-switchboard.exe, and status prints a per-host registration health table with the version each registered command actually reports. This closes a silent failure mode in which the hooks ran the current build while every host's MCP server stayed on an old one — so schema, envelope, and validation changes shipped but never took effect. A running host keeps serving the process it launched, so a window reload is still required after a repair.route_agent_task description all lead with the Flash package call instead of "native first". Choosing a native role for an eligible package now calls for a stated flash_skip reason (host-tools:, unshared-state:, flash-failed:, flash-unavailable:, atomic-oversize:). Every prior Flash prohibition is unchanged.route_agent_task returns a server-issued, ledger-backed receipt (broker:<uuid>), the resolved and backend-attested model, elapsed time, and an outcome. Only completed_verified and completed_with_gaps (read-only packages that answer from their given files and report only out-of-scope gaps or single-probe weak_answers) grant credit, the receipt is verified against the ledger and is single-use, and credit for a blocked, rejected, failed, or unavailable dispatch is refused — so relief cannot be farmed by firing a route known to fail..* after PowerShell — this platform's primary shell — was found missing from it and bypassing labour counting, mutation tracking, and the direct-agy deny. Tool-name classification now canonicalizes the MCP server segment, so mcp__agent-switchboard__* and mcp__agent_switchboard__* are treated alike. The direct-agy deny no longer depends on a host field being present.run_evidence_probe tool gives the read-only reader lane the measurements it could not make without a shell — file hashes, real encoding/BOM/line endings, git state, file stat, bounded literal grep, filtered process list. The catalog is fixed, with no pass-through command probe; secret-material filenames and symlink/reparse paths are refused, results are capped, and process listings never include command lines.agent-switchboard.exe gate-harness proves enforcement deterministically (including the negative control a cooperative live session may never produce); canary flash runs one real read-only package end to end and prints its receipt and attested model; routing-report summarizes a session's lanes. Every MCP result now carries _meta.switchboard with the version, a build fingerprint of the running image, and the server pid, so "is this window on the new build?" is answerable from any response.~/.gemini/GEMINI.md. It narrowly replaces the known obsolete global Pine-v6 persona, while preserving unrelated user-authored Gemini content and refusing tampered managed blocks.route_agent_task. "Through CLI" means surface: "cli" on that tool; only Switchboard may start agy, and the installed Codex/Claude pre-tool hooks deny sender-side direct invocation.--output-format json --json-schema .... Switchboard validates the structured result locally and rejects missing fields, malformed output, contradictory completion, out-of-scope file changes, and unsupported claims that a defect is intentional/by design.work_package_id, 1-5 exact allowed_files, and explicit acceptance_criteria. Whole-plan execution, continuation to another package, danger-full-access, production SSH, live credentials, destructive operations, migrations, and live deployment are prohibited.brain_verification: pending and accepted: false. The Codex or Claude sender must independently inspect cited primary lines, the actual diff, and check output before accepting the package or dispatching the next one; ambiguity and failure fall back to the native reader/workhorse.gemini flash requests now select the newest exact stable gemini-<numeric>-flash-high slug advertised by live agy models, including its current tabular output. Numeric version ordering handles future releases automatically, while preview/nonconforming models are excluded, the bundled 3.6 slug remains an offline fallback, and explicit version pins remain exact.agy/Flash work falls back to the host's native cheap reader/workhorse and records the fallback. Flash and native workers may run concurrently only on independent packages: reads may be parallel, while writes remain serial unless demonstrably isolated, with the brain reviewing evidence and actual diffs./usr/bin/bash from stripping backslashes out of Windows executable paths. Install/repair migrates legacy string-form Switchboard hooks without changing other user hooks; Codex hooks keep their existing command-string format.PreToolUse gate now atomically allows one bounded block of direct brain labour, then denies the next eligible read, search, evidence, test, documentation, or mechanical call until a same-vendor native reader/workhorse starts or a package-specific brain override is registered.PostToolUse hook. The brain receives a compact evidence reference and must request an explicit field projection or output cap instead of ingesting the raw response.agent-switchboard.exe --version (plus version and -v) reports the packaged release, so an installed binary can be verified directly.explorer/Luna-low and worker/Terra-medium, or Claude Explore/Haiku and economy-worker/Sonnet-medium. That same-vendor restriction remains; the current policy also permits the distinct external Antigravity Flash workhorse lane documented above.SubagentStart/SubagentStop ids and accepts mixed native:<agent-id> and broker:<uuid> receipts. Bare brain overrides no longer bypass the whole audit; retained work uses a package-specific override: brain - <WP-ID>: <specific reason>.codex debug models priority/visibility/description metadata. Claude uses moving family aliases: Fable/max for the peer brain, Opus/max only on an explicit Fable availability failure, Sonnet/medium for workhorse implementation, and Haiku for read-only labour.plan, so approved routine implementation can execute on the workhorse. Direct and async results report requested, attempted, and runtime-attested actual models.CLAUDE_CHEAP_MODEL now pins the exact claude-haiku-4-5-20251001 model id instead of the floating haiku alias; the static Claude catalog entry was updated to match while keeping all existing Haiku aliases (haiku, claude haiku, haiku 4.5) resolvable.Route | exact model/effort | deliverable | verification | escalation, require workers to record an override: brain - <reason> line when deviating from the assigned route, reclassify risk/difficulty at each work-package boundary, return the first ambiguity or failed fix to the brain before delegating the deterministic remainder, default to parallel reads / serial writes, and require the final routing audit to cross-check the broker's actual-model ledger rather than a worker's self-report.discover_codex (broker) and setup.py's config writer/repair now resolve Codex CLI path in the same order: a valid configured codex_path, then a valid CODEX_CLI_PATH marker from ~/.codex/config.toml, then PATH.unverified, and fail closed on a requested-model mismatch. Claude trusts only the main assistant event; Codex trusts the persisted turn_context tied to the emitted thread id.read-only, workspace-write, or danger-full-access through the detached worker instead of silently forcing every worker to read-only. Native Windows sandbox failures still escalate to the brain; the broker never weakens the requested sandbox automatically.model_policy="cheap_read" routes read/extract/summarize labor to Luna/low or Haiku (without an unsupported Haiku effort flag).model_policy="balanced" routes bounded implementation/testing from an approved plan to Terra/medium or Sonnet/medium. Prompt keywords never silently downshift a serious request.agy CLI, matching Codex and Claude's CLI-first behavior. Calls return stdout directly; if agy is missing, automatic routing falls back to the existing in-app bridge/inbox.surface="extension" / "inbox" or use_inbox=true forces the in-app bridge; surface="cli" requires the headless CLI."flash high 3.6" resolves to gemini-3.6-flash-high, and list_agent_models merges agy models output so newly released models become available without hardcoding another broker release.plan; task_kind="implementation" defaults to accept-edits; bypassing permission prompts remains an explicit danger-full-access choice.consult_antigravity, antigravity_cli_path, doctor reporting for agy, installer detection, and CLI/inbox fallback guidance.AGENT_BROKER_CONSULT_RESPONSE_CHARS / _MAX). Full responses were always preserved (history + request row + response_ref), but the small inline cap force-shrank what the calling session actually saw.[... truncated inline; FULL response preserved — see response_ref] marker.request_result) move untruncated; only display excerpts (history, event log) are shortened..md and started the CLI worker, so the bridge also delivered the prompt into the IDE — a stray tab popped up while the worker answered headless. Inbox files are now written only when no CLI worker took the request (UI fallback path), and the worker deletes any leftover inbox copies when it finalizes (covers rows queued by older servers).claude -p --model fable/opus/sonnet/haiku --effort …, same machinery as the Codex worker: atomic claim, 1800s cap, rowcount-gated side effects, no console window) that records the answer; collect it with request_result(request_id, wait_seconds=180). The inbox file stays as the UI fallback. Disable via AGENT_BROKER_CLAUDE_QUEUE_AUTORUN=0.claude_requests like it covers codex_requests.claude_requests gained effort, cli_model, worker_pid, worker_started_at, worker_completed_at (auto-migrated).AGENT_BROKER_CODEX_ASYNC_TIMEOUT_SECONDS.typical_wait: "5-15 minutes at max/xhigh effort" and retry_after_seconds: 120 (was a hammer-inducing 20), and request_result reports elapsed_seconds plus a "this is normal, not a hang" note for max/xhigh — so callers stop reading a 8-minute run as stuck.gpt-5.6-luna at low effort whenever the prompt mentioned reading/lines/deleting — producing hedged, untrustworthy answers. Luna now runs only when the caller explicitly sets model_policy='cheap_read' or names a Luna model.max. Even if the caller passes high/medium, a consult/plan/audit/review/debate is clamped up to max (unless it explicitly opted into a cheaper tier). Safe now that max routes async instead of hanging — so the earlier hang fix no longer costs you effort.cmd.exe window on Windows. The detached async worker runs without a console of its own, so the Codex/Claude CLI (and git/powershell helpers) it spawned were getting a fresh console window that lingered on screen. Every child process now spawns with CREATE_NO_WINDOW, so all consultation work happens silently in the background.gpt-5.6-sol at max again (v1.0.14 had dropped this to high). Quality is the default; latency is handled by routing, not by lowering effort.max/xhigh consults route async up front. Instead of blocking the 240s sync window and then reporting pending, an effort that doesn't fit the window returns a pending request_id immediately while the detached worker finishes it — collect with request_result(request_id, wait_seconds=180). Efforts that fit (high/medium/low) still return inline.model_policy='cheap_read' (and cheap/reader-shaped requests) run gpt-5.6-luna at low and return inline.effort, target_model, or model_policy wins: request Luna for a consult, or Sol/max for anything, as the task needs.consult_codex no longer times out and discards the work. A consult now runs through the same ledger+worker path as queued requests: it returns the answer inline when it finishes inside the sync window, otherwise it returns a status: "pending" payload with a request_id — the detached worker keeps running to its own cap and records the answer, so nothing is lost. Collect a pending answer with request_result(request_id, wait_seconds=120).high effort, not max. At max, gpt-5.6-sol routinely overran the 240s sync window and the timeout threw the work away. high finishes inline for typical consults; the sync path no longer clamps serious consults up to max (the async routing paths still do). Pass effort: "max" explicitly when you want it — that request just returns a pending id.request_result / request_status gained wait_seconds long-poll. One call blocks (bounded to the MCP window) until the request reaches a terminal state, the reliable way for a turn-based caller to collect a pending consult.store_consultation after a successful consult, discarding the answer).delivered forever. Queued Codex requests now start a bounded headless Codex CLI worker that writes the answer/error back to the same request row.request_status / request_result turns stale pre-fix Codex rows into terminal errors with a requeue note.max.gpt-5.6-sol consult/audit/review/debate routes are upgraded to max.model_policy: "balanced", "efficient", or "lower_effort" when medium/lower effort is intentionally enough, or model_policy: "cheap_read" for Luna reader/sample-prep work.codex/gpt consults, audits, reviews, debates, and co-op routes resolve to gpt-5.6-sol with max effort.model_policy: "cheap_read" and resolve to gpt-5.6-luna with low effort.get_model_routing_guide returns the policy, examples, and available model catalog so Claude/Codex do not have to rediscover the rules every session.retrieve_shared_context(response_ref, query).[redacted possible secret line] report contains_redaction_placeholders so callers know those lines were removed before storage.opus at max effort; fable, sonnet, and other Claude aliases stay on the direct Claude CLI backend unless async is explicitly requested.route_agent_task now honors the requested Claude effort. A routed request with effort: low now resolves and runs as low instead of silently falling back to Claude's max-effort default.queue_claude_request, get_claude_requests, request_status, and request_result are now exposed as MCP tools, so a caller can queue a long Opus pass, keep working, then retrieve the recorded answer.respond_to_request(...) instruction, plus the .agent-broker/claude-responses/<request-id>.md fallback, after the bridge strips the metadata header.timed out awaiting tools/call failure.target_agent and target_model empty, the broker now defaults to Claude Code CLI with the flagship Claude model (opus, max effort) instead of falling into Antigravity model selection.gpt-5.5, xhigh effort).request_context_snapshot(target_agent="antigravity") now falls back to bounded local Antigravity task/log/activity state (~/.gemini/antigravity-ide/brain), workspace state, file history, and recent project file mtimes. It clearly labels the result as low/medium-confidence instead of pretending it is a guaranteed visible-chat transcript.record_work_memory.claimCurrentWorkspaceOnly, antigravityClaimMaxAgeMs, snapshotClaimMaxAgeMs, and preventAntigravityBackgroundTimers. Bridge extension version is now 1.0.1.tools/list now returns 18 compact user-facing tools instead of the full bridge/internal catalog. It includes Codex routing, request return, and work-memory recording so broker instructions never ask Claude to call hidden tools. Set AGENT_BROKER_TOOL_PROFILE=full or mcp_tool_profile: "full" if a client needs every internal bridge tool.get_consultation_history now returns bounded summaries unless include_raw=true, and long consult responses return an excerpt plus response_ref for explicit retrieval.consult_codex / consult_claude / route_agent_task now take a first-class effort field (minimal|low|medium|high|xhigh, plus phrases — "extra high" → xhigh, "ultra"/"max" → family top) that is passed to the CLI as its own flag (Codex -c model_reasoning_effort=, Claude --effort) and never smuggled into the model name. A bare family request — "codex", "claude" — now resolves to the flagship model at the highest available effort (Codex gpt-5.5/xhigh, Claude opus/max) instead of stalling on a model-selection prompt; a specific model is honored verbatim ("sonnet 4.6 for implementation", "gpt-5.4-mini"). Effort phrases are split out of the model text before matching, so a request like "5.5 extra high" resolves cleanly to model gpt-5.5 + effort xhigh — fixing a class of failures where the effort phrase produced an invalid --model "gpt-5.5-codex xhigh" (rejected by Codex). Per-request auto-pinning of a topic default is now opt-in (remember_model). New shared helper resolve_cli_model_and_effort(); Fable added to the Claude catalog. (Tagged v1.0.1 in source; first shipped as a binary in v1.0.2.)implementation and implementation_plan task contracts now tell the receiving agent to prefer the standard library / a native platform feature / an already-installed dependency over new code or new dependencies — explicitly without dropping required validation, error handling, security checks, or tests, and without disputing an approved plan (stop and report instead). Scoped to code-writing task kinds only; consult/co_audit/debate/review are unchanged, so second-opinion reasoning quality is untouched.%APPDATA%/Claude data dir and the legacy standalone installer, so Store users aren't false-negatived.request_context_snapshot now reads live Claude Code sessions on disk (~/.claude/projects, scoped to the session whose cwd matches the project) and completes immediately — symmetric with the existing Codex ~/.codex reader, so the most common "recent chat" surface is finally peekable without any agent cooperation. When no surface is heartbeating it returns no_live_surface (with guidance) instead of queuing forever; doctor gained a nerve-system report of which surfaces can contribute (on-disk vs live bridge vs push-only); and the installer now also registers the Claude desktop app (push-only — it stores chat in Electron/server-side and can't be read on disk, surfaced honestly in doctor). Installer hardening: Antigravity debug-port helper scripts are copied to a durable ~/.agent-broker path (the frozen-exe build previously baked a PyInstaller temp path into the launcher shortcut, breaking Antigravity launch after install), uninstall restores the patched launcher shortcuts so the opt-in is fully reversible, and the setup menu leads with Install (Status moved last).route_agent_task sends Codex/Claude work to the headless CLI by default (reliable, model-switchable via -m, answer returned inline). Say "in app" / surface=extension for the in-app IDE chat panel, or surface=app for a visible desktop-app handoff — both honored. Exceptions: Gemini defaults to Antigravity in-app automation unless you explicitly request surface=cli; and Antigravity-hosted models (e.g. Antigravity's Opus/Gemini) always use Antigravity automation, never a CLI. If the CLI is missing, auto-routing degrades to the in-app extension, then the app handoff.complete_antigravity_request). Confirmed working end-to-end: "send to Antigravity Gemini 3.5 (High) and reply" auto-switched the model and returned the answer. This remains the only surface with a fully programmatic in-app send and structured reply.doctor — read-only capability report. agent-switchboard.exe doctor (or bridge doctor [--json]) probes this machine per assistant: CLI present + live --version smoke test, extension installed, CDP port, the delivery route you'll actually get, the reply path, and whether a headless debate can run. Flags broker/bridge version drift and prints next steps. No new MCP tool (CLI-only — keeps the 36-tool context budget unchanged). Also probes for a CLI binary bundled inside an installed extension as a detected-and-smoke-tested fallback, never an assumed one.claude_requests table (mirrors codex_requests): queue_claude_request records a row, respond_to_request and ledger.md now recognize Claude requests, and a new bridge claude-responses [project] verb ingests answer files written under .agent-broker/claude-responses/ (idempotent; archives to processed/). Previously a Claude-extension reply had no row to attach to. Still no MCP tool added (36 unchanged).is_terminal_state() so terminal-state logic lives in a single place for new code (reply ingestion, doctor, status/result/cancel). Existing per-table status values are unchanged on the wire — no migration.bridge status <id> and result <id> (read-only, normalized to the canonical lifecycle across codex/antigravity/claude requests), cancel <id> [reason] (terminal-guarded, idempotent), and reap [max_age_hours] (marks abandoned non-terminal requests expired — never re-queues, so no double-delivery; never touches terminal or awaiting_model_selection rows). CLI-only; 36 MCP tools unchanged.bridge debate <project> <topic> "<proposition>" [rounds] [sideA[:model[:effort]]] [sideB[:model[:effort]]]). Two assistants debate headless on your subscriptions (no API key) for N rounds, then a synthesis judge writes a verdict; the transcript + verdict are saved under .agent-broker/debates/. Each debater keeps real memory across rounds via its CLI's own resume primitive (codex exec resume, claude -p --resume) — no daemon, no app-server, no network port; every turn is a clean bounded subprocess. Defaults: Codex latest + xhigh reasoning vs Claude opus + xhigh, synthesis at high; the transcript labels each side as e.g. codex/latest (xhigh) so you always see which model+effort argued. Token discipline (no file/command exploration, ~500-word cap, only the opponent's last message per turn) keeps cost down without lowering reasoning. CLI-only; 36 MCP tools unchanged.request_context_snapshot asks the best available surface for a COMPACT continuation state (objective, plan, files, checks, risks, next step) - not a full transcript. Read it back with get_latest_context_snapshot; it also lands in get_context_pack under "Latest Context Snapshots" and in get_topic_status. Opt-in and local - no silent chat scraping.~/.codex session transcript on disk (redacted + truncated) and returns immediately - no agent cooperation or CDP needed. Strictly scoped to the session whose cwd matches the project (no cross-project leak).claim_context_snapshot_request (capability-gated, stale-claim reaper), complete_context_snapshot_request (race-safe, idempotent), snapshot-release for undeliverable claims, plus record_surface_heartbeat/list_live_surfaces so the bridge can route to a live host. Bridge polls snapshots first and scans a .agent-broker/context-snapshots/ fallback dir. 36 MCP tools.<model>" notification. A lesser/default model can no longer silently answer in the requested model's place. Codex requests carry target_model + strict_model.agent-switchboard.exe. One dual-mode binary (PyInstaller) that installs everything (the bridge VSIX is embedded) and runs the MCP server via agent-switchboard.exe serve — no Python required. Both the exe and python setup.py expose a built-in uninstall that now also removes the bridge extension and the installed exe.latest_vsix() is recursive + version-aware (a fresh clone could previously ship no usable VSIX); frozen self-install uses an atomic replace and aborts instead of silently keeping a stale exe.respond_to_request (new): any receiving agent returns its answer to the broker, which records the response + timing + responder on the queued request — the symmetric reply Codex/Claude extensions lacked. No more copy-pasting from the chat panel.get_request_ledger (new): a per-topic, human-readable ledger.md (request → answer → timing) generated from SQLite (broker is the single writer; SQLite stays the source of truth). Auto-refreshes on queue/complete/respond.respond_to_request with the Request ID. 30 MCP tools.hasAntigravitySendCommand caches positive only (re-checks negatives on a TTL) so a late-registering Antigravity command isn't refused until reload; complete_antigravity_request race branch returns the actual terminal status; removed dead bridge callback code.AGENT_GROUND_RULES.md and the message references it (~183→72 tokens/message). Plus a token-economy guard that flags oversized handoff prompts (prompt_notice).antigravity.sendPromptToAgentPanel, and wraps the send in try/catch → requeue.complete_antigravity_request is now idempotent (status guard + rowcount → already_completed), the Codex callback is single-sourced through the broker, and the bridge archives the fallback response file after completing so a stale file can't re-complete a requeued request.consult_gemini now passes -m <model> on the CLI path (was silently running the CLI default); SQLite uses WAL + a 30s busy timeout; env-int parsing can't crash the server on import.useCdpModelSelection) now ships off; the unauthenticated debug port is opt-in only.note; MCP serverInfo reports the real version; docs reconciled to code (28 MCP tools; bridge 0.4.20).record_work_memory / get_work_memory).extension default · app when named) with app fallback; fixed model misrouting; Antigravity "which model?" gate; Claude inbox route; Claude CLI hardened (stdin).route_agent_task with task kinds, model aliases, strict-model handling, and token budgets.store/retrieve_shared_context), per-topic context packs, and new-chat bootstrap.antigravity.sendPromptToAgentPanel; Codex inbox + callbacks.The broker is a single dependency-free Python file (Python 3.10+):
python agent_broker_mcp.py # start the MCP stdio server
python agent_broker_mcp.py bridge ... # CLI helpers used by the bridge extension
Build the release artifacts (the bridge VSIX + the self-contained exe):
powershell -NoProfile -ExecutionPolicy Bypass -File .\build-release.ps1
# -> extensions/antigravity-agent-broker-bridge/antigravity-agent-broker-bridge-<ver>.vsix
# -> dist/agent-switchboard.exe (embeds the VSIX; dual-mode install + `serve`)
Needs Node.js (for vsce) and Python (PyInstaller is installed automatically if missing). Upload dist/agent-switchboard.exe to the GitHub Release.
Register it with an MCP client by pointing the client's MCP config at:
{
"command": "python",
"args": ["C:\\Users\\<you>\\.agent-broker\\agent_broker_mcp.py"]
}
MCP tools exposed:
consult_decision, consult_codex, route_agent_task, evidence probes, Codex/Claude queue/status, model listing/routing, compact history/memory/context/snapshot reads, memory/event recording, retrieval, live-surface status, request ledger, and respond_to_request).AGENT_BROKER_TOOL_PROFILE=full|public|lite|compact or mcp_tool_profile in ~/.agent-broker/config.json.Default registered public profile:
register_project, consult_decision, route_agent_task, run_evidence_probe,
resolve_model_request, get_model_routing_guide, list_agent_models,
set_model_default, get_model_defaults,
consult_codex, consult_claude, consult_antigravity, consult_gemini,
get_consultation_history, queue_codex_request, get_codex_requests,
queue_claude_request, get_claude_requests, request_status, request_result,
record_agent_event, get_topic_timeline, get_topic_status,
respond_to_request, get_request_ledger,
get_work_memory, record_work_memory,
get_context_pack, record_context_event, compact_topic,
store_shared_context, retrieve_shared_context, get_shared_context_stats,
get_chat_bootstrap,
request_context_snapshot, get_latest_context_snapshot, list_live_surfaces
Antigravity model auto-selection (experimental, off by default) requires launching Antigravity with a debug port so the bridge can drive the model picker over Chrome DevTools Protocol, then enabling agentBrokerBridge.useCdpModelSelection:
antigravity --remote-debugging-address=127.0.0.1 --remote-debugging-port=9000
Without it, the bridge uses whatever model is currently selected and asks you to pick the target model first.
127.0.0.1:9000 (9010 for VS Code). It ships off (useCdpModelSelection: false); only enable it when you've deliberately launched the IDE with the debug flag, and close the port when you're done.%USERPROFILE%\.agent-broker. The uninstaller keeps it unless you pass -RemoveData.Q: Do I need an API key?
A: No. It uses the subscriptions your installed assistants are logged into. (A GEMINI_API_KEY path exists only as an off-by-default escape hatch when no Gemini CLI is present.)
Q: Can it force Antigravity to use a specific model?
A: Not reliably. Antigravity exposes no stable "set model" API. The experimental CDP path clicks the picker for you (needs the debug port and useCdpModelSelection: true); otherwise you select the model and the broker confirms which one answered.
Q: I asked for "Opus 4.8" but it ran something else?
A: The Claude CLI opus alias runs whichever Opus the installed CLI maps it to — there's no opus 4.8 CLI alias. The broker still resolves it but attaches a note warning that the running version may differ. Confirm the running model if the exact version matters.
Q: Does the Claude extension get prompts automatically like Antigravity?
A: Closer than it used to. The bridge auto-opens the Claude inbox file and best-effort auto-submits it, and Claude can write a reply under claude-responses/. But there's no symmetric send/complete API, so it's not the structured round-trip Antigravity has. The Claude CLI route is fully headless.
Q: Is Gemini supported?
A: Through Antigravity's in-app Gemini, yes. A standalone gemini CLI is also honored (the requested model is passed with -m). It is optional and not bundled.
Q: Do I need Python, or can I just run the .exe?
A: Either works. The self-contained agent-switchboard.exe from Releases needs no Python — it installs everything (the bridge VSIX is embedded) and is itself the MCP server (agent-switchboard.exe serve). Or run from source with Python 3.10+. Both have a built-in uninstall.
Q: I asked Codex/Claude for a specific model — does it switch automatically?
A: On Antigravity (CDP) and the CLIs (--model/-m), yes. The broker cannot switch the Codex/Claude extension pickers, so instead it tells the receiving agent to state its model and STOP if it isn't the requested one, and the bridge notifies you to select it — so a lesser/default model never silently answers. A model named only in the prompt ("get Opus's opinion") is detected as a one-off and doesn't change your topic default.
Q: Mac / Linux? A: The broker is plain Python and cross-platform; the installer, bridge model-selection, and shortcut patching are Windows-first today. Contributions welcome.
PolyForm Noncommercial 1.0.0. Noncommercial use is allowed with the required copyright notice. Commercial use requires a separate written license from FutureisinPast / ChartTrades (https://chartrades.com/). See LICENSE.
⭐ If this saves your agent workflow, please star the repo so others can find it!
GitHub checked 16h ago - refresh overdue. Recently viewed repositories target hourly refresh.