Quickstart guide
Get AlignTrue running in under 60 seconds. No prior knowledge required.
What is AlignTrue?
AlignTrue helps you control how AI coding assistants behave in your project. You write rules once in a simple format, and AlignTrue converts them into each agent’s specific format automatically.
Key terms:
- Rules - Guidelines that tell AI agents how to work in your project (e.g., “use TypeScript strict mode”)
- Sync - Convert your rules into agent-specific formats (like
.cursor/rules/*.mdcorAGENTS.md) - Agents - AI coding assistants like Cursor, GitHub Copilot, Claude Code, etc.
The two-step workflow
AlignTrue’s workflow is simple:
-
Initialize (
aligntrue init)- Detects installed agents (Cursor, Copilot, Claude Code, etc.)
- If existing rules found: Offers to import them
- If no rules found: Creates
AGENTS.mdstarter template - Creates
.aligntrue/config.yamland.aligntrue/.rules.yaml(internal)
-
Sync (
aligntrue sync)- Converts rules to agent-specific formats
- Generates
.cursor/rules/*.mdc,.vscode/mcp.json, etc. - Keeps everything aligned when you make changes
The key decision: AGENTS.md is your primary editing file. The .aligntrue/.rules.yaml file is auto-generated - don’t edit it directly.
Prerequisites
- Node.js 20+ - Download
- An AI coding agent - Cursor, GitHub Copilot, Claude Code, or any of 28+ supported agents
Installation
npm
bash npm install -g aligntrue Which mode should I use?
AlignTrue has two modes optimized for different workflows:
| Mode | Best for | Key features |
|---|---|---|
| Solo | Individual developers | Fast iteration, auto-pull, no lockfile overhead |
| Team | Collaborative projects | Lockfile, drift detection, approved sources |
Default: Solo mode (perfect for getting started)
Need help deciding? See Solo vs. team mode for detailed comparison.
Quick start (60 seconds)
Initialize a new configuration:
aligntrue initThis creates .aligntrue/config.yaml, .aligntrue/.rules.yaml (internal), and AGENTS.md with:
- Configuration file with your org/user namespace and default exporters
- Internal IR file (auto-generated from your rules)
AGENTS.mdstarter template with example rules
Sync your first export:
aligntrue syncThis creates .cursor/rules/*.mdc files ready for Cursor.
2. Customize your rules
Open AGENTS.md and edit the starter rules for your project:
# AGENTS.md
## Rule: use-typescript-strict
**ID:** use-typescript-strict
**Severity:** ERROR
**Scope:** **/\*.ts, **/\*.tsx
Enable strict mode in tsconfig.json for better type safety.The starter template includes examples for:
- Code style enforcement
- Testing requirements
- Documentation standards
- Security practices
3. Sync to your agents
Run this command (in your project directory) to generate agent-specific files:
aligntrue syncWhat this does: Converts your rules from AGENTS.md (or agent files) into formats that each AI agent understands.
Example output:
◇ Loading configuration...
◇ Parsing rules...
◇ Syncing to 2 agents...
│
◆ Files written:
│ • .cursor/rules/aligntrue.mdc (3 rules)
│ • AGENTS.md (3 rules)
│
◇ Sync complete! No conflicts detected.What you get
After running aligntrue sync, you’ll have agent-specific rule files:
For Cursor:
.cursor/rules/aligntrue.mdc- Rules in Cursor’s native format
For GitHub Copilot, Claude Code, Aider, and others:
AGENTS.md- Universal markdown format
For VS Code with MCP:
.vscode/mcp.json- Model Context Protocol configuration (if enabled)
Enabling rules in your agents
Cursor
- Open Cursor Settings (Cmd/Ctrl + ,)
- Navigate to Features > Cursor Rules
- Enable “Rules folder” option
- Restart Cursor to load rules from
.cursor/rules/
GitHub Copilot / Claude Code / Aider
No setup needed! These agents automatically read AGENTS.md from your project root.
VS Code with MCP
- Install VS Code extension that supports MCP
- Extension will automatically detect
.vscode/mcp.json - Restart VS Code to load configuration
Windsurf
- Open Windsurf settings
- MCP configuration automatically loaded from
.windsurf/mcp_config.json
Next steps
Want to try a working example first? See the Golden Repository Example for a complete working demo.
Ready to learn more? Check out Next Steps for:
- Auto-sync on save
- Team collaboration features
- Git-based rule sharing
- Custom exporters
Run into issues? See Troubleshooting Guide for common solutions.
That’s it! You now have consistent AI rules across all your coding agents.
Basic workflow:
- Edit rules in
AGENTS.mdor any agent file - Run
aligntrue sync - Your AI agents now follow your project’s standards
Next: Author your own rules
The starter template uses a simple markdown format. To author rules in fenced code blocks (literate markdown), see the Markdown authoring guide.