
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Aletheia is an MCP server and CLI that stores coding-agent memories as Markdown claims anchored to code evidence, re-checking that evidence on every recall and pointing the agent at exact lines.
Evidence-anchored memory MCP server for coding agents is cataloged as an MCP server attributed to firatmio. Aletheia is an MCP server and CLI that stores coding-agent memories as Markdown claims anchored to code evidence, re-checking that evidence on every recall and pointing the agent at exact lines. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache-2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Evidence-anchored memory MCP server for coding agents are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Each memory's anchors are re-checked on every recall; if the evidence no longer holds, the memory is hidden from the agent and a short note explains why.
No. Anchors only read files, paths stay inside the project root, and the tool performs no network calls and keeps no telemetry.
They are not deleted; replaced memories are superseded and long-stale ones are archived by the lethe command.
README.md · b7e2be6c56a4 · 采集于 2026-11-13 14:08:26 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Every memory carries evidence from your code. Aletheia re-checks it on every recall,
points your agent at the exact lines, and keeps stale facts out of its context.
Quick start · How it works · Results · Reference
Coding agents forget everything between sessions, so they re-read the same files every time. Memory tools fix the forgetting, but they rank memories by similarity, and an outdated memory looks just as relevant as the fact that replaced it. The agent then builds on something that stopped being true weeks ago. A confidently wrong memory is worse than no memory.
[moved] with the new place instead of going stale.builtin_test.go:263 is computed from the files right now, so the agent opens the right lines instead of searching for them.aletheia lethe (Lethe, the river of forgetting).1. Install it in whichever way suits you. Every option gives you the same single binary:
npm install -g @firatmio/aletheia # Node 18+, any OS
go install github.com/firatmio/aletheia/cmd/aletheia@latest # Go 1.24+
scoop bucket add firatmio https://github.com/firatmio/scoop-bucket; scoop install aletheia # Windows
brew install --cask firatmio/tap/aletheia # macOS, Linux
Prebuilt archives for Linux, macOS and Windows are on the releases page.
2. Connect your agent.
Claude Code, with the plugin (recommended). It brings the MCP server and both hooks. /aletheia:setup then initializes the project:
/plugin marketplace add firatmio/aletheia
/plugin install aletheia@aletheia
/aletheia:setup
Claude Code, without the plugin. Set up the project and add the two hooks yourself. Recall then happens on every prompt and costs the agent nothing:
cd your-project
aletheia init --agents --claude-hooks # .aletheia/, usage notes in CLAUDE.md and AGENTS.md, hooks in .claude/settings.json
aletheia hook --dry-run # what an agent would get (add a prompt to try one); changes nothing
Run --claude-hooks yourself. Agents are usually not allowed to change their own hooks, and that is by design. Don't add these hooks if the plugin is installed: it brings the same two. init notices the plugin and says so. To edit the file by hand instead, use this:
{
"hooks": {
"UserPromptSubmit": [{ "hooks": [{ "type": "command", "command": "aletheia hook" }] }],
"Stop": [{ "hooks": [{ "type": "command", "command": "aletheia hook" }] }]
}
}
Any other agent. Cursor, VS Code, Claude Desktop and Codex connect over MCP; agents without MCP use the CLI. See Other agents below. An MCP client configured with npx needs no install at all: {"command": "npx", "args": ["-y", "@firatmio/aletheia", "serve"]}.
An agent can also do the setup itself from the agent guide. It hands the hook step to you as that single command.
Memories live in .aletheia/memories/*.md as plain Markdown. Commit them and your team, and every agent, shares one memory that verifies itself on each machine.
Upgrading: npm update -g @firatmio/aletheia, scoop update aletheia or brew upgrade --cask aletheia. With Go, run the same go install again. Update the plugin with claude plugin update aletheia@aletheia.
go install on Windows, a running agent keeps aletheia.exe open through the MCP server, so the install fails with "file in use". Quit the agent first, or move the old binary aside, which Windows allows for a running exe.This works on every upgrade. It removes old copies that are no longer in use, and the random name never collides with one that is still running:
$bin = "$(go env GOPATH)\bin"
Remove-Item "$bin\aletheia-old*.exe" -ErrorAction SilentlyContinue
Rename-Item "$bin\aletheia.exe" "aletheia-old-$(Get-Random).exe"
go install github.com/firatmio/aletheia/cmd/aletheia@latest
We measured with headless Claude Code (Opus 5.5) on real repositories. Each task ran with and without Aletheia, and the same hidden acceptance tests judged success.
| Repository | Tasks | Cost | Also | Tasks passed |
|---|---|---|---|---|
| gohugoio/hugo, a large site generator (233k lines of Go) | 14 tasks of five kinds, one run each | −15%: −22% on seven tasks of one kind, −7% on a mix | input tokens −27%, turns −21% | 14/14, same as without |
| expr-lang/expr, a mid-size expression language | 7 tasks, two runs | −9% in both runs | code read before the first edit −48% | 14/14, same as without |
| go-chi/chi, a small, tidy router | 7 small tasks, two runs | +5% and −5%: break-even | 14/14, same as without |
Aletheia pays off where finding the right place is expensive, in mid-size and larger codebases, and most when the same kind of change comes back. Expect the mixed figure for everyday work. On a small package that an agent reads in one or two calls there is little to save. The method, the raw numbers and what did not work are in docs/dogfood-4.2.md.
| Anchor | Holds while | Example |
|---|---|---|
symbol:PATH::NAME | the file still declares that function, method (Type.Method), type, var or const | symbol:store.go::Store.Get |
contains:PATH::REGEX | the file still matches the regular expression | contains:go.mod::^go 1\.23$ |
exists:PATH | the path still exists | exists:src/auth |
file:PATH | the file's content is unchanged (hash sealed when saved) | file:go.mod |
symbol for claims about one declaration and contains for one thing in a file. Use file only when any change should trigger a re-check.symbol and contains evidence is right now, e.g. (store.go:15-21). Go declarations get their full range from go/parser. In other languages a symbol anchor finds the declaring line by its keyword (function, class, def, fn and the like); it is not sealed, so it cannot follow a move.symbol anchor is sealed with a fingerprint of the declaration (symbol:store.go::Store.Get@3f9a…). The fingerprint ignores comments and layout.
[moved: old.go → new.go] with the new lines, and verify <id> --reseal records the new path.contains anchors in Go code: when one matches inside a single declaration, remember adds a sealed symbol anchor for that declaration. The contains anchor then moves with it, but only if its pattern still matches inside that declaration at the new place.contains pattern, a run of spaces matches any run of spaces or tabs, so reformatting does not stale it.exists: anchor automatically.remember says so when you save one.remember warns when a contains anchor only matches comments, since a comment can stay while the code changes.[?], ranked below verified facts, and expires after 90 days unless re-confirmed.When a memory goes stale, re-check the claim, then:
aletheia verify 3f9a1c --reseal # still true: refresh the evidence
aletheia remember "…new claim…" --anchor … --supersedes 3f9a1c # changed: replace it
--reseal refuses when a contains, exists or symbol anchor no longer holds, so a false claim cannot be quietly blessed.
aletheia map "<topic>" lists the files most relevant to a topic, each with its key declarations and their current lines:
optimizer/fold.go: fold.Visit 15-311, fold 10-13, toFloat 329-335
builtin/builtin.go: Builtins 35-1081, Index 18
Files are ranked first, as in Aider's repo map, by how well their path and declaration names match the topic. Hidden, dependency and generated files are skipped. For a question about building, testing or shipping, and for the overview without a topic, the map starts with the build files: build and CI: go.mod, Makefile, scripts/, .github/workflows/ci.yml. The hook sends a map with the first prompt of a session, sized to the project: none under 25 source files, then 300 or 600 tokens (--map-budget N overrides it).
Aletheia speaks MCP over stdio with four tools (recall, remember, get, verify) and works as a plain CLI, so any agent that can run a shell command can use it.
{
"mcpServers": {
"aletheia": { "command": "aletheia", "args": ["serve", "--dir", "/absolute/path/to/your-project"] }
}
}
Without a global install, use "command": "npx", "args": ["-y", "@firatmio/aletheia", "serve", "--dir", "…"]. The server finds .aletheia/ from --dir, or from the directory the client starts it in. In a project without one, the tools answer with how to set it up rather than failing, and start working as soon as aletheia init has run.
.vscode/mcp.json): use "servers" instead of "mcpServers", and ${workspaceFolder} as the directory.aletheia init --agents writes a short block to AGENTS.md that teaches the agent to call the CLI. Codex reads AGENTS.md too, so it gets the same notes alongside the MCP tools. Add --json to any read command for machine-readable output.---
id: "3f9a1c"
claim: "Auth tokens are issued by IssueToken, HS256 with a 15 minute expiry"
confidence: 0.8
status: "active"
source: "claude-code"
created: "2026-10-21T09:12:44Z"
updated: "2026-10-21T09:12:44Z"
tags:
- "auth"
anchors:
- "symbol:src/auth/jwt.go::IssueToken@7370a7fe3669256c"
- "contains:src/auth/jwt.go::jwt\\.SigningMethodHS256"
---
Refresh tokens are handled separately, by RefreshToken.
The @7370a7fe3669256c suffix is the sealed fingerprint that lets the memory follow IssueToken if it moves.
Edit memories by hand, review them in pull requests, grep them. They are just files.
aletheia init [dir] [--agents] [--claude-hooks]
aletheia remember <claim> [--anchor SPEC]... [--body TEXT|-] [--tag T]... [--ttl 30d]
[--confidence 0.8] [--supersedes ID]... [--source NAME] [--force]
aletheia remember - [--source NAME] [--force] # several at once: one JSON object per line on stdin
aletheia recall [query] [--budget N] [--limit N] [--full] [--stale] [--tag T] [--session ID] [--json]
aletheia get <id> [--json]
aletheia verify [id] [--reseal] [--ttl 30d] [--json] # exits 1 if anything is stale (CI-friendly)
aletheia map [topic] [--budget 600]
aletheia hook [--budget N] [--map-budget N] [--dry-run [prompt]] # Claude Code hook; every command takes --help
aletheia lethe [--days 30] [--apply] [--json] # archive superseded and long-stale memories
aletheia stats [--json]
aletheia serve [--dir DIR] # MCP server on stdio
aletheia version
Every command takes --help, and --dir DIR (or ALETHEIA_DIR) to point at a project from elsewhere.
remember exits with code 3 when the claim duplicates or closely matches an existing memory, and names it so the agent can --supersedes it instead.
remember - saves several memories in one call. Each stdin line is a JSON object with the MCP tool's keys, and each memory is saved on its own:
aletheia remember - <<'EOF'
{"claim": "Builtins are registered in builtin/registry.go", "anchors": ["symbol:builtin/registry.go::Builtins"]}
{"claim": "go.mod targets Go 1.18", "anchors": ["contains:go.mod::^go 1\\.18$"], "tags": ["toolchain"]}
EOF
It prints one result per line, in order. It exits 0 when all are saved, 3 when the only failures are conflicts, and 1 otherwise. A regex whose \\ became \ on the way through the shell (1\.18) is still accepted. The MCP remember tool takes the same objects as memories.
CLAUDE.md / AGENTS.md block repeats it.git check-ignore, during init, to see whether CLAUDE.md is ignored..aletheia/. See the privacy policy.[moved])symbol anchors, and [moved], beyond Go: TypeScript/JavaScript and Python firstaletheia doctor: find anchors that keep going stale and suggest sturdier onesWhat changed in each release is in CHANGELOG.md.
Issues and pull requests are welcome. See CONTRIBUTING.md and the code of conduct. If Aletheia misled your agent, the "An agent was misled" issue form is the most useful report you can send. Report security problems privately, as SECURITY.md describes.
Apache-2.0 © Fırat Tuna Arslan
ἀ-λήθεια: truth, literally "un-forgetting"
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Evidence-anchored memory MCP server for coding agents from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/aletheia)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.