Added
- Zero-token shell environment hygiene (
--export-env): computes deterministic shell env additions (PATH via EnrichedPATH + repo .venv/bin/venv/bin, unset VIRTUAL_ENV, isolated-$HOME CARGO_HOME/RUSTUP_HOME fallbacks, and unset GIT_PAGER=cat, PAGER=cat, NO_COLOR=1) with zero prompt tokens and zero repo script execution — delivered idempotently via $CLAUDE_ENV_FILE (strictly POSIX-quoted with # agent-fast:env:start dedup marker) on Claude Code, sessionStart JSON "env" on Cursor, and ctx.shell.hook("create.before") (v2) / "shell.env" (v1) on OpenCode (hook-config --agent claude|cursor|opencode --export-env).
PostCompact & CwdChanged lifecycle hooks + enhanced Artifact Trail: RunHook automatically activates --post-compact with live git details on hook_event_name: "PostCompact"; --post-compact expands the individual dirty: file list threshold from 6 to 12 (up to 3 lines) and prioritizes conflicts → tracked edits (M/A/D/R) → untracked files (??); hook-config --agent claude --cwd-changed adds an optional CwdChanged hook that stays silent ({}) on intra-repo cd and emits a compact <= 500 B [Workspace Snapshot (cwd changed)] delta only on repo or worktree switches.
- Node & Go workspace package discovery (0 spawns): parses
pnpm-workspace.yaml (packages:) and package.json workspaces (array or { "packages": [...] }) into node: <pm> (workspace: ...), and parses go.work use directives into tools: go.work (...).
- Pure-Go uninitialized submodules, Git LFS &
status timeout guardrails: inspects .gitmodules (with path-traversal guards) to flag uninitialized submodules (N uninit submodules), detects .gitattributes filter=lfs (lfs), and surfaces explicit status timeout in the git: header when git status exceeds its deadline on slow filesystems.
doctor upgrades: reports post-compact byte size alongside full and compact, validates PostCompact/CwdChanged entries, and warns when Cursor subagentStart is configured with agent-fast.
Fixed
- Missing-
cwd stdin fallback & Cursor singular workspace_root: hook payloads that omit cwd (such as Claude Code clear/compact events) now fall back cleanly to $CLAUDE_PROJECT_DIR / $GEMINI_PROJECT_DIR / process CWD while explicitly protecting Antigravity from scanning its plugin directory; HookPayload now parses singular workspace_root / workspaceRoot and new_cwd / old_cwd.
- Cursor
subagentStart schema alignment: hook-config --agent cursor now emits sessionStart only (rejecting --subagent cleanly), and FormatHookOutputForEvent returns fail-safe {"permission":"allow"} if legacy Cursor subagentStart hooks invoke agent-fast.
- Host-native instruction file deduplication: hides natively loaded
AGENTS.md on Cursor, Qwen Code, and Gemini CLI (when GEMINI.md is absent), hides fallback CLAUDE.md on OpenCode (when AGENTS.md is absent), and omits QWEN.md from tree: on Qwen Code.
Quick Install
curl -fsSL https://raw.githubusercontent.com/Dankosik/agent-fast/v0.5.0/install.sh | AGENT_FAST_VERSION=v0.5.0 bash