Repomemory — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Repomemory (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<div align="center">
Turn coding-agent sessions into portable, repo-aware memory.
Claude broke the build. Codex picks it up. RepoMemory makes sure it doesn't repeat the same mistake. </div>
RepoMemory is a repo-aware memory layer + MCP server for coding agents. It captures what happened in one session and reuses it in the next. When context persists, momentum persists.
AI coding agents don't share memory by default. Each session starts from scratch. Known failures and rationale disappear. The same mistakes get repeated.
RepoMemory records failures, diffs, decisions, and file relationships. It stores this in a local memory graph and serves it to any MCP client. The next agent starts informed, not blind.
# Claude's session: refactoring fails
repomemory capture git-diff --agent claude
repomemory capture test --output "..." --status fail --agent claude
repomemory capture decision --message "Auth middleware needs JWT validation" --agent claude
# Switch to Codex: full context automatically
repomemory recall src/middleware/auth.ts
# → Recent failures: JWT validation missing in auth middleware
# → Decision: needs JWT validation before route handlers
# → Related files: src/routes/api.ts, src/config/jwt.ts# Daily usage
repomemory init
repomemory capture git-diff --agent codex --files src/middleware/auth.ts
repomemory search "jwt validation" --file src/middleware/auth.tsjson or sqlite)npm i -g repomemory
repomemory init
repomemory serveAlternative (no global install):
npx repomemory init
npx repomemory capture git-diff --agent codex
npx repomemory recall src/index.tsUse RepoMemory from any MCP client:
{
"mcpServers": {
"repomemory": {
"command": "npx",
"args": ["repomemory", "serve"]
}
}
}Compatible with:
| Tool | What it does | Typical prompt |
|---|---|---|
search_memory | Search memory entries by query/filter | "Find recent JWT auth failures" |
why_changed | Explain rationale behind file changes | "Why was middleware order changed?" |
recent_failures | List recent failed attempts | "What already failed in this area?" |
recall_context | Return consolidated file context | "Load context before I edit" |
related_files | Find files changed together | "What neighboring files matter here?" |
remember | Write a memory entry | "Save this decision" |
get_stats | Show memory activity and volume | "How much memory is captured?" |
graph TB
A[Agent Session] --> B[Capture]
B --> C[Memory Graph - SQLite]
C --> D[MCP Server]
D --> E[Next Agent Session]
B --> B1[git diff/commit]
B --> B2[test results]
B --> B3[terminal logs]
B --> B4[PR reviews]
B --> B5[decisions]Operational flow:
repomemory initInitializes .repomemory/ and local SQLite database. Usage:
repomemory init
repomemory init --forceNotes:
--force recreates storage.repomemory capture <type>Captures a memory entry for a source event.
Supported capture types:
git-diffgit-committerminaltestdecisionCommon options:
--agent <name>--message <text>--files <paths...>--tags <tags...>Examples:
repomemory capture git-diff --agent claude
repomemory capture decision --message "Validate JWT before route handlers" --files src/middleware/auth.ts
repomemory capture terminal --message "vitest auth suite failing" --tags failure auth
repomemory capture git-commit --agent codex --tags releaserepomemory search <query>Searches memory entries.
Filters:
--type <type>--agent <agent>--file <path>--limit <n> (default: 20)--since <date> (ISO-8601)Examples:
repomemory search "jwt" --file src/middleware/auth.ts --agent codex --limit 10
repomemory search "failing snapshot" --type test --since 2026-01-01
repomemory search "rate limit" --agent clauderepomemory recall <file>Recalls context for a target file.
Options:
--depth <n> (default: 10)--format <text|json> (default: text)Examples:
repomemory recall src/middleware/auth.ts
repomemory recall src/middleware/auth.ts --depth 15
repomemory recall src/middleware/auth.ts --format jsonTypical output includes:
repomemory serveStarts the MCP server.
Options:
--transport <stdio|sse> (default: stdio)--port <n> for SSE mode (default: 3000)Examples:
repomemory serve
repomemory serve --transport sse --port 4317repomemory exportExports captured memory.
Options:
--format <json|sqlite> (default: json)--output <path>Examples:
repomemory export --format json --output ./repomemory-export.json
repomemory export --format sqlite --output ./repomemory-export.dbrepomemory statsShows repository memory stats.
Usage:
repomemory statsRepoMemory uses a local-first, layered design.
Captures and structures:
Persists normalized records in SQLite tables:
entriesentry_filessessionsfile_relationsSupports:
Exposes memory operations as MCP tools for agent workflows.
npm install
npm run typecheck
npm test
npm run buildNode.js 20+ required.
Contributions are welcome. Please read CONTRIBUTING.md before opening a PR.
MIT © 2026 Lay4U. See LICENSE.
If RepoMemory helped you avoid repeated failures across sessions, star the project. It helps more teams discover practical, persistent memory for coding agents. Stop repeating the same mistakes across agent sessions.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.