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
FAQ
continuous-claude-v3 is a Claude Code plugin with 160 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes trace-claude-code, agent-context-isolation, agent-orchestration. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
$ npx -y skills add parcadei/Continuous-Claude-v3 --agent claude-code
Repo: parcadei/Continuous-Claude-v3
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.
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.
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 |
We resist plugin sprawl. Every MCP, subscription, and tool you add promises improvement but risks breaking context, tools, or prompts through clashes.
Our approach:
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.
You don't need to memorize slash commands. Just describe what you want naturally.
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
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| 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) |
| 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 |
| 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 |
| Type | Purpose | Example |
|---|---|---|
| Skill | Single-purpose tool | commit, tldr-code, qlty-check |
| Workflow | Multi-step process | /fix (sleuth โ premortem โ kraken โ commit) |
| Agent | Specialized sub-session | scout (exploration), oracle (research) |
See detailed skill activation docs โ
# Clone
git clone https://github.com/parcadei/Continuous-Claude-v3.git
cd Continuous-Claude-v3/opc
# Run setup wizard (12 steps)
uv run python -m scripts.setup.wizard
Note: The
pyproject.tomlis inopc/. Always runuvcommands from theopc/directory.
| Step | What It Does |
|---|---|
| 1 | Backup existing .claude/ config (if present) |
| 2 | Check prerequisites (Docker, Python, uv) |
| 3-5 | Database + API key configuration |
| 6-7 | Start Docker stack, run migrations |
| 8 | Install Claude Code integration (32 agents, 109 skills, 30 hooks) |
| 9 | Math features (SymPy, Z3, Pint - optional) |
| 10 | TLDR code analysis tool |
| 11-12 | Diagnostics tools + Loogle (optional) |
cd Continuous-Claude-v3/opc
uv run python -m scripts.setup.wizard --uninstall
What it does
Safety Features
By default, CC-v3 runs PostgreSQL locally via Docker. For remote database setups:
# 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
vectortoshared_preload_librariesin DB Parameter Group- Supabase: Enable via Database Extensions page
- Azure Database: Use Extensions pane to enable pgvector
Set CONTINUOUS_CLAUDE_DB_URL in ~/.claude/settings.json:
{
"env": {
"CONTINUOUS_CLAUDE_DB_URL": "postgresql://user:password@hostname:5432/continuous_claude"
}
}
Or export before running Claude:
export CONTINUOUS_CLAUDE_DB_URL="postgresql://user:password@hostname:5432/continuous_claude"
claude
See .env.example for all available environment variables.
# Start Claude Code
claude
# Try a workflow
> /workflow
| Command | What it does |
|---|---|
/workflow | Goal-based routing (Research/Plan/Build/Fix) |
/fix bug <description> | Investigate and fix a bug |
/build greenfield <feature> | Build a new feature from scratch |
/explore | Understand the codebase |
/premortem | Risk analysis before implementation |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CONTINUOUS CLAUDE โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Skills โ โ Agents โ โ Hooks โ โ
โ โ (109) โโโโโถโ (32) โโโโโโ (30) โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ โ โ โ
โ โผ โผ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ TLDR Code Analysis โ โ
โ โ L1:AST โ L2:CallGraph โ L3:CFG โ L4:DFG โ L5:Slicing โ โ
โ โ (95% token savings) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ โ โ
โ โผ โผ โผ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Memory โ โ Continuity โ โ Coordinationโ โ
โ โ System โ โ Ledgers โ โ Layer โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
SessionStart Working SessionEnd
โ โ โ
โผ โผ โผ
โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโ
โ Load โ โ Track โ โ Save โ
โ context โโโโโโโโโโโโโโโโโโโถโ changes โโโโโโโโโโโโโโโโโโโโถโ state โ
โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโ
โ โ โ
โโโ Continuity ledger โโโ File claims โโโ Handoff
โโโ Memory recall โโโ TLDR indexing โโโ Learnings
โโโ Symbol index โโโ Blackboard โโโ Outcome
โ
โผ
โโโโโโโโโโโ
โ /clear โ
โ Fresh โ
โ context โ
โโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ THE CONTINUITY LOOP โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. SESSION START 2. WORKING
โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโ
โ โ โ โ
โ Ledger loaded โโโโโผโโโถ Context โ PostToolUse โโโโโโโผโโโถ Index handoffs
โ Handoff loaded โ โ UserPrompt โโโโโโโโผโโโถ Skill hints
โ Memory recalled โ โ Edit tracking โโโโโผโโโถ Dirty flag++
โ TLDR cache warmed โ โ SubagentStop โโโโโโผโโโถ Agent reports
โ โ โ โ
โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โผ
โ โโโโโโโโโโโโโโโโโโโโโโ
โ โ 3. PRE-COMPACT โ
โ โ โ
โ โ Auto-handoff โโโโโโผโโโถ thoughts/shared/
โ โ (YAML format) โ handoffs/*.yaml
โ โ Dirty > 20? โโโโโโโผโโโถ TLDR re-index
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โผ
โ โโโโโโโโโโโโโโโโโโโโโโ
โ โ 4. SESSION END โ
โ โ โ
โ โ Stale heartbeat โโโผโโโถ Daemon wakes
โ โ Daemon spawns โโโโโผโโโถ Headless Claude
โ โ Thinking blocks โโโผโโโถ archival_memory
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโ /clear โโโโโโโโ
Fresh context + state preserved
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ META-SKILL WORKFLOWS โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
/fix bug /build greenfield
โโโโโโโโโ โโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ
โ sleuth โโโถโ premortemโ โdiscovery โโโถโplan-agentโ
โ(diagnose)โ โ (risk) โ โ(clarify) โ โ (design) โ
โโโโโโโโโโโโ โโโโโโฌโโโโโโ โโโโโโโโโโโโ โโโโโโฌโโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโโ โโโโโโโโโโโโ
โ kraken โ โ validate โ
โ (fix) โ โ (check) โ
โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโโ โโโโโโโโโโโโ
โ arbiter โ โ kraken โ
โ (test) โ โ(implementโ
โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโโ โโโโโโโโโโโโ
โ commit โ โ commit โ
โโโโโโโโโโโโ โโโโโโโโโโโโ
/tdd /refactor
โโโโ โโโโโโโโโ
โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ
โplan-agentโโโถโ arbiter โ โ phoenix โโโถโ warden โ
โ (design) โ โ(tests ๐ด)โ โ(analyze) โ โ (review) โ
โโโโโโโโโโโโ โโโโโโฌโโโโโโ โโโโโโโโโโโโ โโโโโโฌโโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโโ โโโโโโโโโโโโ
โ kraken โ โ kraken โ
โ(code ๐ข) โ โ(transformโ
โโโโโโฌโโโโโโ โโโโโโฌโโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโโ โโโโโโโโโโโโ
โ arbiter โ โ judge โ
โ(verify โ)โ โ (review) โ
โโโโโโโโโโโโ โโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DATA LAYER ARCHITECTURE โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ TLDR 5-LAYER CODE ANALYSIS SEMANTIC INDEX โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ L1: AST (~500 tok) โ โ BGE-large-en-v1.5 โ โ
โ โ โโโ Functions, โ โ โโโ All 5 layers โ โ
โ โ classes, sigs โ โ โโโ 10 lines context โ โ
โ โ โ โ โโโ FAISS index โ โ
โ โ L2: Call Graph (+440) โ โ โ โ
โ โ โโโ Cross-file โโโโโโโโโโโโโโโโ Query: "auth logic" โ โ
โ โ dependencies โ โ Returns: ranked funcs โ โ
โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ L3: CFG (+110 tok) โ โ
โ โ โโโ Control flow โ โ
โ โ โ MEMORY (PostgreSQL+pgvector) โ
โ โ L4: DFG (+130 tok) โ โโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โโโ Data flow โ โ sessions (heartbeat) โ โ
โ โ โ โ file_claims (locks) โ โ
โ โ L5: PDG (+150 tok) โ โ archival_memory (BGE) โ โ
โ โ โโโ Slicing โ โ handoffs (embeddings) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ ~1,200 tokens โ
โ vs 23,000 raw โ
โ = 95% savings FILE SYSTEM โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ thoughts/ โ โ
โ โ โโโ ledgers/ โ โ
โ โ โ โโโ CONTINUITY_*.mdโ โ
โ โ โโโ shared/ โ โ
โ โ โโโ handoffs/*.yamlโ โ
โ โ โโโ plans/*.md โ โ
โ โ โ โ
โ โ .tldr/ โ โ
โ โ โโโ (daemon cache) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Skills are modular capabilities triggered by natural language. Located in .claude/skills/.
| Meta-Skill | Chain | Use When |
|---|---|---|
/workflow | Router โ appropriate workflow | Don't know where to start |
/build | discovery โ plan โ validate โ implement โ commit | Building features |
/fix | sleuth โ premortem โ kraken โ test โ commit | Fixing bugs |
/tdd | plan โ arbiter (tests) โ kraken (implement) โ arbiter | Test-first development |
/refactor | phoenix โ plan โ kraken โ reviewer โ arbiter | Safe code transformation |
/review | parallel specialized reviews โ synthesis | Code review |
/explore | scout (quick/deep/architecture) | Understand codebase |
/security | vulnerability scan โ verification | Security audits |
/release | audit โ E2E โ review โ changelog | Ship releases |
Each meta-skill supports modes, scopes, and flags. Type the skill alone (e.g., /build) to get an interactive question flow.
/build <mode> [options] [description]
| Mode | Chain | Use For |
|---|---|---|
greenfield | discovery โ plan โ validate โ implement โ commit โ PR | New feature from scratch |
brownfield | onboard โ research โ plan โ validate โ implement | Feature in existing codebase |
tdd | plan โ test-first โ implement | Test-driven development |
refactor | impact analysis โ plan โ TDD โ implement | Safe refactoring |
| Option | Effect |
|---|---|
--skip-discovery | Skip interview phase (have clear spec) |
--skip-validate | Skip plan validation |
--skip-commit | Don't auto-commit |
--skip-pr | Don't create PR description |
--parallel | Run research agents in parallel |
/fix <scope> [options] [description]
| Scope | Chain | Use For |
|---|---|---|
bug | debug โ implement โ test โ commit | General bug fix |
hook | debug-hooks โ hook-developer โ implement โ test | Hook issues |
deps | preflight โ oracle โ plan โ implement โ qlty | Dependency errors |
pr-comments | github-search โ research โ plan โ implement โ commit | PR feedback |
| Option | Effect |
|---|---|
--no-test | Skip regression test |
--dry-run | Diagnose only, don't fix |
--no-commit | Don't auto-commit |
/explore <depth> [options]
| 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:
/tdd "implement retry logic"
/refactor "extract auth module"
/review # reviews current changes
/security "authentication code"
/release v1.2.0
Planning & Risk
Context Management
Code Analysis (95% Token Savings)
Research
Quality
Math & Formal Proofs
The /prove skill enables machine-verified proofs without learning Lean syntax. Used to create the first Lean formalization of Sylvester-Gallai theorem.
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
See detailed skills breakdown โ
Agents are specialized AI workers spawned via the Task tool. Located in .claude/agents/.
Note: There are likely too many agentsโconsolidation is a v4 goal. Use what fits your workflow.
Orchestrators (2)
Planners (4)
Explorers (4)
Implementers (3)
Debuggers (3)
Validators (2) - arbiter, atlas
Reviewers (6) - critic, judge, surveyor, liaison, plan-reviewer, review-agent
Specialized (8) - aegis, herald, scribe, chronicler, session-analyst, braintrust-analyst, memory-extractor, onboard
| Workflow | Agent Chain |
|---|---|
| Feature | architect โ plan-reviewer โ kraken โ review-agent โ arbiter |
| Refactoring | phoenix โ plan-reviewer โ kraken โ judge โ arbiter |
| Bug Fix | sleuth โ spark/kraken โ arbiter โ scribe |
Hooks intercept Claude Code at lifecycle points. Located in .claude/hooks/.
| Event | Key Hooks | Purpose |
|---|---|---|
| SessionStart | session-start-continuity, session-register, braintrust-tracing | Load context, register session |
| PreToolUse | tldr-read-enforcer, smart-search-router, tldr-context-inject, file-claims | Token savings, search routing |
| PostToolUse | post-edit-diagnostics, handoff-index, post-edit-notify | Validation, indexing |
| PreCompact | pre-compact-continuity | Auto-save before compaction |
| UserPromptSubmit | skill-activation-prompt, memory-awareness | Skill hints, memory recall |
| SubagentStop | subagent-stop-continuity | Save agent state |
| SessionEnd | session-end-cleanup, session-outcome | Cleanup, extract learnings |
| Hook | Purpose |
|---|---|
| tldr-context-inject | Adds code analysis to agent prompts |
| smart-search-router | Routes grep to AST-grep when appropriate |
| post-edit-diagnostics | Runs pyright/ruff after edits |
| memory-awareness | Surfaces relevant learnings |
TLDR provides token-efficient code summaries through 5 analysis layers.
| Layer | Name | What it provides | Tokens |
|---|---|---|---|
| L1 | AST | Functions, classes, signatures | ~500 tokens |
| L2 | Call Graph | Who calls what (cross-file) | +440 tokens |
| L3 | CFG | Control flow, complexity | +110 tokens |
| L4 | DFG | Data flow, variable tracking | +130 tokens |
| L5 | PDG | Program slicing, impact analysis | +150 tokens |
Total: ~1,200 tokens vs 23,000 raw = 95% savings
# Structure analysis
tldr tree src/ # File tree
tldr structure src/ --lang python # Code structure (codemaps)
# Search and extraction
tldr search "process_data" src/ # Find code
tldr context process_data --project src/ --depth 2 # LLM-ready context
# Flow analysis
tldr cfg src/main.py main # Control flow graph
tldr dfg src/main.py main # Data flow graph
tldr slice src/main.py main 42 # What affects line 42?
# Codebase analysis
tldr impact process_data src/ # Who calls this function?
tldr dead src/ # Find unreachable code
tldr arch src/ # Detect architectural layers
# Semantic search (natural language)
tldr daemon semantic "find authentication logic"
Beyond structural analysis, TLDR builds a semantic index of your codebase:
.tldrignore to control what gets indexed# .tldrignore example
__pycache__/
*.test.py
node_modules/
.venv/
The semantic index uses all 5 layers plus 10 lines of surrounding code contextโnot just docstrings.
TLDR is automatically integrated via hooks:
tldr searchCross-session learning powered by PostgreSQL + pgvector.
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.
| 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 |
| Table | Purpose |
|---|---|
| sessions | Cross-terminal awareness |
| file_claims | Cross-terminal file locking |
| archival_memory | Long-term learnings with BGE embeddings |
| handoffs | Session handoffs with embeddings |
# 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
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.
Preserve state across context clears and sessions.
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
Between-session knowledge transfer. Location: thoughts/shared/handoffs/<session>/
---
date: 2026-01-08T15:26:01+0000
session_name: feature-x
status: complete
---
# Handoff: Feature X Implementation
## Task(s)
| Task | Status |
|------|--------|
| Design API | Completed |
| Implement core | Completed |
| Error handling | Pending |
## Next Steps
1. Add retry logic to API calls
2. Write integration tests
| Command | Effect |
|---|---|
| "save state" | Updates continuity ledger |
"done for today" / /handoff | Creates handoff document |
| "resume work" | Loads latest handoff |
Two capabilities: computation (SymPy, Z3, Pint) and formal verification (Lean4 + Mathlib).
| Tool | Purpose | Example |
|---|---|---|
| SymPy | Symbolic math | Solve equations, integrals, matrix operations |
| Z3 | Constraint solving | Prove inequalities, SAT problems |
| Pint | Unit conversion | Convert miles to km, dimensional analysis |
| Lean4 | Formal proofs | Machine-verified theorems |
| Mathlib | 100K+ theorems | Pre-formalized lemmas to build on |
| Loogle | Type-aware search | Find Mathlib lemmas by signature |
| Skill | Use When |
|---|---|
/math | Computing, solving, calculating |
/prove | Formal verification, machine-checked proofs |
# Solve equation
"Solve xยฒ - 4 = 0" โ x = ยฑ2
# Compute eigenvalues
"Eigenvalues of [[2,1],[1,2]]" โ {1: 1, 3: 1}
# Prove inequality
"Is xยฒ + yยฒ โฅ 2xy always true?" โ PROVED (equals (x-y)ยฒ)
# Convert units
"26.2 miles to km" โ 42.16 km
5-phase workflow for machine-verified proofs:
๐ RESEARCH โ ๐๏ธ DESIGN โ ๐งช TEST โ โ๏ธ IMPLEMENT โ โ
VERIFY
sorry placeholders/prove every group homomorphism preserves identity
/prove continuous functions on compact sets are uniformly continuous
Achievement: Used to create the first Lean formalization of the Sylvester-Gallai theorem.
Math features require installation via wizard step 9:
# Installed automatically by wizard
uv pip install sympy z3-solver pint shapely
# Lean4 (for /prove)
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh
> /workflow
? What's your goal?
โ Research - Understand codebase/docs
โ Plan - Design implementation approach
โ Build - Implement features
โ Fix - Investigate and resolve issues
/fix bug "login fails silently"
Chain: sleuth โ [checkpoint] โ [premortem] โ kraken โ test โ commit
| Scope | What it does |
|---|---|
bug | General bug investigation |
hook | Hook-specific debugging |
deps | Dependency issues |
pr-comments | Address PR feedback |
/build greenfield "user dashboard"
Chain: discovery โ plan โ validate โ implement โ commit โ PR
| Mode | What it does |
|---|---|
greenfield | New feature from scratch |
brownfield | Modify existing codebase |
tdd | Test-first development |
refactor | Safe code transformation |
/premortem deep thoughts/shared/plans/feature-x.md
Output:
Blocks on HIGH severity until user accepts/mitigates risks.
# 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.
Pull latest changes and sync your installation:
cd continuous-claude/opc
uv run python -m scripts.setup.update
This will:
| Component | Location |
|---|---|
| Agents (32) | ~/.claude/agents/ |
| Skills (109) | ~/.claude/skills/ |
| Hooks (30) | ~/.claude/hooks/ |
| Rules | ~/.claude/rules/ |
| Scripts | ~/.claude/scripts/ |
| PostgreSQL | Docker container |
The wizard offers two installation modes:
| 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 |
Files are copied from continuous-claude/.claude/ to ~/.claude/. Changes you make in ~/.claude/ are local only and will be overwritten on next update.
continuous-claude/.claude/ โโCOPYโโ> ~/.claude/
(source) (user config)
Pros: Stable, isolated from repo changes Cons: Local changes lost on update, manual sync needed
Creates symlinks so ~/.claude/ points directly to repo files. Changes in either location affect the same files.
~/.claude/rules โโSYMLINKโโ> continuous-claude/.claude/rules
~/.claude/skills โโSYMLINKโโ> continuous-claude/.claude/skills
~/.claude/hooks โโSYMLINKโโ> continuous-claude/.claude/hooks
~/.claude/agents โโSYMLINKโโ> continuous-claude/.claude/agents
Pros:
git commit improvements)git pullCons:
If you installed with copy mode and want to switch:
# Backup current config
mkdir -p ~/.claude/backups/$(date +%Y%m%d)
cp -r ~/.claude/{rules,skills,hooks,agents} ~/.claude/backups/$(date +%Y%m%d)/
# Verify backup succeeded before proceeding
ls -la ~/.claude/backups/$(date +%Y%m%d)/
# Remove copies (only after verifying backup above)
rm -rf ~/.claude/{rules,skills,hooks,agents}
# Create symlinks (adjust path to your repo location)
REPO="$HOME/continuous-claude" # or wherever you cloned
ln -s "$REPO/.claude/rules" ~/.claude/rules
ln -s "$REPO/.claude/skills" ~/.claude/skills
ln -s "$REPO/.claude/hooks" ~/.claude/hooks
ln -s "$REPO/.claude/agents" ~/.claude/agents
# Verify
ls -la ~/.claude | grep -E "rules|skills|hooks|agents"
Windows users: Use PowerShell (as Administrator or with Developer Mode enabled):
# Enable Developer Mode first (Settings โ Privacy & security โ For developers)
# Or run PowerShell as Administrator
# Backup current config
$BackupDir = "$HOME\.claude\backups\$(Get-Date -Format 'yyyyMMdd')"
New-Item -ItemType Directory -Path $BackupDir -Force
Copy-Item -Recurse "$HOME\.claude\rules","$HOME\.claude\skills","$HOME\.claude\hooks","$HOME\.claude\agents" $BackupDir
# Verify backup succeeded before proceeding
Get-ChildItem $BackupDir
# Remove copies (only after verifying backup above)
Remove-Item -Recurse "$HOME\.claude\rules","$HOME\.claude\skills","$HOME\.claude\hooks","$HOME\.claude\agents"
# Create symlinks (adjust path to your repo location)
$REPO = "$HOME\continuous-claude" # or wherever you cloned
New-Item -ItemType SymbolicLink -Path "$HOME\.claude\rules" -Target "$REPO\.claude\rules"
New-Item -ItemType SymbolicLink -Path "$HOME\.claude\skills" -Target "$REPO\.claude\skills"
New-Item -ItemType SymbolicLink -Path "$HOME\.claude\hooks" -Target "$REPO\.claude\hooks"
New-Item -ItemType SymbolicLink -Path "$HOME\.claude\agents" -Target "$REPO\.claude\agents"
# Verify
Get-ChildItem "$HOME\.claude" | Where-Object { $_.LinkType -eq "SymbolicLink" }
After installation, start Claude and run:
> /onboard
This analyzes the codebase and creates an initial continuity ledger.
Central configuration for hooks, tools, and workflows.
{
"hooks": {
"SessionStart": [...],
"PreToolUse": [...],
"PostToolUse": [...],
"UserPromptSubmit": [...]
}
}
Skill activation triggers.
{
"rules": [
{
"skill": "fix",
"keywords": ["fix this", "broken", "not working"],
"intentPatterns": ["fix.*(bug|issue|error)"]
}
]
}
| Variable | Purpose | Required |
|---|---|---|
DATABASE_URL | PostgreSQL connection string | Yes |
BRAINTRUST_API_KEY | Session tracing | No |
PERPLEXITY_API_KEY | Web search | No |
NIA_API_KEY | Documentation search | No |
CLAUDE_OPC_DIR | Path to CC's opc/ directory (set by wizard) | Auto |
CLAUDE_PROJECT_DIR | Current project directory (set by SessionStart hook) | Auto |
Services without API keys still work:
continuous-claude/
โโโ .claude/
โ โโโ agents/ # 32 specialized AI agents
โ โโโ hooks/ # 30 lifecycle hooks
โ โ โโโ src/ # TypeScript source
โ โ โโโ dist/ # Compiled JavaScript
โ โโโ skills/ # 109 modular capabilities
โ โโโ rules/ # System policies
โ โโโ scripts/ # Python utilities
โ โโโ settings.json # Hook configuration
โโโ opc/
โ โโโ packages/
โ โ โโโ tldr-code/ # 5-layer code analysis
โ โโโ scripts/
โ โ โโโ setup/ # Wizard, Docker, integration
โ โ โโโ core/ # recall_learnings, store_learning
โ โโโ docker/
โ โโโ init-schema.sql # 4-table PostgreSQL schema
โโโ thoughts/
โ โโโ ledgers/ # Continuity ledgers (CONTINUITY_*.md)
โ โโโ shared/
โ โโโ handoffs/ # Session handoffs (*.yaml)
โ โโโ plans/ # Implementation plans
โโโ docs/ # Documentation
See CONTRIBUTING.md for guidelines on:
MIT - Use freely, contribute back.
Continuous Claude: Not just a coding assistantโa persistent, learning, multi-agent development environment that gets smarter with every session.
.claude/
agents/
aegis.json
aegis.md
agentica-agent.md
arbiter.json
arbiter.md
architect.json
architect.md
atlas.json
atlas.md
braintrust-analyst.md
chronicler.md
context-query-agent.md
critic.md
debug-agent.md
herald.md
judge.md
kraken.json
kraken.md
liaison.md
maestro.json
maestro.md
memory-extractor.md
onboard.md
oracle.json
oracle.md
pathfinder.json
pathfinder.md
phoenix.json
phoenix.md
plan-agent.md
plan-reviewer.md
profiler.json
profiler.md
research-codebase.md
review-agent.md
scout.json
scout.md
scribe.json
scribe.md
sentinel.json
session-analyst.md
sleuth.json
sleuth.md
spark.json
spark.md
surveyor.md
validate-agent.md
warden.json
backup/
braintrust-correlation-attempt/
common.sh
post_tool_use.sh
pre_tool_use.sh
session_start.sh
settings.json
subagent-stop-continuity.ts
braintrust-extractor.lock
chrome/
chrome-native-host
hooks/
arch-context-inject.sh
auto-handoff-stop.py
braintrust_hooks.py
build.sh
compiler-in-the-loop-stop.sh
compiler-in-the-loop.sh
CONFIG.md
CONTINUITY_CLAUDE-open-source-release.md
DISABLED-task-router-hook.json
dist/
__tests__/
composition-gate.test.js
daemon-client.test.js
extractLedgerSection.test.js
findSessionHandoff.test.js
hooks-daemon-migration.test.js
mainHandoffFirst.test.js
pattern-orchestrator.test.js
skill-backward-compat.test.js
skill-coactivation.test.js
skill-loading.test.js
skill-prerequisites.test.js
skill-router-integration.test.js
skill-toposort.test.js
skill-validation-prompt.test.js
tldr-hooks.test.js
user-confirm-learning.test.js
workflow-erotetic.test.js
agent-state-broadcast.js
agent-state-broadcast.mjs
arch-context-inject.js
arch-context-inject.mjs
archive/
agent-state-broadcast.js
agent-state-broadcast.mjs
blackboard-poll.mjs
edit-context-inject.js
edit-context-inject.mjs
failure-detection.js
failure-detection.mjs
import-error-detector.js
import-error-detector.mjs
post-task-complete.js
post-task-complete.mjs
post-tool-use.js
post-tool-use.mjs
pre-tool-use.js
pre-tool-use.mjs
resource-gate.js
resource-gate.mjs
session-end-cleanup-swarms.js
session-end-cleanup-swarms.mjs
skill-router.js
skill-router.mjs
skill-validation-prompt.js
stop-learnings.js
stop-learnings.mjs
stop-swarm-coordinator.js
stop-swarm-coordinator.mjs
subagent-start-swarm.js
subagent-start-swarm.mjs
subagent-stop-swarm.js
subagent-stop-swarm.mjs
task-router.mjs
auto-learning.js
auto-learning.mjs
compiler-in-the-loop-stop.js
compiler-in-the-loop-stop.mjs
compiler-in-the-loop.js
compiler-in-the-loop.mjs
composition-gate-hook.js
composition-gate-hook.mjs
daemon-client.js
daemon-client.mjs
drift-detector.js
drift-detector.mjs
edit-context-inject.js
edit-context-inject.mjs
epistemic-reminder.js
epistemic-reminder.mjs
erotetic-clarification.js
erotetic-clarification.mjs
explore-to-scout.js
explore-to-scout.mjs
failure-detection.js
failure-detection.mjs
file-claims.js
file-claims.mjs
handoff-index.js
handoff-index.mjs
heartbeat.js
heartbeat.mjs
impact-refactor.js
impact-refactor.mjs
import-error-detector.js
import-error-detector.mjs
import-validator.js
import-validator.mjs
memory-awareness.js
memory-awareness.mjs
path-rules.js
path-rules.mjs
pattern-orchestrator.js
pattern-orchestrator.mjs
patterns/
adversarial.js
blackboard.js
chain-of-responsibility.js
circuit-breaker.js
event-driven.js
generator-critic.js
hierarchical-test-harness.js
hierarchical.js
jury.js
map-reduce.js
pipeline.js
swarm.js
phase-gate.js
phase-gate.mjs
post-edit-diagnostics.mjs
post-edit-notify.mjs
post-task-complete.js
post-task-complete.mjs
post-tool-use.js
post-tool-use.mjs
pre-compact-continuity.js
pre-compact-continuity.mjs
pre-edit-context.js
pre-edit-context.mjs
pre-tool-use-broadcast.js
pre-tool-use-broadcast.mjs
pre-tool-use.js
pre-tool-use.mjs
resource-gate.js
resource-gate.mjs
session-end-cleanup-swarms.js
session-end-cleanup-swarms.mjs
session-end-cleanup.js
session-end-cleanup.mjs
session-outcome.js
session-outcome.mjs
session-register.js
session-register.mjs
session-start-continuity.js
session-start-continuity.mjs
session-start-dead-code.js
session-start-dead-code.mjs
session-start-recall.js
session-start-recall.mjs
session-start-tldr-cache.js
session-start-tldr-cache.mjs
shared/
composition-gate.js
db-utils-pg.js
db-utils.js
erotetic-questions.js
erotetic-termination.js
index.js
learning-extractor.js
memory-client.js
pattern-router.js
pattern-selector.js
project-state.js
python-bridge.js
resource-reader.js
resource-utils.js
skill-router-types.js
spec-context.js
task-detector.js
types.js
workflow-erotetic.js
signature-helper.js
signature-helper.mjs
skill-activation-prompt.js
skill-activation-prompt.mjs
skill-context-inject.js
skill-context-inject.mjs
skill-router.js
skill-router.mjs
skill-validation-prompt.js
skill-validation-prompt.mjs
smart-search-router.js
smart-search-router.mjs
spec-anchor.js
spec-anchor.mjs
spec-intent-detector.js
spec-intent-detector.mjs
stop-coordinator.js
stop-coordinator.mjs
stop-swarm-coordinator.js
stop-swarm-coordinator.mjs
subagent-learning.js
subagent-learning.mjs
subagent-start-swarm.js
subagent-start-swarm.mjs
subagent-start.js
subagent-start.mjs
subagent-stop-continuity.js
subagent-stop-continuity.mjs
subagent-stop-swarm.js
subagent-stop-swarm.mjs
subagent-stop.js
subagent-stop.mjs
task-router.js
test-multi-agent.js
test-multi-agent.mjs
tldr-context-inject.js
tldr-context-inject.mjs
tldr-read-enforcer.js
tldr-read-enforcer.mjs
tldr-rebuild-prompt.js
tldr-rebuild-prompt.mjs
transcript-parser.js
transcript-parser.mjs
typescript-preflight.js
typescript-preflight.mjs
user-confirm-learning.js
user-confirm-learning.mjs
working-on-sync.js
working-on-sync.mjs
edit-context-inject.sh
file-claims.sh
handoff-index.sh
hook_launcher.py
impact-refactor.sh
import-error-detector.sh
import-validator.sh
memory-awareness.sh
package-lock.json
package.json
path-rules.sh
persist-project-dir.sh
post_tool_use_tracker.py
post-edit-diagnostics.sh
post-edit-notify.sh
post-tool-use-tracker.py
pre_compact_continuity.py
pre-compact-continuity.sh
pre-tool-use-broadcast.sh
premortem-suggest.py
README.md
run-python.mjs
session_start_continuity.py
session-end-cleanup.sh
session-outcome.sh
session-register.sh
session-start-continuity.sh
session-start-dead-code.sh
session-start-tldr-cache.sh
session-symbol-index.py
session-symbol-index.sh
signature-helper.sh
skill-activation-prompt.sh
smart-search-router.sh
src/
__tests__/
composition-gate.test.ts
daemon-client.test.ts
extractLedgerSection.test.ts
findSessionHandoff.test.ts
hooks-daemon-migration.test.ts
mainHandoffFirst.test.ts
pattern-orchestrator.test.ts
session-affinity.test.ts
session-id-persistence.test.ts
skill-backward-compat.test.ts
skill-coactivation.test.ts
skill-loading.test.ts
skill-prerequisites.test.ts
skill-router-integration.test.ts
skill-toposort.test.ts
skill-validation-prompt.test.ts
tldr-hooks.test.ts
user-confirm-learning.test.ts
workflow-erotetic.test.ts
arch-context-inject.ts
compiler-in-the-loop-stop.ts
compiler-in-the-loop.ts
daemon-client.ts
edit-context-inject.ts
file-claims.ts
handoff-index.ts
impact-refactor.ts
import-error-detector.ts
import-validator.ts
memory-awareness.ts
path-rules.ts
patterns/
adversarial.ts
blackboard.ts
chain-of-responsibility.ts
circuit-breaker.ts
event-driven.ts
generator-critic.ts
hierarchical-test-harness.ts
hierarchical.ts
jury.ts
map-reduce.ts
pipeline.ts
swarm.ts
post-edit-diagnostics.ts
post-edit-notify.ts
pre-compact-continuity.ts
pre-tool-use-broadcast.ts
session-end-cleanup.ts
session-outcome.ts
session-register.ts
session-start-continuity.ts
session-start-dead-code.ts
session-start-tldr-cache.ts
shared/
composition-gate.ts
db-utils-pg.ts
db-utils.ts
erotetic-questions.ts
erotetic-termination.ts
index.ts
learning-extractor.ts
memory-client.ts
opc-path.ts
pattern-router.ts
pattern-selector.ts
project-state.ts
python-bridge.ts
resource-reader.ts
resource-utils.ts
session-id.ts
skill-router-types.ts
spec-context.ts
task-detector.ts
types.ts
workflow-erotetic.ts
signature-helper.ts
skill-activation-prompt.ts
skill-activation-prompt.ts.backup
skill-activation-prompt.ts.bak
skill-validation-prompt.ts
smart-search-router.ts
... 776 moreยฉ 2026 Flowy ยท Free and open source
Built for Claude Code ยท Not affiliated with Anthropic