by sulabhdubey
Local-first, evidence-aware project memory for AI coding agents.
# Add to your Claude Code skills
git clone https://github.com/sulabhdubey/rta-smriti-brainGuides for using ai agents skills like rta-smriti-brain.
rta-smriti-brain is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by sulabhdubey. Local-first, evidence-aware project memory for AI coding agents. It has 51 GitHub stars.
rta-smriti-brain's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/sulabhdubey/rta-smriti-brain" and add it to your Claude Code skills directory (see the Installation section above). rta-smriti-brain ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
rta-smriti-brain is primarily written in Python. It is open-source under sulabhdubey on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh rta-smriti-brain against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Use this skill when working in a project that has a Rta-Smriti SQLite brain or when the user asks for durable local project memory.
Verify the brain:
rta-brain.cmd doctor --json --db <brain.sqlite>
If rta-brain.cmd is not on PATH, run it by absolute path from the Rta-Smriti deliverable folder.
To make wrappers available from any project:
rta-brain.cmd install-local --target "$env:USERPROFILE\.local\bin" --json
Add that target folder to PATH if needed.
Create one brain per project. Use the exact rta-brain wrapper path returned by
install-local; Windows wrappers end in .cmd, while macOS and Linux wrappers
have no suffix. The examples below assume the wrapper directory is on PATH.
Windows PowerShell:
rta-brain.cmd bootstrap-project <repo-path> --project <project-name> --brain-dir "$env:USERPROFILE\Documents\Rta-Smriti\brains" --write-agents --json
Then verify readiness:
rta-brain.cmd --db "$env:USERPROFILE\Documents\Rta-Smriti\brains\<project-name>.sqlite" self-check --project <project-name> --json
macOS or Linux:
rta-brain bootstrap-project <repo-path> --project <project-name> --brain-dir "$HOME/.local/share/rta-smriti/brains" --write-agents --json
rta-brain --db "$HOME/.local/share/rta-smriti/brains/<project-name>.sqlite" self-check --project <project-name> --json
If the host supports MCP, generate a native configuration from the CLI:
rta-brain.cmd --db <brain.sqlite> --json mcp-config --project <project-name> --name rta-smriti
rta-brain --db <brain.sqlite> --json mcp-config --project <project-name> --name rta-smriti
Available MCP tools:
brain_searchbrain_context_packbrain_rememberbrain_ingest_repobrain_ingest_threadbrain_repo_mapbrain_stale_checkbrain_checkpointbrain_continuation_promptbrain_reflectbrain_doctorGenerate a context pack:
rta-brain.cmd context-pack "<task>" --project <project-name> --db <brain.sqlite>
Verify the canonical root and Git identity at the top of the pack. Read the freshness line; if it says stale, re-read changed or missing files before relying on memory-derived context.
rta-brain.cmd search "<query>" --project <project-name> --json --db <brain.sqlite>
Prefer exact project-scoped searches. Use results as pointers to evidence, not as a replacement for current file reads.
Use one atomic memory per command:
rta-brain.cmd remember "<durable fact>" --type decision --pramana sabda --project <project-name> --priority 8 --db <brain.sqlite>
For a verified claim, attach --source-path, --source-hash, --verification-command, and --verification-status verified.
Pramana policy:
pratyaksha: directly observed from file, test, tool, or command output.sabda: user instruction or trusted documentation.anumana: inference.smriti: prior memory.kalpana: hypothesis or creative possibility.rta-brain.cmd ingest-repo <repo-path> --project <project-name> --db <brain.sqlite>
Run after meaningful code or documentation changes.
When a long thread, rollout summary, handoff, or JSONL session contains useful context:
rta-brain.cmd ingest-thread <thread-or-handoff-path> --project <project-name> --title "<short title>" --db <brain.sqlite>
Then run reflection:
rta-brain.cmd reflect --project <project-name> --json --db <brain.sqlite>
Save a structured checkpoint before handing work to another task or agent:
rta-brain.cmd checkpoint --project <project-name> --db <brain.sqlite> --objective "<objective>" --verified-evidence "<verified evidence>" --remaining-gaps "<remaining gaps>" --next-action "<next action>" --prohibited-repetition "<do not repeat>"
Use continue-prompt or the dashboard's Copy New Task Prompt action for the next task.
A sovereign, local project-memory and evidence layer for AI coding agents.
Rta-Smriti gives every project a durable memory: repository structure, agent sessions, decisions, evidence, and the exact state needed to continue work without retelling the story.

