tessera
Provides persistent codebase memory for Claude Code, enabling semantic understanding of the project structure and action history across sessions to reduce redundant file reads.
README
Tessera
Persistent codebase memory for Claude Code — open source, no license gating.
Tessera gives Claude Code a semantic understanding of your project that persists across turns and sessions, eliminating redundant file re-reads and providing a structured action history.
How it works
tessera scan .— builds a SQLite graph of your codebase (files, symbols, imports)- Claude calls
graph_continueevery turn — routes to cached, scored file recommendations graph_register_editupdates the graph after edits, auto-checks plan checklists- Optional: run
tessera debate "task"for a Claude vs GPT multi-round planning debate
Installation
Claude Code plugin (recommended)
claude plugin marketplace add dr-code/tessera
claude plugin install tessera@tessera
This registers the MCP server (via uvx — no Python env needed) and auto-installs all skills (/build, /debate, /cleanup, /plan-review, /codex-review). Then in any project:
tessera scan . # builds graph, writes .mcp.json and CLAUDE.md
pip (manual / CI)
curl -fsSL https://raw.githubusercontent.com/dr-code/tessera/main/install.sh | bash
When the claude CLI is present the script uses the plugin marketplace (registers the MCP server via uvx and installs all skills). Without it, it falls back to pip install tessera and offers to copy the skills to ~/.claude/skills/.
Then in any project:
tessera scan . # builds graph, writes .mcp.json and CLAUDE.md
Manual alternatives
# Claude Code plugin (two steps)
claude plugin marketplace add dr-code/tessera
claude plugin install tessera@tessera
# pip only
pip install tessera # core — no API keys needed
pip install tessera[debate] # adds debate mode (requires ANTHROPIC_API_KEY + codex CLI)
pip install tessera[dashboard]
pip install tessera[all]
Quick start
cd my-project
tessera scan . # builds graph, writes .mcp.json and CLAUDE.md
tessera status # show graph stats
tessera dashboard # start dashboard at localhost:5050
MCP registration
After tessera scan ., your project will have a .mcp.json:
{
"mcpServers": {
"tessera": {
"command": "uvx",
"args": ["--from", "tessera", "tessera", "mcp"],
"env": { "TESSERA_PROJECT_ROOT": "/path/to/project" }
}
}
}
uvx fetches and caches tessera from PyPI on first run — no PATH entry needed. Claude Code picks this up automatically.
CLI reference
tessera scan [PATH] Build/rebuild the graph
tessera mcp Start MCP server (stdio)
tessera status [PATH] Show graph stats
tessera decisions [PATH] List locked decisions
tessera reset [PATH] Clear action graph
tessera plans [PROJECT [SUB]] List archived plans
tessera verify [PATH] Compliance: plan vs git diff
tessera handoff [PATH] Generate clipboard handoff summary
tessera debate "task" [flags] Run Claude vs GPT debate
tessera dashboard [PATH] Start dashboard at localhost:5050
Debate mode
Requires pip install tessera[debate] and the codex CLI.
Connecting to ChatGPT (no API key needed)
If you have a ChatGPT Plus or Pro subscription you can authenticate the codex CLI with it — no separate API key or billing setup required:
npm install -g @openai/codex # install once
codex auth login # opens browser — sign in with your ChatGPT account
That's it. tessera debate and all Claude Code skills (/debate, /build, /cleanup, etc.) will use your subscription automatically.
Connecting via API key (optional)
Set OPENAI_API_KEY if you prefer direct API billing rather than the subscription OAuth path.
tessera debate "Add JWT authentication" \
--project myapp \
--subtask auth-middleware \
--max-rounds 3
Feature flags
| Flag | Default | Effect |
|---|---|---|
TESSERA_ENABLE_DEBATE |
on | Enables tessera debate |
TESSERA_ENABLE_DASHBOARD |
on | Enables tessera dashboard |
TESSERA_ENABLE_COMPLIANCE |
on | Enables tessera verify |
Token savings target
| Metric | Target |
|---|---|
| Turn 2+ read reduction | ≥50% chars vs cold-start |
| 10-turn session reduction | ≥40% total chars |
| Cache hit rate (after turn 3) | ≥60% |
| Symbol excerpt savings | ≥70% vs full-file reads |
Claude Code in-session skills
Tessera ships five Claude Code slash commands that use the tessera graph for context and Codex CLI for GPT's perspective. The plugin marketplace install auto-installs them from the skills/ directory in this repo. For manual install, run ./install.sh or copy from skills/ to ~/.claude/skills/.
Requires: codex CLI (npm install -g @openai/codex) authenticated via codex auth login (ChatGPT subscription) or OPENAI_API_KEY.
| Skill | Usage | Description |
|---|---|---|
/debate |
/debate "REST vs GraphQL" |
Multi-round Claude vs GPT debate on architecture or design decisions |
/build |
/build "add JWT auth" |
Full build loop: GPT plans → debate → user approval → implement → GPT review |
/cleanup |
/cleanup src/ |
Bidirectional slop scanner — Claude + GPT independently analyze, then reconcile |
/plan-review |
/plan-review plan.md |
Send an implementation plan to GPT for structured review before coding |
/codex-review |
/codex-review HEAD~2 |
Independent GPT code review of staged changes, commits, or files |
All skills degrade gracefully when tessera MCP is not configured — they still run Claude+GPT collaboration, just without graph context.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。