3.0 KiB
3.0 KiB
name, description
| name | description |
|---|---|
| repo-memory | Durable repository memory through a bundled repo-memory CLI. Use when an agent needs to search prior project knowledge, ingest curated docs, record confirmed repository facts, inspect knowledge history, or verify whether stored knowledge may have gone stale in a local SQLite memory database instead of rediscovering the same repository context from scratch. |
Repo Memory
Use the bundled ./assets/repo-memory CLI to maintain and query durable repository memory.
Quick Start
- Invoke
./assets/repo-memoryrelative to this skill directory. - Default database path:
~/.codex/data/repo-memory.db. - Prefer searching before a deep repo dive so repeated work starts from existing knowledge.
- Run
initbefore first use on a new database path.
Rules
- Write only durable repository knowledge, not short-lived chat conclusions.
- Use
draftfor partial or single-evidence findings; useconfirmedonly when the fact is well-supported and traceable. - Include concrete evidence whenever possible:
source_path,source_line,verified_on_commit, aliases, and dependencies. - Search and inspect before adding a near-duplicate entry.
- Use
verifywhen code has moved enough that stored knowledge may need review.
Typical Commands
./assets/repo-memory init --db ~/.codex/data/repo-memory.db
./assets/repo-memory search --db ~/.codex/data/repo-memory.db --repo zeus --query "ai insight fill"
./assets/repo-memory ingest --db ~/.codex/data/repo-memory.db --repo /Users/xd/java/zeus
./assets/repo-memory add --db ~/.codex/data/repo-memory.db --repo /Users/xd/java/zeus --kind term --key AITask --summary "Plan 内嵌任务结构,不是独立表" --source-path /Users/xd/java/zeus/app/app/src/main/java/foo/AITask.java --source-line 42 --status confirmed --alias "AI Task" --dep file:/Users/xd/java/zeus/app/app/src/main/java/foo/AITask.java:hard
./assets/repo-memory list --db ~/.codex/data/repo-memory.db --repo zeus --kind term
./assets/repo-memory events --db ~/.codex/data/repo-memory.db --id 1
./assets/repo-memory verify --db ~/.codex/data/repo-memory.db --repo /Users/xd/java/zeus
./assets/repo-memory repos --db ~/.codex/data/repo-memory.db
Command Map
init: initialize the repository-memory SQLite schemasearch: query stored repository knowledge before diving into codeingest: import structured knowledge fromdocs/aimarkdownadd: insert or update one durable knowledge entrylist: inspect entries by repo or kindevents: inspect history for one knowledge entrylink: create a relationship between two entriesverify: downgrade entries that may be stale after repo changesrepos: list tracked repositories in the memory database
Notes
- The CLI is intentionally lightweight; use it to anchor stable facts, not to replace real repo inspection.
- Start with API paths, routes, table names, log phrases, or concrete file paths when searching.
- If the bundled binary cannot execute on the current host, stop and report the compatibility issue instead of guessing a replacement workflow.