# https://github.com/DanielGuru/repomemory 项目说明书

生成时间: 2026-05-22 13:26:59 UTC

## 目录

- [仓库概览](#overview)
- [入口与运行边界](#entrypoints)
- [架构证据地图](#architecture)
- [运维与验证边界](#operations)

<a id='overview'></a>

## 仓库概览

### 相关页面

相关主题：[入口与运行边界](#entrypoints), [架构证据地图](#architecture), [运维与验证边界](#operations)

<details>
<summary>相关源码文件</summary>

以下源码文件用于生成本页说明：

- [README.md](https://github.com/DanielGuru/repomemory/blob/main/README.md)
- [package.json](https://github.com/DanielGuru/repomemory/blob/main/package.json)
- [src/index.ts](https://github.com/DanielGuru/repomemory/blob/main/src/index.ts)
- [src/commands/analyze.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/analyze.ts)
- [src/commands/dashboard.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/dashboard.ts)
- [src/commands/doctor.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/doctor.ts)
- [src/commands/global.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/global.ts)
- [src/commands/go.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/go.ts)
- [src/commands/hook.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/hook.ts)
- [src/commands/init.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/init.ts)
- [src/commands/risk.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/risk.ts)
- [src/commands/search.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/search.ts)
</details>

# 仓库概览

本页在 Human Wiki provider 不可用时基于仓库证据生成，只使用 README、文件树和已选源码文件，不把模板描述冒充项目事实。

## README 证据

<div align="center">

# 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.

[![npm version](https://img.shields.io/npm/v/repomemory.svg)](https://www.npmjs.com/package/repomemory)
[![npm downloads](https://img.shields.io/npm/dm/repomemory.svg)](https://www.npmjs.com/package/repomemory)
[![license](https://img.shields.io/npm/l/repomemory.svg)](https://github.com/DanielGuru/repomemory/blob/main/LICENSE)
[![CI](https://github.com/DanielGuru/repomemory/actions/workflows/ci.yml/badge.svg)](https://github.com/DanielGuru/repomemory/actions)

```bash
npx repomemory go
```

</div>

---

<div align="center">

<video src="https://github.com/DanielGuru/repomemory/raw/main/repomemory-demo.gif.mp4" width="100%" autoplay loop muted playsinline></video>

</div>

## The Problem

Every time you open a project with Claude Code, Cursor, Copilot, or any AI coding agent:

- It re-discovers your architecture from scratch
- It proposes changes that were already debated and rejected
- It re-introduces bugs that were already fixed

Your `CLAUDE.md` / `.cursorrules` helps, but it's static and gets stale.

## The Solution

```
.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.

## Quick Start

### With an API key (Claude Code, terminal workflows)

```bash
npx repomemory go
```

One command: sets up global profile, creates `.context/`, configures Claude Code + Cursor, runs AI analysis, prints CLAUDE.md instructions.

### With Cursor (no API key needed)

```bash
npx repomemory setup cursor
```

This installs everything Cursor needs:
- **MCP server** in `~/.cursor/mcp.json` (auto-starts repomemory in every project)
- **Rules** in `.cursor/rules/repomem

[excerpt truncated]

## 已选源码清单

- `README.md`
- `package.json`
- `src/index.ts`
- `src/commands/analyze.ts`
- `src/commands/dashboard.ts`
- `src/commands/doctor.ts`
- `src/commands/global.ts`
- `src/commands/go.ts`
- `src/commands/hook.ts`
- `src/commands/init.ts`
- `src/commands/risk.ts`
- `src/commands/search.ts`

| 文件 | 证据角色 | 大小 |
|---|---|---|
| `README.md` | README/产品与使用证据 | 9286 bytes |
| `package.json` | 包与运行时元数据 | 2441 bytes |
| `src/index.ts` | 实现边界 | 9453 bytes |
| `src/commands/analyze.ts` | 实现边界 | 25880 bytes |
| `src/commands/dashboard.ts` | 实现边界 | 30872 bytes |
| `src/commands/doctor.ts` | 实现边界 | 10324 bytes |
| `src/commands/global.ts` | 实现边界 | 4226 bytes |
| `src/commands/go.ts` | 实现边界 | 12329 bytes |
| `src/commands/hook.ts` | 实现边界 | 3990 bytes |
| `src/commands/init.ts` | 实现边界 | 5766 bytes |
| `src/commands/risk.ts` | 实现边界 | 4006 bytes |
| `src/commands/search.ts` | 实现边界 | 5039 bytes |

资料来源：`[README.md:1-120]()`

---

<a id='entrypoints'></a>

## 入口与运行边界

### 相关页面

相关主题：[仓库概览](#overview), [架构证据地图](#architecture), [运维与验证边界](#operations)

<details>
<summary>相关源码文件</summary>

以下源码文件用于生成本页说明：

- [README.md](https://github.com/DanielGuru/repomemory/blob/main/README.md)
- [package.json](https://github.com/DanielGuru/repomemory/blob/main/package.json)
- [src/index.ts](https://github.com/DanielGuru/repomemory/blob/main/src/index.ts)
- [src/commands/analyze.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/analyze.ts)
- [src/commands/dashboard.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/dashboard.ts)
- [src/commands/doctor.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/doctor.ts)
- [src/commands/global.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/global.ts)
- [src/commands/go.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/go.ts)
- [src/commands/hook.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/hook.ts)
- [src/commands/init.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/init.ts)
- [src/commands/risk.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/risk.ts)
- [src/commands/search.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/search.ts)
</details>

# 入口与运行边界

下面文件是安装、启动、配置或宿主集成的高信号候选。这里给出证据地图，不推断未经执行验证的 API 契约。

| 文件 | 证据角色 | 大小 |
|---|---|---|
| `README.md` | README/产品与使用证据 | 9286 bytes |
| `package.json` | 包与运行时元数据 | 2441 bytes |
| `src/index.ts` | 实现边界 | 9453 bytes |
| `src/commands/analyze.ts` | 实现边界 | 25880 bytes |
| `src/commands/dashboard.ts` | 实现边界 | 30872 bytes |
| `src/commands/doctor.ts` | 实现边界 | 10324 bytes |
| `src/commands/global.ts` | 实现边界 | 4226 bytes |
| `src/commands/go.ts` | 实现边界 | 12329 bytes |
| `src/commands/hook.ts` | 实现边界 | 3990 bytes |
| `src/commands/init.ts` | 实现边界 | 5766 bytes |
| `src/commands/risk.ts` | 实现边界 | 4006 bytes |
| `src/commands/search.ts` | 实现边界 | 5039 bytes |

资料来源：`[README.md:1-120](https://github.com/DanielGuru/repomemory/blob/main/README.md)`

---

<a id='architecture'></a>

## 架构证据地图

### 相关页面

相关主题：[仓库概览](#overview), [入口与运行边界](#entrypoints), [运维与验证边界](#operations)

<details>
<summary>相关源码文件</summary>

以下源码文件用于生成本页说明：

- [README.md](https://github.com/DanielGuru/repomemory/blob/main/README.md)
- [package.json](https://github.com/DanielGuru/repomemory/blob/main/package.json)
- [src/index.ts](https://github.com/DanielGuru/repomemory/blob/main/src/index.ts)
- [src/commands/analyze.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/analyze.ts)
- [src/commands/dashboard.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/dashboard.ts)
- [src/commands/doctor.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/doctor.ts)
- [src/commands/global.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/global.ts)
- [src/commands/go.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/go.ts)
- [src/commands/hook.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/hook.ts)
- [src/commands/init.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/init.ts)
- [src/commands/risk.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/risk.ts)
- [src/commands/search.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/search.ts)
</details>

# 架构证据地图

本节只根据仓库路径组织可能的架构区域；需要运行验证的行为不会在这里断言。

- `.`: `README.md`, `package.json`
- `src`: `src/index.ts`, `src/commands/analyze.ts`, `src/commands/dashboard.ts`, `src/commands/doctor.ts`, `src/commands/global.ts`, `src/commands/go.ts`

资料来源：`[package.json:1-120](https://github.com/DanielGuru/repomemory/blob/main/package.json)`

---

<a id='operations'></a>

## 运维与验证边界

### 相关页面

相关主题：[仓库概览](#overview), [入口与运行边界](#entrypoints), [架构证据地图](#architecture)

<details>
<summary>相关源码文件</summary>

以下源码文件用于生成本页说明：

- [README.md](https://github.com/DanielGuru/repomemory/blob/main/README.md)
- [package.json](https://github.com/DanielGuru/repomemory/blob/main/package.json)
- [src/index.ts](https://github.com/DanielGuru/repomemory/blob/main/src/index.ts)
- [src/commands/analyze.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/analyze.ts)
- [src/commands/dashboard.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/dashboard.ts)
- [src/commands/doctor.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/doctor.ts)
- [src/commands/global.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/global.ts)
- [src/commands/go.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/go.ts)
- [src/commands/hook.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/hook.ts)
- [src/commands/init.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/init.ts)
- [src/commands/risk.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/risk.ts)
- [src/commands/search.ts](https://github.com/DanielGuru/repomemory/blob/main/src/commands/search.ts)
</details>

# 运维与验证边界

运维建议仅来自仓库中真实存在的文件。把该项目用于 agent 工作流前，仍需在 sandbox 中验证安装、quickstart 和运行行为。

- Documentation signal: `README.md`
- Runtime/package signal: `package.json`
- Source inspection signal: `src/index.ts`
- Source inspection signal: `src/commands/analyze.ts`
- Source inspection signal: `src/commands/dashboard.ts`
- Source inspection signal: `src/commands/doctor.ts`
- Source inspection signal: `src/commands/global.ts`
- Source inspection signal: `src/commands/go.ts`
- Source inspection signal: `src/commands/hook.ts`
- Source inspection signal: `src/commands/init.ts`

资料来源：`[src/index.ts:1-120](https://github.com/DanielGuru/repomemory/blob/main/src/index.ts)`

---

## 社区证据

### Stored Community Evidence
- v1.11.0 | https://github.com/DanielGuru/repomemory/releases/tag/v1.11.0 | v1.11.0 **Full Changelog**: https://github.com/DanielGuru/repomemory/compare/v1.10.0...v1.11.0
- v1.10.0 | https://github.com/DanielGuru/repomemory/releases/tag/v1.10.0 | v1.10.0 **Full Changelog**: https://github.com/DanielGuru/repomemory/compare/v1.9.0...v1.10.0
- v1.9.0 | https://github.com/DanielGuru/repomemory/releases/tag/v1.9.0 | v1.9.0 **Full Changelog**: https://github.com/DanielGuru/repomemory/compare/v1.8.1...v1.9.0
- v1.8.1 | https://github.com/DanielGuru/repomemory/releases/tag/v1.8.1 | v1.8.1 **Full Changelog**: https://github.com/DanielGuru/repomemory/compare/v1.8.0...v1.8.1
- v1.8.0 | https://github.com/DanielGuru/repomemory/releases/tag/v1.8.0 | v1.8.0 **Full Changelog**: https://github.com/DanielGuru/repomemory/compare/v1.7.1...v1.8.0
- v1.7.1 | https://github.com/DanielGuru/repomemory/releases/tag/v1.7.1 | v1.7.1 **Full Changelog**: https://github.com/DanielGuru/repomemory/compare/v1.7.0...v1.7.1
- v1.7.0 | https://github.com/DanielGuru/repomemory/releases/tag/v1.7.0 | v1.7.0 **Full Changelog**: https://github.com/DanielGuru/repomemory/compare/v1.6.1...v1.7.0
- v1.6.1 | https://github.com/DanielGuru/repomemory/releases/tag/v1.6.1 | v1.6.1 **Full Changelog**: https://github.com/DanielGuru/repomemory/compare/v1.6.0...v1.6.1
- v1.6.0 | https://github.com/DanielGuru/repomemory/releases/tag/v1.6.0 | v1.6.0 **Full Changelog**: https://github.com/DanielGuru/repomemory/compare/v1.5.3...v1.6.0
- v1.5.3 | https://github.com/DanielGuru/repomemory/releases/tag/v1.5.3 | v1.5.3 ## What's Changed * feat: Gemini embeddings as default + in-memory embedding cache by @DanielGuru in https://github.com/DanielGuru/repomemory/pull/6 ## New Contributors * @DanielGuru made their first contribution in https://github.com/DanielGuru/repomemory/pull/6 **Full Changelog**: https://github.com/DanielGuru/repomemory/compare/v1.5.2...v1.5.3

### Latest Release: v1.11.0
**Full Changelog**: https://github.com/DanielGuru/repomemory/compare/v1.10.0...v1.11.0

<!-- evidence_pipeline_checked: true -->
<!-- evidence_injected: true -->

---

## Doramagic 踩坑日志

项目：danielguru/repomemory

摘要：发现 6 个潜在踩坑项，其中 0 个为 high/blocking；最高优先级：能力坑 - 能力判断依赖假设。

## 1. 能力坑 · 能力判断依赖假设

- 严重度：medium
- 证据强度：source_linked
- 发现：README/documentation is current enough for a first validation pass.
- 对用户的影响：假设不成立时，用户拿不到承诺的能力。
- 建议检查：将假设转成下游验证清单。
- 防护动作：假设必须转成验证项；没有验证结果前不能写成事实。
- 证据：capability.assumptions | mcp_registry:io.github.DanielGuru/repomemory:1.3.0 | https://registry.modelcontextprotocol.io/v0.1/servers/io.github.DanielGuru%2Frepomemory/versions/1.3.0 | README/documentation is current enough for a first validation pass.

## 2. 维护坑 · 维护活跃度未知

- 严重度：medium
- 证据强度：source_linked
- 发现：未记录 last_activity_observed。
- 对用户的影响：新项目、停更项目和活跃项目会被混在一起，推荐信任度下降。
- 建议检查：补 GitHub 最近 commit、release、issue/PR 响应信号。
- 防护动作：维护活跃度未知时，推荐强度不能标为高信任。
- 证据：evidence.maintainer_signals | mcp_registry:io.github.DanielGuru/repomemory:1.3.0 | https://registry.modelcontextprotocol.io/v0.1/servers/io.github.DanielGuru%2Frepomemory/versions/1.3.0 | last_activity_observed missing

## 3. 安全/权限坑 · 下游验证发现风险项

- 严重度：medium
- 证据强度：source_linked
- 发现：no_demo
- 对用户的影响：下游已经要求复核，不能在页面中弱化。
- 建议检查：进入安全/权限治理复核队列。
- 防护动作：下游风险存在时必须保持 review/recommendation 降级。
- 证据：downstream_validation.risk_items | mcp_registry:io.github.DanielGuru/repomemory:1.3.0 | https://registry.modelcontextprotocol.io/v0.1/servers/io.github.DanielGuru%2Frepomemory/versions/1.3.0 | no_demo; severity=medium

## 4. 安全/权限坑 · 存在评分风险

- 严重度：medium
- 证据强度：source_linked
- 发现：no_demo
- 对用户的影响：风险会影响是否适合普通用户安装。
- 建议检查：把风险写入边界卡，并确认是否需要人工复核。
- 防护动作：评分风险必须进入边界卡，不能只作为内部分数。
- 证据：risks.scoring_risks | mcp_registry:io.github.DanielGuru/repomemory:1.3.0 | https://registry.modelcontextprotocol.io/v0.1/servers/io.github.DanielGuru%2Frepomemory/versions/1.3.0 | no_demo; severity=medium

## 5. 维护坑 · issue/PR 响应质量未知

- 严重度：low
- 证据强度：source_linked
- 发现：issue_or_pr_quality=unknown。
- 对用户的影响：用户无法判断遇到问题后是否有人维护。
- 建议检查：抽样最近 issue/PR，判断是否长期无人处理。
- 防护动作：issue/PR 响应未知时，必须提示维护风险。
- 证据：evidence.maintainer_signals | mcp_registry:io.github.DanielGuru/repomemory:1.3.0 | https://registry.modelcontextprotocol.io/v0.1/servers/io.github.DanielGuru%2Frepomemory/versions/1.3.0 | issue_or_pr_quality=unknown

## 6. 维护坑 · 发布节奏不明确

- 严重度：low
- 证据强度：source_linked
- 发现：release_recency=unknown。
- 对用户的影响：安装命令和文档可能落后于代码，用户踩坑概率升高。
- 建议检查：确认最近 release/tag 和 README 安装命令是否一致。
- 防护动作：发布节奏未知或过期时，安装说明必须标注可能漂移。
- 证据：evidence.maintainer_signals | mcp_registry:io.github.DanielGuru/repomemory:1.3.0 | https://registry.modelcontextprotocol.io/v0.1/servers/io.github.DanielGuru%2Frepomemory/versions/1.3.0 | release_recency=unknown

<!-- canonical_name: danielguru/repomemory; human_manual_source: deepwiki_human_wiki -->
