Skip to main content

Semantic checkpointing for Claude Code

Project description

Sage

Memory for Claude Code. Research → checkpoint → compaction → auto-restore.

┌─────────────┐    ┌─────────────┐    ┌─────────────┐
│  Research   │───▶│ Checkpoint  │───▶│  Compaction │
│  with Claude│    │  (auto)     │    │  happens    │
└─────────────┘    └─────────────┘    └──────┬──────┘
                                             │
┌─────────────┐    ┌─────────────┐           │
│  Continue   │◀───│ Auto-inject │◀──────────┘
│  seamlessly │    │  context    │
└─────────────┘    └─────────────┘

Quick Start

# 1. Install
pip install claude-sage[mcp]

# 2. Setup (adds MCP server + installs methodology skills)
sage mcp install
sage skills install

# 3. Use Claude - Sage handles the rest
claude

That's it. Claude now has memory across sessions.

How It Works

The problem: You're 2 hours into research. Context fills up, auto-compacts, nuanced findings gone. Tomorrow you start from scratch.

The solution: Sage checkpoints at meaningful moments—not when tokens run out, but when something worth remembering happens:

Trigger Example
Synthesis "Therefore, the answer is..."
Branch point "We could either X or Y..."
Constraint "This won't work because..."
Topic shift Conversation changes direction
Manual You say "checkpoint this"

Each checkpoint captures your thesis, confidence, open questions, sources, and tensions (where experts disagree).

What Gets Saved

# Where do stablecoins win vs traditional rails?

## Thesis (75% confidence)
Integrate, don't replace. Stablecoins win middle-mile,
not POS checkout.

## Open Questions
- Timeline for Stripe's full stack?

## Tensions
- sheel_mohnot vs sam_broner: merchant profitability — unresolved

Checkpoints are Markdown files (Obsidian-compatible) in ~/.sage/checkpoints/ or .sage/checkpoints/ (project-local).

The Three Layers

┌────────────────────────────────────────────────┐
│  Skills (methodology)                          │
│  sage-memory, sage-research, sage-session      │
│  Load on-demand when context matches           │
├────────────────────────────────────────────────┤
│  MCP Server (tools)                            │
│  sage_save_checkpoint, sage_recall_knowledge   │
│  Always available to Claude                    │
├────────────────────────────────────────────────┤
│  Storage                                       │
│  ~/.sage/checkpoints/, ~/.sage/knowledge/      │
│  Markdown + YAML frontmatter                   │
└────────────────────────────────────────────────┘
  • Skills teach Claude when and how to checkpoint
  • MCP gives Claude the tools to save/load
  • Storage persists everything as readable Markdown

CLI Basics

sage checkpoint list          # See your checkpoints
sage checkpoint show <id>     # View one
sage knowledge list           # See stored knowledge
sage knowledge match "query"  # Test what would recall
sage skills list              # Check installed skills
sage watcher start            # Auto-detect compaction

Learn More

Requirements

Development

pip install -e ".[dev,mcp]"
pytest tests/ -v  # 931 tests

License

MIT

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

claude_sage-3.0.0.tar.gz (262.5 kB view details)

Uploaded Source

Built Distribution

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

claude_sage-3.0.0-py3-none-any.whl (309.7 kB view details)

Uploaded Python 3

File details

Details for the file claude_sage-3.0.0.tar.gz.

File metadata

  • Download URL: claude_sage-3.0.0.tar.gz
  • Upload date:
  • Size: 262.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for claude_sage-3.0.0.tar.gz
Algorithm Hash digest
SHA256 c081a5c60a3911078ccce6eab02fef66eba2fe2507da2af99aafc9dc4100f960
MD5 4f9b3e79c16f69ba3c70b491007f061a
BLAKE2b-256 5152b177d180175499d0302aac7f2364f2b90e603c9ac3418c6b48840fd02cf6

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_sage-3.0.0.tar.gz:

Publisher: publish.yml on b17z/sage

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

File details

Details for the file claude_sage-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: claude_sage-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 309.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for claude_sage-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0308a64e3390f0d431d6d9f7d933fbb1aa6df37d80c73ebd5be4b4b9fa966ad5
MD5 1078de137f16f9859ee76a7024aeccc4
BLAKE2b-256 0bb78702b0a0e72d09d81cc318b8e0d22ddca6c300986f8fdbebe1ad477e6fd0

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_sage-3.0.0-py3-none-any.whl:

Publisher: publish.yml on b17z/sage

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