You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Direct --cli invocation mode for Swarm workers & non-MCP environments (src/cli-runner.ts, #31, thanks @wathing-wind)
Added node dist/mcp-server.mjs --cli <search|outline|slice|edit|check> so Antigravity Swarm workers (where MCP servers, user_rules, and SessionStart are not mounted) and shell environments can still batch searches, symbol outlines, atomic multi-hunk edits, and concurrent checks within the same ≤8.8 KB UTF-8 budget.
Hardened --cli exit codes (failing reliably on Checks: failures/not-run, Verify [FAIL|TIMEOUT|ERROR], and Error: lines), per-query search modifier scoping, --flag=value parsing, literal --help search, and --cli tracking in benchmark-core.ts (Swarm worker coverage + cli:N dispatch breakdown).
Prompt Cache miss attribution & sustained-collapse diagnostics (src/benchmark-core.ts, rules/AGENTS.md)
Added structured cacheMissAttribution to benchmark.mjs analyze / compare / --split-usage, distinguishing true prefix misses (activeSlowGap, idleOrWaitGap, planModeSwitch, errorRetry, asyncWakeupFast, modelSwitch, fastReplicaOrPrefixMiss) from expected compactionResets and contextDilutionTurns, plus >=3-turn sustained cache collapse tracking (sustainedCollapseRuns, sustainedCollapseTurns, maxConsecutiveMisses).
Added empirically grounded edit-loop cache hygiene guidance to rules/AGENTS.md Rule 4 (prefer <45s targeted checks inside edit-verify loops; keep <=10s commands synchronous via WaitMsBeforeAsync instead of early backgrounding).
Added --tool-loading eager|lazy in scripts/install.mjs (install / config) persisted in ~/.gemini/cache/agy-fast/config.json and preserved across auto-updates for hosts or setups that need lazy loading.
Multi-branch CI & automated GitHub Release workflow (.github/workflows/ci.yml, .github/workflows/release.yml, CONTRIBUTING.md)
Added cross-platform CI (verify (ubuntu-latest), verify (windows-latest), stress), dev + main branching guide, PR template, and automated v* tag release publishing verified against origin/main, package.json, plugin.json, dist/, and CHANGELOG.md.
Prevented curl ... | sh from inferring or executing a workspace-local decoy scripts/install.mjs in CWD, verifying plugin.json identity (name === "agy-fast") before local execution and handling root-level /install.sh safely.
MCP NDJSON 64 MiB frame size cap (#42, thanks @wathing-wind)
Enforced a 64 MiB frame cap on NDJSON stdio framing matching Content-Length mode, returning -32600, releasing large buffers, and discarding oversized lines with O(chunk) memory without corrupting subsequent frames.
Injected default GIT_TERMINAL_PROMPT=0 and GCM_INTERACTIVE=never (preserving caller overrides, including case-insensitive Windows keys) across runShellCommandAsync, batch_search git queries, SessionStart snapshots, and updater-core.ts remote git ls-remote/clone/fetch calls.
Eliminated batch_search file starvation under tight budgets and centered match windowing on long lines past column 240; improved apply_edits drifted-range hints and failure-first bestEffort reporting; fixed benchmark-core.ts out-of-order parallel tool-result pairing and spill/truncation/parallel-leak false positives.
Upgraded findClosestRegionSnippet with anchor-aligned high-entropy line scoring (including trailing anchors on >10-line hunks), preserved head+tail output on Verify [FAIL] by compacting long Applied: lists, water-filled multi-file validation errors, pre-validated verify.cwd before writing files, and surfaced Verify [ERROR] spawn failures consistently.
Stripped VT100 line-erase spinner sequences (\x1b[2K/\x1b[K) and preserved mid-suite failures when folding verbose passing test lines.
Node 20 & Windows CI determinism
Replaced multi-hop async init queuing in src/protocol/mcp.ts with a synchronous postInitOutgoingQueue, eliminated premature Node 20 timer .unref() exits in snapshot.ts and cli-runner.ts, and fixed Windows AppData tmpdir test matching.
Docs: Documented agy --dangerously-skip-permissions unattended CLI flag in README.md and README.zh-CN.md.