Install | Current release | Live website | Documentation | Discussions
Current release: v1.1.0-alpha. Trusted lifecycle operation now sits beside Project Reality, governed context, temporal truth, repository intelligence, and local capture.
Current maturity:
v1.1.0-alphais an advanced early-adopter release for Windows, macOS, and Linux. It is useful for real projects, but it is not yet presented as a broadly supported production platform. Read the bounded release verification record.
Every new agent session begins with an expensive question: what is true about this project right now? Repositories hold code, chats hold decisions, tools hold test results, and people hold the constraints. Ordinary retrieval collapses them into text.
Rta-Smriti keeps them local, connected, time-aware, and evidence-labelled.
flowchart LR
A[Repository] --> B[Rta-Smriti Brain]
C[Agent sessions] --> B
D[Decisions and checkpoints] --> B
E[Local evidence] --> B
B --> F[Project Reality]
B --> G[Governed context pack]
B --> H[Fresh-session continuation]
B --> I[Impact and conflict signals]
| Need | Rta-Smriti capability |
|---|---|
| Start a new agent task without retelling everything | Bounded context packs and structured continuation checkpoints |
| Know whether recalled context deserves trust | Evidence provenance, hashes, freshness, and pramana labels |
| Understand a repository beyond keyword search | Files, symbols, imports, calls, tests, memories, and evidence graph |
| Detect drift and contradiction | Canonical project identity, bitemporal truth, conflict and decision-debt views |
| Preserve long-running agent work | Incremental, redacted, resumable session capture and immutable event history |
| Operate local services without guesswork | Preview-confirmed lifecycle plans, independent health axes, repair, and receipts |
| Use multiple AI coding hosts | Local stdio MCP plus recipes for Codex, Claude Code, Cursor, Zed, OpenCode, and Gemini CLI |
| Keep project data private | Local SQLite, no telemetry, no cloud database, explicit capture grants |

The 60-second v1 product demo
was captured from v1.0.2. It demonstrates the Project Reality foundation; the
v1.1 Trusted Lifecycle Supervisor shown above was added later.
Rta-Smriti indexes the canonical Git checkout into project-scoped SQLite. It records content hashes, symbols, imports, evidence, temporal state, and durable memories without uploading the project to a hosted service.
flowchart TB
O[Direct observation<br/>pratyaksha] --> T[Accepted project truth]
S[Trusted instruction<br/>sabda] --> T
I[Inference<br/>anumana] --> R[Review required]
M[Prior memory<br/>smriti] --> R
K[Hypothesis<br/>kalpana] --> R
R -->|verified and promoted| T
A test result, a human instruction, an inference, and a brainstorm are not treated as the same kind of fact. Claims retain their source, verification state, and valid time.
The context compiler selects direct evidence before low-trust history, obeys explicit token budgets and privacy grants, and emits a selection receipt explaining what was included and why.
flowchart LR
A[Inspect] --> B[Plan]
B --> C[Review risks and backups]
C --> D[Approve]
D --> E[Apply]
E --> F[Verify]
F --> G[Immutable receipt]
F -->|degraded| H[Repair or rollback]
H --> F
Database, repository, capture, continuation, MCP, and federation health remain independent. A running process alone never proves that continuation is ready.
Requirements: Python 3.11 or newer and Git. Node.js is needed only to modify the dashboard or website source.
The v1 Project Reality CLI is the shared entry point for onboarding, search, continuation, lifecycle operation, MCP configuration, and the local console.
git clone https://github.com/sulabhdubey/rta-smriti-brain.git
cd .\rta-smriti-brain
python -m venv .venv
& .\.venv\Scripts\python.exe -m pip install .
$RtaBrain = Join-Path $PWD ".venv\Scripts\rta-brain.exe"
$BrainDir = "$env:USERPROFILE\Documents\Rta-Smriti\brains"
& $RtaBrain start C:\path\to\my-project --project my-project --brain-dir $BrainDir --write-agents
git clone https://github.com/sulabhdubey/rta-smriti-brain.git
cd rta-smriti-brain
python3 -m venv .venv
./.venv/bin/python -m pip install .
RtaBrain="$PWD/.venv/bin/rta-brain"
BrainDir="$HOME/.local/share/rta-smriti/brains"
"$RtaBrain" start /path/to/my-project --project my-project --brain-dir "$BrainDir" --write-agents
start detects the canonical Git root, creates or migrates the brain, indexes the
repository, starts managed sync, starts matching Codex continuity capture when local
sessions exist, and opens an authorized local console. Use --no-continuity on machines
without local Codex sessions.
Prefer a standalone binary? Download the Windows, macOS, or Linux artifact and its SBOM
from the v1.1.0-alpha release,
then verify it against SHA256SUMS.txt.
flowchart LR
subgraph Machine[Your machine]
P[Project checkout] --> R[Rta-Smriti]
A[Authorized agent sessions] --> R
R --> S[(Local SQLite brain)]
R --> C[Loopback operator console]
R --> M[Local MCP server]
end
R -. no telemetry .-> X[No Rta-Smriti cloud]
Read the complete security and privacy policy before handling sensitive repositories. Report vulnerabilities through the private process documented there.
flowchart TB
CLI[CLI] --> K[Project Cognition Kernel]
MCP[stdio MCP] --> K
UI[Local Operator Console] --> K
K --> ID[Canonical identity]
K --> EV[Append-only event journal]
K --> BT[Bitemporal truth]
K --> RG[Repository graph]
K --> CP[Governed context compiler]
K --> LS[Trusted lifecycle supervisor]
ID --> DB[(Project-scoped SQLite)]
EV --> DB
BT --> DB
RG --> DB
Rta-Smriti is deliberately an evidence and continuity layer. It does not execute project work, choose models, silently edit host configuration, or replace an agent harness such as RTA-Net AI.
The current prerelease includes:
Green tests are not presented as proof of universal correctness. Exact scope, known limits, and remaining external-host gates are recorded in Release Verification.
| Start here | What it covers |
|---|---|
| Installation | Source inst |