taiku Blame
Git blame for AI-generated code
taiku Blame is git blame for code an agent wrote. When Claude Code, Codex or another agent edits a file in a taiku session, taiku keeps the request that started the work, the sentence the agent wrote just before the edit and the session it ran in, next to the change. Click a line in the Blame view or run taiku why src/app.ts:42 and you get all of it back, with one word for how sure taiku is. It's free.
The answers are stored as git notes on each commit, so they travel with the repository, and a teammate who fetches them reads the same account of a line that you do.
How it works
-
Run your agent in a taiku session
Start it in a taiku terminal the way you already do. taiku recognizes the agent from its own output and reads the session file it keeps as it edits, so there is nothing to set up per agent and nothing for the agent to call.
-
Commit as usual
taiku writes a note on each new commit, under
refs/notes/taiku, that matches the commit's changed lines to the edits that made them. Turn on Track diffs, or start withtaiku --track-repo-diffs, and shell commands that change files are matched too. -
Ask about a line
In the browser, open the file, switch the tile to Blame, click a gutter entry and expand Why line N exists. In a terminal, run
taiku whywith the file and line. Leave the line off to list every recorded change in the file, add--historyfor every commit that touched the line, or--opento read the whole conversation.taiku why --search "rate limit"finds changes by what was said about them.
What you see
$ taiku why src/server.js:20
ask Scaffold a small notes API in
Node: list notes and fetch one
by id over HTTP, stored as JSON
files. No framework.
why Routes are a plain table keyed
by method and path, so adding
an endpoint is one entry and
route() stays a lookup.
exact src/server.js:20 0a91c331d948
session claude 8d24b7e1…
(claude-sonnet-5)
call toolu_01Ab3CdE…
The request comes first, then the agent's sentence, then the confidence beside the file and commit, then the session with its model and the tool call. You can run the same command in the browser demo without installing anything, after cd ~/notes-api.
The word in front of the file is the part to trust. exact and partial mean the agent's transcript records the edit itself. turn and run mean the change was watched rather than read, so it is put down to an agent's turn or to a shell command. external means nothing in taiku touched the line, and unknown means the lookup couldn't run, so nothing is claimed about the line either way.
How it compares
- git blame
- Git's docs say it annotates each line with information from the revision that last modified it. You get the commit, the author and the date, and the reason is whatever the commit message says. git blame docs ↗
- Git AI
- Open source under Apache 2.0. Agents call
git-ai checkpointwhenever they write code, line-level attribution is stored in Git Notes, and prompts are saved outside of Git. Git AI docs ↗ - Cursor Blame
- Extends git blame with AI attribution inside Cursor. It is on Cursor's Enterprise plan, and the data is fetched from Cursor's servers when you view files and commits. Cursor Blame docs ↗
- Entire
- Open source under MIT. Each commit with agent work gets a checkpoint holding the prompts, transcript and files touched, kept as Git refs under
refs/entire/checkpoints/and pushed to your remote with your code. Entire docs ↗
taiku Blame reads the agent's own session file and the terminal it ran in, so the agent never has to report its edits, and every answer says how sure it is. The note on each commit carries the request and the agent's sentence, and the full transcript stays on the machine where the session ran.
Questions
Which agents does it work with?
Any agent you run in a taiku terminal. One that keeps a session file, like Claude Code or Codex, is answered edit by edit, as exact or partial. One that doesn't is put down to its turn on macOS and Linux, and with Track diffs on, any command that changes a file is covered as a run.
Does it show which model wrote the line?
When the agent's session records its model, yes. It sits next to the session id, as in claude 8d24b7e1… (claude-sonnet-5) above.
Does it put my prompts in the repository?
The request and the agent's sentence for each change go into the note on that commit, which is how a teammate gets the same answer. Text that trips taiku's secret check is stored as a hash instead, and the transcript is never in the note. When you're signed in and the repository has a remote, taiku also copies each note to your account so your other machines can find it, and TAIKU_PROVENANCE_CLOUD=0 keeps notes local.
How does my team see the same answers?
Push the notes. taiku sets up your remotes so a fetch brings refs/notes/taiku in, but it never pushes them for you, since a push setting would change what a plain git push sends. git push origin refs/notes/taiku:refs/notes/taiku shares them.
What about code written before taiku, or in another editor?
It comes back external, meaning nothing in taiku touched the line. taiku can only account for changes made in a session it was watching, and it says so instead of guessing.
Does it work on Windows?
Yes, with one gap. A turn answer depends on knowing which program holds a terminal, which Windows terminals don't report, so an agent with no session file gets no answer there. Agents that keep a session file, and shell commands with Track diffs on, are answered the same as on macOS and Linux.