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