parcadei/Continuous-Claude-v3

Context management for Claude Code. Hooks maintain state via ledgers and handoffs. MCP execution without context pollution. Agent orchestration with isolated context windows.

License:MITLanguage:Python3.2k235
ไปฃ็†claude-codeclaude-code-cliclaude-code-hooksclaude-code-mcpclaude-code-skillsclaude-code-subagentsclaude-skillsmcp

Deep Analysis

ๆŒ็ปญๅญฆไน ็š„ๅคšๆ™บ่ƒฝไฝ“ๅผ€ๅ‘็Žฏๅขƒ,้€š่ฟ‡้’ฉๅญๅ’Œๅˆ†่ดฆๆœฌไฟๆŒ่ทจไผš่ฏ็Šถๆ€,ๅฎž็Žฐๆ— ไธŠไธ‹ๆ–‡ๆฑกๆŸ“็š„MCPๆ‰ง่กŒ

Recommended

Core Features

ไผš่ฏ่ฟž็ปญๆ€ง

YAMLๆกๆ‰‹ไบคๆŽฅๅ’Œๅ†…ๅญ˜็ณป็ปŸ็ปดๆŒ่ทจไผš่ฏ็Šถๆ€

109ไธชๆŠ€่ƒฝ็ณป็ปŸ

ๅŒ…ๅซๅ…ƒๆŠ€่ƒฝๅทฅไฝœๆตใ€ไปฃ็ ๅˆ†ๆžใ€็ ”็ฉถๅทฅๅ…ท

32ไธชไธ“ไธšๆ™บ่ƒฝไฝ“

่ง„ๅˆ’ใ€่ฐƒ่ฏ•ใ€ๅฎž็Žฐใ€ๅฎกๆŸฅ็ญ‰้ข†ๅŸŸไธ“ๅฎถ

5ๅฑ‚ไปฃ็ ๅˆ†ๆžTLDR

ASTๅˆฐPDG,่Š‚็œ95%ไธŠไธ‹ๆ–‡ไปค็‰Œ

Technical Implementation

Architecture:PythonๅŸบ็ก€,PostgreSQL+pgvectorๅญ˜ๅ‚จ,TypeScript้’ฉๅญ็ณป็ปŸ,32ไธชๆ™บ่ƒฝไฝ“็ผ–ๆŽ’
Execution Flow:
ไผš่ฏๅฏๅŠจ

ๅŠ ่ฝฝ่ฟž็ปญๆ€ง่ดฆๆœฌๅ’Œๆกๆ‰‹

้ข„ๅทฅๅ…ท้’ฉๅญ

ๆ‰ง่กŒTLDRๅˆ†ๆžๅ’Œๆ™บ่ƒฝ่ทฏ็”ฑ

ๅทฅไฝœ่ทŸ่ธช

ๆ–‡ไปถๅ˜ๆ›ดๅ’ŒๆŠ€่ƒฝๆฟ€ๆดป

้ข„็ดงๅ‡‘ไฟๅญ˜

่‡ชๅŠจไฟๅญ˜ๆกๆ‰‹ๆ–‡ๆกฃ

ไผš่ฏ็ป“ๆŸ

ๅฎˆๆŠค่ฟ›็จ‹ๆๅ–ๅญฆไน ๅˆฐ่ฎฐๅฟ†ๅบ“

Key Components:
PostgreSQL+pgvectorๅ‘้‡ๆœ็ดข
Tree-sitterไปฃ็ ่งฃๆž
BGE-large-en-v1.5่ฏญไน‰ๅตŒๅ…ฅ
Highlights
  • 95%ไธŠไธ‹ๆ–‡่Š‚็œ:5ๅฑ‚ไปฃ็ ๅˆ†ๆžๆ›ฟไปฃๅŽŸๅง‹ๆ–‡ไปถ
  • ่ทจไผš่ฏๅญฆไน :ๅฎˆๆŠค่ฟ›็จ‹่‡ชๅŠจๆๅ–ๆ€็ปดๅ—
  • ้›ถๅนฒๆ‰ฐMCP:้š”็ฆปไธŠไธ‹ๆ–‡็ช—ๅฃ็š„ๆ™บ่ƒฝไฝ“็ผ–ๆŽ’
  • 109+ๆŠ€่ƒฝ:ๅ…ƒๆŠ€่ƒฝๅทฅไฝœๆต่‡ชๅŠจ่ทฏ็”ฑๅˆฐไธ“ไธšๆ™บ่ƒฝไฝ“้“พ
