Introduction
todo.mdx
MDX components that render live data to markdown — realtime context for humans AND AI.
What is todo.mdx?
The core insight: README, TODO, ROADMAP, and AI instructions (CLAUDE.md, .cursorrules) are all views of the same data. Define once in MDX, render everywhere.
Quick Example
Write this in your TODO.mdx:
It renders to markdown showing the next 3 unblocked tasks:
This is how AI agents know what to work on next.
Features
- Live Data Rendering - MDX components that query your issue tracker
- Multiple Outputs - Same source renders to markdown, HTML, and more
- AI-Friendly - Perfect for Claude Code, Cursor, and other AI agents
- Git-Based - Uses beads for local-first issue tracking
- Type-Safe - Full TypeScript support
Installation
Getting Started
- Initialize beads in your project:
- Create a
TODO.mdxfile:
- Compile to markdown:
This generates TODO.md with live data from your issue tracker.
Use Cases
- Documentation - README, CONTRIBUTING, ROADMAP that stay up-to-date
- AI Instructions - CLAUDE.md with current sprint context
- Project Management - TODO lists that reflect actual work status
- Status Reports - Generate reports from issue data
Architecture
todo.mdx integrates with:
- beads - Local-first issue tracking
- GitHub Issues - Two-way sync
- Payload CMS - Web dashboard
- Cloudflare Workers - API and webhooks