dot.ai
AI-powered code generation from plain Markdown specifications

What is dot.ai?
Write your requirements in .ai files (plain Markdown), run dot gen, and let AI coding agents implement them. Perfect for rapid prototyping, maintaining consistency, and automating repetitive coding tasks.
Key Features
- Plain Markdown - No frontmatter, just write specifications
- CLI-First - All configuration via command-line flags
- Multiple Agents - Support for claude-code, cursor, aider
- Smart Updates - Hash-based change detection for incremental generation
- Parallel Processing - ~5x faster for multiple files
- Type Safe - Built with TypeScript, comprehensive test coverage
Quick Start
Installation
npm install -g @dean0x/dot
Authentication
dot.ai uses Claude Code under the hood. You can authenticate two ways:
Option 1: Claude Max/Pro Plan (Recommended)
- Claude Code automatically uses your browser authentication
- No API key needed
Option 2: API Key
export ANTHROPIC_API_KEY=your_api_key_here
Get your key from: https://console.anthropic.com/
Usage
- Create a
.ai file (plain Markdown):
# Button Component
Create a reusable React Button component with TypeScript.
## Requirements
- Support variants: primary, secondary, danger
- Include loading and disabled states
- Full test coverage
dot gen
That's it! The .dotai/ directory is created automatically, artifacts are generated, and state is tracked.
- Make changes - Edit your
.ai file and run dot gen again. Only changed files are processed.
CLI Commands
dot gen [path]
dot status [path]
dot ls [path]
dot clean
Configuration
All configuration via command-line flags:
dot gen --agent claude-code
dot gen --iterate
dot gen --iterate --max-iterations 5
dot gen --parallel --concurrency 10
dot gen --force
Run dot gen --help for all options.
How it Works
- Write Specifications - Create
.ai files with your requirements in Markdown
- Smart Detection - dot.ai uses hash-based change detection to find what changed
- Agent Invocation - Your chosen coding agent implements the specification
- Artifact Tracking - Generated files are tracked for future incremental updates
- Iterate - Edit specs, run
dot gen, repeat
Iterative Processing
dot.ai supports iterative mode with the --iterate flag - after generating artifacts, it re-reads the .ai file to see if the agent updated it with new tasks. This enables self-directed refinement workflows where the agent can add new tasks for itself.
Enable with --iterate and control iterations with --max-iterations.
Examples
See the examples/ directory for:
- Self-reflecting agents
- Recursive processing patterns
- Multi-file project generation
Documentation
Requirements
Security
- Agent whitelist prevents arbitrary code execution
- Path traversal protection
- Input validation and range enforcement
- Dangerous flags blacklisted
See Security Policy for details.
License
MIT © dean0x
Support
Built with Claude Code 🤖