Use Cases
  • ๅŠŸ่ƒฝๅผ€ๅ‘:ๅ‘็Žฐโ†’่ฎกๅˆ’โ†’้ชŒ่ฏโ†’ๅฎž็Žฐโ†’ๆไบคโ†’PR่‡ชๅŠจๅŒ–ๅทฅไฝœๆต
  • ้”™่ฏฏไฟฎๅค:ไพฆๆŸฅโ†’้ข„้˜ฒโ†’ไฟฎๅคโ†’ๆต‹่ฏ•โ†’ๆไบคๅฎŒๆ•ด่ฏŠๆ–ญ้“พ
  • ไปฃ็ ้‡ๆž„:้ฃŽ้™ฉๅˆ†ๆžโ†’ๆžถๆž„ไผ˜ๅŒ–โ†’ๅฎ‰ๅ…จๅ˜ๆขโ†’้ชŒ่ฏ
  • ่ทจไผš่ฏๅญฆไน :่‡ชๅŠจๆๅ–ๅ†ณ็ญ–,ไธ‹ๆฌกไผš่ฏๅฌๅ›ž็›ธๅ…ณๅญฆไน 
Limitations
  • PostgreSQL/DockerๅˆๆœŸ้…็ฝฎๅคๆ‚
  • ๆŸไบ›ๅŠŸ่ƒฝ้œ€้ขๅค–APIๅฏ†้’ฅ
Tech Stack
Python 3.11+PostgreSQL+pgvectorTypeScriptTree-sitterDocker

Continuous Claude

A persistent, learning, multi-agent development environment built on Claude Code

License: MIT
Claude Code
Skills
Agents
Hooks

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.

Table of Contents


Why Continuous Claude?

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

Skill vs Workflow vs Agent

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 โ†’


Quick Start

Prerequisites

  • Python 3.11+
  • uv package manager
  • Docker (for PostgreSQL)
  • Claude Code CLI

Installation

# 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.toml is in opc/. Always run uv commands from the opc/ directory.

What the Wizard Does

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)

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:

{
  "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.

First Session

# Start Claude Code
claude

# Try a workflow
> /workflow

First Session Commands

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

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                        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    โ”‚         
Highly Recommended
agents

wshobson/agents

wshobson

Intelligent automation and multi-agent orchestration for Claude Code

The most comprehensive Claude Code plugin ecosystem, covering full-stack development scenarios with a three-tier model strategy balancing performance and cost.

25.6k2.8k3 days ago
Highly Recommended
awesome-claude-skills

ComposioHQ/awesome-claude-skills

ComposioHQ

A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows

The most comprehensive Claude Skills resource list; connect-apps is a killer feature.

19.9k2.0k3 days ago
Recommended
oh-my-opencode

code-yeongyu/oh-my-opencode

code-yeongyu

The Best Agent Harness. Meet Sisyphus: The Batteries-Included Agent that codes like you.

Powerful multi-agent coding tool, but note OAuth limitations.

17.5k1.2k3 days ago
Highly Recommended
ui-ux-pro-max-skill

nextlevelbuilder/ui-ux-pro-max-skill

nextlevelbuilder

An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms

Essential for designers; comprehensive UI/UX knowledge base.

15.3k1.5k3 days ago
Recommended
claude-mem

thedotmack/claude-mem

thedotmack

A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it with AI (using Claude's agent-sdk), and injects relevant context back into future sessions.

A practical solution for Claude's memory issues.

14.0k9143 days ago
Highly Recommended
planning-with-files

OthmanAdi/planning-with-files

OthmanAdi

Claude Code skill implementing Manus-style persistent markdown planning โ€” the workflow pattern behind the $2B acquisition.

Context engineering best practices; an open-source implementation of Manus mode.

9.3k8113 days ago