Skip to content

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.

AgentConfig FileLocation
Cursor AI.cursorrulesProject root
GitHub Copilot.github/copilot-instructions.md.github/ directory
Aider / Claude Code.aiderrcProject root
OpenAI Codex.codexrcProject root
Gemini CLI / Antigravity.gemini/GEMINI.md, .gemini/settings.json.gemini/ directory

Running the setup script configures every agent at once:

Terminal window
.standards/scripts/setup.sh

This creates all the configuration files listed above. If a file already exists, it is backed up before being replaced.

When standards are updated, sync everything in one command:

Terminal window
make sync-standards
# or
.standards/scripts/sync-standards.sh

Any agent configuration that has not been applied yet is added automatically during sync.

  • Config: .cursorrules in 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.
  • 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:
    1. Go to repository Settings > Copilot > Code review.
    2. Turn on “Use custom instructions when reviewing pull requests”.

To add Copilot instructions to an existing repo via a pull request:

Terminal window
make add-copilot-instructions
  • Config: .aiderrc in your project root.
  • How it works: Aider reads .aiderrc automatically when you run aider in the project directory.
  • Installation: pip install aider-chat
  • After setup: No restart needed; the config is read on each invocation.
  • Config: .codexrc in 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.
  • Config: .gemini/GEMINI.md (primary context) and .gemini/settings.json (CLI settings).
  • How it works: Gemini CLI reads .gemini/GEMINI.md as 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.log for cross-agent synchronization.

All agent configurations reference the same standards documents:

  • standards/architecture/ — architecture and automation standards
  • standards/languages/ — language-specific conventions
  • standards/process/ — documentation, git workflow, code review
  • standards/shared/core-standards.md — shared core standards

This guarantees consistent behavior across every agent.

After setup, verify each agent is working:

Terminal window
# Check that config files exist
ls -la .cursorrules .github/copilot-instructions.md .aiderrc .codexrc .gemini/GEMINI.md .gemini/settings.json

Then ask each agent to generate a small piece of code and confirm it follows the project’s naming conventions and architecture rules.

  1. Create a directory: standards/agents/<agent-name>/
  2. Add the agent’s configuration file with references to standards/.
  3. Update scripts/setup.sh to copy the new config during setup.
  4. Update scripts/sync-standards.sh to sync the new config.
  5. Document the agent in this guide.
  1. Confirm the config file exists in the expected location.
  2. Re-run make setup-agents to regenerate configs.
  3. Restart your editor.

Copilot not reviewing with custom instructions

Section titled “Copilot not reviewing with custom instructions”
  1. Make sure .github/copilot-instructions.md is committed to the repository.
  2. Enable custom instructions in Settings > Copilot > Code review.
  1. Confirm .gemini/GEMINI.md exists at the project root.
  2. Validate .gemini/settings.json is valid JSON: python3 -m json.tool .gemini/settings.json
  3. Run Gemini commands from the project root directory.