For Claude Code, Cursor, Copilot and Codex

Your repo remembers why. Now your agent does too.

Aveth reads your git history and pull requests and gives your coding agent the decisions behind your code, in the exact words your team wrote. It learns from the agent's mistakes, and warns before a change undoes a decision.

  • Local and free
  • No API key
  • Nothing leaves your machine
test repository
$ aveth why src/db.ts:5

Lines 5: c7c00fa, Bob (looked past 1 formatting/move commit)
Use a single connection instead of a pool (c7c00fa · 2025-01-03)
Decided by Bob (author).
Why:
│ "The pool kept 20 connections open per worker, which
│  exhausted the database's max_connections in production."
Rejected:
│ "We tried lowering the pool size, but requests then
│  queued behind each other."
Asks of later changes:
│ "Do not reintroduce the connection pool without raising
│  max_connections first."

The problem

Coding agents read your code. They never read why it is like that.

01

They clean up the workaround

The odd-looking retry that kept production alive looks redundant. The agent removes it.

02

They bring back what you removed

The dependency you dropped after an outage is the obvious fix. The agent adds it again.

03

They repeat the same mistakes

Wrong test command, edits to generated files. You correct it, and next session it happens again.

The reasons already exist: in commit messages, pull request descriptions, reviews and linked issues. Nobody reads them, least of all your agent.

How it works

Four things your agent gets that it never had.

?

Remember

Any line traces through git blame, past formatting and move commits, to the decision behind it. You get the reasons in the authors' own words, the alternatives rejected, who decided, and the pull request.

▸

Brief

Before the agent edits a file, it is told the decisions, constraints, past reverts and files that usually change with it. This happens automatically, through hooks and MCP.

↻

Learn

Failed commands and the ones that fixed them, and what you had to correct, become proposed rules with the evidence. You accept the ones you want, and Aveth counts whether each mistake comes back.

!

Guard

aveth check flags a change that brings back code or a dependency a decision removed on purpose, or breaks a team rule, before you commit.

A real session

What Claude Code said after Aveth was connected.

We asked Claude Code to add a line to src/db.ts in a test repository. Before editing, it was briefed automatically. This is its own answer, word for word.

  • Session start: a short briefing on the repository's memory.
  • Before the edit: the decision that shaped the file, and what it asks.
  • MCP why: the exact quote, traced through blame.
Claude Code · headless session · test repository
  1. The why tool traced src/db.ts:5 to commit c7c00fa (Bob): "Use a single connection instead of a pool." Quoted: "The pool kept 20 connections open per worker, which exhausted the database's max_connections in production."
  2. Before the edit, a session-start hook gave a general summary: 4 decisions from 11 commits. A pre-edit hook then briefed me on src/db.ts with the same single-connection decision and its ask: "Do not reintroduce the connection pool without raising max_connections first."
  3. Added // Reviewed: keep a single connection. as line 1 of src/db.ts. The edit doesn't touch the connection logic.

Learning from mistakes

Rules from what actually went wrong, with the evidence.

Seen in a sessionProposed ruleKept as evidence
npm test fails with Missing script, then pnpm vitest run worksTo test in this repository, use pnpm vitest run, not npm test.The error line and both commands
You say "No, never edit generated files in src/gen"Your words, scoped to src/gen/**Your exact words
You say "always use pnpm here" and the agent calls rememberAccepted at onceYour exact words

You decide what it learns

Proposed rules wait for you, in aveth rules review or the VS Code panel. Agents only ever see rules you accepted.

It shows whether a rule worked

Each accepted rule shows "held in 12 sessions", or "repeated 1× since", so you can see which ones work.

Install

One minute to set up.

In PowerShell (needs Node.js 18 or newer):

irm https://code.aveth.tech/install.ps1 | iex

The installer checks the package against its published SHA-256 before installing. Prefer an editor? The VS Code extension needs nothing else installed.

With Node.js 18 or newer:

npm install -g https://code.aveth.tech/download/aveth.tgz

On macOS or Linux: curl -fsSL https://code.aveth.tech/install.sh | sh

Download aveth-code.vsix, then in VS Code run Extensions: Install from VSIX…. It includes:

  • the panel;
  • the decision behind the current line;
  • checks in the Problems panel;
  • an MCP server for Copilot agent mode.
aveth connect claude

It sets up the MCP server, the hooks and the skill. Also available: aveth connect cursor, codex, windsurf, vscode, and agents (writes AGENTS.md). Any other MCP client: {"command":"aveth","args":["mcp"]}

1
Read the historyaveth init
2
Ask whyaveth why src/db.ts:42
3
Connect your agentaveth connect claude

To read pull requests and reviews too (most reasons live there), set GITHUB_TOKEN or run gh auth login, then aveth sync --github.

For agents

Ten MCP tools, and hooks that need no prompting.

contextBriefing before editing files
whyThe decision behind a line or commit
search"Why did we drop redis?"
historyDecisions on a file or folder
checkChanges against decisions and rules
rememberSave a rule the user asked for
explain_commitEverything written about a commit
record_decisionStore a decision, exact quotes only
rulesThe team's accepted rules
statusWhat Aveth knows

How your agent reads deeper, for free: it reads a commit with explain_commit and records the decision with record_decision. Aveth keeps a quote only if it appears word for word in what people wrote. Your agent is the model, so there's no API key and no extra bill.

Privacy and security

Your code and history never leave your machine.

Local only

The memory lives under ~/.aveth. No account, no cloud, no telemetry.

Read-only GitHub

Only GitHub's API, with your own token from gh, GITHUB_TOKEN or your VS Code sign-in. The token is never written to disk.

No dependencies

One file at run time, with nothing to install alongside it. The local app listens on 127.0.0.1 behind a one-time token.

Stop your agent undoing your team's decisions.