aGiTrack

<aGiTrack> every agent turn captured with its story, and humans learn

Use your coding agent exactly as before. Every finished turn becomes a git commit: prompts, code changes, cost. It even teaches you back from your own sessions. Nothing tracked externally: everything is git history in your own repo.

f3a9c2e <aGiTrack> show, don't tell
agitrack · claude · session-1 → main
$ agitrack
┌ claude · session-1 ──────────────────────────────────┐
> add a --version flag to the cli
  · editing agitrack/cli.py …
  · added --version using importlib.metadata
└──────────────────────────────────────────────────────┘
✓ Created <aGiTrack> commit 4b2f31a.            aGiTrack · Ctrl-G
$ git log --oneline -2
4b2f31a <aGiTrack> add a --version flag to the cli
a91c07e Initial commit
$ git show 4b2f31a --stat
<aGiTrack> add a --version flag to the cli
 agitrack/cli.py | 6 ++++++  trace + model + token cost in the body ↓
9d04e17 why this exists

Agent code without provenance is unreviewable.

An agent edits twelve files while you get coffee; a week later nobody knows which prompt produced which change. aGiTrack makes each agent turn a commit, so review, blame, bisect, and revert just work.

git show: an aGiTrack commit message
<aGiTrack> add a --version flag to the cli

# Interaction Trace

## User
add a --version flag to the cli

## Agent
Added --version using the package metadata; prints and exits.

# aGiTrack Metadata
commit_type: agent
backend: claude
model: claude-opus-4-8
session_name: session-1
context_tokens: 18204
tokens_since_last_commit_input: 411
tokens_since_last_commit_output: 2390
b7e1d09 <aGiTrack> see the whole repo at a glance

A live dashboard of what the agents did.

agitrack -d opens a live dashboard on localhost. Every number comes from commit metadata alone: identical on every clone, no database, no server. Explore the demo: this dashboard, on aGiTrack's own repo.

agitrack -d · localhost
The aGiTrack dashboard: coverage, tracked AI vs non-tracked lines, token totals, and per-backend / model / committer breakdowns, in a CRT terminal theme. Click for the interactive demo.
4c0ba91 <aGiTrack> surface how the agents are being driven

Not how much it wrote. How well you drove it.

It spots the habits that quietly cost time and tokens, correction loops, rework hotspots, ballooning context, and flags each one improving or getting worse, backed by the numbers.

agitrack -d · agent efficiency
The agent efficiency panel with the Learn from these traces call-to-action, a MEDIUM Correction loops card trending worse than the earlier half, and a green Fragmented sessions: improved card, each backed by numbers and a suggested change.
7e3d052 <aGiTrack> coach the human from their own traces

It teaches you back.

Tell the learn page how much time you have. Your own agent reads your traces, spots your gaps, and writes short lessons on driving agents and on your own codebase, each with a quick check and an exercise it reviews. See real lessons the coach wrote for this repo's maintainer.

agitrack -d · learn
The learn page: a check-in card asking how much time you have and how you feel, the coach's assessment of the learner, and four suggested lessons, each with an evidence-based reason and an estimated size. Click for the interactive demo.
a1f8b28 <aGiTrack> reconstruct history from past sessions

Didn't use it from day one? See the history anyway.

Built your project with an agent before aGiTrack? agitrack --backtrace reconstructs those sessions from the transcripts already on your machine, into the same dashboard.

agitrack --backtrace
serves the dashboard from local transcripts, even outside a git repo
agitrack --backtrace commit
bakes the reconstruction into real commits on a new branch
b4ck3nd supported backends

Bring your own coding agent.

aGiTrack wraps the coding agent you already use. Supported today:

  • Claude Code agitrack --backend claude
  • OpenCode agitrack --backend opencode

Want a different backend? Request one.

a11m0de pick your workflow

Four ways to run it, your call.

TUI or background, auto or manual commits: four modes, the same per-turn trace, switch freely.

Interactive · Auto default

The agent's real TUI; every finished turn is committed from an isolated worktree. Or use with --no-worktree. Just work, get a clean traced history.

Interactive · Manual

Feels like plain git: you commit when ready, and pending turns fold in with the full AI trace.

Background · Auto

Drive the agent from any UI, desktop app, IDE, or chat window; aGiTrack tracks it headlessly and commits each turn.

Background · Manual

Headless tracking, commits on your terms. It can even start itself on git commit.

e8d2fa0 install & run

Three commands to the first traced commit.

pip install agitrack
Python ≥ 3.10 · or pipx install agitrack
cd your-repo && agitrack
launches your coding agent's TUI under aGiTrack's watch
Ctrl-G
opens the aGiTrack menu

Prompt as usual. When the turn settles, the commit is already there. Also a VS Code extension, one click, same experience.

HEAD <aGiTrack> your move

Put your agents on the record.

Apache-2.0. Issues, ideas, and first contributions welcome.