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
- 10 Colonial Records Search — Colonial Records Search 1.1k ★
- Projectmem — Open-source coding agent memory 766 ★
- Y Router — A Simple Proxy enabling Claude Code to work with OpenRouter 378 ★
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
Herdr Agent Watcher
Coding-agent observability for Herdr: live sidebar cards, lifecycle notifications, and a zero-config Claude Co
Tc
Track technical changes with structured records, a state machine, and session handoff. Usage: /tc [args]
Add Observability
Add production observability to a service — structured logging, metrics endpoint, health checks, and Sentry er
CLI Agent Runner
Keep agent CLIs running 7×24 — supervise Claude Code / aider / any prompt-arg agent with 11-layer defenses and
Sc Load
Session lifecycle management with Serena MCP integration for project context loading
Hatch3r Incident Response
Drive a live production incident through a structured lifecycle -- triage + topology, bounded-autonomy mitigat
Related Agents
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
Dart Specialist
Owns Dart language usage: sound null safety, records, patterns and exhaustiveness, sealed classes, mixins, asy