Frequently asked questions
General
What is AlignTrue?
AlignTrue syncs AI coding rules across multiple agents. Write rules once in .aligntrue/rules/*.md, and AlignTrue exports them to Cursor, GitHub Copilot, Claude Code, Windsurf, and 28+ other agents.
Why do I need AlignTrue?
If you use multiple AI coding agents, you’re probably copy-pasting rules between different config formats. AlignTrue eliminates this by maintaining a single source of truth and syncing to all agents automatically.
Is AlignTrue free?
Yes! AlignTrue is MIT-licensed open source. The CLI and all core features are free forever.
What agents does AlignTrue support?
33 agents through 51 exporters:
- Cursor, GitHub Copilot, Claude Code, Aider, Windsurf
- VS Code MCP, Amazon Q, Firebase Studio, OpenHands, Zed
- And 18+ more
View full compatibility matrix →
Can I publish a bundle of rules?
Yes. Use a .align.yaml pack to bundle multiple files with preserved paths. You can share it via the CLI (aligntrue init --source <repo-or-path>) or the Catalog (paste the GitHub URL and download a zip). See Align packs for manifest fields and limits.
Getting started
How long does setup take?
Under 60 seconds:
npm install -g aligntrue # Install CLI globally
aligntrue init # Auto-detects agents, creates config
aligntrue sync # Generates agent filesDo I need to install anything?
Just Node.js 20+ and the AlignTrue CLI:
npm
bash npm install -g aligntrue Note: aligntrue is a convenience package that installs @aligntrue/cli. You can also install @aligntrue/cli directly if preferred.
What if I already have agent configs?
AlignTrue can import existing configs:
aligntrue init # Detects existing configs, offers importAccept the import prompts to pull existing agent files into AlignTrue, then run aligntrue sync to push the merged rules everywhere.
Usage
Where do I write rules?
Edit .aligntrue/rules/ - Create markdown files in the .aligntrue/rules/ directory. This is your single source of truth for all rules.
Example structure:
.aligntrue/rules/
├── global.md # Global project rules
├── backend.md # Backend-specific rules
├── frontend.md # Frontend-specific rules
└── testing.md # Testing guidelinesAll agent files (Cursor, AGENTS.md, etc.) are auto-generated exports from .aligntrue/rules/. Do not edit them directly.
How do I sync rules to agents?
aligntrue syncThis generates agent-specific files like .cursor/rules/*.mdc, AGENTS.md, etc.
Can I edit agent files directly?
No. Agent files like .cursor/rules/*.mdc and AGENTS.md are read-only exports generated from .aligntrue/rules/.
If you edit agent files directly:
- Changes will be backed up to
.aligntrue/.backups/files/ - Changes will be overwritten on the next sync
- Always edit
.aligntrue/rules/instead
See Sync behavior for details.
Do I need to run sync every time?
Only when rules change. Set up auto-sync with file watchers if you want automatic syncing on save.
See the CLI reference.
What if I have conflicts?
AlignTrue uses a unidirectional sync model: rules in .aligntrue/rules/ are the single source of truth, and all agent files are read-only exports. This eliminates conflicts by design.
If you need to update rules, edit the files in .aligntrue/rules/ and run aligntrue sync.
Team usage
Can teams use AlignTrue?
Yes! Enable team mode for lockfiles and drift detection:
aligntrue team enableSee Team mode guide.
How do teams share rules?
Three ways:
- Git - Commit
.aligntrue/directory to your repo - Git sources - Pull rules from separate repository
- Vendoring - Use git submodules/subtrees
See Git workflows.
What’s a lockfile?
A lockfile (.aligntrue/lock.json) pins rule versions with SHA-256 hashes. Teams use lockfiles to ensure everyone has identical rules.
What’s drift detection?
Drift detection monitors when upstream rules change. Useful for teams pulling rules from external sources.
aligntrue drift --gates # Fail CI if drift detectedMulti-agent usage
Can I use AlignTrue with multiple agents at once?
Yes! AlignTrue is designed for multi-agent workflows. Configure multiple exporters:
exporters:
- cursor
- agents
- claude
- copilot
- windsurfRun aligntrue sync once and all agents get the same rules.
See Multi-Agent Workflows guide.
How do I maintain different settings per agent?
Use vendor bags for agent-specific metadata:
rules:
- id: example-rule
summary: Example
vendor:
cursor:
ai_hint: "Cursor-specific hint"
claude:
mode: "assistant"Should I use solo or team mode?
Solo mode for individual developers - fast, simple, no overhead.
Team mode for collaborative projects - lockfiles, drift detection, reproducible builds.
See Solo vs. team mode for detailed comparison.
Technical
Does AlignTrue require network access?
No! AlignTrue works completely offline. Network access is only needed for:
- Pulling rules from git repositories (optional)
You’ll be prompted for consent before any network operation.
Where does AlignTrue store data?
- Config:
.aligntrue/config.yaml - Rules (user-editable):
.aligntrue/rules/*.md - Agent exports (read-only):
.cursor/rules/*.mdc,AGENTS.md, and other agent files - Lockfile:
.aligntrue/lock.json(auto-migrates legacy.aligntrue/lock.jsonif found) - Cache:
.aligntrue/.cache/(git sources)
Can I use AlignTrue in CI?
Yes! Validate rules in CI:
aligntrue check --ci # Schema validation
aligntrue drift --gates # Drift detectionWhat’s the IR (Intermediate Representation)?
AlignTrue parses .aligntrue/rules/*.md into an internal IR in memory, then renders agent exports and the lockfile from that source. You never edit AGENTS.md or other agent files directly; they are generated outputs.
How does AlignTrue handle agent-specific features?
Agent-specific features are preserved in the vendor.* namespace:
vendor:
cursor:
session: "my-session"These fields are excluded from hashing but preserved on round-trips.
Troubleshooting
AlignTrue command not found
Install globally:
npm
bash npm install -g aligntrue Config file not found
Run init first:
aligntrue initRules not showing in my agent
- Check agent is enabled:
cat .aligntrue/config.yaml | grep exporters - Run sync:
aligntrue sync - Restart your IDE
Lockfile always out of sync
Mark volatile fields in config:
vendor:
_meta:
volatile: ["cursor.timestamp"]More issues?
See Troubleshooting guide for comprehensive solutions.
Privacy & security
Can I use AlignTrue with private rules?
Yes! AlignTrue works completely offline. Your rules never leave your machine unless you explicitly push to git.
Is AlignTrue secure for enterprise use?
Yes:
- Local-first (no cloud required)
- MIT license (permissive)
- Deterministic hashing (SHA-256)
- Audit trails (git integration)
- No external dependencies at runtime
Contributing
Can I add support for my agent?
Yes! See Adding exporters guide.
Can I contribute Aligns?
Yes! See Creating Aligns guide.
Where do I report bugs?
Where do I ask questions?
Still have questions?
- Quickstart guide - Get started in 60 seconds
- Troubleshooting - Common issues
- GitHub Discussions - Ask the community