Memory your agent
can verify.

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.

Go 1.24+
$ go install github.com/firatmio/aletheia/cmd/aletheia@latest
Watch it work ↓

ἀλήθεια alētheia · truth; literally un-forgetting, from ἀ- “not” and λήθη “forgetting”

scroll to watch an agent work with Aletheia

claude · ~/src/exprturns 0read before first edit 0k charsmemories 0
without Aletheia: 26 turns · 52k chars
> Add a new builtin function hypot(a, b) that returns sqrt(a*a + b*b) as a float. Type-check, document and test it like the existing math builtins.
● UserPromptSubmit · aletheia hook3 memories · code map · 0 agent turns
okNew builtin: register it in the Builtins slice, validate in validation.go builtin.go:35-1081
okMulti-arg builtins need an arity entry in TestBuiltin_works_with_any builtin_test.go:263
okBuiltins are registered in builtin/builtin.go builtin.go:35
● Read builtin/builtin.go lines 35–50 · 15 lines, not 1,081
● Read builtin/validation.go lines 12–40
● Edit builtin/builtin.go +14
● Edit builtin/builtin_test.go +22 · arity entry added, as the memory said
● Bash go test ./... ok · 14 packages
you do it, or it happens as you scroll
$ git mv builtin/builtin.go builtin/registry.go
> Add a new builtin function cbrt(x) that returns the cube root of a number as a float.
● aletheia hook · checked against the files just now1 moved · 1 stale hidden
movedNew builtin: register it in the Builtins slice, validate in validation.go registry.go:35-1081the same code, now in builtin/registry.go
okMulti-arg builtins need an arity entry in TestBuiltin_works_with_any builtin_test.go:263
staleBuiltins are registered in builtin/builtin.gonames builtin/builtin.go, which no longer has Builtins · hidden from your agent
● Read builtin/registry.go lines 35–50
● Edit builtin/registry.go +12
● Bash go test ./... ok · 14 packages
⏺ Added cbrt with type checks, docs and tests.
● Stop · aletheia hook · read the session, no model callreplaced the earlier map for this kind of change
okMap: a task like "Add a new builtin function cbrt(x)…" changed builtin/lib.go, builtin/validation.go, builtin/registry.go, builtin/builtin_test.go, docs/language-definition.md
based on lab run R5, expr-lang/expr task 4 · commands shortened
How it works

Every claim is tied to the line that proves it.

Anchors are checked mechanically on every recall: no model calls, no embeddings, no network. When code moves to another file unchanged, its memories follow it as [moved].

builtin/registry.gochecked just now
33// Builtins lists every function the language provides.
34
35var Builtins = []*Function{
36 {
37 Name: "all",

Try it: break the evidence.

Runs in your browser. Nothing is sent anywhere.

● anchor holds · the memory reaches the agent

Results

Measured, with the method attached.

−15%1cost on gohugoio/hugo (233k lines), 14 tasks of five kinds
−9%2cost on expr-lang/expr, in two separate runs
42/423sessions passed the hidden tests, as without Aletheia

Quick start

One static binary, no dependencies. Memories are plain Markdown in .aletheia/, so you can commit them and share them with your team.

Paste this into Claude Code, Cursor or any coding agent:

Help me set up Aletheia in this project. The setup guide is plain text at https://aletheia.firattunaarslan.me/agents.md (curl -fsSL gets it exactly).

The agent installs and initializes; the one step that changes the agent's own configuration (the hooks) it hands to you as a single command. /llms.txt indexes the guide.