Added
- Cross-agent
SessionStart & compact SubagentStart support across 6 agents: Claude Code, Codex CLI, Google Antigravity, Cursor, OpenCode, and Qwen Code (hook-config --agent agy|claude|codex|cursor|opencode|qwen plus --subagent).
- Compact subagent snapshot mode (
--compact): emits a ≤ 500 B 1-level tree snapshot for independent SubagentStart hooks on Claude Code, Cursor, and Qwen Code (timeout: 5000 ms), while intentionally keeping Codex CLI SessionStart-only to preserve parent→subagent prefix-cache sharing.
- Zero-dependency OpenCode ESM plugin:
agent-fast hook-config --agent opencode generates a ready-to-drop dual v1/v2 agent-fast-snapshot.mjs plugin with per-session/directory caching and fail-open timeout handling.
- Pure-Go
.git inspection & parallel feature-branch diffstat: parses .git directories, linked worktrees (wt:), monorepo subpath:, HEAD @sha, and base refs (origin/HEAD, packed-refs) without spawning git on default branches; runs rev-list + diff --shortstat in parallel on feature branches (vs <base>: +A/-B commits, K files (+X/-Y)).
- Zero-spawn
codegraph tri-state detection: reports ready, stale, none in worktree (main repo indexed), or none by comparing .codegraph/ / .codegraph-wsl/ DB mtime against HEAD's commit timestamp.
- Toolchain, docs, and multi-root discovery: falls back to
gitRoot for manifests (Cargo.toml workspaces, pnpm/bun/yarn/npm workspaces, go.work, mise.toml, justfile, Taskfile.yml, Makefile, .github/workflows/), emits a 1-line docs: summary, and appends also: lines for multi-root workspaces.
- Claude delta mode (
--agent claude): omits dirty-file/commit echoes and preloaded CLAUDE.md/AGENTS.md already included in Claude Code's native gitStatus.
- MCP
batch_search & apply_edits upgrades (0 B schema growth):
- Stat-first
git diff / git show compaction preserving per-file (+A/-D) summaries under the ≤ 8.8 KB inline cap.
- Expanded strict read-only
git allowlist (worktree list, stash list/show, ls-tree, merge-base, plus --no-ext-diff).
- Enriched user
PATH probing (sync.Once, preserving existing PATH precedence) for batch_search and apply_edits inline verify.
- SHA-256 verified installer (
install.sh): supports macOS (darwin) and Linux (linux) on arm64/amd64 with --version, --bin-dir, --dry-run, --base-url, atomic non-sudo installation, and fail-closed SHA-256 verification.
Changed
- Strict per-section snapshot budgets & 100% determinism: caps
header+git (≤ 520 B, or ≤ 320 B on Claude) and meta+docs (≤ 380 B) so the 2-level tree: always survives inside ≤ 1.5 KB with zero time.Now() or volatile relative ages.
- Startup latency: reduced
SessionStart snapshot latency to 13.2 ms ± 3.2 ms on clean repos and 18.2 ms ± 5.2 ms on linked feature-branch worktrees (Apple Silicon hyperfine --warmup 3, vs 117.7 ms Node.js baseline).
- Antigravity plugin (
install-plugin): added "enabled": true in hooks.json and updated rules/AGENTS.md with empirical tool-routing triggers tailored for agent-ready.
- Codebase modularity: refactored
cmd/agent-fast/ and internal/{budget,edit,mcp,search,snapshot} into cohesive files (≤ 450 lines/file) with byte-identical behavior.
Quick Install
curl -fsSL https://raw.githubusercontent.com/Dankosik/agent-fast/v0.2.0/install.sh | AGENT_FAST_VERSION=v0.2.0 bash