tool
Dark Factories Website

CXDB

AI Context Store built entirely by StrongDM's dark factory — zero human code authorship. 16,000 lines of Rust + 9,500 lines of Go + 6,700 lines of TypeScript. A Turn DAG with content-addressed blob storage for storing and branching AI conversation histories. Both a production tool and proof-of-concept.

CXDB is the proof of concept and the product simultaneously. It’s an AI Context Store — a specialized database for storing and managing conversation histories and tool outputs for AI agents — built entirely by StrongDM’s dark factory with no human code authorship.

Code Statistics

  • 16,000 lines of Rust — core storage server (binary protocol server at port 9009, HTTP at 9010)
  • 9,500 lines of Go — client SDK and gateway (OAuth proxy + static file serving at port 8080)
  • 6,700 lines of TypeScript — React frontend (Turn visualization UI at port 3000)

293 GitHub stars. 59 commits.

Architecture: Turn DAG + Blob CAS

CXDB is a three-tier system with two architectural innovations at its core.

Turn DAG

Each Turn is an immutable node with turn_id, parent_turn_id, depth, and payload_hash. Forking a conversation from any historical point is O(1) — you create a new context pointer to an existing turn node, no history is copied.

Blob CAS (Content-Addressed Storage)

All turn payloads are stored by their BLAKE3 hash. Identical payloads across any conversation are stored exactly once — automatic deduplication. Compression via Zstd level 3. Serialization via MessagePack.

turns/     - Turn DAG nodes
blobs/     - Content-addressed payload store
registry/  - Type definitions for typed payloads

Custom Renderers

JavaScript modules per payload type for rich UI visualization. Renderers can be hot-swapped from CDN without server restarts — the frontend is extensible without touching the core.

Why It Exists in the Factory

When an Attractor agent run fails convergence and needs to retry from an intermediate checkpoint, CXDB provides the branching substrate. Fork from any turn, retry from that exact state, observe the different trajectory.

The observability layer: humans can inspect exactly what trajectory the agent took through any conversation without reading the code. Every turn, every branch, every retry is visible.

As Proof of Concept

CXDB demonstrates what the factory actually produces: 32,200 lines of production code across three languages, with a cohesive architecture, a working UI, and deployed real users. Built by 3 people who wrote no code.