-
+
+
+
+
-**Autter is an open source git extension that records which lines of your code were written by AI.** Once installed, every AI-authored line is tied to the **agent, model, and prompt** that produced it — keeping the reasoning, requirements, and design decisions attached to your code instead of lost in a chat window.
+
autter CLI
-There is nothing new to learn. **Write prompts and commit the way you already do.**
+**git blame for AI.** Know which agent, model and prompt wrote every line.
-`git commit`
+[](https://github.com/Autter-dev/autter-cli/discussions)
+[](https://github.com/Autter-dev/autter-cli/releases)
+[](https://www.npmjs.com/package/@autter/cli)
+[](LICENSE)
+
+
+
+```bash
+curl -fsSL https://api.autter.dev/install.sh | bash
+```
+
+Windows, npm and other options are under [Install](#install). No account needed: the CLI works fully offline, and connects to [Autter](https://autter.dev) when you want team features.
+
+
+
+
+
+
+
+Thanks for stopping by. We built autter because the reasoning behind AI-written code kept getting lost in chat windows, and we wanted it to live in the repository, next to the code it explains. If that idea clicks for you, come see what we're building around it at [autter.dev](https://autter.dev). And if something breaks, confuses you, or you just want to say hi, find us in [Discussions](https://github.com/Autter-dev/autter-cli/discussions).
+
+Captain Patch and the Autter team
+
+
+
+The **autter CLI** is an open source git extension that records which lines of your code were written by AI. Each AI line is tied to the **agent, model and prompt** that produced it, in Git Notes that travel with the repository, so the reasoning behind the code stays with the code instead of in a chat window. You keep prompting and committing the way you already do.
+
+- `autter blame ` is `git blame` with AI attribution on every line.
+- `autter blame --why :` shows the agent, model, commit and prompt behind one line.
+- `autter show-prompt ` prints the full prompt record.
+- `autter stats` reports the AI share of a commit or range.
+
+On commit, Autter prints the split for that commit:
```
[hooks-doctor 0afe44b2] wsl compat check
@@ -17,20 +52,38 @@ you ██░░░░░░░░░░░░░░░░░░░░░░░
6% 94%
```
-`autter blame /src/log_fmt/authorship_log.rs`
+## Two ways to use it
+
+The CLI works on its own, offline. Connecting it to Autter is optional, and you can switch either way at any time with `autter onboard`.
+
+| | **Offline (local-only)** | **With Autter** |
+|---|---|---|
+| Set up | `autter onboard --local` | `autter onboard`, then pick "connect" (or `autter login`) |
+| Account | None | Your Autter organization |
+| Where data lives | Git Notes in your repository (`refs/notes/ai`) and on this machine | Notes and prompt transcripts in your organization's own database |
+| What you get | `blame`, `blame --why`, `show-prompt`, `stats`, `diff`, `log`, `wrapped`, `verify` | Everything offline gives you, plus cross-repository dashboards, prompt search, team and contributor analytics, and [More commands](#more-commands) such as `ask`, `memory`, `context` and `lineage` |
+| Network | None. Notes travel with `git push` and `git fetch` to your own remote | Authenticated Autter API |
+
+### Offline
+
+```bash
+autter onboard --local
+# prompt, commit as usual, then:
+autter blame src/main.rs
+autter stats HEAD~10..HEAD
+```
+
+Attribution, blame and stats run entirely on your machine; no code, prompts or usage data leave it. Prompt transcripts stay on the machine that made the commit.
+
+### With Autter
```bash
-cb832b7 (Sagnik Ghosh 2025-12-13 133) pub fn execute_diff(
-cb832b7 (Sagnik Ghosh 2025-12-13 134) repo: &Repository,
-cb832b7 (Sagnik Ghosh 2025-12-13 135) spec: DiffSpec,
-fe2c4c8 (Sagnik Ghosh 2025-12-02 136) format: DiffFormat,
-fe2c4c8 (Sagnik Ghosh 2025-12-02 137) ) -> Result<…> {
-fe2c4c8 (claude 2025-12-02 138) // Resolve commits
-fe2c4c8 (claude 2025-12-02 139) let (from, to) = match spec {
-fe2c4c8 (claude 2025-12-02 140) DiffSpec::TwoCommit(s, e) => {
-fe2c4c8 (claude 2025-12-02 141) let from = resolve(repo, &s)?;
+autter onboard # pick "connect" and approve the device in your browser
+autter whoami
```
+Attribution keeps working the same way; Autter adds the organization-wide view on top. To go back to offline: `autter logout && autter onboard --local --force`. Details are in [Connect to the Autter platform](#connect-to-the-autter-platform-optional).
+
## Install
**Mac, Linux, Windows (WSL)**
@@ -66,84 +119,11 @@ The installer is the only setup step. There are **no per-repo hooks to wire up a
Installation lets you choose **local-only** mode or **connect to the Autter platform**, and the choice is reversible at any time with `autter onboard`. Local-only attribution, blame, and stats run entirely on your machine — no code, prompts, or usage data ever leave it.
-On connected machines, repository prompt-sharing rules also apply to streamed session content. For example, `autter config --add exclude_prompts_in_repositories "https://github.com/acme/private-*"` keeps matching repositories' session content out of the upload queue. When repository restrictions are configured, streams without enough repository context to apply those rules are not uploaded.
-
-After upgrading, session and trace events queued by older versions are held once for consent, since those rows do not record whether repository sharing was permitted when captured. Inspect them with `autter sync status`; use `autter sync import --yes` only if you intend to upload that history, or `autter sync purge --force` to discard the upload backlog.
-
For verification steps, privacy controls, everyday commands, and troubleshooting, read the **[full installation and setup guide](INSTALL.md)**.
-## Connect to the Autter platform (optional)
-
-You never need an account to use Autter. Connecting simply links a machine to your Autter organization so attribution and prompt history can drive cross-repository dashboards, prompt search, team and contributor analytics, and audit history.
-
-Start with the guided browser flow:
-
-```bash
-autter onboard
-```
-
-Pick "connect" and authorize the device in your browser. To sign in again later without re-running onboarding:
-
-```bash
-autter login
-```
-
-That opens a browser, shows a one-time code, and waits until you approve the device. If the browser flow is unavailable, mint a **Personal Access Token (PAT)** under **Org Settings → Access Tokens** and register it directly:
-
-```bash
-autter login --token autter_pat_xxxxxxxx
-
-autter whoami
-```
-
-Once a machine is connected:
-
-- **Authorship notes** (the AI-vs-human breakdown per commit) and **prompt transcripts** are written on commit to **your organization's own database** through the authenticated Autter API. The CLI never receives or stores a database connection URL.
-- A token is bound to your account. If you belong to more than one organization, each push is routed to whichever org owns the repository (resolved from its git remote), with your default org as the fallback.
-- Tokens can be managed or revoked, and CLI activity (token created, sign-in, data pushed) reviewed, under **Settings → Access Tokens** in the dashboard.
-
-Return to local-only mode whenever you like:
-
-```bash
-autter logout # clear stored credentials
-autter onboard --local --force
-```
-
-### Configuration
+## Works with
-`autter` reads `~/.autter/config.json`. The defaults target the hosted platform; override them per machine for self-hosting or CI:
-
-| Field | Default | Purpose |
-|-------|---------|---------|
-| `api_base_url` | `https://api.autter.dev` | Auth + token exchange |
-| `notes_backend.kind` | `git_notes` (local) / `http` (connected) | Where authorship notes go |
-| `notes_backend.backend_url` | `https://cli.autter.dev` | API endpoint used for authenticated notes, prompt, metrics, and attribution sync |
-| `prompt_storage` | `local` / `default` (connected) | `default` uploads prompts, `local` keeps them on-device |
-| `telemetry_oss` | `on` | `off` disables all anonymous usage analytics and error reporting |
-
-Environment overrides: `AUTTER_API_BASE_URL`, `AUTTER_WEB_URL`, `AUTTER_NOTES_BACKEND_KIND`, `AUTTER_NOTES_BACKEND_URL`, `AUTTER_API_KEY` (for CI).
-
-### Telemetry
-
-Autter reports **anonymous** usage analytics and error data so the tool can improve. Telemetry is **off until you opt in** during `autter onboard` (or with `autter telemetry on`), and is built to be safe and fully auditable:
-
-- **Never any personal data** — no code, prompts, file paths, repo names, usernames, or IP addresses.
-- **Only coarse, anonymous signals** — a random install ID, device info (OS, CPU architecture, core count), the Autter version, and error/exception messages.
-- **A local mirror of everything sent** lives at `~/.autter/internal/telemetry.log` (one JSON object per event) so you can see exactly what left the machine.
-
-Inspect or change it anytime:
-
-```bash
-autter telemetry status # is it on/off + where the audit log lives
-autter telemetry log # show everything that has been sent (last 50)
-autter telemetry log --all # show the full audit log
-autter telemetry off # disable telemetry
-autter telemetry on # re-enable telemetry
-```
-
-You can also disable it by setting `"telemetry_oss": "off"` in `~/.autter/config.json`, or re-run the prompt with `autter onboard --force` (non-interactive installs accept `--telemetry` / `--no-telemetry`).
-
-**The [Autter standard](https://github.com/autter-dev/autter-cli/blob/main/specs/autter_standard_v3.0.0.md) is supported by:**
+Agents that support the [Autter standard](https://github.com/autter-dev/autter-cli/blob/main/specs/autter_standard_v3.0.0.md):


@@ -161,28 +141,58 @@ You can also disable it by setting `"telemetry_oss": "off"` in `~/.autter/config

[](https://autter.dev/docs/guides/add-your-agent)
-## Why Autter
+## AI Blame
-- 🪄 **Zero workflow change** — prompt and commit exactly as you do today; attribution metadata is attached to every commit for you.
-- ⚡ **No overhead** — Autter avoids Git hooks (slow and painful to set up per repo) and never wraps the git binary, so your git commands run at full speed.
-- 💻 **Local-first** — works offline and needs no login.
-- 🔒 **Safe prompt storage** — each AI line traces back to the prompt that produced it. Sessions are scanned, redacted, and stored outside git, keeping repos lean, enabling access control, and stopping PII or secrets from leaking.
-- 🌐 **Git-native and open** — Autter authored the [open standard](https://github.com/autter-dev/autter-cli/blob/main/specs/autter_standard_v3.0.0.md) for tracking AI-generated code in Git Notes.
+`autter blame` is a drop-in replacement for `git blame` that adds AI attribution to every line. It accepts [all standard `git blame` flags](https://git-scm.com/docs/git-blame).
-Want a closer look?
+```bash
+autter blame --date short ratelimit.py
+```
-
+```
+human 9de4cdcd (Maya Chen 2026-11-03 7) self.tokens = burst
+human 9de4cdcd (Maya Chen 2026-11-03 8) self.last = time.monotonic()
+AI 56f25769 (claude 2026-11-10 9)
+AI 56f25769 (claude 2026-11-10 10) def allow(self, cost=1):
+AI 56f25769 (claude 2026-11-10 11) now = time.monotonic()
+AI 56f25769 (claude 2026-11-10 12) elapsed = now - self.last
+...
+AI 94964f12 (cursor 2026-11-18 21) def wait_time(self, cost=1):
+AI 94964f12 (cursor 2026-11-18 22) need = cost - self.tokens
-### Documentation
+Prompts behind the AI lines:
+ s_0e786784 claude claude-sonnet-4-5 lines 9-19
+ s_ce3f86d1 cursor gpt-5-codex lines 20-23
+Details: autter show-prompt s_0e786784 | autter blame --why ratelimit.py:9
+```
-- [CI Actions](https://autter.dev/docs/cli/command-reference#ci) — preserve attribution through Rebase and Merge and Squash and Merge.
-- [How Autter Works](https://autter.dev/docs/cli/how-autter-works)
-- [Stats command](https://autter.dev/docs/cli/commit-stats) — aggregate % AI stats across commits.
-- [Scripting and CI](docs/scripting.md) — `--json` output, exit codes, `--strict`, and a GitHub Actions example.
-- [AI Blame](https://autter.dev/docs/cli/ai-blame)
-- [Config](https://autter.dev/docs/cli/configuration)
-- [Add support for an agent in Autter](https://autter.dev/docs/guides/add-your-agent)
-- Install Autter in background agents (Claude Code on the web, Codex Cloud, Cursor background agents, Devin): run the [install script](https://autter.dev/docs/cli/install) in the agent environment's setup step. There are no agent-specific guides yet.
+The first column marks each line: `AI` for lines an agent wrote, `human` for lines typed in an editor with the Autter extension, and `untracked` for changes made outside both.
+
+### From a line to the prompt that wrote it
+
+1. **`autter blame `** shows who wrote each line. On a terminal it ends with a legend of the prompts behind the AI lines: a short reference (`s_3f9a2c1d`), the agent, the model and the lines. `--show-prompt` puts the reference on every AI line, and prints the legend even when piped.
+2. **`autter blame --why :`** explains one line: agent, model, the prompt reference, the agent's own session ID, the commit, and the prompt transcript, or why there is none.
+3. **`autter show-prompt `** prints the full prompt record as JSON: agent, model, session, line counts, the commit whose note holds it, and the transcript. It takes the short reference, a full session ID (`s_` + 14 hex), an older 16-hex prompt hash, any unique prefix of 4+ hex characters, or the agent's own session ID. `autter show-prompt --help` lists where each ID appears.
+4. **`git show `** is the change itself.
+
+`autter lineage :` is the same as `autter blame --why :`. From a production error instead of a line, `autter lineage ` walks a Runtime issue back to its release, commit, PR and owner, and says which failing frames an AI agent wrote (see [System investigations](docs/system-investigations.md)).
+
+Transcripts are read from this machine first, then from the Autter platform when you are connected and signed in. When one can't be shown, `--why` and `show-prompt` (in `transcript.reason`) say why: none was recorded, it stayed on the machine that made the commit (local mode), or you need to sign in. Notes made on other machines arrive with `autter fetch-notes`. The web app has no page per prompt or session yet, so there is no link to one.
+
+
+
+Community plugins surface this attribution directly in popular IDEs, color-coded by agent session. Hover a line to read the underlying prompt or its summary.
+
+**Supported Editors**
+
+- [VS Code](https://marketplace.visualstudio.com/items?itemName=autter.autter-vscode)
+- [Cursor](https://marketplace.visualstudio.com/items?itemName=autter.autter-vscode)
+- [Windsurf](https://marketplace.visualstudio.com/items?itemName=autter.autter-vscode)
+- [Antigravity](https://marketplace.visualstudio.com/items?itemName=autter.autter-vscode)
+- [Emacs magit](https://github.com/jwiegley/magit-ai) (community, via magit-ai)
+- *Added support for another editor? [Open a PR](https://github.com/autter-dev/autter-cli/pulls)*
+
+
## Attribution Stats
@@ -214,8 +224,6 @@ autter stats "$BASE..$HEAD" --json --strict | jq '.percent.ai'
In CI (`CI=true`) or when output is not a terminal, autter prints no color, prompts or spinners. `autter verify origin/main..HEAD --strict` checks that each commit's authorship note was written for that commit and has not been changed since (an integrity check); stats and blame count the lines of a note that fails as unknown. See [Scripting and CI](docs/scripting.md) for the JSON Schema, error codes and a GitHub Actions workflow that fails a pull request when nothing was captured or the AI share is too high.
-For a year at a glance, `autter wrapped` draws a screenshot-ready card of your AI-assisted coding in the repository: AI share by month, top agent and model, most-prompted file, longest prompt, streak and busiest weekday. `--json` prints the same numbers, and `--share` publishes the card as a page with a share image. Prompt text never leaves the machine unless you pass `--include-prompt-text`.
-
Example JSON output
@@ -243,51 +251,118 @@ For a year at a glance, `autter wrapped` draws a screenshot-ready card of your A
-## AI Blame
+### Year in review
-`autter blame` is a drop-in replacement for `git blame` that adds AI attribution to every line. It accepts [all standard `git blame` flags](https://git-scm.com/docs/git-blame).
+For a year at a glance, `autter wrapped` draws a screenshot-ready card of your AI-assisted coding in the repository: AI share by month, top agent and model, most-prompted file, longest prompt, streak and busiest weekday. `--json` prints the same numbers, and `--share` publishes the card as a page with a share image. Prompt text never leaves the machine unless you pass `--include-prompt-text`.
+
+## Why Autter
+
+- 🪄 **Zero workflow change** — prompt and commit exactly as you do today; attribution metadata is attached to every commit for you.
+- ⚡ **No overhead** — Autter avoids Git hooks (slow and painful to set up per repo) and never wraps the git binary, so your git commands run at full speed.
+- 💻 **Local-first** — works offline and needs no login.
+- 🔒 **Safe prompt storage** — each AI line traces back to the prompt that produced it. Sessions are scanned, redacted, and stored outside git, keeping repos lean, enabling access control, and stopping PII or secrets from leaking.
+- 🌐 **Git-native and open** — Autter authored the [open standard](https://github.com/autter-dev/autter-cli/blob/main/specs/autter_standard_v3.0.0.md) for tracking AI-generated code in Git Notes.
+
+Want a closer look?
+
+
+
+## Connect to the Autter platform (optional)
+
+You never need an account to use Autter. Connecting simply links a machine to your Autter organization so attribution and prompt history can drive cross-repository dashboards, prompt search, team and contributor analytics, and audit history.
+
+Start with the guided browser flow:
```bash
-autter blame /src/log_fmt/authorship_log.rs
+autter onboard
```
+Pick "connect" and authorize the device in your browser. To sign in again later without re-running onboarding:
+
```bash
-cb832b7 (Sagnik Ghosh 2025-12-13 08:16:29 -0500 136) format: DiffFormat,
-cb832b7 (Sagnik Ghosh 2025-12-13 08:16:29 -0500 137) ) -> Result {
-fe2c4c8 (claude 2025-12-02 19:25:13 -0500 138) // Resolve commits to get from/to SHAs
-fe2c4c8 (claude 2025-12-02 19:25:13 -0500 139) let (from_commit, to_commit) = match spec {
-fe2c4c8 (claude 2025-12-02 19:25:13 -0500 140) DiffSpec::TwoCommit(start, end) => {
+autter login
+```
-Prompts behind the AI lines:
- s_3f9a2c1d claude claude-opus-4-5 lines 138-140
-Details: autter show-prompt s_3f9a2c1d | autter blame --why src/log_fmt/authorship_log.rs:138
+That opens a browser, shows a one-time code, and waits until you approve the device. If the browser flow is unavailable, mint a **Personal Access Token (PAT)** under **Org Settings → Access Tokens** and register it directly:
+
+```bash
+autter login --token autter_pat_xxxxxxxx
+
+autter whoami
```
-### From a line to the prompt that wrote it
+Once a machine is connected:
-1. **`autter blame `** shows who wrote each line. On a terminal it ends with a legend of the prompts behind the AI lines: a short reference (`s_3f9a2c1d`), the agent, the model and the lines. `--show-prompt` puts the reference on every AI line, and prints the legend even when piped.
-2. **`autter blame --why :`** explains one line: agent, model, the prompt reference, the agent's own session ID, the commit, and the prompt transcript, or why there is none.
-3. **`autter show-prompt `** prints the full prompt record as JSON: agent, model, session, line counts, the commit whose note holds it, and the transcript. It takes the short reference, a full session ID (`s_` + 14 hex), an older 16-hex prompt hash, any unique prefix of 4+ hex characters, or the agent's own session ID. `autter show-prompt --help` lists where each ID appears.
-4. **`git show `** is the change itself.
+- **Authorship notes** (the AI-vs-human breakdown per commit) and **prompt transcripts** are written on commit to **your organization's own database** through the authenticated Autter API. The CLI never receives or stores a database connection URL.
+- A token is bound to your account. If you belong to more than one organization, each push is routed to whichever org owns the repository (resolved from its git remote), with your default org as the fallback.
+- Tokens can be managed or revoked, and CLI activity (token created, sign-in, data pushed) reviewed, under **Settings → Access Tokens** in the dashboard.
-`autter lineage :` is the same as `autter blame --why :`. From a production error instead of a line, `autter lineage ` walks a Runtime issue back to its release, commit, PR and owner, and says which failing frames an AI agent wrote (see [System investigations](docs/system-investigations.md)).
+Return to local-only mode whenever you like:
-Transcripts are read from this machine first, then from the Autter platform when you are connected and signed in. When one can't be shown, `--why` and `show-prompt` (in `transcript.reason`) say why: none was recorded, it stayed on the machine that made the commit (local mode), or you need to sign in. Notes made on other machines arrive with `autter fetch-notes`. The web app has no page per prompt or session yet, so there is no link to one.
+```bash
+autter logout # clear stored credentials
+autter onboard --local --force
+```
-
+On connected machines, repository prompt-sharing rules also apply to streamed session content. For example, `autter config --add exclude_prompts_in_repositories "https://github.com/acme/private-*"` keeps matching repositories' session content out of the upload queue. When repository restrictions are configured, streams without enough repository context to apply those rules are not uploaded.
-Community plugins surface this attribution directly in popular IDEs, color-coded by agent session. Hover a line to read the underlying prompt or its summary.
+After upgrading, session and trace events queued by older versions are held once for consent, since those rows do not record whether repository sharing was permitted when captured. Inspect them with `autter sync status`; use `autter sync import --yes` only if you intend to upload that history, or `autter sync purge --force` to discard the upload backlog.
-**Supported Editors**
+### Configuration
-- [VS Code](https://marketplace.visualstudio.com/items?itemName=autter.autter-vscode)
-- [Cursor](https://marketplace.visualstudio.com/items?itemName=autter.autter-vscode)
-- [Windsurf](https://marketplace.visualstudio.com/items?itemName=autter.autter-vscode)
-- [Antigravity](https://marketplace.visualstudio.com/items?itemName=autter.autter-vscode)
-- [Emacs magit](https://github.com/jwiegley/maautter)
-- *Added support for another editor? [Open a PR](https://github.com/autter-dev/autter-cli/pulls)*
+`autter` reads `~/.autter/config.json`. The defaults target the hosted platform; override them per machine for self-hosting or CI:
-
+| Field | Default | Purpose |
+|-------|---------|---------|
+| `api_base_url` | `https://api.autter.dev` | Auth + token exchange |
+| `notes_backend.kind` | `git_notes` (local) / `http` (connected) | Where authorship notes go |
+| `notes_backend.backend_url` | `https://cli.autter.dev` | API endpoint used for authenticated notes, prompt, metrics, and attribution sync |
+| `prompt_storage` | `local` / `default` (connected) | `default` uploads prompts, `local` keeps them on-device |
+| `telemetry_oss` | `on` | `off` disables all anonymous usage analytics and error reporting |
+
+Environment overrides: `AUTTER_API_BASE_URL`, `AUTTER_WEB_URL`, `AUTTER_NOTES_BACKEND_KIND`, `AUTTER_NOTES_BACKEND_URL`, `AUTTER_API_KEY` (for CI).
+
+### Telemetry
+
+Autter reports **anonymous** usage analytics and error data so the tool can improve. Telemetry is **off until you opt in** during `autter onboard` (or with `autter telemetry on`), and is built to be safe and fully auditable:
+
+- **Never any personal data** — no code, prompts, file paths, repo names, usernames, or IP addresses.
+- **Only coarse, anonymous signals** — a random install ID, device info (OS, CPU architecture, core count), the Autter version, and error/exception messages.
+- **A local mirror of everything sent** lives at `~/.autter/internal/telemetry.log` (one JSON object per event) so you can see exactly what left the machine.
+
+Inspect or change it anytime:
+
+```bash
+autter telemetry status # is it on/off + where the audit log lives
+autter telemetry log # show everything that has been sent (last 50)
+autter telemetry log --all # show the full audit log
+autter telemetry off # disable telemetry
+autter telemetry on # re-enable telemetry
+```
+
+You can also disable it by setting `"telemetry_oss": "off"` in `~/.autter/config.json`, or re-run the prompt with `autter onboard --force` (non-interactive installs accept `--telemetry` / `--no-telemetry`).
+
+## More commands
+
+These commands use your Autter organization's data, so most need a connected machine.
+
+### System investigations
+
+Use `autter ask` for evidence-backed system questions ("why did this happen and what is the impact"), `autter lineage ` to go from a Runtime issue to the release, commit, PR, owner and AI authorship behind it, `autter logs` for structured Runtime log queries, and `autter threads` to search and resume the same private debugging history as Dashboard Ask. See [usage and examples](docs/system-investigations.md).
+
+### Repository memory
+
+Use `autter memory search ""` to rank what Autter knows about the repository you're in (its shared memory pages, learnings, production lessons, team rules, past findings, wiki and code) by meaning, `autter memory for [...]` to read the memory's area pages for the files you're editing (with what worked and what didn't there), and `autter memory show`, `areas` and `ledger` to browse it. Add `--json` for coding agents. Nothing is sent in local mode or for repositories excluded from sharing.
+
+For coding agents, `autter context ""` is the one call to start with: the memory facts (with `rmf_…` ids to cite), wiki pages and code structure that matter for the task, ranked and cut to a token budget, as Markdown. It is the CLI form of the `get_context` MCP tool, and the `repo-memory` skill tells agents to use it when the Autter MCP server isn't connected. `autter memory skills install` writes the repository's memory skill into the checkout (`.agents/skills/autter-repo-memory/SKILL.md` and a Cursor rule) so teammates' agents get it from git.
+
+### Generated tests
+
+When a review's generated tests catch a bug, the failing test is not committed to the PR. On the PR's branch, `autter tests run` writes the failing tests Autter kept into your checkout and runs them with their framework's command (it asks first: the tests are model-written and run with your environment). `autter tests list` shows what Autter wrote and why each failed, and `autter tests clean` removes the files again. A test that used Autter's temporary database runs only with `--database-url` pointing at a scratch database.
+
+### Connect your agents to Autter's MCP server
+
+`autter mcp connect` adds Autter's MCP server to every installed agent's user-level config (Claude Code, Codex, Cursor, VS Code, Gemini CLI, OpenCode). Only the URL is written; each agent signs you in with your Autter account the first time it uses it. `--dry-run` shows the changes, `--agent ` picks agents, and `autter mcp disconnect` removes the entry again.
## For teams and enterprises
@@ -303,6 +378,10 @@ Community plugins surface this attribution directly in popular IDEs, color-coded
- **Repo wikis** — auto-generated, always-current documentation for every repository.
- **Prompt store** — keep the prompt and full session behind every generated hunk for harness engineering and review.
+
+
+
+
**Autter for Enterprise** runs entirely in your own cloud. Deploy into a customer-owned AWS account from versioned container images and Terraform modules — your VPC, data stores, object storage, KMS keys, and IAM roles — with audit logs and scoped access tokens. Nothing leaves your boundary.
## FAQs
@@ -313,6 +392,10 @@ Community plugins surface this attribution directly in popular IDEs, color-coded
1. On commit, Autter records line-level attribution in Git Notes, tying every AI line to the agent, model, and session behind it. Run `git log --show-notes="ai"` to view it.
1. When you `squash`, `merge`, `reset`, `rebase`, `stash`, or `cherry-pick`, Autter moves and merges those attributions so tracking stays accurate.
+
+
+
+
*Autter never uses AI or heuristics to "guess" which code is AI — the agents report exactly which lines they wrote, giving the most accurate, explicit attribution possible.*
#### Does the agent have to commit for attribution to work?
@@ -376,18 +459,18 @@ Git rewrite operations:
| Operation | Status | Notes |
| --------------------------------------------------------------- | ------ | ---------------------------------------------------------------------------- |
-| `git rebase` | ✅ | Attribution preserved. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/daemon.rs#L6578-L6664) |
-| `git cherry-pick` | ✅ | Attribution preserved. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/daemon.rs#L6675-L6718) |
-| `git stash` / `git stash pop` | ✅ | Attribution preserved. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/daemon.rs#L6758-L6824) |
-| `git merge --squash` | ✅ | Attribution preserved. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/daemon.rs#L6729-L6757) |
-| `git reset --soft` | ✅ | Attribution preserved. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/daemon.rs#L6504-L6577) |
-| `git reset --mixed` | ✅ | Attribution preserved. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/daemon.rs#L6504-L6577) |
-| `git reset --hard` | ✅ | Attribution preserved for commits that remain in history. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/daemon.rs#L6504-L6577) |
-| `git merge` (merge commit) | ✅ | Attribution preserved. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/daemon.rs#L6475-L6485) |
-| `git commit --amend` | ✅ | Attribution preserved, including unstaged and partially staged changes. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/daemon.rs#L6486-L6503) |
-| `git checkout` / `git switch` (branches) | ✅ | Attribution follows the working tree across branch changes. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/daemon.rs#L966-L978) |
-| `git pull` (fast-forward / `--rebase`) | ✅ | Attribution preserved, including autostashed changes. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/daemon.rs#L6825-L6874) |
-| `git push` / `git pull` / `git fetch` / `git clone` | ✅ | Attribution notes synced to/from the remote. Fetched notes are merged with local ones, never replace them. [View Code](https://github.com/autter-dev/autter-cli/blob/f3da782e93c492303e44d14805179123d1740e7f/src/commands/hooks/push_hooks.rs#L7-L30) |
+| `git rebase` | ✅ | Attribution preserved. [View Code](https://github.com/Autter-dev/autter-cli/blob/19ce8af399dcb3879d23205beb2c2206611cb560/src/authorship/rebase_authorship.rs#L1810) |
+| `git cherry-pick` | ✅ | Attribution preserved. [View Code](https://github.com/Autter-dev/autter-cli/blob/19ce8af399dcb3879d23205beb2c2206611cb560/src/authorship/rebase_authorship.rs#L3364) |
+| `git stash` / `git stash pop` | ✅ | Attribution preserved. [View Code](https://github.com/Autter-dev/autter-cli/blob/19ce8af399dcb3879d23205beb2c2206611cb560/src/daemon.rs#L3516) |
+| `git merge --squash` | ✅ | Attribution preserved. [View Code](https://github.com/Autter-dev/autter-cli/blob/19ce8af399dcb3879d23205beb2c2206611cb560/src/authorship/rebase_authorship.rs#L374) |
+| `git reset --soft` | ✅ | Attribution preserved. [View Code](https://github.com/Autter-dev/autter-cli/blob/19ce8af399dcb3879d23205beb2c2206611cb560/src/authorship/rebase_authorship.rs#L4602) |
+| `git reset --mixed` | ✅ | Attribution preserved. [View Code](https://github.com/Autter-dev/autter-cli/blob/19ce8af399dcb3879d23205beb2c2206611cb560/src/authorship/rebase_authorship.rs#L4602) |
+| `git reset --hard` | ✅ | Attribution preserved for commits that remain in history. [View Code](https://github.com/Autter-dev/autter-cli/blob/19ce8af399dcb3879d23205beb2c2206611cb560/src/daemon.rs#L4489) |
+| `git merge` (merge commit) | ✅ | Attribution preserved. |
+| `git commit --amend` | ✅ | Attribution preserved, including unstaged and partially staged changes. [View Code](https://github.com/Autter-dev/autter-cli/blob/19ce8af399dcb3879d23205beb2c2206611cb560/src/authorship/rebase_authorship.rs#L4322) |
+| `git checkout` / `git switch` (branches) | ✅ | Attribution follows the working tree across branch changes. [View Code](https://github.com/Autter-dev/autter-cli/blob/19ce8af399dcb3879d23205beb2c2206611cb560/src/daemon.rs#L2012) |
+| `git pull` (fast-forward / `--rebase`) | ✅ | Attribution preserved, including autostashed changes. [View Code](https://github.com/Autter-dev/autter-cli/blob/19ce8af399dcb3879d23205beb2c2206611cb560/src/daemon.rs#L1962) |
+| `git push` / `git pull` / `git fetch` / `git clone` | ✅ | Attribution notes synced to/from the remote. Fetched notes are merged with local ones, never replace them. [View Code](https://github.com/Autter-dev/autter-cli/blob/19ce8af399dcb3879d23205beb2c2206611cb560/src/daemon.rs#L1830) |
| `git mv` | ✅ | Attribution follows the moved file, including through rebases and blame. |
| `git filter-branch` / `git filter-repo` | ❌ | Bulk history rewrites are not tracked. |
| `git replace` | ❌ | Object replacements are not tracked. |
@@ -399,6 +482,20 @@ GitHub, GitLab, Bitbucket, Azure DevOps:
| Squash and Merge | ✅ | Requires [Autter for Teams](https://cal.com/sagnik-autter/15min) or [Open Source CI Actions](https://autter.dev/docs/cli/command-reference#ci) to preserve attribution. |
| Rebase and Merge | ✅ | Requires [Autter for Teams](https://cal.com/sagnik-autter/15min) or [Open Source CI Actions](https://autter.dev/docs/cli/command-reference#ci) to preserve attribution. |
+## Documentation
+
+- [CI Actions](https://autter.dev/docs/cli/command-reference#ci) — preserve attribution through Rebase and Merge and Squash and Merge.
+- [How Autter Works](https://autter.dev/docs/cli/how-autter-works)
+- [Stats command](https://autter.dev/docs/cli/commit-stats) — aggregate % AI stats across commits.
+- [Scripting and CI](docs/scripting.md) — `--json` output, exit codes, `--strict`, and a GitHub Actions example.
+- [AI Blame](https://autter.dev/docs/cli/ai-blame)
+- [Config](https://autter.dev/docs/cli/configuration)
+- [Add support for an agent in Autter](https://autter.dev/docs/guides/add-your-agent)
+- Install Autter in background agents (Claude Code on the web, Codex Cloud, Cursor background agents, Devin): run the [install script](https://autter.dev/docs/cli/install) in the agent environment's setup step. There are no agent-specific guides yet.
+- [Supported agents and editors](docs/agents.md)
+- [System investigations](docs/system-investigations.md)
+- [Full install and setup guide](INSTALL.md)
+
## Acknowledgments
Autter builds on the foundation laid by the original authors of **[git-ai](https://github.com/git-ai-project/git-ai)**, who first showed that AI-code attribution could live natively inside a repository rather than in an external service. Their work is the starting point everything here grew from, and we're grateful for it.
@@ -406,20 +503,5 @@ Autter builds on the foundation laid by the original authors of **[git-ai](https
The key idea we carried forward and built on is **Git Notes**. Git Notes let you attach metadata to a commit *after* it already exists, without rewriting the commit or touching its tree — so attribution can be recorded, moved, and merged independently of the code itself. Autter stores its line-level authorship data in a dedicated `refs/notes/ai` namespace, which is what makes attribution survive `rebase`, `squash`, `stash`, `cherry-pick`, and the other history rewrites, and what lets the same data sync across machines and the platform. We took that primitive and extended it into the full [Autter standard](https://github.com/autter-dev/autter-cli/blob/main/specs/autter_standard_v3.0.0.md) for tracking AI-generated code.
## License
-Apache 2.0
-### System investigations
-
-Use `autter ask` for evidence-backed system questions ("why did this happen and what is the impact"), `autter lineage ` to go from a Runtime issue to the release, commit, PR, owner and AI authorship behind it, `autter logs` for structured Runtime log queries, and `autter threads` to search and resume the same private debugging history as Dashboard Ask. See [usage and examples](docs/system-investigations.md).
-
-### Repository memory
-
-Use `autter memory search ""` to rank what Autter knows about the repository you're in (its shared memory pages, learnings, production lessons, team rules, past findings, wiki and code) by meaning, `autter memory for [...]` to read the memory's area pages for the files you're editing (with what worked and what didn't there), and `autter memory show`, `areas` and `ledger` to browse it. Add `--json` for coding agents. Nothing is sent in local mode or for repositories excluded from sharing.
-
-For coding agents, `autter context ""` is the one call to start with: the memory facts (with `rmf_…` ids to cite), wiki pages and code structure that matter for the task, ranked and cut to a token budget, as Markdown. It is the CLI form of the `get_context` MCP tool, and the `repo-memory` skill tells agents to use it when the Autter MCP server isn't connected. `autter memory skills install` writes the repository's memory skill into the checkout (`.agents/skills/autter-repo-memory/SKILL.md` and a Cursor rule) so teammates' agents get it from git.
-
-When a review's generated tests catch a bug, the failing test is not committed to the PR. On the PR's branch, `autter tests run` writes the failing tests Autter kept into your checkout and runs them with their framework's command (it asks first: the tests are model-written and run with your environment). `autter tests list` shows what Autter wrote and why each failed, and `autter tests clean` removes the files again. A test that used Autter's temporary database runs only with `--database-url` pointing at a scratch database.
-
-### Connect your agents to Autter's MCP server
-
-`autter mcp connect` adds Autter's MCP server to every installed agent's user-level config (Claude Code, Codex, Cursor, VS Code, Gemini CLI, OpenCode). Only the URL is written; each agent signs you in with your Autter account the first time it uses it. `--dry-run` shows the changes, `--agent ` picks agents, and `autter mcp disconnect` removes the entry again.
+[Apache 2.0](LICENSE)
diff --git a/assets/docs/autter-blame.gif b/assets/docs/autter-blame.gif
new file mode 100644
index 0000000..d1fffdb
Binary files /dev/null and b/assets/docs/autter-blame.gif differ
diff --git a/assets/docs/brand/autter-harbour.jpg b/assets/docs/brand/autter-harbour.jpg
new file mode 100644
index 0000000..3c034f8
Binary files /dev/null and b/assets/docs/brand/autter-harbour.jpg differ
diff --git a/assets/docs/brand/autter-logo-dark.png b/assets/docs/brand/autter-logo-dark.png
new file mode 100644
index 0000000..8ca7ca6
Binary files /dev/null and b/assets/docs/brand/autter-logo-dark.png differ
diff --git a/assets/docs/brand/autter-logo-light.png b/assets/docs/brand/autter-logo-light.png
new file mode 100644
index 0000000..a422f48
Binary files /dev/null and b/assets/docs/brand/autter-logo-light.png differ
diff --git a/assets/docs/buttons/get-early-access.svg b/assets/docs/buttons/get-early-access.svg
new file mode 100644
index 0000000..9b0ce79
--- /dev/null
+++ b/assets/docs/buttons/get-early-access.svg
@@ -0,0 +1,9 @@
+
diff --git a/assets/docs/buttons/meet-the-maintainers.svg b/assets/docs/buttons/meet-the-maintainers.svg
new file mode 100644
index 0000000..8167cfb
--- /dev/null
+++ b/assets/docs/buttons/meet-the-maintainers.svg
@@ -0,0 +1,9 @@
+
diff --git a/scripts/demo/autter-blame.tape b/scripts/demo/autter-blame.tape
new file mode 100644
index 0000000..9dd728b
--- /dev/null
+++ b/scripts/demo/autter-blame.tape
@@ -0,0 +1,33 @@
+# Records assets/docs/autter-blame.gif. Run scripts/demo/setup-blame-demo.sh first,
+# then from the repo root: vhs scripts/demo/autter-blame.tape
+Output assets/docs/autter-blame.gif
+
+Set Shell "bash"
+Set FontFamily "Menlo"
+Set FontSize 15
+Set Width 1140
+Set Height 720
+Set Padding 24
+Set Theme "Catppuccin Mocha"
+Set WindowBar Colorful
+Set BorderRadius 10
+Set TypingSpeed 45ms
+Set Framerate 20
+Set CursorBlink false
+
+Hide
+Type "source /tmp/autter-demo/env.sh && cd /tmp/autter-demo/repo && clear" Enter
+Sleep 800ms
+Show
+
+Sleep 500ms
+Type "autter blame --date short ratelimit.py" Sleep 400ms Enter
+Sleep 7500ms
+
+Hide
+Type "clear" Enter
+Sleep 300ms
+Show
+
+Type "autter blame --why ratelimit.py:12" Sleep 400ms Enter
+Sleep 7500ms
diff --git a/scripts/demo/setup-blame-demo.sh b/scripts/demo/setup-blame-demo.sh
new file mode 100755
index 0000000..22a444d
--- /dev/null
+++ b/scripts/demo/setup-blame-demo.sh
@@ -0,0 +1,115 @@
+#!/usr/bin/env bash
+# Builds a throwaway repo with human, Claude Code and Cursor lines for the
+# `autter blame` README GIF. Uses an isolated HOME and a private daemon, so it
+# never touches your real autter install or git config.
+#
+# cargo build --bin autter
+# scripts/demo/setup-blame-demo.sh
+# vhs scripts/demo/autter-blame.tape
+#
+# Clean up:
+# HOME=/tmp/autter-demo/home AUTTER_DAEMON_HOME=/tmp/autter-demo/home target/debug/autter bg shutdown
+# rm -rf /tmp/autter-demo
+set -euo pipefail
+ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
+AUTTER_BIN="${AUTTER_BIN:-$ROOT/target/debug/autter}"
+# Short path on purpose: the daemon's unix sockets must stay under ~100 chars.
+DEMO="${AUTTER_DEMO_DIR:-/tmp/autter-demo}"
+
+if [ -S "$DEMO/home/.autter/internal/daemon/control.sock" ]; then
+ HOME="$DEMO/home" AUTTER_DAEMON_HOME="$DEMO/home" "$AUTTER_BIN" bg shutdown >/dev/null 2>&1 || true
+fi
+rm -rf "$DEMO"
+mkdir -p "$DEMO/bin" "$DEMO/home/.autter" "$DEMO/repo"
+ln -s "$AUTTER_BIN" "$DEMO/bin/autter"
+printf '{"onboarding_completed": true, "telemetry_oss": "off"}\n' >"$DEMO/home/.autter/config.json"
+
+cat >"$DEMO/env.sh" <"$DEMO/daemon.log" 2>&1 &
+SOCK="$DEMO/home/.autter/internal/daemon/trace2.sock"
+for _ in $(seq 50); do [ -S "$SOCK" ] && break; sleep 0.2; done
+export GIT_TRACE2_EVENT="af_unix:stream:$SOCK" GIT_TRACE2_EVENT_NESTING=10
+export AUTTER_DAEMON_CHECKPOINT_DELEGATE=true
+
+commit() { # $1 date, $2 message; waits for the async authorship note
+ GIT_AUTHOR_DATE="$1" GIT_COMMITTER_DATE="$1" git commit -qam "$2"
+ for _ in $(seq 75); do git notes --ref=ai show HEAD >/dev/null 2>&1 && return; sleep 0.2; done
+ echo "no authorship note for: $2 (see $DEMO/daemon.log)" >&2
+ exit 1
+}
+
+cd "$DEMO/repo"
+git init -q
+echo "# ratelimit" >README.md
+git add .
+GIT_AUTHOR_DATE="2026-11-02T10:00:00" GIT_COMMITTER_DATE="2026-11-02T10:00:00" git commit -qm "init"
+sleep 1
+
+# 1) Lines a human typed
+cat >ratelimit.py <<'PY'
+import time
+
+class RateLimiter:
+ def __init__(self, rate, burst):
+ self.rate = rate
+ self.burst = burst
+ self.tokens = burst
+ self.last = time.monotonic()
+PY
+git add ratelimit.py
+autter checkpoint mock_known_human ratelimit.py
+commit "2026-11-03T09:14:00" "Add RateLimiter skeleton"
+
+# 2) Lines Claude Code wrote, with a transcript
+T="$DEMO/claude-session.jsonl"
+SID="5b1c7e0a-3d42-4f6e-9a57-2c8e1f0b6d11"
+cat >"$T" <>ratelimit.py <<'PY'
+
+ def allow(self, cost=1):
+ now = time.monotonic()
+ elapsed = now - self.last
+ t = self.tokens + elapsed * self.rate
+ self.tokens = min(self.burst, t)
+ self.last = now
+ if self.tokens < cost:
+ return False
+ self.tokens -= cost
+ return True
+PY
+autter checkpoint claude --hook-input "$(printf '{"session_id":"%s","cwd":"%s","hook_event_name":"PostToolUse","transcript_path":"%s","tool_input":{"file_path":"%s/ratelimit.py"}}' "$SID" "$PWD" "$T" "$PWD")"
+commit "2026-11-10T14:03:00" "Add token-bucket allow()"
+
+# 3) Lines a second agent wrote (agent and model set explicitly, no transcript)
+autter checkpoint human ratelimit.py
+cat >>ratelimit.py <<'PY'
+
+ def wait_time(self, cost=1):
+ need = cost - self.tokens
+ return max(0.0, need) / self.rate
+PY
+autter checkpoint agent-v1 --hook-input "$(printf '{"type":"ai_agent","repo_working_dir":"%s","edited_filepaths":["ratelimit.py"],"agent_name":"cursor","model":"gpt-5-codex","conversation_id":"c0ffee12-demo"}' "$PWD")"
+commit "2026-11-18T16:41:00" "Add wait_time()"
+
+# One-off "agent installed but not hooked" notices for agents on this machine
+# are shown once per agent; use them up here so the recording stays clean.
+script -q /dev/null autter blame --date short ratelimit.py >/dev/null 2>&1 || true
+
+echo "ready: source $DEMO/env.sh && cd $DEMO/repo"