Multi-Agent Setup
Multi-Agent Setup
Section titled “Multi-Agent Setup”This repository supports five AI coding assistants out of the box. Every agent reads the same underlying standards, so your team gets consistent suggestions regardless of which tool each person uses.
Supported Agents
Section titled “Supported Agents”| Agent | Config File | Location |
|---|---|---|
| Cursor AI | .cursorrules | Project root |
| GitHub Copilot | .github/copilot-instructions.md | .github/ directory |
| Aider / Claude Code | .aiderrc | Project root |
| OpenAI Codex | .codexrc | Project root |
| Gemini CLI / Antigravity | .gemini/GEMINI.md, .gemini/settings.json | .gemini/ directory |
Automatic Setup
Section titled “Automatic Setup”Running the setup script configures every agent at once:
.standards/scripts/setup.shThis creates all the configuration files listed above. If a file already exists, it is backed up before being replaced.
Syncing All Agents
Section titled “Syncing All Agents”When standards are updated, sync everything in one command:
make sync-standards# or.standards/scripts/sync-standards.shAny agent configuration that has not been applied yet is added automatically during sync.
Agent-Specific Details
Section titled “Agent-Specific Details”Cursor AI
Section titled “Cursor AI”- Config:
.cursorrulesin your project root. - How it works: Cursor reads this file on startup and uses it to guide code generation, refactoring, and review suggestions.
- After setup: Quit Cursor completely and reopen it.
GitHub Copilot
Section titled “GitHub Copilot”- Config:
.github/copilot-instructions.md. - How it works: Copilot uses this file for code suggestions in VS Code, JetBrains, and on GitHub.com. It also powers Copilot code review on pull requests.
- After setup: Restart your IDE.
- Enabling code review:
- Go to repository Settings > Copilot > Code review.
- Turn on “Use custom instructions when reviewing pull requests”.
To add Copilot instructions to an existing repo via a pull request:
make add-copilot-instructionsAider / Claude Code
Section titled “Aider / Claude Code”- Config:
.aiderrcin your project root. - How it works: Aider reads
.aiderrcautomatically when you runaiderin the project directory. - Installation:
pip install aider-chat - After setup: No restart needed; the config is read on each invocation.
OpenAI Codex
Section titled “OpenAI Codex”- Config:
.codexrcin your project root. - How it works: Codex-compatible tools read this file for project-specific guidance.
- After setup: Check your IDE’s Codex integration documentation.
Gemini CLI and Google Antigravity
Section titled “Gemini CLI and Google Antigravity”- Config:
.gemini/GEMINI.md(primary context) and.gemini/settings.json(CLI settings). - How it works: Gemini CLI reads
.gemini/GEMINI.mdas the system prompt for the repository. The settings file controls checkpointing, model selection, and MCP server configuration. - Installation: Follow the Gemini CLI installation guide.
- After setup: No restart needed; configuration is read on each command.
- Antigravity integration: Each major feature should use a separate Antigravity Mission. Copy the mission URL into
.gemini/active_mission.logfor cross-agent synchronization.
Standards Source
Section titled “Standards Source”All agent configurations reference the same standards documents:
standards/architecture/— architecture and automation standardsstandards/languages/— language-specific conventionsstandards/process/— documentation, git workflow, code reviewstandards/shared/core-standards.md— shared core standards
This guarantees consistent behavior across every agent.
Verification
Section titled “Verification”After setup, verify each agent is working:
# Check that config files existls -la .cursorrules .github/copilot-instructions.md .aiderrc .codexrc .gemini/GEMINI.md .gemini/settings.jsonThen ask each agent to generate a small piece of code and confirm it follows the project’s naming conventions and architecture rules.
Adding a New Agent
Section titled “Adding a New Agent”- Create a directory:
standards/agents/<agent-name>/ - Add the agent’s configuration file with references to
standards/. - Update
scripts/setup.shto copy the new config during setup. - Update
scripts/sync-standards.shto sync the new config. - Document the agent in this guide.
Troubleshooting
Section titled “Troubleshooting”Agent not following standards
Section titled “Agent not following standards”- Confirm the config file exists in the expected location.
- Re-run
make setup-agentsto regenerate configs. - Restart your editor.
Copilot not reviewing with custom instructions
Section titled “Copilot not reviewing with custom instructions”- Make sure
.github/copilot-instructions.mdis committed to the repository. - Enable custom instructions in Settings > Copilot > Code review.
Gemini CLI not reading config
Section titled “Gemini CLI not reading config”- Confirm
.gemini/GEMINI.mdexists at the project root. - Validate
.gemini/settings.jsonis valid JSON:python3 -m json.tool .gemini/settings.json - Run Gemini commands from the project root directory.