Skip to content

Releases

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 13:00

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

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 12:06

Security

  • Indirect prompt-injection sanitization for untrusted repo metadata: strips Unicode Tags (U+E0000–U+E007F), bidi controls (U+202A–U+202E, U+2066–U+2069, U+200E/F, U+061C), zero-width/variation selectors, C0/C1 control chars, ANSI CSI/OSC escapes, newlines, and </> delimiter brackets across all repo-sourced strings (branches, commit subjects, dirty paths, worktree names, manifest names, scripts/targets, tree entries), plus strict version-spec allowlisting for requires-python and Go/Rust versions.

Added

  • Pure-Go VCS operational guardrails & Jujutsu support (0 extra spawns): detects active Git operations (MERGING, REBASING N/M, AM N/M, CHERRY-PICKING, REVERTING, BISECTING), flags unresolved merge conflicts (N conflicts, prioritizing conflict entries first in dirty:), counts stashes (N stashes via <commonGitDir>/logs/refs/stash), and detects colocated (jj) or standalone (vcs: jj) Jujutsu (.jj/) repositories.
  • Post-compaction refresh mode (source: "compact" / --post-compact) & --no-tree: refreshes [Workspace Snapshot (after compaction)] with expanded git/dirty budget and a 1-level tree prioritizing live session state; --no-tree omits tree: completely for ultra-minimal snapshots.
  • Continuity, quality-gate, Taskfile & polyglot discovery: surfaces read-only pointers to session handoff/SDD artifacts (HANDOFF.md, claude-progress.txt, PROGRESS.md, .beads/, openspec/, .planning/, .specify/, .claude/plans/), parses Taskfile.yml/Taskfile.yaml tasks, detects commit gates (lefthook, pre-commit, husky), monorepo runners (turbo, nx), env/container layers (flake.nix, devbox, direnv, compose, devcontainer, Python .venv + pytest/ruff/mypy/pyright), and major additional ecosystems (JVM Maven/Gradle, C/C++ CMake/Meson, Bazel, Ruby, Elixir, PHP, Swift) with full tree:/dotdirs: deduplication.
  • Gemini CLI first-class support (--agent gemini) & SubagentStart --skip-agent-types: adds hook-config --agent gemini, projectDir/trigger payload parsing, GEMINI.md host-aware suppression, and optional case-insensitive agent_type skipping.
  • agent-fast doctor subcommand: read-only diagnostic command checking live snapshot latency, byte budgets, byte-for-byte determinism, and installed hook configurations across all 7 supported agents (with isolated-$HOME support, duplicate SessionStart double-firing checks, resume-matcher warnings, Codex SubagentStart cache-bust warnings, and binary executability checks).

Fixed

  • Qwen Code / Gemini CLI trigger: "resume" cache protection: HookPayload now checks both source and trigger to fail open on resume/fork, and hook-config --agent qwen sets "matcher": "startup|clear|compact" instead of wildcard "".
  • OpenCode compaction context survival: compaction (v2) and experimental.session.compacting (v1) now push a fresh --post-compact snapshot into output.context when provided by OpenCode, in addition to invalidating the per-session LRU cache.

Quick Install

curl -fsSL https://raw.githubusercontent.com/Dankosik/agent-fast/v0.4.0/install.sh | AGENT_FAST_VERSION=v0.4.0 bash

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 10:51

