Skip to main content

ShellBrain logo

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

ShellBrain recall uses vector search and BM25 to search your memories. An inner recall agent summarizes the search results.


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": {
      "memories": ["Relevant remembered context."],
      "code": ["README.md"]
    },
    "fallback_reason": null
  },
  "errors": []
}

Terminals show styled Memories and Code bullets. Pipes receive JSON. If no useful memory is found, both lists are empty. Provider failures return errors.

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.


Docs

Metadata

Release files for shellbrain 0.1.68

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shellbrain 0.1.68
File Size Uploaded Provenance
shellbrain-0.1.68.tar.gz 361.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for shellbrain 0.1.68
File Interpreter ABI Platform
shellbrain-0.1.68-py3-none-any.whl Python 3 none any Details

Total release size: 886.2 kB

Release files / shellbrain-0.1.68.tar.gz

Download URL shellbrain-0.1.68.tar.gz
Size 361.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c4907c35dc2ce1adfbf132d46a9fb7574ab410959e46de23f66b084008bc1f9f
BLAKE2b-256 checksum
How to use checksums
621349e76f3903322e81ac85acca9e3b0a3388cc909abc3e1e3d3efacb78ad6e
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 log

Release files / shellbrain-0.1.68-py3-none-any.whl

Download URL shellbrain-0.1.68-py3-none-any.whl
Size 524.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dd2f3447882104331e484c222b449e9cc3503027d3f9a3bd39045f1129ad34e
BLAKE2b-256 checksum
How to use checksums
19377747bcccd20420095be18332b25f5a1e22faab7b78870516c8947d42f5c7
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 log

Security for shellbrain 0.1.68

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.

Select from 2 files

Attestation for shellbrain-0.1.68.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 log

A 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.

Release history Release notifications | RSS feed

This release

0.1.68 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page