Claude Plugin Cxdb Integration — Development skill for Claude Code
Claude Code plugin that records every session as structured turns in cxdb via lifecycle hooks, enabling trajectory browsing, tool-call inspection, and token-usage observability.
How to install Claude Plugin Cxdb Integration
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open prime-radiant-inc/claude-plugin-cxdb-integration and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Plugin Cxdb Integration does
Claude Code plugin that records every session as structured turns in cxdb via lifecycle hooks, enabling trajectory browsing, tool-call inspection, and token-usage observability.
Alternatives in Development
- Y Router — A Simple Proxy enabling Claude Code to work with OpenRouter 378 ★
- Weekly Retro — Weekly retro - pull metrics, compare to goal trajectory, recommend one priority shift 324 ★
- Bromure — Proper sandboxing for agentic coding and web browsing 275 ★
README
cxdb Claude Code Observability Plugin
Records every [Claude Code](https://claude.ai/code) session as structured turns in [cxdb](https://github.com/strongdm/cxdb) — a turn-DAG context store for AI agent trajectories. Browse full session histories, tool calls, token usage, and reasoning in the cxdb UI.
Requirements
- Claude Code (any recent version)
- bash, curl, jq, python3 (standard on macOS and most Linux)
- A running cxdb instance (local Docker or shared Tailscale instance)
Quick Start
1. Start cxdb
In the [cxdb repo](https://github.com/strongdm/cxdb):
make dev-docker-up
Starts cxdb in Docker. Frontend at http://localhost:9080 · API at http://localhost:9010
2. Install the plugin
git clone https://github.com/prime-radiant-inc/claude-plugin-cxdb-integration
cd claude-plugin-cxdb-integration
make install
3. Start a new Claude Code session
Sessions started **after** installation are recorded automatically. Open http://localhost:9080 to watch them appear in real time.
How It Works
Seven Claude Code hooks record the full session lifecycle:
| Hook | cxdb item_type | Notes |
|---|---|---|
SessionStart |
system (info) |
Creates context, publishes type bundle, writes ContextMetadata + Provenance |
UserPromptSubmit |
user_input |
Captures user message text (async) |
PostToolUse |
(buffered) | Buffers tool call + result to session state — no cxdb write yet |
Stop |
assistant_turn |
Flushes buffered tool calls; parses transcript for text + token metrics |
SubagentStop |
handoff |
Records agent-to-agent handoffs for Task tool calls |
PreCompact |
system (warning) |
Notes when context window compaction occurs (async) |
Notification |
system (info) |
Records Claude Code notifications (async) |
Tool call results are captured per tool type — each tool's response has a different structure:
| Tool | Content captured |
|---|---|
Bash |
stdout (+ stderr if non-empty) |
| `Read |
Related Skills
Haptic Bridge
Local daemon that turns Claude Code / Codex lifecycle events (permission prompt, waiting for input, turn done)
Trajectory Fidelity Bridge
Coding-agent trajectory portability: Claude Code to ATIF v1.7 with fidelity accounting, redaction, and histori
Herdr Agent Watcher
Coding-agent observability for Herdr: live sidebar cards, lifecycle notifications, and a zero-config Claude Co
Prelude
Prelude is the open standard for machine-readable project context — enabling LLMs, agents, and teams to unders
Adlc Team Skills
Agent skills for the Agentic SDLC: team lifecycle (team-boot, team-learn, team-init, team-repair), software fa
Skillmonitor
Track which Claude Code skills you actually use: a mod records every skill call into local SQLite, and a CLI s
Related Agents
LLM Performance Analyst
Evaluates LLM agent performance from session transcripts — token usage, tool-call efficiency, and error patter
Token Tracker
Logs token usage estimates for each agent run to .claude/token-stats.json. Call this after any agent completes
Gsc URL Inspector
GSC URL Inspection driver. Pulls indexing state, last crawl, mobile usability, rich results, and canonical res