Stage 01 of 07 in Toolchain
Multi-Modal Ingestion

xtox

The universal document on-ramp for agent cognition. xtox extracts structured text, mathematical equations, tables, and full repository ASTs, delivering token-optimized representations ready for prompt context and RAG indexing.

Quick Execution · CLI Hook
$ npx @celladore/xtox parse --format ast-token-opt ./docs
Multi-format parsing
extracts PDFs, DOCX, LaTeX, Markdown, and codebase structures
Open source (MIT)
github.com/celladore/xtox with zero telemetry
AST-optimized
flattens complex structures into token-efficient agent inputs
Ecosystem Handshakes

How xtox Connects to the Stack

Celladore is engineered as a unified, composable toolchain where every tool feeds upstream contexts and downstream verification loops without friction.

Ingestion → Agent Configs

→ Retort

Parsed codebase trees and token-optimized ASTs feed directly into Retort worker agents without exhausting context windows.

Doc Extraction → Task Artifacts

→ Baton

Extracted specification sheets and PRDs are attached as deterministic task requirements in Baton.

Optimized Payloads → Gateway

→ Sluice

Flattened documents reduce prompt token counts by 64%, cutting Sluice routing latencies and API billing costs.

Architecture Specs

Technical Matrix

Runtime & Engine:
TypeScript / Rust Streaming Parser
Deployment Target:
CLI / Node Package / WASM
Communication Protocol:
Streaming Token-Optimized AST Protocol
Licensing Tier:
MIT Open Source
Upstream Ingestion: PDFs & Scanned Docs, DOCX & Office Spreadsheets, LaTeX Math Documents, Codebase Directory Trees
Downstream Consumers: Retort Agent Configs, Baton Task Graph, Sluice Gateway, RAG Vector Stores
Venture Origin Bred from ConvoLens & Mystira

Invented from Real Scars

⚡ The Production Incident

Ingesting raw multi-megabyte WhatsApp chats, PDFs, and codebase directories blew prompt context windows with noisy formatting and broken table structures.

🛡️ Failure Mode Prevented

Prompt context window exhaustion, lost mathematical formulas, and garbled RAG chunking.

Tested in production workloads across Phoenix VC ventures.
Core Capabilities

Architectural Features & Guarantees

Modular design built for high velocity, deterministic reliability, and strict enterprise isolation.

Structured Document Extraction

Preserve table structures, formulas, and headings from PDFs and scientific papers into clean, LLM-ready Markdown.

Codebase & Repo Flattening

Transform entire multi-file code repositories into dependency-ordered, token-optimized context blocks for LLM reasoning.

Formula & Equation Integrity

Losslessly convert LaTeX math and scientific notation without loss of precision for mathematical reasoning agents.

Streaming Token Reducer

Achieve up to 65% token compression by stripping non-semantic whitespace and formatting boilerplate before model ingestion.

Integration & API Hub

Typed API Contract & Snippets

Live cURL, TypeScript, and Python invocation payloads for xtox.

DEVELOPER HUB & VERIFIED API CONTRACTS

Unified Developer Interface

Convert PDFs, DOCX, LaTeX, Markdown, and repository structures into LLM-optimized tokens and structured AST.

POSThttps://api.celladoresystems.com/v1/convertDocument AST Engine
import { XtoxConverter } from "@celladore/xtox";
import fs from "node:fs";

const xtox = new XtoxConverter({ apiKey: process.env.XTOX_API_KEY || "YOUR_XTOX_API_KEY" });

const result = await xtox.convertDocument({
  file: fs.createReadStream("architecture_spec.pdf"),
  format: "pdf",
  options: {
    extractTables: true,
    preserveMath: true,
    flattenAst: true,
  },
});

console.log(`Extracted ${result.chunks.length} chunks, ${result.tokenCount} tokens`);
Open Source Activity

Repository Activity

Live contributor data and repository metrics pulled directly from GitHub's public API.

Cached Snapshot (1h TTL)
celladore/xtox
0 stars·0 forks·0 watchers·📝 64 contributions·🔀 0 open / 30 closed PRs·0 open issues

Last repository update: Aug 21, 2026

Top Public Contributors & Commit Breakdown

Status Notice: xtox is actively developed with source code available on GitHub under MIT. Clone and test document ingestion pipelines locally. Get in touch with the founder .

esc