Write AGENTS.mdx with live data components, compile to AGENTS.md, CLAUDE.md, and .cursorrules.
npm install agents.mdxnpx agents.mdxThat's it. This will:
- Create
AGENTS.mdxif it doesn't exist - Compile to
AGENTS.md,CLAUDE.md, and.cursorrules
---
name: My Project
---
# Context
You are working on {name}.
## Current Work
<Issues.Ready limit={10} />
## Recent Changes
<GitLog limit={5} />By default, outputs all formats:
AGENTS.md- Universal standard (GitHub Copilot, Jules, Codex, etc.)CLAUDE.md- Claude Code.cursorrules- Cursor
To output only specific formats, add to frontmatter:
---
format: claude
---Or comma-separated:
---
format: agents, claude
---<Issues /> <!-- All issues -->
<Issues.Ready limit={10} /> <!-- Ready to work -->
<Issues.Blocked /> <!-- Blocked issues -->
<Issue id="proj-123" /> <!-- Single issue --><Epics /> <!-- All epics with progress -->
<Epic id="v1.0" /> <!-- Single epic --><GitLog limit={5} /> <!-- Recent commits -->
<GitStatus /> <!-- Working tree status -->import { registerComponent } from 'agents.mdx'
registerComponent('JiraTickets', async (props) => {
const tickets = await fetchJira(props.project)
return tickets.map(t => `- [${t.key}] ${t.summary}`).join('\n')
})Auto-hydrate on session start:
claude /plugin install agents.mdxMIT