Repo-scoped Shellbrain CLI with explicit evidence-backed writes.
Project description
Building a Brain
Shellbrain gives agent sessions repo-scoped long-term memory. It stores what happened, what worked, what failed, and what the human prefers — then retrieves the relevant pieces the moment a similar problem surfaces. Every session compounds into the next.
Install
curl -L shellbrain.ai/install | bash
One command on supported machines. The installer provisions the local runtime, installs the Codex and Claude skills, wires the Claude SessionStart hook, and runs shellbrain init for you when the managed-local prerequisites are met. Repos register themselves on first use.
Managed-local requirements
- macOS or Linux
- Python 3.11+ required
- Docker installed and the daemon running
- first init downloads a local embedding model
- PostgreSQL + pgvector run inside the managed Docker runtime
- Windows is not supported yet
- external Postgres remains an advanced/operator-managed path for now
The repo Dockerfile is for packaging and development smoke coverage. It is not the end-user runtime path.
Upgrade
shellbrain upgrade
Upgrades the package and reruns init. Skills, hooks, and the managed runtime all refresh in one pass.
The install script also works as an upgrade path — curl -L shellbrain.ai/upgrade | bash if you prefer. Manual alternative: pipx upgrade shellbrain && shellbrain init.
Use it
You use shellbrain by launching a skill in your agent.
Codex: Use $shellbrain-session-start to get up to speed in this repo with shellbrain and record durable evidence-backed learnings.
Claude Code: Use Shellbrain Session Start to get up to speed in this repo with shellbrain and record durable evidence-backed learnings.
The agent handles everything from there — reading prior context, gathering evidence, writing durable memories at session end. You don't manage any of this directly.
Four operations
read retrieves durable memories related to a concrete problem. Re-run whenever the search shifts.
events syncs the active transcript. Returns episode event ids to cite as evidence. Run before every write.
create writes one durable memory. At least one evidence reference required.
update records utility votes, truth-evolution links, explicit associations, or archive state.
The rhythm: read first, events before writes, create/update at session end. Do not rerun shellbrain init every session.
Repair
shellbrain admin doctor is the inspect path when something feels wrong.
shellbrain init is the repair path if doctor says repair_needed. The installer already ran it once — you only rerun it to fix things.
If shellbrain isn't found in a tool shell, retry through the shell-specific path the installer configured:
zsh -lc 'source ~/.zprofile >/dev/null 2>&1; shellbrain --help'
bash -lc 'source ~/.bash_profile >/dev/null 2>&1; shellbrain --help'
Fish PATH setup is written to ~/.config/fish/conf.d/shellbrain.fish.
Docs
- shellbrain.ai/humans — install, upgrade, getting started
- shellbrain.ai/agents — how agents use shellbrain, with a sitemap to every page
- shellbrain.ai/recall — how the read pipeline works
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.9.tar.gz.
File metadata
- Download URL: shellbrain-0.1.9.tar.gz
- Upload date:
- Size: 141.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9798199c55e8ad06add734572aa85882cb4f90c36229a68a85a7a2c629ba713
|
|
| MD5 |
92514e7ee7fed7376471c54bda753780
|
|
| BLAKE2b-256 |
41bdc7d0515834da96bb98d0ad94a93b9b43afa196d682ddcccdb69ba1d1864a
|
Provenance
The following attestation bundles were made for shellbrain-0.1.9.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.9.tar.gz -
Subject digest:
d9798199c55e8ad06add734572aa85882cb4f90c36229a68a85a7a2c629ba713 - Sigstore transparency entry: 1181434611
- Sigstore integration time:
-
Permalink:
cucupac/shellbrain@c0e8c0c162967d311e5d7dd75ca513b6f8b39737 -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/cucupac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c0e8c0c162967d311e5d7dd75ca513b6f8b39737 -
Trigger Event:
push
-
Statement type:
File details
Details for the file shellbrain-0.1.9-py3-none-any.whl.
File metadata
- Download URL: shellbrain-0.1.9-py3-none-any.whl
- Upload date:
- Size: 205.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
febb247b1157227629ed0df701f3a030173cca41e9b23514a033a2b25112b047
|
|
| MD5 |
edc24c0ff1e8964de061e6954f71b634
|
|
| BLAKE2b-256 |
ba99fca92b222e1859251f5a60a493d267ff63461e9484e43f860754a76a3b7d
|
Provenance
The following attestation bundles were made for shellbrain-0.1.9-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.9-py3-none-any.whl -
Subject digest:
febb247b1157227629ed0df701f3a030173cca41e9b23514a033a2b25112b047 - Sigstore transparency entry: 1181434613
- Sigstore integration time:
-
Permalink:
cucupac/shellbrain@c0e8c0c162967d311e5d7dd75ca513b6f8b39737 -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/cucupac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c0e8c0c162967d311e5d7dd75ca513b6f8b39737 -
Trigger Event:
push
-
Statement type: