neuron-explorer
Steering-first neuron explorer for Qwen3.5-4B: push every MLP neuron, keep every rollout, browse the results
翻译准备中
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.