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

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.67
File Size Uploaded Provenance
shellbrain-0.1.67.tar.gz 361.4 kB With provenance Details

Built distribution (wheel)

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

Total release size: 886.2 kB

Release files / shellbrain-0.1.67.tar.gz

Download URL shellbrain-0.1.67.tar.gz
Size 361.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bf50b7089d2a7e5168c83232c5c5ed4acb0d7ae6c10d74595ab9cf2163fe5ff8
BLAKE2b-256 checksum
How to use checksums
761d354db2a1e57f50da9d1a7839a159de6f25e85ff517542cfbae9fa5ae54eb
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.67-py3-none-any.whl

Download URL shellbrain-0.1.67-py3-none-any.whl
Size 524.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6acd57e373fad51a915eee07fea44b02509a3ca6d9697e44db91b145668b15cf
BLAKE2b-256 checksum
How to use checksums
c07926a149d9e850dc659a07282aa5841279c32f9971aff71b0e52528ebbb3af
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.67

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