Repo-scoped Shellbrain CLI with explicit evidence-backed writes.
Project description
ShellBrain
Long-term Memory for AI Agents.
Agents forget across sessions. They rediscover the same problems, repeat the same mistakes, and relearn what you already taught them. ShellBrain makes their work compound.
Install
curl -L shellbrain.ai/install | bash
Works for Codex, Claude Code, and Cursor. The installer runs shellbrain init for you. Repos register themselves on first use.
Requirements.
- macOS or Linux, Python 3.11+, Docker for the managed local Postgres+pgvector runtime.
Upgrade for latest capabilities
shellbrain upgrade
The install script also works as an upgrade path: curl -L shellbrain.ai/upgrade | bash. Manual alternative: pipx upgrade shellbrain && shellbrain init.
Recall in one command.
Episodic, empirical, conceptual. Three categories, one retrieval surface.
Architecture
Episodic knowledge is the evidence layer.
- What actually happened in the session: your prompts, the agent's steps, tool calls, and outputs.
Empirical knowledge is the concrete extracted layer.
- An ontology of problems, solutions, failed tactics, facts, preferences, changes.
- This is case-based reasoning in a semantic graph.
Conceptual knowledge is the abstractive layer.
- A higher-level concept graph with claims, relations, and implementations that link back to the concrete layer.
- Progressive disclosure. agents get oriented first, then ask for depth only where tasks require it.
The episodic layer is truth. Empirical memory extracts. Concept memory abstracts. Each layer is grounded in the one beneath it.
How Agents Use ShellBrain
Recall
Working agents call shellbrain recall. That is the normal interface they have to think about. One command, one carefully curated compact brief, with sources cited.
shellbrain recall --json '{"query":"What is ShellBrain and how does it help a working coding agent?","current_problem":{"goal":"understand ShellBrain","surface":"README","obstacle":"new readers do not know the product yet","hypothesis":"a real recall brief should show what agents get back"}}'
Response shape:
{
"status": "ok",
"data": {
"brief": {
"summary": "...",
"constraints": ["..."],
"known_traps": ["..."],
"prior_cases": ["..."],
"concept_orientation": ["..."],
"anchors": ["`README.md`"],
"conflicts": ["..."],
"gaps": ["..."],
"next_checks": ["..."],
"sources": [
{
"kind": "memory",
"id": "...",
"section": "direct"
}
]
},
"fallback_reason": null
},
"errors": []
}
Working agents focus on only their work.
Teach
Working agents call shellbrain teach for explicit teaching. You can tell an agent to remember important ideas.
Principled and Disciplined
Memory that is grounded in evidence, small in scope, and asked for rather than pushed is memory that compounds. Everything else is noise for working agents.
A memory layer that cannot justify itself should not persist.
How to Use ShellBrain
Use Shellbrain in your agent of choice. Then, just work normally.
Claude Code: Use /shellbrain to remember Shellbrain recall at the right task boundaries.
Codex: Use $shellbrain to remember Shellbrain recall at the right task boundaries.
Cursor: Use /shellbrain to remember Shellbrain recall at the right task boundaries.
Repair
shellbrain admin doctor to inspect. shellbrain init to repair if doctor flags it. Do not rerun init every session.
Docs
- For Humans — install, upgrade, getting started
- For Agents — agent workflow and write discipline
- Technical Docs — in-depth generated docs and codebase map
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shellbrain-0.1.46.tar.gz.
File metadata
- Download URL: shellbrain-0.1.46.tar.gz
- Upload date:
- Size: 558.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7629b9b6cf64f238d197ce80c5bc9a8b8e720410bfcc052312406c24da3d0157
|
|
| MD5 |
e9d3e3c54b9bb519c85c99d2a9591b44
|
|
| BLAKE2b-256 |
3d8db85cb434c0931a9c60c23304f5f030d651f5c723ab96e532d22a1f35ae6d
|
Provenance
The following attestation bundles were made for shellbrain-0.1.46.tar.gz:
Publisher:
release.yml on cucupac/shellbrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shellbrain-0.1.46.tar.gz -
Subject digest:
7629b9b6cf64f238d197ce80c5bc9a8b8e720410bfcc052312406c24da3d0157 - Sigstore transparency entry: 2064297674
- Sigstore integration time:
-
Permalink:
cucupac/shellbrain@be6933955b639d8dbce18af1bea931e61ff9d159 -
Branch / Tag:
refs/tags/v0.1.46 - Owner: https://github.com/cucupac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@be6933955b639d8dbce18af1bea931e61ff9d159 -
Trigger Event:
push
-
Statement type:
File details
Details for the file shellbrain-0.1.46-py3-none-any.whl.
File metadata
- Download URL: shellbrain-0.1.46-py3-none-any.whl
- Upload date:
- Size: 751.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76d944d454c74514a3994c2fcc9f86bdbfbf8d11e3f1f632863fa09b9e067dcc
|
|
| MD5 |
1d8a4e78b35a1314350cbb3d76d5a022
|
|
| BLAKE2b-256 |
a9418b43596613415c8646418c530d3c5dc7d6abab65488bc8a879d9f5be4828
|
Provenance
The following attestation bundles were made for shellbrain-0.1.46-py3-none-any.whl:
Publisher:
release.yml on cucupac/shellbrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shellbrain-0.1.46-py3-none-any.whl -
Subject digest:
76d944d454c74514a3994c2fcc9f86bdbfbf8d11e3f1f632863fa09b9e067dcc - Sigstore transparency entry: 2064297678
- Sigstore integration time:
-
Permalink:
cucupac/shellbrain@be6933955b639d8dbce18af1bea931e61ff9d159 -
Branch / Tag:
refs/tags/v0.1.46 - Owner: https://github.com/cucupac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@be6933955b639d8dbce18af1bea931e61ff9d159 -
Trigger Event:
push
-
Statement type: