New
Apps 6,319Makers 6,298This week 13
Promote your app−30%
Tages screenshot 1
0views in
the last 30 days

Tages

Persistent codebase memory for AI coding agents. MCP server + CLI + dashboard

Built with Claude Code

by ryantlee25-droid · Unclaimed · from USUnited States · added Oct 29, 2026
no ratings0 comments

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

  1. Install — tages init connects to your project, or install the Claude Code plugin for zero-config setup
  2. Remember — Store decisions and conventions manually, via git hooks, or by importing CLAUDE.md
  3. 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:

  1. .tages/config.json — explicit marker file (created by tages link)
  2. Git remote — matches the repo name against registered projects
  3. Directory name — matches the folder name against registered project slugs
  4. 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 injection
  • tages audit — score your memory coverage and get suggestions for improvement
  • tages 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 init ignored a valid saved session. It called runGithubOAuth() unconditionally (packages/cli/src/commands/init.ts), so it demanded a fresh browser round-trip even immediately after a successful tages login, and failed outright after a 5-minute OAuth timeout on any headless run. link had always reused the session; init now matches it, falling back to the browser only when the stored session is expired, absent, or a TAGES_SERVICE_KEY client with no user to own the project.
  • The session-expiry message pointed at the one destructive command. packages/cli/src/auth/session.ts and both sites in commands/link.ts said "Run tages init to re-authenticate." init creates a project — running it to fix auth trips the global slug-unique constraint or drops you into a local-<slug> store that then blocks link. Now tages login, which has existed since 0.5.0.
  • tages recall exited 0 on 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. createAuthenticatedClient now reports a SessionStatus, and recall fails loudly on expired while leaving anonymous (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 at tages 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 no tages package 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 prefers tages on PATH and falls back to npx -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=1 prints the verdict and its reason.

2026-08-18 — v0.5.3: republish with @tages/shared bumped

  • v0.5.2 shipped a broken MCP server. evidenceWeight was added to @tages/shared without bumping that package, so the publish workflow correctly skipped it as already-published at 0.2.0 — and @tages/server@0.3.2 went out pinned to @tages/shared@0.2.0, a version with no such export. Every MCP recall failed 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/shared 0.2.1, @tages/server 0.3.3, @tages/cli 0.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 remember persisted 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 --force override.
  • Authorship never worked. memories.created_by/updated_by and the sync mapper have existed since 0048, but the local SQLite cache had neither column — and the CLI syncs from SQLite, so every write dropped its author on the way out and get_memory_authors returned "Unknown" for everything. Columns added to the cache schema with an upgrade path for existing caches.
  • created_by is now pinned by the database (migration 0074), because no client can get it right. remoteInsert upserts with onConflict: 'project_id,key', and a Supabase upsert overwrites every column it is given — so an editor either sends null (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 rewrote created_by to the owner. A BEFORE INSERT OR UPDATE trigger now fills it from auth.uid() on insert and pins it to its existing value on update. updated_by is 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. type says what it is about, source says how it was captured, and confidence is a float that conflates the two — 0.8 could mean a test proved it or a model guessed it, and those warrant opposite behaviour from a reader. New evidence column: verified (checked against something executable), declared (asserted by a human as policy), observed (seen once), inferred (reasoned, not checked), disputed (contradicted). Named evidence because status is already live/pending/archived. Adapted from YAIML's evidence discipline.
  • The defaults are the design. A human tages remember records declared; an agent's own MCP write records inferred. Nothing becomes verified unless 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 — NULL means 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 recall ordering 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. disputed is demoted hardest but never suppressed — a contradicted claim is exactly what someone re-litigating a decision needs to find, and it renders as DISPUTED — contradicted, re-check before acting rather 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 DEFINER return types would mean DROP + CREATE on four functions that 0066, 0068 and 0072 have 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 0072 closes three more SECURITY DEFINER RPCs that 0066/0068 missed. 0066's header claimed to close "the same class of hole" but only closed four of seven. revert_memory_to_version and get_memory_versions (both 0015) and contextual_recall (0016) share the same shape: SECURITY DEFINER, a caller-supplied p_project_id, no auth.uid() check, and no explicit GRANT so EXECUTE defaults to PUBLIC. revert_memory_to_version is the serious one — it issues an UPDATE on memories, so any authenticated caller who could guess a project UUID could overwrite that project's memory, and since 0069 that UPDATE also writes a forged entry into the audit trail via the snapshot trigger. The guard is copied verbatim from 0068 so all seven functions now share one implementation; reads return empty on denial to match the existing recall RPCs, the write raises 42501.
  • **Migration

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#memory · #agents · #mcp