repomemory
Your codebase never forgets.
AI agents lose context every session. repomemory fixes that — one command creates a persistent, searchable knowledge base that any AI tool can read, search, and write to.
接入你的智能体
發布者自己的指令。不是 PlugMCP 端點。
用我們的金鑰與日誌託管一份副本。
npx -y [email protected]Claude Code 沒有本機指令的安裝連結。複製下方指令並在終端機中執行。
claude mcp add io.github.danielguru-repomemory -- npx -y repomemory@1.3.0在終端機中執行。
{ "mcpServers": { "io.github.danielguru-repomemory": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}claude_desktop_config.json
遠端 URL 還是本機指令? 兩種安裝方式的差異
來自發布者
Your codebase never forgets.
AI agents lose context every session. repomemory fixes that — one command creates a persistent, searchable knowledge base that any AI tool can read, search, and write to.
Persistent memory for AI coding agents. Hybrid search, auto-session capture, context routing.
npx repomemory go
Every time you open a project with Claude Code, Cursor, Copilot, or any AI coding agent:
Your CLAUDE.md / .cursorrules helps, but it's static and gets stale.
.context/
├── index.md ← Quick orientation (loaded every session)
├── facts/ ← Architecture, database, deployment
├── decisions/ ← "We chose Drizzle over Prisma because..."
├── regressions/ ← "This broke before. Here's what happened."
├── preferences/ ← Your coding style — follows you across all repos
├── sessions/ ← Auto-captured AI session summaries
└── changelog/ ← Monthly git history syncs
Facts tell agents how things work. Decisions prevent re-debating. Regressions prevent re-breaking. Preferences teach agents how you code.
npx repomemory go
One command: sets up global profile, creates .context/, configures Claude Code + Cursor, runs AI analysis, prints CLAUDE.md instructions.
npx repomemory setup cursor
This installs everything Cursor needs:
~/.cursor/mcp.json (auto-starts repomemory in every project).cursor/rules/repomemory.mdc (teaches Cursor's AI to use context).cursor/commands/ (run with / in Cursor chat)Then in Cursor chat, type:
/repomemory-analyze
Cursor's own AI scans your repo and populates .context/ via the MCP tools. No external API key required — your Cursor subscription handles it.
Available Cursor commands:
npx repomemory wizard
Walks through provider selection, tool integration, and first analysis. If no API keys are detected, offers a "None — I use Cursor" option that skips external analysis entirely.
npx repomemory go --yes --provider anthropic --embedding-provider gemini --max-files 80
No prompts when --yes / --defaults / --no-prompt is used.
The real power is the MCP server. When configured via repomemory setup claude, it auto-starts with Claude Code and gives agents 7 tools:
Agent: "Let me orient myself in this project..."
→ context_auto_orient()
→ Returns: project overview, preferences, recent sessions, recent changes
Agent: "Let me search for context about the auth flow..."
→ context_search("authentication flow")
→ Auto-routes to facts/ category, returns compact results
Agent: "I found a race condition. Let me record this."
→ context_write(category="regressions", filename="token-refresh-race", content="...")
→ Persisted. Detects if it supersedes an existing entry.
Sessions are auto-captured on shutdown. Zero config — repomemory setup claude handles everything.
Cursor users: You don't need any API key. Run
npx repomemory setup cursor, then use/repomemory-analyzein Cursor chat. Cursor's AI does the analysis using the MCP tools — whatever model Cursor is using (it can even switch models mid-task).
Embeddings (optional, for semantic search): Gemini text-embedding-004 (free, default) or OpenAI text-embedding-3-small. Auto-detected from available API keys.
repomemory go # One-command setup (add --yes for non-interactive)
repomemory wizard # Interactive guided setup
repomemory analyze # AI-powered repo analysis
repomemory analyze --merge # Update without overwriting edits
repomemory analyze --dry-run # Preview without API call
repomemory search <query> # Search knowledge base from terminal
repomemory status # Coverage and freshness report
repomemory doctor # Diagnostics and health check
repomemory dashboard # Local web UI (localhost:3333)
repomemory risk # Hotspots, coupling, ownership analysis
repomemory risk -f src/auth.ts # Targeted risk assessment for specific files
repomemory sync # Sync git history to changelog
repomemory setup <tool> # Configure Claude/Cursor/Copilot/etc
repomemory hook install # Auto-sync changelog on commits
repomemory global list # Manage global developer context
repomemory global export # Export global context as JSON
.repomemory.json in your repo root (all fields optional):
{
"provider": "anthropic",
"model": "claude-sonnet-4-6",
"embeddingProvider": "gemini",
"hybridAlpha": 0.5,
"maxFilesForAnalysis": 80,
"enableGlobalContext": true
}
Custom ignorePatterns and keyFilePatterns are additive — they extend built-in defaults, not replace them.
repomemory doesn't replace CLAUDE.md — it complements it. CLAUDE.md is for instructions and rules. .context/ holds the knowledge that grows over time.
See CONTRIBUTING.md for development setup, testing, and contribution guidelines.
MIT
Built for developers who are tired of AI agents forgetting everything between sessions.
Persistent memory for AI coding agents. Hybrid search, auto-session capture, context routing.
{ "mcpServers": { "io.github.danielguru-repomemory": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
這筆記錄未列出必要的環境變數。
Repomemory 透過 stdio 在本機執行。
上次檢查時間:2026-11-09。 Persistent memory for AI coding agents. Hybrid search, auto-session capture, context routing.