by parcadei
Context management for Claude Code. Hooks maintain state via ledgers and handoffs. MCP execution without context pollution. Agent orchestration with isolated context windows.
# Add to your Claude Code skills
git clone https://github.com/parcadei/Continuous-Claude-v2Session continuity, token-efficient MCP execution, and agentic workflows for Claude Code.
┌─────────────────────────────────────────────────────────────────────────────┐
│ CLAUDE CODE SESSION │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌────────────┐ │
│ │ SessionStart│───▶│ Working │───▶│ PreCompact │───▶│ SessionEnd │ │
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ └─────┬──────┘ │
│ │ │ │ │ │
│ ▼ ▼ ▼ ▼ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌───────────┐ │
│ │Load Ledger │ │PreToolUse │ │Auto-Handoff │ │Mark │ │
│ │Load Handoff │ │ TS Preflight │ │Block Manual │ │Outcome │ │
│ │Surface │ │PostToolUse │ │ │ │Cleanup │ │
│ │Learnings │ │UserPrompt │ │ │ │Learn │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ └───────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
│ │ │ │
▼ ▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│ DATA LAYER │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ thoughts/ .claude/cache/ │
│ ├── ledgers/ ├── artifact-index/ ...