Changed

  • Cross-section tree: deduplication: omits root manifests and tool configs (go.mod, Cargo.toml, package.json, pnpm-workspace.yaml, pyproject.toml, Makefile, justfile, mise.toml, Taskfile.yml, go.work), single-purpose .github/ [workflows/] and .agents/ [skills/] directories, and doc directories (docs/, decisions/, plans/, specs/) from tree: whenever they were already emitted in meta/tools/docs (preserving doc directories in pure-documentation repos and keeping items truncated by tight budgets).
  • Lockfile and repo boilerplate filtering in tree:: filters machine-generated lockfiles (Cargo.lock, go.sum, package-lock.json, pnpm-lock.yaml, yarn.lock, bun.lock*, uv.lock, poetry.lock, pdm.lock, Pipfile.lock, flake.lock, Gemfile.lock, composer.lock) and low-signal root boilerplate (LICENSE*, CHANGELOG.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, .gitignore, .gitattributes, .editorconfig, .dockerignore, etc.) while keeping actionable files (.env.example, Dockerfile, install.sh).
  • Boilerplate merge-commit filtering in commits:: fetches up to 6 recent commits with parent counts and skips 2-parent auto-generated merge subjects (Merge pull request #..., Merge branch '...', Merge remote-tracking branch '...', Merge tag '...', Auto-merge ...) so commits: surfaces substantive changes while keeping the real HEAD @sha and commit timestamp (including codegraph freshness checks), 1-parent squash merges, and custom merge subjects.

Added

  • Richer Rust and Python metadata: parses single-crate Cargo.toml for crate name, edition, and rust-version (plus [workspace.package] edition/MSRV on workspaces), and parses pyproject.toml + lockfiles for project name, package manager (uv/poetry/pdm/pipenv/hatch), and requires-python (with fallback to rust: cargo crate / python: pyproject.toml).

Quick Install

curl -fsSL https://raw.githubusercontent.com/Dankosik/agent-fast/v0.3.1/install.sh | AGENT_FAST_VERSION=v0.3.1 bash

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 00:25

Fixed

  • OpenCode v2.2.7+ plugin discovery, empty system[], and cache stability: switched plugin filename to agent-fast-snapshot.js (OpenCode v2.2.7 only discovers .ts/.js, ignoring .mjs), always push { type: "text", text } when system is empty in v2 setup(ctx), replaced blocking execFileSync with async execFile, switched to a 512-entry LRU cache keyed strictly by sessionID (checked before ctx.session.get so transient RPC failures never bust prompt caches), and added compaction / experimental.session.compacting cache invalidation.
  • Non-dot-first tree: sorting & dotdir collapse: sorts regular code directories and files ahead of dotfiles at levels 1 and 2, collapses >2 top-level dotdirs into a compact trailing dotdirs: summary so multi-agent repos never push src//crates//cmd//internal/ into +N more dirs, expands ignoreDirs (.artifacts, .sqlx, .tmp, .mise, .husky, .worktrees, dist-mcp*, etc.), filters noisy/sensitive root files (.env, .env.local, *.tsbuildinfo, .eslintcache, ..*.bundle, ..*.patch), deduplicates README.md/AGENTS.md/CLAUDE.md from tree:, and follows symlinked directories with /.
  • Subpath repo-wide dirty reporting & header: removed -- . from git status so subdirectories never report a false (clean) when files are dirty elsewhere in the repo; renders [Workspace Snapshot (at session start)] <repo> (<subpath>) with an explicit point-in-time marker against mid-session staleness.
  • DetectAgent() under --agent auto & resume/fork cache guard: stopped misclassifying Codex/Qwen snake_case payloads as AgentClaude; parses source and fails open ({}) on resume / fork; skips 250 ms stdin polling for explicit --cwd + --agent plain|opencode; sets matcher: "startup|clear|compact" on Claude and Codex SessionStart hook configs.
  • codegraph freshness edge cases & readSmallFile on 0-byte files: reports codegraph: present (status unknown) instead of false ready when headCommitTime == 0, detects branch switches to older commits via .git/HEAD mtime, omits codegraph: none in non-git directories, and uses io.ReadAll(io.LimitReader(...)) so empty 0-byte manifests (mise.toml, justfile) are detected cleanly.

Added

  • Pure-Go HEAD @sha & major latency cuts: resolves HEAD short SHA in pure Go (loose refs + packed-refs); --agent claude skips git status (covered by native # gitStatus) and skips git log when no .codegraph/ DB exists (0 git spawns on default branches); listGitWorktrees runs concurrently, computes canonicalPath once, omits worktree scans on secondary multi-root entries, and switches to a < 0.5 ms summary path when >16 worktrees exist; --compact skips git diff --shortstat, and detached/unborn HEADs skip base diffstat.
  • High-signal wt: & dirty: formatting: caps wt: at 130 B (never starving dirty: or commits:), strips <repo>. prefixes, disambiguates duplicate worktree basenames (codex/<repo>, .claude/<repo>), and aggregates dirty: by top-level directory when >6 files are modified (dirty: 153 files (.agents/ 62, docs/ 25, ...)).
  • Deep toolchain, docs:, and polyglot discovery: parses 1-level Makefile include/-include/sinclude and multi-target rules (test test-package:), justfile recipes, and mise.toml [tasks]/[tools]; prioritizes canonical dev targets (dev, run, build, test, check, verify, lint, typecheck, fmt) for package.json/Makefile/justfile/mise.toml; raises manifest caps to 64–96 KB; detects decisions/, docs/adr/, and docs/decisions/ while omitting preloaded AGENTS.md on Codex/OpenCode; adds 1-level subdir language fallback for polyglot monorepos without root manifests.
  • Pure-Go meta-workspace & large container modes: non-git directories with >=2 child git repos/worktrees (<=50 dirs) emit a 0-spawn repos: + worktrees: branch summary (~3 ms); containers with >50 dirs emit a compact container: + summary: overview.

Changed

  • Concise output & accurate Codex docs: shortened codegraph: ready (...) to codegraph: ready, removed ; see gitStatus from Claude output, updated Codex docs/errors to reflect sibling-to-sibling ~40K prefix-cache sharing and Codex's [hooks.state] Trust Gate, and raised default GitTimeout to 900 ms (diffTimeout to 400–450 ms).

Quick Install

curl -fsSL https://raw.githubusercontent.com/Dankosik/agent-fast/v0.3.0/install.sh | AGENT_FAST_VERSION=v0.3.0 bash

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 22:05

Fixed

  • Isolated-$HOME profile tool discovery (EnrichedPATH & EnrichedEnviron): probe both os.UserHomeDir() ($HOME) and the real OS account home (os/user.Current().HomeDir) in priority order, plus $CARGO_HOME/bin, multi-entry $GOPATH/bin, and <home>/go/bin, so apply_edits inline verify and batch_search find user toolchains (e.g. cargo, mise shims, ~/.local/bin, go/bin) when agents run in isolated-$HOME profiles (such as Antigravity profiles).
  • Isolated-$HOME Cargo/Rustup fallback: when $HOME differs from the OS account home and lacks its own Cargo/Rustup state, EnrichedEnviron() injects fallback CARGO_HOME and RUSTUP_HOME pointing to the OS account's existing .cargo / .rustup directories (never overriding explicit non-empty env vars), preventing rustup toolchain-lookup failures (exit=1) during apply_edits verification.
  • Real OS home directory guard (IsUnsafeWorkspaceDir): treat os/user.Current().HomeDir (resolved via EvalSymlinks) as unsafe alongside $HOME, preventing accidental recursive scans of the real OS home directory under isolated-$HOME profiles.

Changed

  • Version & docs: bumped release references, installer examples, and CI dry-run verification to v0.2.1.

Quick Install

curl -fsSL https://raw.githubusercontent.com/Dankosik/agent-fast/v0.2.1/install.sh | AGENT_FAST_VERSION=v0.2.1 bash

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 21:26

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