Context management for Claude Code. Hooks maintain state via ledgers and handoffs. MCP execution without context pollution. Agent orchestration with isolated context windows.
Based on repository activity, growth velocity and community engagement.
43
Growth24/30
Activity1/25
Popularity16/25
Trust2/20
3,841
Stars
High
Sentiment
Votes
3,841
README.md
Continuous Claude
A persistent, learning, multi-agent development environment built on Claude Code
Continuous Claude transforms Claude Code into a continuously learning system that maintains context across sessions, orchestrates specialized agents, and eliminates wasting tokens through intelligent code analysis.
Claude Code has a compaction problem: when context fills up, the system compacts your conversation, losing nuanced understanding and decisions made during the session.
Continuous Claude solves this with:
| Problem | Solution |
|---------|----------|
| Context loss on compaction | YAML handoffs - more token-efficient transfer |
| Starting fresh each session | Memory system recalls + daemon auto-extracts learnings |
| Reading entire files burns tokens | 5-layer code analysis + semantic index |
| Complex tasks need coordination | Meta-skills orchestrate agent workflows |
| Repeating workflows manually | 109 skills with natural language triggers |
The mantra: Compound, don't compact. Extract learnings automatically, then start fresh with full context.
Why "Continuous"? Why "Compounding"?
The name is a pun. Continuous because Claude maintains state across sessions. Compounding because each session makes the system smarter—learnings accumulate like compound interest.
Design Principles
An agent is five things: Prompt + Tools + Context + Memory + Model.
| Component | What We Optimize |
|-----------|------------------|
| Prompt | Skills inject relevant context; hooks add system reminders |
| Tools | TLDR reduces tokens; agents parallelize work |
| Context | Not just what Claude knows, but how it's provided |
| Memory | Daemon extracts learnings; recall surfaces them |
| Model | Becomes swappable when the other four are solid |
Anti-Complexity
We resist plugin sprawl. Every MCP, subscription, and tool you add promises improvement but risks breaking context, tools, or prompts through clashes.
Our approach:
Time, not money — No required paid services. Perplexity and NIA are optional, high-value-per-token.
Learn, don't accumulate — A system that learns handles edge cases better than one that collects plugins.
Shift-left validation — Hooks run pyright/ruff after edits, catching errors before tests.
The failure modes of complex systems are structurally invisible until they happen. A learning, context-efficient system doesn't prevent all failures—but it recovers and improves.
How to Talk to Claude
You don't need to memorize slash commands. Just describe what you want naturally.
The Skill Activation System
When you send a message, a hook injects context that tells Claude which skills and agents are relevant. Claude infers from a rule-based system and decides which tools to use.
> "Fix the login bug in auth.py"
🎯 SKILL ACTIVATION CHECK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ CRITICAL SKILLS (REQUIRED):
→ create_handoff
📚 RECOMMENDED SKILLS:
→ fix
→ debug
🤖 RECOMMENDED AGENTS (token-efficient):
→ debug-agent
→ scout
ACTION: Use Skill tool BEFORE responding
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Priority Levels
| Level | Meaning |
|-------|---------|
| ⚠️ CRITICAL | Must use (e.g., handoffs before ending session) |
| 📚 RECOMMENDED | Should use (e.g., workflow skills) |
| 💡 SUGGESTED | Consider using (e.g., optimization tools) |
| 📌 OPTIONAL | Nice to have (e.g., documentation helpers) |
Natural Language Examples
| What You Say | What Activates |
|--------------|----------------|
| "Fix the broken login" | /fix workflow → debug-agent, scout |
| "Build a user dashboard" | /build workflow → plan-agent, kraken |
| "I want to understand this codebase" | /explore + scout agent |
| "What could go wrong with this plan?" | /premortem |
| "Help me figure out what I need" | /discovery-interview |
| "Done for today" | create_handoff (critical) |
| "Resume where we left off" | resume_handoff |
| "Research auth patterns" | oracle agent + perplexity |
| "Find all usages of this API" | scout agent + ast-grep |
Why This Approach?
| Benefit | How |
|---------|-----|
| More Discoverable | Don't need to know commands exist |
| Context-Aware | System knows when you're 90% through context |
| Reduces Cognitive Load | Describe intent naturally, get curated suggestions |
| Power User Friendly | Still supports /fix, /build, etc. directly |
Your current setup is archived with timestamp - nothing gets deleted
The wizard asks for confirmation before proceeding
It restores from the backup that was made during installation
All your Claude Code settings stay intact
Remote Database Setup
By default, CC-v3 runs PostgreSQL locally via Docker. For remote database setups:
1. Database Preparation
# Connect to your remote PostgreSQL instance
psql -h hostname -U user -d continuous_claude
# Enable pgvector extension (requires superuser or rds_superuser)
CREATE EXTENSION IF NOT EXISTS vector;
# Apply the schema (from your local clone)
psql -h hostname -U user -d continuous_claude -f docker/init-schema.sql
Managed PostgreSQL tips:
AWS RDS: Add vector to shared_preload_libraries in DB Parameter Group
Supabase: Enable via Database Extensions page
Azure Database: Use Extensions pane to enable pgvector
2. Connection Configuration
Set CONTINUOUS_CLAUDE_DB_URL in ~/.claude/settings.json:
| Depth | Time | What It Does |
|-------|------|--------------|
| quick | ~1 min | tldr tree + structure overview |
| deep | ~5 min | onboard + tldr + research + documentation |
| architecture | ~3 min | tldr arch + call graph + layers |
| Option | Effect |
|--------|--------|
| --focus "area" | Focus on specific area (e.g., --focus "auth") |
| --output handoff | Create handoff for implementation |
| --output doc | Create documentation file |
| --entry "func" | Start from specific entry point |
/tdd, /refactor, /review, /security, /release
These follow their defined chains without mode flags. Just run:
premortem: TIGERS & ELEPHANTS risk analysis - use before any significant implementation
discovery-interview: Transform vague ideas into detailed specs
Context Management
create_handoff: Capture session state for transfer
resume_handoff: Resume from handoff with context
continuity_ledger: Track state within session
Code Analysis (95% Token Savings)
tldr-code: Call graph, CFG, DFG, slicing
ast-grep-find: Structural code search
morph-search: Fast text search (20x faster than grep)
Research
perplexity-search: AI-powered web search
nia-docs: Library documentation search
github-search: Search GitHub code/issues/PRs
Quality
qlty-check: 70+ linters, auto-fix
braintrust-analyze: Session analysis, replay, and debugging failed sessions
Math & Formal Proofs
math: Unified computation (SymPy, Z3, Pint) — one entry point for all math
prove: Lean4 theorem proving with 5-phase workflow (Research → Design → Test → Implement → Verify)
pint-compute: Unit-aware arithmetic and conversions
shapely-compute: Computational geometry
The /prove skill enables machine-verified proofs without learning Lean syntax. Used to create the first Lean formalization of Sylvester-Gallai theorem.
The Thought Process
What do I want to do?
├── Don't know → /workflow (guided router)
├── Building → /build greenfield or brownfield
├── Fixing → /fix bug
├── Understanding → /explore
├── Planning → premortem first, then plan-agent
├── Researching → oracle or perplexity-search
├── Reviewing → /review
├── Proving → /prove (Lean4 formal verification)
├── Computing → /math (SymPy, Z3, Pint)
└── Shipping → /release
Cross-session learning powered by PostgreSQL + pgvector.
How It Works
Session ends → Database detects stale heartbeat (>5 min)
→ Daemon spawns headless Claude (Sonnet)
→ Analyzes thinking blocks from session
→ Extracts learnings to archival_memory
→ Next session recalls relevant learnings
The key insight: thinking blocks contain the real reasoning—not just what Claude did, but why. The daemon extracts this automatically.
Conversational Interface
| What You Say | What Happens |
|--------------|--------------|
| "Remember that auth uses JWT" | Stores learning with context |
| "Recall authentication patterns" | Searches memory, surfaces matches |
| "What did we decide about X?" | Implicit recall via memory-awareness hook |
# Recall learnings (hybrid text + vector search)
cd opc && uv run python scripts/core/recall_learnings.py \
--query "authentication patterns"
# Store a learning explicitly
cd opc && uv run python scripts/core/store_learning.py \
--session-id "my-session" \
--type WORKING_SOLUTION \
--content "What I learned" \
--confidence high
Automatic Memory
The memory-awareness hook surfaces relevant learnings when you send a message. You'll see MEMORY MATCH indicators—Claude can use these without you asking.
Continuity System
Preserve state across context clears and sessions.
Continuity Ledger
Within-session state tracking. Location: thoughts/ledgers/CONTINUITY_<topic>.md
# Session: feature-x
Updated: 2026-01-08
## Goal
Implement feature X with proper error handling
## Completed
- [x] Designed API schema
- [x] Implemented core logic
## In Progress
- [ ] Add error handling
## Blockers
- Need clarification on retry policy
| Mode | What it does |
|------|--------------|
| greenfield | New feature from scratch |
| brownfield | Modify existing codebase |
| tdd | Test-first development |
| refactor | Safe code transformation |
/premortem - Risk Analysis
/premortem deep thoughts/shared/plans/feature-x.md
Output:
TIGERS: Clear threats (HIGH/MEDIUM/LOW severity)
ELEPHANTS: Unspoken concerns
Blocks on HIGH severity until user accepts/mitigates risks.
Installation
Full Installation (Recommended)
# Clone
git clone https://github.com/parcadei/continuous-claude.git
cd continuous-claude/opc
# Run the setup wizard
uv run python -m scripts.setup.wizard
The wizard walks you through all configuration options interactively.
Updating
Pull latest changes and sync your installation:
cd continuous-claude/opc
uv run python -m scripts.setup.update
| Mode | How It Works | Best For |
|------|--------------|----------|
| Copy (default) | Copies files from repo to ~/.claude/ | End users, stable setup |
| Symlink | Creates symlinks to repo files | Contributors, development |
Copy Mode (Default)
Files are copied from continuous-claude/.claude/ to ~/.claude/. Changes you make in ~/.claude/ are local only and will be overwritten on next update.