Skip to main content

Repo-scoped Shellbrain CLI with explicit evidence-backed writes.

Project description

ShellBrain logo

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.

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 konwledge 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

Working agents call 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 context matters for this migration lock timeout?","current_problem":{"goal":"fix the migration hang","surface":"db admin","obstacle":"lock timeout","hypothesis":"none yet"}}'

Lower-level commands exist for inner agents.

  • read, events, concept show, memory add, memory update, concept add, concept update

When a user explicitly says to store or teach Shellbrain something, working agents can call teach. It stores the statement as evidence and immediately runs Shellbrain's teach agent.

Working agents focus on only their work.


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.


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.


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 — it is not a no-op.


Docs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shellbrain-0.1.35.tar.gz (477.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shellbrain-0.1.35-py3-none-any.whl (645.1 kB view details)

Uploaded Python 3

File details

Details for the file shellbrain-0.1.35.tar.gz.

File metadata

  • Download URL: shellbrain-0.1.35.tar.gz
  • Upload date:
  • Size: 477.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for shellbrain-0.1.35.tar.gz
Algorithm Hash digest
SHA256 77da5a9d7883fc6e7e37667d9b65eba952a68778b5d9c48133868fbf5ba27d5b
MD5 7a1b92c7d09e66fe3aad68ec1f706850
BLAKE2b-256 fc97fded9a5abfd39c4a174e15f98248e8096528da58666eff23da6dad499d8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for shellbrain-0.1.35.tar.gz:

Publisher: release.yml on cucupac/shellbrain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shellbrain-0.1.35-py3-none-any.whl.

File metadata

  • Download URL: shellbrain-0.1.35-py3-none-any.whl
  • Upload date:
  • Size: 645.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for shellbrain-0.1.35-py3-none-any.whl
Algorithm Hash digest
SHA256 25dff7a53637046b4b04c2d8965d150a911cd378374dfc3f2287b4a9ce5a86a5
MD5 bca9bd1c52c61b69d2cfe7e4cebe7d87
BLAKE2b-256 5398dbd214d29966e07ff42e4b6dde51b36f220992cfc3c8cf9e07111c4635f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for shellbrain-0.1.35-py3-none-any.whl:

Publisher: release.yml on cucupac/shellbrain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page