recall-os
v0.5.0
Published
Architecture-neutral repository memory for AI-assisted software teams.
Downloads
1,336
Maintainers
Readme
Recall OS
Durable, AI-ready engineering memory for your repository — and a deterministic doctor that
proves it stays healthy.
Recall OS is a local-first CLI that turns a repository into the source of truth for why it is
built the way it is. It creates structured, reviewable memory — product intent, architecture
decisions, module ownership, testing and security expectations, AI agent rules — and then
validates that memory with recall doctor. Architecture-neutral. No network, no telemetry, no
code generation.
Website · Install · Quickstart · Commands · What Doctor Checks · Presets · Why I built this · Contributing

AI can write code fast, but its context is temporary — it forgets decisions, compacts conversations, and drifts from earlier intent. Git records what changed. Recall OS records why, in a form humans and agents can re-read and validate before and after work.
What are we building? Why did we decide this?
What must not drift? What evidence proves this work is complete?When these questions live in the repository instead of a chat window, the repository can answer them.
Not a vector memory engine. Tools like supermemory or mem0 retrieve information with embeddings; Recall OS writes the decisions themselves — reviewable files, not vectors — and checks they stay consistent. They're complementary, not competitors. → Why I built this
Why Recall OS
- Memory that outlives the conversation. Decisions, constraints, and ownership are committed to the repo, not trapped in an agent's context window.
- A gate, not just docs.
recall doctoris deterministic and returns an exit code, so "is this work actually finished and consistent?" becomes a check you can run in a hook or CI. - Decisions change safely. When a decision changes,
recall adr supersederecords it (the old ADR is marked superseded, the new one links back) and Doctor flags any memory still citing the old one — so the trail stays auditable instead of silently contradicted. The generated agent rules even carry the CLI commands inline, so your AI tool uses them itself. - Architecture-neutral by design. Recall OS records and protects your decisions. It never silently picks a framework, database, or pattern for you.
- Local-first and private. No network calls, no telemetry, no AI API calls, no remote templates. It runs entirely on your machine.
- Safe by default. Non-destructive writes, path-traversal and symlink protection, and a refusal to overwrite an existing installation without explicit intent.
Install
Run it without installing — the quickest way to try it:
npx recall-os@latest initEvery command works the same way: npx recall-os <command> (e.g. npx recall-os doctor).
Or install the CLI globally:
npm install -g recall-os
recall --help(Requires Node.js >= 20. Published at npmjs.com/package/recall-os.)
Quickstart
# 1. Create repository memory (architecture-neutral, or pick an opinion pack)
recall init
recall init --preset kotlin-android # optional, proposes stack decisions
# 2. Capture intent and decisions as you work
recall feature create checkout
recall adr create payment-provider
recall adr accept payment-provider # promote a proposal to accepted memory
# 3. Bring an MCP server's context into durable memory (offline)
recall mcp add figma
# 4. Validate the memory is healthy and complete
recall doctorEvery command guides you — it names the file it created, where it is, and what to do next.
Generate files only for the AI tools you use: recall init --ai-tools claude,cursor (default: all
of claude, codex, cursor; AGENTS.md is always written).
recall init also generates tracked pre-commit and pre-push hooks in .recall/hooks/ that run
recall doctor plus any gates you configure. The pre-push hook is the final regression gate before
code leaves your machine (it catches commits made with --no-verify or before the hook was active).
Enable them once per clone — Recall OS proposes the command but never runs it for you:
git config core.hooksPath .recall/hooksCommands
| Command | Purpose |
| ---------------------------------- | ------------------------------------------------------------------------------ |
| recall init | Create neutral repository memory (and a pre-commit hook). |
| recall init --preset <id> | Add an opinion pack: rich guidance and proposed ADRs. |
| recall init --ai-tools <list> | Generate files only for the AI tools you use (claude, codex, cursor, generic). |
| recall adopt | Inspect an existing repo and propose reviewable memory. |
| recall preset list | List built-in presets. |
| recall feature create <name> | Scaffold feature memory (PRD, acceptance, tests, review). |
| recall adr create <title> | Create a proposed architecture decision record. |
| recall adr accept <name> | Promote a proposed ADR to accepted source-of-truth. |
| recall adr supersede <old> <new> | Record a changed decision: mark the old ADR superseded by a new accepted ADR. |
| recall module create <name> | Scaffold module memory (ownership, boundaries, tests). |
| recall skill create <name> | Generate a portable AI agent skill (Claude + Agent Skills). |
| recall skill list | List the built-in agent skill catalog. |
| recall mcp add <server> | Generate offline, proposed memory for an MCP server. |
| recall doctor | Validate memory health, evidence, and drift. |
| recall guard --source <dirs> | Fail when staged source changed without tests (add to your gates to enforce). |
What Doctor Checks
recall doctor is the part that makes Recall OS more than a template. Every check is deterministic,
local, and read-only.
| Category | Detects | Severity |
| ------------------- | ------------------------------------------------------------------------------------------- | ------------ |
| Structure | Missing config, required docs, or feature / module / ADR sections | error |
| Completion evidence | A feature marked complete with review pending or no test / result evidence | error |
| ADR quality | An accepted ADR with no meaningful consequences | error / warn |
| Security | A security-sensitive feature with no documented security impact | error / warn |
| Drift | Memory that references a missing, or not-yet-accepted, ADR | error / warn |
| Superseded | Memory still citing a decision that has been superseded by a newer ADR | warning |
| Staleness | Memory citing src/ code that changed long after the memory did (git-based; off-git skips) | warning |
| Context budget | The always-loaded agent files (CLAUDE.md + AGENTS.md + Cursor rule) grown past a budget | warning |
| Content | A feature PRD, module, or (once work exists) the threat / security model left as a stub | warning |
Exit codes: 0 = healthy 1 = warnings only 2 = errorsBecause it returns an exit code, Doctor drops straight into the completion loop:
pnpm test:run && pnpm typecheck && recall doctorUse it locally via the generated pre-commit hook, or add recall doctor as a step in CI.
Presets
Presets are opinion packs. They ship proposed guidance and proposed ADRs for a stack's real
decision forks — and they can never silently accept a choice for you (the schema enforces Proposed
status on every preset decision).
| Preset | Stack | Proposes (always as proposed ADRs) |
| ---------------- | ---------------- | ----------------------------------------------------------------------------------- |
| laravel-react | Laravel + React | Laravel, Inertia + React, Eloquent, Sanctum, Form Requests + Policies, queues, Pest |
| laravel-vue | Laravel + Vue | Laravel, Inertia + Vue, Eloquent, Sanctum, Form Requests + Policies, queues, Pest |
| laravel-api | Laravel (API) | Laravel, versioned REST + API Resources, Eloquent, Sanctum, queues, Pest |
| kotlin-android | Kotlin / Android | Compose, Coroutines + Flow, Hilt, Room, MVVM |
| python-fastapi | Python / FastAPI | FastAPI, PostgreSQL + SQLAlchemy, Pydantic, pytest, Redis |
| ios-swift | iOS / Swift | SwiftUI, async/await + Observation, SwiftData, MVVM |
| nextjs | Next.js / TS | App Router, typed data layer, Tailwind, Vitest + Playwright |
| flutter | Flutter | Platform and state-management guidance |
| generic | none | Architecture-neutral memory |
Adding a preset is a small contribution — see CONTRIBUTING.md.
How It Works

