Define your project conventions once in context.config.ts. Generate AI-readable files for every tool — automatically.
Interactive wizard detects your framework and creates context.config.ts with sensible defaults.
Add your stack, conventions, architecture, and rules you want every AI agent to follow.
Run generate once — or use watch mode to keep all output files in sync automatically.
Validate and diff commands check that all AI context files reflect your latest config.
Get up and running in seconds.
import { defineContext } from 'contextai';
export default defineContext({
project: {
name: 'my-app',
stack: ['TypeScript', 'React', 'Node.js'],
architecture: 'Monorepo with shared packages',
},
conventions: {
code: [
{ title: 'Naming', items: ['camelCase for variables'] },
],
},
outputs: {
'AGENTS.md': true,
'CLAUDE.md': true,
'.cursorrules': true,
},
});One config generates context files for every major AI coding assistant.
AGENTS.mdOpenAI Codex and generic AI agents
CLAUDE.mdClaude context file
.cursorrulesCursor editor rules
copilot-instructions.mdGitHub Copilot instructions
llms.txtLLM-compatible structured file
.kiro/steering/Kiro steering files
.windsurf/rules/Windsurf IDE (Cascade)
GEMINI.mdGemini CLI & Antigravity (Google)
Framework-agnostic, zero runtime overhead.
contextai initInteractive setup wizardcontextai generateGenerate all output filescontextai validateCheck files are freshcontextai diffShow changescontextai watchAuto-regenerate on changesExplore the repositories, contribute, and help shape the future of context engineering.