DocLie — Continuous Documentation Testing & Two-Way Healing with Kane CLI & Codex
We built DocLie to end the universal frustration of documentation drift in software development. Engineering teams update backend endpoints, rename buttons, or paginate payloads, but README files remain frozen in time. New hires and open-source contributors follow step 3 of a quickstart, hit an immediate terminal crash, and burn hours troubleshooting stale documentation. DocLie turns documentation from dead markdown into an executable, verifiable contract. It is designed for API teams, open-source maintainers, and developer-tool builders who need continuous documentation integrity. DocLie parses your README's markdown syntax tree, extracts every code snippet, terminal command, and UI instruction, and compiles them into Kane CLI's cryptographic `.context/` store. Kane CLI acts as an autonomous developer sitting at a keyboard—following documented instructions step-by-step against the live web application. It monitors network payloads, console streams, and DOM mutations in real time, identifying whether a failure is a software regression or documentation drift, and enforcing zero documentation debt.
HOW CODEX & KANE CLI COMMUNICATE: DocLie wires Kane CLI into OpenAI Codex via a native Stop-Hook in `.codex/hooks.json`. During CI builds, `kane-cli context ingest --mode ci` hashes documented assertions. If a claim fails in cloud execution, the hook halts Codex and supplies the full runtime stack trace and Kane NDJSON event log. WHAT KANE CAUGHT: In cloud session d3ef9218 (59.88 credits), the README claimed: 'Export your monthly billing breakdown as a CSV with one click.' Kane clicked the target and caught an uncaught TypeError in 1-console.ndjson: `rows.map is not a function`. The backend had switched to paginated JSON `{ data: { items: [...] } }`. Codex issued two-way reconciliation: patching the frontend fetch handler while simultaneously updating the README documentation. Follow-up session cc3d29fd passed with zero errors, and Kane exported a hardened Playwright test script. HOW TO RUN IT: 1. Clone and install: `npm install` 2. Launch workbench: `npm run dev` (http://localhost:4173) 3. Execute Kane context audit: `bash scripts/run-kane-live.sh` WHAT'S NEXT: A GitHub App that runs `kane context fsck` on every pull request, auto-suggesting documentation diffs before code merges.
Built in two weeks for the KaneCLI Online Hackathon.
See the hackathon →