How agents load the memory
Writing memory only helps if the agent reads it, so recall init wires each tool with its own
native mechanism:
| Tool | How memory loads |
| --------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Claude Code | CLAUDE.md (auto) imports AGENTS.md; a SessionStart hook injects a live map of accepted ADRs and modules every session. |
| Cursor | .cursor/rules/recall-memory.mdc is an always-apply rule that loads the memory rules into every request. |
| Codex | AGENTS.md is auto-discovered and loaded. |
The portable guarantee across every tool is AGENTS.md plus the generated Agent Skills
(.agents/skills/). The dynamic per-session ADR/module map is a Claude Code bonus; the Cursor rule
and AGENTS.md carry the same rules everywhere else.
Repository Memory
Recall OS creates a memory structure under docs/ and .recall/config.json, with an explicit
source-of-truth order:
1. Accepted ADRs and repository decisions 6. Module docs
2. Architecture docs 7. Feature plans
3. Engineering standards 8. Task files
4. Current PRD and accepted changes 9. External context
5. Security and testing docs 10. Chat historyIf external context or chat history conflicts with repository memory, repository memory wins.
Local-First Guarantees
Recall OS does not:
- make network calls at runtime;
- collect telemetry;
- connect to MCP servers or call AI APIs;
- generate production application code;
- install dependencies into your repository;
- overwrite existing files by default.
Examples
Committed sample outputs show the exact memory each preset generates:
examples/generated-generic/ examples/generated-kotlin-android/
examples/generated-nextjs/ examples/generated-python-fastapi/
examples/generated-ios-swift/ examples/generated-flutter/
examples/generated-laravel-react/ examples/generated-laravel-vue/
examples/generated-laravel-api/Development
pnpm install
pnpm lint
pnpm format:check
pnpm test:run
pnpm typecheck
pnpm build
pnpm pack:checkRun the gates above and recall doctor before claiming work is complete. See
CONTRIBUTING.md for the full workflow and how to add a preset, and
SECURITY.md for the security model.
Acknowledgments
The landing page is deployed with Pagecast — thank you.
License
MIT — see LICENSE.
