trace-claude-code
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool calls as hierarchical traces.
OPC Architecture Understanding
$ npx -y skills add parcadei/Continuous-Claude-v3 --skill opc-architecture --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/opc-architectureContext preview
The summary Claude sees to decide when to auto-load this skill.
OPC Architecture Understanding
name: opc-architecture description: OPC Architecture Understanding user-invocable: false
OPC (Orchestrated Parallel Claude) extends Claude Code - it does NOT replace it.
Claude Code CLI is the execution engine. OPC adds orchestration via:
When you spawn an agent: 1. Main Claude Code instance (your terminal) runs hook on Task tool 2. Hook calls `subprocess.Popen(["claude", "-p", "prompt"])` 3. A NEW Claude Code instance spawns as child process 4. Child runs independently, reads/writes to coordination DB 5. Parent tracks child via PID in DB
$ claude ← Main Claude Code (your terminal)
↓ Task tool triggers hook
↓ subprocess.Popen(["claude", "-p", "..."])
├── claude -p "research..." ← Child agent 1
├── claude -p "implement..." ← Child agent 2
└── claude -p "test..." ← Child agent 3.claude/ ├── hooks/ ← TypeScript hooks that Claude Code runs ├── skills/ ← SKILL.md prompts that Claude Code loads ├── settings.json ← Hook registration, Claude Code reads this └── cache/ ← State files, agent outputs opc/ ├── scripts/ ← Python scripts called by hooks ├── docker-compose.yml ← PostgreSQL, Redis, PgBouncer └── init-db.sql ← Database schema
1. User runs `claude` in terminal 2. Claude Code loads hooks from `.claude/settings.json` 3. User says "spawn a research agent" 4. Claude uses Task tool 5. PreToolUse hook fires, checks resources 6. Hook spawns `claude -p "research..."` as subprocess 7. Hook stores PID in PostgreSQL 8. Child agent runs, writes output to `.claude/cache/agents/<id>/` 9. Child completes, broadcasts "done" to PostgreSQL 10. Parent checks DB, reads child's output file
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
Repo: parcadei/Continuous-Claude-v3
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool calls as hierarchical traces.
Guide for integrating Agentica SDK with Claude Code CLI proxy
Reference guide for Agentica multi-agent infrastructure APIs