Docs

Quick Start

From zero to generated context files in under a minute.

1. Run the setup wizard

bash
contextai init

The wizard detects your framework, asks a few questions, and creates a context.config.ts at your project root.

2. Edit your config

Open context.config.ts and fill in your project details — stack, conventions, architecture, and which output targets to enable.

3. Generate

bash
contextai generate

All enabled output files are written to disk. Run with --dry-run first to preview without writing.

bash
contextai generate --dry-run

4. Keep in sync

Use watch mode during development to regenerate automatically on every config save.

bash
contextai watch