They clean up the workaround
The odd-looking retry that kept production alive looks redundant. The agent removes it.
For Claude Code, Cursor, Copilot and Codex
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.
$ 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
The odd-looking retry that kept production alive looks redundant. The agent removes it.
The dependency you dropped after an outage is the obvious fix. The agent adds it again.
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
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.
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.
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.
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
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.
why: the exact quote, traced through blame.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."// Reviewed: keep a single connection. as line 1 of src/db.ts. The edit doesn't touch the connection logic.Learning from mistakes
| Seen in a session | Proposed rule | Kept as evidence |
|---|---|---|
npm test fails with Missing script, then pnpm vitest run works | To 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 remember | Accepted at once | Your exact words |
Proposed rules wait for you, in aveth rules review or the VS Code panel. Agents only ever see rules you accepted.
Each accepted rule shows "held in 12 sessions", or "repeated 1× since", so you can see which ones work.
Install
In PowerShell (needs Node.js 18 or newer):
irm https://code.aveth.tech/install.ps1 | iexThe 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.tgzOn 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:
aveth connect claudeIt 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"]}
aveth initaveth why src/db.ts:42aveth connect claudeTo read pull requests and reviews too (most reasons live there), set GITHUB_TOKEN or run gh auth login, then aveth sync --github.
For agents
contextBriefing before editing fileswhyThe decision behind a line or commitsearch"Why did we drop redis?"historyDecisions on a file or foldercheckChanges against decisions and rulesrememberSave a rule the user asked forexplain_commitEverything written about a commitrecord_decisionStore a decision, exact quotes onlyrulesThe team's accepted rulesstatusWhat Aveth knowsHow 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
The memory lives under ~/.aveth. No account, no cloud, no telemetry.
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.
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.