AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
Store and retrieve coding agent memories with evidence to maintain repository context across tasks
翻譯準備中
AI 摘要 · README
開發工具TypeScript · JavaScriptGitHub @Nei-Xin自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
安裝型專案無需部署網域也可驗證。個人儲存庫可透過 GitHub 登入驗證,組織儲存庫可使用上方的儲存庫驗證檔案。
正在載入完整 README。 以下為已儲存的摘錄。
Evidence-backed repository memory for coding agents.
RepoMind helps coding agents carry useful repository knowledge from one task to the next. It captures task evidence, turns reusable findings into memories, and retrieves relevant context when a new task begins. OpenCode, Claude Code, and MCP clients can work with the same repository memory.
A later session can recall why a module was designed a certain way, which command verified a change, or how a previous issue was resolved—and inspect the evidence behind that knowledge.檢視完整 README ↗Evidence-backed repository memory for coding agents.
RepoMind helps coding agents carry useful repository knowledge from one task to the next. It captures task evidence, turns reusable findings into memories, and retrieves relevant context when a new task begins. OpenCode, Claude Code, Pi, Codex, and MCP clients can work with the same repository memory.
A later session can recall why a module was designed a certain way, which command verified a change, or how a previous issue was resolved—and inspect the evidence behind that knowledge.
Working in an existing repository means learning more than its source code. Agents also need its conventions, design decisions, verification commands, and lessons from earlier tasks. Those findings are often scattered across conversations and have to be rediscovered in a fresh session.
RepoMind makes that knowledge reusable:
flowchart LR
Task[New task] --> Recall[Retrieve repository context]
Recall --> Agent[Agent works on the repository]
Agent --> Evidence[Capture task evidence]
Evidence --> Memory[Store reusable memories]
Memory --> Recall
RepoMind uses a Session to connect a task with its starting repository state, observed activity, final response, and verification results. Successful tasks can produce reusable memories. Host-managed runs and configured interactive integrations also maintain derived context after a successful commit.
The memory model has five layers:
| Layer | What it contains | What it is useful for |
|---|---|---|
| L0 — Activity and evidence | Task requests, tool activity, Git snapshots, diffs, and command results | Inspecting what happened and supporting conclusions |
| L1 — Individual memories | Repository facts, conventions, decisions, solutions, and verified commands | Recalling specific knowledge for a task |
| L2 — Module narratives | Bounded summaries derived from memories about a module | Understanding module responsibilities and decisions |
| L3 — Repository profile | A compact overview derived from repository facts and module context | Orienting an agent at the start of a session |
| L4 — Skill candidates | Repeated successful workflows proposed for review | Turning recurring work into reusable instructions |
L2 and L3 retain links to their sources. L4 candidates require approval before export. See the memory model and architecture for more detail.
Requirements: Node.js 22.5+ and Git. Install OpenCode or Claude Code to run agent tasks through RepoMind; the CLI and MCP memory operations can also be used independently.
Install from the source checkout to use the current RC.3 functionality:
git clone https://github.com/Nei-Xin/repomind.git
cd repomind
npm ci
npm run build
npm link
A versioned RC.2 tarball is also available through GitHub Releases. The unscoped npm package repomind belongs to another project; use this repository's source or release artifact.
RC.3 publication is being prepared. See the RC.3 release notes for upgrade instructions and known limits, and release readiness for the remaining CI gates.
Inside the Git repository you want RepoMind to remember:
repomind init
repomind doctor --runner opencode
repomind run --task "Fix invoice decimal arithmetic and verify the change" --runner opencode
RepoMind retrieves repository context before launching the agent, captures the task's evidence, and closes the Session when the run ends. Successful commits update reusable memory and derived context.
For Claude Code, use --runner claude:
repomind doctor --runner claude
repomind run --task "Explain the invoice module and verify its tests" --runner claude
Omit --model to use the selected agent's default. Use --context-budget to control the amount of injected repository context; the default is 12,000 characters.
repomind run manages retrieval, agent execution, evidence capture, and Session completion. This is the quickest way to try the complete workflow.
See the daily workflow guide for task history, memory review, and ongoing use.
Configure OpenCode once for the target repository, then launch it normally:
repomind opencode setup --repo D:\path\to\repository
repomind opencode status --repo D:\path\to\repository
cd D:\path\to\repository
opencode
The project plugin retrieves context for root-session user messages, captures tool activity—including delegated child-session activity—and closes the task when the root session becomes idle. It uses a local Bridge and does not require the model to call MCP tools.
Claude Code interactive integration uses project hooks and the same local Bridge; Claude keeps talking to its own model endpoint. Configure the repository once, then run claude normally:
repomind claude setup --repo D:\path\to\repository
repomind doctor claude --repo D:\path\to\repository
See OpenCode integration and Claude Code integration for the available workflows and setup details.
Pi, Codex and Gemini CLI also support automatic native recall and activity capture:
repomind pi setup --repo /path/to/repository
repomind codex setup --repo /path/to/repository
repomind gemini setup --repo /path/to/repository
Then use pi, codex or gemini normally. Trust the project extension in Pi; in Codex,
trust the project and review RepoMind definitions with /hooks. Validated with
Pi 1.4.0, Codex CLI 0.165.0 and Gemini CLI 0.66.0. Codex Bash hooks currently omit exit codes, so
their raw output cannot establish verified-command evidence. See
Pi integration, Codex integration and Gemini CLI integration
for setup, lifecycle and evidence limits. These native integrations do not add
new repomind run --runner targets.
Add RepoMind to the client's MCP configuration:
{
"mcpServers": {
"repomind": {
"command": "repomind",
"args": ["mcp"]
}
}
}
The MCP tools cover Session management, memory search and inspection, memory maintenance, module narratives, repository profiles, and Skill candidates. See the MCP guide and client examples for repository selection and tool configuration.
Search for a finding and inspect its supporting evidence:
repomind search "invoice decimal arithmetic" --json
repomind inspect <memory-id> --json
Record a repository fact directly:
repomind record --type convention --title "Public API types" --content "Public APIs export explicit TypeScript types."
Review knowledge affected by code changes and browse the derived layers:
repomind review
repomind modules --json
repomind profile --json
repomind skills --status pending --json
You can validate, correct, invalidate, or forget memories through audited operations. A changed file marks related knowledge for review; you decide whether the conclusion still applies. Memory governance explains these operations.
For manual Session management, use repomind start and repomind commit. For an existing repository with no memory yet, the bootstrap workflow generates candidates for review before import.
RepoMind stores memory in a local SQLite database with FTS5 search. Repository identity lives in .repomind/project.json; memory data lives under ~/.repomind/repositories/<projectId>/repomind.db. Set REPOMIND_DATA_DIR to choose another data directory. Interactive setup also installs project-specific plugin or hook configuration.
The default workflow uses deterministic memory extraction and local lexical search. Additional capabilities are opt-in:
| Capability | Purpose | Documentation |
|---|---|---|
| Vector search | Combine lexical and vector retrieval using a configured embedding provider | Vector search |
| Remote LLM extraction | Generate structured memory candidates from a completed Session's evidence | Remote extraction |
| Export and backup | Move or recover repository memory, with optional encrypted archives | Data portability |
| Skill candidates | Review and export repeated successful workflows | Skill candidates |
Remote providers receive the relevant text after pattern-based secret redaction; vector queries are also redacted before embedding. See SECURITY.md for the data boundaries and redaction model.
npm run typecheck
npm test
npm run build
The project includes tests for memory lifecycle, retrieval, agent integrations, and data portability, plus retrieval benchmarks and cross-session agent experiments. Evaluation methods and results are documented separately:
For deeper reading, see architecture, design decisions, contributing, and troubleshooting. Version history is maintained in the changelog.