Team memory for AI coding agents.
Your AI agents forget everything between sessions. Every decision re-litigated. Every convention re-explained. Every past mistake repeated by the next agent that touches the same code.
Personal memory tools patch the symptom: store some facts, retrieve them later. That works for solo developers who remember what they stored. It breaks down when teams ship with AI — when three developers are using agents on the same codebase, when onboarding requires transferring institutional knowledge, when the wrong memory survives a refactor because no one audited it.
Memory isn't storage. It's a team practice.
Tages treats codebase memory as a managed artifact: structured types, quality scoring, audit trails, sharpen passes that rewrite vague notes into imperative agent instructions. One developer's architecture decision becomes every agent's context. A bad memory gets flagged and corrected before it misleads the next session.
Start in under 60 seconds with one command. Add team features when your workflow demands them.
claude mcp add tages -- npx -y @tages/server
Why Tages?
| Tages | Zep | Mem0 | |
|---|---|---|---|
| Install | One line (claude mcp add) |
Docker + API key | API key + SDK |
| Local-only mode | Yes (SQLite, zero config) | Self-hosted only | No (cloud-only) |
| Team sharing | Yes (RBAC, federation) | Yes (cloud) | No |
| Dashboard | Yes (Next.js, analytics) | Yes | Basic |
| Quality control | Audit, sharpen, enforce | No | No |
| Memory types | 11 structured types | Knowledge graph (Graphiti) | Structured |
| MCP tools | 56 | N/A | N/A |
| Search | Trigram + semantic + decay | Temporal knowledge graph | Vector |
| Workflow integration | Git hooks, CI/CD, briefs | SDK calls | SDK calls |
| Pricing | Free local / $14 Pro | Open-source / Cloud | $19-$249/mo |
What It Remembers
Source code tells agents what exists. Tages tells them why it was built, how to work with it, and what not to do.
| Type | Example |
|---|---|
| Convention | "Always use snake_case for API routes" |
| Decision | "Chose Postgres over MongoDB for pg_trgm fuzzy search" |
| Architecture | "Auth middleware in lib/auth.ts, JWT in httpOnly cookies" |
| Lesson | "Don't cache the Supabase mock — tests need fresh state" |
| Anti-pattern | "Never pass id in upsert with onConflict — causes FK violation" |
| Pattern | "All API errors return { error, code, status }" |
Plus: entity, execution, operational, environment, preference (11 types total).
How It Works
- Install —
tages initconnects to your project, or install the Claude Code plugin for zero-config setup - Remember — Store decisions and conventions manually, via git hooks, or by importing CLAUDE.md
- Recall — Every session gets full project context in <10ms from local SQLite cache
Zero-Config Auto-Detection
When running as a Claude Code plugin or MCP server, Tages automatically detects which project you're in:
.tages/config.json— explicit marker file (created bytages link)- Git remote — matches the repo name against registered projects
- Directory name — matches the folder name against registered project slugs
- Auto-create — if authenticated, creates a new cloud project automatically; otherwise uses local-only mode
No tages init required per directory. Use tages link [slug] to explicitly bind a directory to a project.
Claude Code Plugin
Install Tages as a Claude Code plugin for automatic session memory:
/plugin https://github.com/ryantlee25-droid/tages
Works With
Claude Code, Cursor, Codex, Gemini — anything that speaks MCP.
Features
- 56 MCP tools — remember, recall, audit, sharpen, import, federation, analytics, and more
- 53 CLI commands — full control from the terminal
- Web dashboard — browse, search, and edit memories with dark-mode UI
- Auto-indexing — git hooks extract decisions from commits via Ollama or Claude Haiku
- Import — seed from existing CLAUDE.md, ARCHITECTURE.md, or JSON files
tages brief— generate a cached context document for system prompt injectiontages audit— score your memory coverage and get suggestions for improvementtages sharpen— rewrite memories into imperative form for better agent consumption- Local-first — SQLite cache for sub-10ms queries, works offline
- Hybrid search — pg_trgm trigram matching + pgvector semantic search
- Team sharing — multiple developers share one codebase memory (Pro)
Benchmarks
Reproducible LongMemEval and coding-memory benchmark results are published under eval/ with full methodology, judge configuration, and run notebooks. Results are reproducible against the published harness; raw numbers are in each eval's results/ directory.
Setup Guides
Architecture
packages/
server/ MCP server (56 tools, stdio transport, 818 tests: 805 passing, 13 skipped)
cli/ CLI (45 top-level commands, npm global install, 331 tests)
shared/ TypeScript types + Supabase client
apps/
dashboard/ Next.js 16, Supabase Auth, Tailwind, shadcn/ui
supabase/
migrations/ 64 migrations (tables, RLS, pgvector, RBAC, encryption)
Security
- Encryption at rest — AES-256-GCM for memory values (opt-in)
- RBAC — Owner/admin write, member read-only
- Row Level Security — All tables enforce project membership at the database layer
- Auth — Supabase Auth + GitHub OAuth; API tokens SHA-256 hashed with expiration
- Secret detection — Memories scanned for API keys, credentials, PII before storage
- Audit logging — Auth events, exports, and token validation tracked
See SECURITY.md for our full security policy and responsible disclosure process. See PRIVACY.md for our privacy policy.
Pricing
| Plan | Price | Includes |
|---|---|---|
| Free | $0 | 1 project (cloud sync), 10,000 memories, 20 core MCP tools, local SQLite |
| Pro | $14/mo | Up to 10 projects, 50K memories, all 56 tools, cloud sync |
| Team | $19/seat/mo | Up to 20 projects, 100K memories, federation, RBAC, audit logging |
| Self-hosted | Free forever | Bring your own Supabase, no limits, MIT license |
Contributing
See CONTRIBUTING.md for development setup and guidelines.
Release Notes
2026-08-25 — v0.5.5: six onboarding defects, found while provisioning a real team project
Every item here was found by actually provisioning a new project and inviting two teammates, not by reading the code. All six are on the first-run path, which is why none of the 1,500+ unit tests caught them.
tages initignored a valid saved session. It calledrunGithubOAuth()unconditionally (packages/cli/src/commands/init.ts), so it demanded a fresh browser round-trip even immediately after a successfultages login, and failed outright after a 5-minute OAuth timeout on any headless run.linkhad always reused the session;initnow matches it, falling back to the browser only when the stored session is expired, absent, or aTAGES_SERVICE_KEYclient with no user to own the project.- The session-expiry message pointed at the one destructive command.
packages/cli/src/auth/session.tsand both sites incommands/link.tssaid "Runtages initto re-authenticate."initcreates a project — running it to fix auth trips the global slug-unique constraint or drops you into alocal-<slug>store that then blockslink. Nowtages login, which has existed since 0.5.0. tages recallexited0on a dead session. An expired session yields an anonymous client, every RLS-protected read returns zero rows, and the command printed "No memories found" — indistinguishable from an empty project, to a human and to a script.createAuthenticatedClientnow reports aSessionStatus, andrecallfails loudly onexpiredwhile leavinganonymous(legitimate local-only use) working.- "Free tier is limited to 2 projects" was never the enforced number. The RLS policy is
is_pro(uid) OR (projects you own) < 1(supabase/migrations/0002_rls_policies.sql) — a cap of 1. The message now says 1. - A slug collision was reported as a billing limit. Slugs are globally unique across all owners, and a unique violation also contains the word
violates, so it fell into the plan-limit branch and told you to upgrade over a name clash. It is now detected first, named as a collision, and points attages link --project-id <uuid>for the case where you meant to join rather than create. - The installed post-commit hook invoked a package that does not exist. It ran
npx tages index --last-commit; there is notagespackage on npm (404) — the binary ships inside@tages/cli. It resolved only on machines with a global CLI install already on PATH, and failed silently everywhere else because it runs backgrounded. Now preferstageson PATH and falls back tonpx -y @tages/cli.
Docs: docs/quickstart.md and docs/team-onboarding.md both told new users "do not install from npm, @tages/cli is 0.2.1, build from source" and to git checkout release/2026-08-13-onboarding — a branch that merged long ago. Both now lead with npm install -g @tages/cli, with the source build as an optional aside for Tages developers. Also corrected there: the team seat limit is LEAST(subscription_quantity, 20) (supabase/migrations/0049), not a flat 25 — a team profile with a null subscription_quantity resolves to 1 seat; the "no periodic pull" trap now distinguishes the CLI (reconciles automatically on every memory command) from MCP (hydrates at boot only, so an agent still needs a session restart); and the stale tages doctor caveat is gone, since doctor has probed the project-scoped .mcp.json first since 0.4.0.
Versions: @tages/cli 0.5.5, @tages/shared 0.2.3. @tages/server is unchanged at 0.3.4. The CLI bundles @tages/shared from source at build time, so the project-factory fixes ship inside @tages/cli regardless of what the registry holds.
Tests: +15 CLI, +3 shared. The init session-reuse tests were verified by reintroducing the bug — 2 of 6 failed, and the 4 fallback cases correctly stayed green.
2026-08-18 — Recall relevance floor: recall can now answer "nothing"
tages recall <anything>returned the whole project. The recall RPCs filter on an absolute cosine threshold (p_threshold, 0.7 or 0.3), which against the hosted embedding model filters nothing: measured, pure nonsense (wibbleflux ganthorpe zzzqx) scores 0.775 against unrelated memories and "what is the best recipe for sourdough bread" scores 0.725 — both clear 0.7. Agents were receiving irrelevant memories presented as answers, and every positive recall result was therefore uninformative.- No absolute cutoff can fix this. The model's cosines occupy a narrow high band (~0.69–0.95), and any constant tuned to it breaks when the embedding model changes — which is exactly how the existing 0.7 became inert.
- The signal is distributional. Calibrated over 12 memories × 13 queries (8 answerable, 5 not): a query the corpus can answer makes one result stand out; one it cannot produces a flat pack. The top result's z-score separated the two cleanly (answerable 2.27–3.22, unanswerable 1.12–1.99, margin 0.277) and is scale-free, unlike the absolute top (margin 0.060), top−2nd (0.008), or top−mean (0.003).
- The rule is deliberately conservative. Suppression is destructive — hiding a memory someone needed is worse than showing one they did not — so results are dropped only when both signals agree: a top score below 0.80 and either a flat distribution or too few candidates to judge. A tightly focused corpus, where everything is legitimately about one subject, keeps its high absolute scores and survives. Scoped to the semantic and chunk channels only; the trigram channel already has a real floor (measured 0 rows for the same nonsense queries) and is left alone.
- The suite is now 137/137, green three runs consecutively, with the paraphrase check still passing — the floor rejects nonsense without suppressing genuine semantic matches. Constants come from n=12 on one model: a defensible starting point, not a tuned optimum.
TAGES_DEBUG_RECALL=1prints the verdict and its reason.
2026-08-18 — v0.5.3: republish with @tages/shared bumped
v0.5.2shipped a broken MCP server.evidenceWeightwas added to@tages/sharedwithout bumping that package, so the publish workflow correctly skipped it as already-published at0.2.0— and@tages/server@0.3.2went out pinned to@tages/shared@0.2.0, a version with no such export. Every MCPrecallfailed with(0, shared_1.evidenceWeight) is not a function. Local builds were unaffected because the workspace link resolves to the source tree, so nothing caught it until the end-to-end suite ran against the public registry: 134/137 published vs 136/137 local, with two MCP checks failing only from npm.- Fix is versions, not code:
@tages/shared0.2.1,@tages/server0.3.3,@tages/cli0.5.3. - Lesson worth keeping: a monorepo package whose exports changed must be bumped even when its consumers were. Testing only the workspace build cannot catch this class of defect — the suite's npm mode is what did.
2026-08-18 — Release readiness: CLI secret gate, working authorship, created_by pinned in the database (migration 0074)
- The CLI never scanned for secrets.
tages rememberpersisted an AWS key that the MCP path already blocked (tools/remember.ts:65) — and it was the wrong way round, since the human-typed path is where a pasted config snippet arrives, and a stored secret is then readable by every project member and pulled into every agent's context by recall. The CLI now runs the same scan, fails closed before any write, and exposes the same--forceoverride. - Authorship never worked.
memories.created_by/updated_byand the sync mapper have existed since0048, but the local SQLite cache had neither column — and the CLI syncs from SQLite, so every write dropped its author on the way out andget_memory_authorsreturned"Unknown"for everything. Columns added to the cache schema with an upgrade path for existing caches. created_byis now pinned by the database (migration0074), because no client can get it right.remoteInsertupserts withonConflict: 'project_id,key', and a Supabase upsert overwrites every column it is given — so an editor either sendsnull(erasing the author) or its own id (stealing authorship). Choosing correctly needs to know whether the row exists remotely, which a client cannot know: the CLI's pull is rate-limited, so a teammate's row may legitimately not be cached yet. Measured — the owner editing a teammate's memory rewrotecreated_byto the owner. ABEFORE INSERT OR UPDATEtrigger now fills it fromauth.uid()on insert and pins it to its existing value on update.updated_byis left to the client, since that field is supposed to move.- End-to-end 136/137 against prod, up from 132: the four authorship and secret-gate checks now pass. The one remaining failure is recall's missing relevance floor, a ranking-quality issue tracked separately. 916 server + 505 CLI + 40 shared tests pass.
2026-08-17 — Evidence levels: how well established a memory is (migration 0070)
- A memory carried three fields circling "how much should I trust this" and none that answered it.
typesays what it is about,sourcesays how it was captured, andconfidenceis a float that conflates the two —0.8could mean a test proved it or a model guessed it, and those warrant opposite behaviour from a reader. Newevidencecolumn:verified(checked against something executable),declared(asserted by a human as policy),observed(seen once),inferred(reasoned, not checked),disputed(contradicted). Namedevidencebecausestatusis alreadylive/pending/archived. Adapted from YAIML's evidence discipline. - The defaults are the design. A human
tages rememberrecordsdeclared; an agent's own MCP write recordsinferred. Nothing becomesverifiedunless explicitly claimed, and the MCP tool description tells the model so outright. Defaulting the flattering way would let every unexamined guess arrive dressed as a fact, which is the failure the field exists to prevent. Existing rows are not backfilled —NULLmeans unknown, and inventing an assessment nobody made is the same failure in another form. - The level changes retrieval order, in both ranking implementations. The end-to-end suite caught that applying it only in the MCP server left
tages recallordering purely on lexical fit, so an inferred guess that matched the query text slightly better was served ahead of the verified fact answering the same question. Both paths now weight by evidence.disputedis demoted hardest but never suppressed — a contradicted claim is exactly what someone re-litigating a decision needs to find, and it renders asDISPUTED — contradicted, re-check before actingrather than as a quiet tag. - Known cost, made explicit rather than hidden: the four recall RPCs return a fixed table shape predating this column, so the CLI issues one extra primary-key lookup to fetch levels for the fused candidates. Widening those
SECURITY DEFINERreturn types would meanDROP+CREATEon four functions that0066,0068and0072have each already had to patch. A test asserts that exactly one such call is made, so a future change adding a third still trips. - Also found while testing this: when two memories tie on score, recall order is nondeterministic — six identical runs produced two different orders. Unrelated to this change and not fixed here.
2026-08-17 — Post-merge hardening: three more PR #75 review findings closed
- Migration
0072closes three more SECURITY DEFINER RPCs that0066/0068missed.0066's header claimed to close "the same class of hole" but only closed four of seven.revert_memory_to_versionandget_memory_versions(both0015) andcontextual_recall(0016) share the same shape: SECURITY DEFINER, a caller-suppliedp_project_id, noauth.uid()check, and no explicit GRANT so EXECUTE defaults to PUBLIC.revert_memory_to_versionis the serious one — it issues an UPDATE onmemories, so any authenticated caller who could guess a project UUID could overwrite that project's memory, and since0069that UPDATE also writes a forged entry into the audit trail via the snapshot trigger. The guard is copied verbatim from0068so all seven functions now share one implementation; reads return empty on denial to match the existing recall RPCs, the write raises42501. - **Migration
