ShellBrain
Long-term Memory for AI.
ShellBrain uses case-based reasoning and a self-managing concept graph as long-term memory for software engineering.
Install
curl -L shellbrain.ai/install | bash
Works for Codex, Claude Code, and Cursor.
Requirements.
- macOS or Linux, Python 3.11+, Docker.
Upgrade for Latest Capabilities
shellbrain upgrade
Recall in One Command
Architecture
ShellBrain stores evidence and two forms of reusable knowledge:
- Episodic Memory. It stores prompts, responses, and tool calls.
- Case-Based Memory. Problems, solutions, and failed attempts are structured and stored.
- Concept Graph. It connects claims, relations, and implementations.
Memories and concepts link directly to supporting evidence. The code is the source of truth.
How Agents Use ShellBrain
Recall
Working agents run shellbrain recall for long-term memory related to their current task.
Recall combines BM25, vector similarity, and explicit graph associations.
shellbrain recall "What is ShellBrain, and how does it help a working coding agent?"
Response:
{
"status": "ok",
"data": {
"brief": {
"summary": "...",
"constraints": ["..."],
"known_traps": ["..."],
"prior_cases": ["..."],
"concept_orientation": ["..."],
"anchors": ["`README.md`"],
"conflicts": ["..."],
"gaps": ["..."],
"next_checks": ["..."]
},
"fallback_reason": null
},
"errors": []
}
If there are no relevant memories, nothing is returned.
Recall Provider
For blazing fast recall for cheap, get an Inception API key and run:
mkdir -p ~/.shellbrain
printf '\nINCEPTION_API_KEY=%s\n' 'PASTE_YOUR_KEY_HERE' >> ~/.shellbrain/.env
chmod 600 ~/.shellbrain/.env
shellbrain admin recall provider inception
Switch back with shellbrain admin recall provider codex, or choose claude.
Tune recall in ~/.shellbrain/recall.yaml (optional; these are the defaults):
recall:
max_memories: 12
max_concepts: 4
max_neighbor_concepts: 2
max_claims_per_concept: 3
max_groundings_per_concept: 2
max_input_tokens: 8000
The input budget uses a byte-based token estimate. Settings affect recall synthesis only.
Docs
Metadata
Release files for shellbrain 0.1.65
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| shellbrain-0.1.65.tar.gz | 364.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shellbrain-0.1.65-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 891.9 kB
Release files / shellbrain-0.1.65.tar.gz
| Download URL | shellbrain-0.1.65.tar.gz |
|---|---|
| Size | 364.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
987a894acc1eaf5afb9c77727cdd80916ca48b5d47aebc18bf673b00c4962aaf
|
|
BLAKE2b-256 checksum How to use checksums |
0b4d67ab1e62c196811f921ee3fff11620bb55c5f33e37736bc5fdb7fc8a416b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / shellbrain-0.1.65-py3-none-any.whl
| Download URL | shellbrain-0.1.65-py3-none-any.whl |
|---|---|
| Size | 527.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e493f921cf1a4cda042edc3b48e50a812ad97bd0c12ea711872a240978513746
|
|
BLAKE2b-256 checksum How to use checksums |
6167f7d3dcce24d4a4911c2c67616e95b99b6ad57a8b470c405231c2670242ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logSecurity for shellbrain 0.1.65
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for shellbrain-0.1.65.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.