Aider CLI Rules
Tool: AI pair programming in terminal (pip install aider-chat)
Quick Start
bash
# Always include AGENTS.md aider AGENTS.md src/feature.ts tests/feature.test.ts # In chat: "Follow AGENTS.md standards. Implement [feature] with tests first."
Essential Commands
bash
/add file.ts # Add files to context /drop file.ts # Remove from context /run npm test # Run command /commit "message" # Commit changes /undo # Undo last change /diff # Review changes
Configuration (.aider.conf.yml)
yaml
model: gpt-4 read: [AGENTS.md] lint: true lint-cmd: "npm run lint" test-cmd: "npm test" auto-commits: true commit-prompt: true
Workflow
- •Start session with
aider AGENTS.md [files] - •Request: "Follow AGENTS.md. Implement [feature] with tests first (95%+ coverage)"
- •Review diffs with
/diff - •Test with
/run npm test - •Commit with
/commit "feat: description"
Critical: Always reference AGENTS.md in your requests for consistent standards.
<!-- AIDER:END -->