agent-trace
agent-trace is a git-backed document store for agent workflows with two core guarantees:
- Persistent observability across sessions (cross-session trace continuity)
- Reliable recovery and easy resume after dropped processes or IDE sessions
What You Get
- Durable change history in
.agent-trace/repo/with actor attribution - Generated
AGENT-TRACE.mdindex for zero-cost agent discovery - Generated
context.mdfor current project state synthesis - Session-scoped agent logs in
logs/<agent>-<session_id>.md - Permission enforcement with violation tracking and rejected-content capture
Installation
Pre-release: Until v0.1.0 is published, build from source (below) is the supported install path.
cargo install agent-traceand GitHub Release downloads apply after the first release is published.
Install from crates.io (available after v0.1.0 is published):
Or download a prebuilt binary from GitHub Releases once v0.1.0 is published.
Substitute {version} with the release version (for example 0.1.0):
version=
target=x86_64-unknown-linux-gnu
Build from source:
This is the supported path until v0.1.0 is published.
See docs/INSTALL.md for Cargo, GitHub Release, checksum,
platform notes (including Linux arm64), and MCP setup details.
See docs/agent-plugin.md for the agent-native plugin
distribution plan.
Quick Start
For MCP-based agents:
When developing from source, prefix commands with ./target/debug/agent-trace.
Resume After Crash
When a session drops:
- MCP agents: call
get_resume_contextfirst (beforelist_documentsorread_file) - CLI users:
agent-trace resume showfor the running summary briefing - Reconnect agent identity:
agent-trace connect <name>(stale locks are replaced) - Review
running_summary.md— incrementally updated after each write - Read
plan.mdonly if the summary references new phases - If metadata is damaged, recover:
agent-trace repair - Continue writing via
agent-trace writeor MCPwrite_file
MCP reconnect workflow
On every new MCP session:
- Call
get_resume_context(do not calllist_documentsfirst) - Read
plan.mdonly ifget_resume_contextsays phases changed - Read source files only listed under "Resume Here" or "Open Items"
- Update
plan.mdand progress docs viawrite_fileafter each phase
Reliability Notes
- Store durability is provided by git commits and manifest persistence.
- Session lineage is tracked via
.agent-trace/locks/agent-lock.tomlheartbeat metadata. - Unauthorized writes to protected docs are reverted and logged as violations.
repairrebuilds manifest state from git when recovery is needed.
Contributing / validation
Before opening a PR, run:
See docs/VALIDATION-PLAN.md for the full checklist,
E2E suite flags, and optional live-agent tests.
Releasing
- Bump version in
Cargo.tomland add a dated section toCHANGELOG.md(or run./scripts/bump_version.sh X.Y.Z) - Tag
vX.Y.Zand push the tag - CI builds platform artifacts and creates a draft GitHub Release
- Review artifacts and release notes, then publish the release
- Run
cargo publishmanually for crates.io
See .github/RELEASE_TEMPLATE.md for the
maintainer checklist.
License
Licensed under the MIT License.