Docs
Introduction
What contextai is and why it exists.
contextai is a universal context engineering CLI for AI coding agents. You describe your project's conventions, stack, and architecture once in a single context.config.ts file — and contextai generates AI-readable context files for every tool from that single source of truth.
The problem
Every AI coding assistant has its own context file format: AGENTS.md for Codex, CLAUDE.md for Claude, .cursorrules for Cursor, copilot-instructions.md for GitHub Copilot. Keeping all of them in sync manually is tedious and error-prone.
The solution
contextai treats your context.config.ts as the single source of truth. Run contextai generate and all your AI context files are created or updated automatically — always consistent, always fresh.
Supported output targets
- —AGENTS.md — OpenAI Codex / generic agents
- —CLAUDE.md — Claude
- —.cursorrules — Cursor
- —.github/copilot-instructions.md — GitHub Copilot
- —llms.txt — LLM-compatible tools
- —.kiro/steering/ — Kiro (AWS)
- —.windsurf/rules/ — Windsurf IDE
- —GEMINI.md — Gemini CLI & Antigravity (Google)
- —Custom path — any tool via config