Files
proffesor-for-testing__agen…/docs/platform-setup-guide.md
Dragan Spiridonov 52bcf895e6 feat: multi-platform coding agent support (v3.7.4) (#313)
* feat: add multi-platform coding agent support (8 new platforms)

Add installers for GitHub Copilot, Cursor, Cline, Kilo Code, Roo Code,
OpenAI Codex CLI, Windsurf, and Continue.dev. Each platform gets MCP
config generation and behavioral rules/instruction files.

- PlatformConfigGenerator handles JSON, TOML, and YAML config formats
- All installers follow the established OpenCode/Kiro pattern (ADR-025)
- CLI flags: --with-copilot, --with-cursor, --with-cline, --with-kilocode,
  --with-roocode, --with-codex, --with-windsurf, --with-continuedev
- Auto-detection in --auto mode for platforms with existing config dirs
- Merge-safe: existing configs are preserved, AQE entries are appended
- Total platform support: 11 (Claude Code + OpenCode + Kiro + 8 new)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: add unit tests for multi-platform installer classes (71 tests)

Cover PlatformConfigGenerator, CopilotInstaller, CursorInstaller,
ClineInstaller, KiloCodeInstaller, and RooCodeInstaller with tests
for fresh install, overwrite/merge, error handling, and factory functions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: add unit tests for Phase 2 platform installers (32 tests)

Add tests for Codex (TOML), Windsurf (JSON), and Continue.dev (YAML)
installers covering fresh install, existing file merge, error handling,
and factory functions. Update tracking plan accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add --with-all-platforms flag, platform CLI commands, and integration/E2E tests (Phase 3+4)

- Add --with-all-platforms flag to init command (expands to all 8 platform flags)
- Add `aqe platform list/setup/verify` subcommands for platform management
- Add integration tests for all 8 platform installers against real temp dirs (76 tests)
- Add cross-platform E2E tests with auto-detection and round-trip verification (23 tests)
- Total: 466 platform-related tests passing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: add multi-platform setup guide covering all 11 platforms (Phase 6)

Comprehensive guide with automated and manual setup instructions for all
supported coding agent platforms (Copilot, Cursor, Cline, Kilo Code,
Roo Code, Codex, Windsurf, Continue.dev). Includes config examples,
auto-detection, verification, and troubleshooting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address brutal honesty audit findings

- Fix YAML merge bug: existing mcpServers key no longer produces
  duplicate keys — appends server entry instead of full block
- Fix docs: alwaysAllow lists for Cline/Kilo/Roo now match actual
  SAFE_AUTO_APPROVE_TOOLS (21 tools, not truncated 5)
- Fix plan table: correct config paths for Cline (.vscode/ prefix),
  Codex (.codex/ prefix), Windsurf (project-local, not global)
- Rename mislabeled E2E tests to integration (honest labeling)
- Remove unused platform-test-utils.ts (dead code)
- Add test for YAML merge with existing mcpServers key

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: fix stale plan references — mark all integration tests done, remove deleted file refs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore(release): bump version to v3.7.4

Multi-platform coding agent support release:
- 8 new platform installers (Copilot, Cursor, Cline, Kilo Code, Roo Code, Codex, Windsurf, Continue.dev)
- Universal PlatformConfigGenerator for JSON/TOML/YAML config formats
- CLI commands: --with-all-platforms, aqe platform list/setup/verify
- 467 tests passing, 33 files changed, +5667 lines

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: add v3.7.4 release notes, changelog, and README multi-platform section

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: correct alwaysAllow count from 21 to 22 in release notes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 09:11:24 +01:00

9.2 KiB

Multi-Platform Setup Guide

Agentic QE supports 11 coding agent platforms via MCP (Model Context Protocol). This guide covers setup for all platforms.

Quick Setup

The fastest way to configure any platform:

# Auto-setup with init flag
npx agentic-qe init --auto --with-copilot
npx agentic-qe init --auto --with-cursor
npx agentic-qe init --auto --with-all-platforms

# Or use the platform command directly
npx agentic-qe platform setup copilot
npx agentic-qe platform setup cursor

# List all platforms and their status
npx agentic-qe platform list

# Verify a platform's configuration
npx agentic-qe platform verify copilot

Platform Reference

Platform Config Path Format Rules File Auto-Detect
Claude Code .claude/mcp.json JSON CLAUDE.md Built-in
OpenCode opencode.json JSON — opencode.json
Kiro .kiro/settings/mcp.json JSON .kiro/steering/ .kiro/
GitHub Copilot .vscode/mcp.json JSON .github/copilot-instructions.md .vscode/
Cursor .cursor/mcp.json JSON .cursorrules .cursor/
Cline .vscode/cline_mcp_settings.json JSON .vscode/cline_custom_modes.json —
Kilo Code .kilocode/mcp.json JSON .kilocode/modes.json .kilocode/
Roo Code .roo/mcp.json JSON .roo/modes.json .roo/
OpenAI Codex CLI .codex/config.toml TOML AGENTS.md .codex/
Windsurf .windsurf/mcp_config.json JSON .windsurfrules .windsurf/
Continue.dev .continue/config.yaml YAML .continue/rules/aqe-qe-standards.yaml .continue/

GitHub Copilot

Automated Setup

npx agentic-qe init --auto --with-copilot
# or
npx agentic-qe platform setup copilot

Manual Setup

Create .vscode/mcp.json:

{
  "servers": {
    "agentic-qe": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "agentic-qe@latest", "mcp"],
      "env": {
        "AQE_MEMORY_PATH": ".agentic-qe/memory.db",
        "AQE_V3_MODE": "true"
      }
    }
  }
}

The installer also creates .github/copilot-instructions.md with QE behavioral rules.

Note

: Copilot uses servers as the config key, not mcpServers.


Cursor

Automated Setup

npx agentic-qe init --auto --with-cursor
# or
npx agentic-qe platform setup cursor

Manual Setup

Create .cursor/mcp.json:

{
  "mcpServers": {
    "agentic-qe": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "agentic-qe@latest", "mcp"],
      "env": {
        "AQE_MEMORY_PATH": ".agentic-qe/memory.db",
        "AQE_V3_MODE": "true"
      }
    }
  }
}

The installer also creates .cursorrules with QE behavioral rules.


Cline

Automated Setup

npx agentic-qe init --auto --with-cline
# or
npx agentic-qe platform setup cline

Manual Setup

Create .vscode/cline_mcp_settings.json:

{
  "mcpServers": {
    "agentic-qe": {
      "command": "npx",
      "args": ["-y", "agentic-qe@latest", "mcp"],
      "env": {
        "AQE_MEMORY_PATH": ".agentic-qe/memory.db",
        "AQE_V3_MODE": "true"
      },
      "alwaysAllow": [
        "fleet_init", "fleet_status", "fleet_health",
        "agent_list", "agent_metrics", "agent_status",
        "team_list", "team_health",
        "task_list", "task_status",
        "test_generate_enhanced",
        "coverage_analyze_sublinear", "quality_assess",
        "defect_predict", "code_index",
        "memory_store", "memory_retrieve", "memory_query", "memory_usage",
        "model_route", "routing_metrics", "aqe_health"
      ]
    }
  }
}

The installer also creates a custom QE Engineer mode in .vscode/cline_custom_modes.json.

Cline-specific: Supports alwaysAllow for auto-approving safe read-only tools.


Kilo Code

Automated Setup

npx agentic-qe init --auto --with-kilocode
# or
npx agentic-qe platform setup kilocode

Manual Setup

Create .kilocode/mcp.json:

{
  "mcpServers": {
    "agentic-qe": {
      "command": "npx",
      "args": ["-y", "agentic-qe@latest", "mcp"],
      "env": {
        "AQE_MEMORY_PATH": ".agentic-qe/memory.db",
        "AQE_V3_MODE": "true"
      },
      "alwaysAllow": [
        "fleet_init", "fleet_status", "fleet_health",
        "agent_list", "agent_metrics", "agent_status",
        "team_list", "team_health", "task_list", "task_status",
        "test_generate_enhanced", "coverage_analyze_sublinear",
        "quality_assess", "defect_predict", "code_index",
        "memory_store", "memory_retrieve", "memory_query", "memory_usage",
        "model_route", "routing_metrics", "aqe_health"
      ]
    }
  }
}

The installer also creates a custom QE mode in .kilocode/modes.json.


Roo Code

Automated Setup

npx agentic-qe init --auto --with-roocode
# or
npx agentic-qe platform setup roocode

Manual Setup

Create .roo/mcp.json:

{
  "mcpServers": {
    "agentic-qe": {
      "command": "npx",
      "args": ["-y", "agentic-qe@latest", "mcp"],
      "env": {
        "AQE_MEMORY_PATH": ".agentic-qe/memory.db",
        "AQE_V3_MODE": "true"
      },
      "alwaysAllow": [
        "fleet_init", "fleet_status", "fleet_health",
        "agent_list", "agent_metrics", "agent_status",
        "team_list", "team_health", "task_list", "task_status",
        "test_generate_enhanced", "coverage_analyze_sublinear",
        "quality_assess", "defect_predict", "code_index",
        "memory_store", "memory_retrieve", "memory_query", "memory_usage",
        "model_route", "routing_metrics", "aqe_health"
      ]
    }
  }
}

The installer also creates a custom QE mode in .roo/modes.json.


OpenAI Codex CLI

Automated Setup

npx agentic-qe init --auto --with-codex
# or
npx agentic-qe platform setup codex

Manual Setup

Create .codex/config.toml:

[mcp_servers.agentic-qe]
type = "stdio"
command = "npx"
args = ["-y", "agentic-qe@latest", "mcp"]

[mcp_servers.agentic-qe.env]
AQE_MEMORY_PATH = ".agentic-qe/memory.db"
AQE_V3_MODE = "true"

The installer also creates AGENTS.md with QE behavioral rules (Codex's equivalent of CLAUDE.md).

Codex-specific: Uses TOML config format and AGENTS.md for behavioral instructions.


Windsurf

Automated Setup

npx agentic-qe init --auto --with-windsurf
# or
npx agentic-qe platform setup windsurf

Manual Setup

Create .windsurf/mcp_config.json:

{
  "mcpServers": {
    "agentic-qe": {
      "command": "npx",
      "args": ["-y", "agentic-qe@latest", "mcp"],
      "env": {
        "AQE_MEMORY_PATH": ".agentic-qe/memory.db",
        "AQE_V3_MODE": "true"
      }
    }
  }
}

The installer also creates .windsurfrules with QE behavioral rules.


Continue.dev

Automated Setup

npx agentic-qe init --auto --with-continuedev
# or
npx agentic-qe platform setup continuedev

Manual Setup

Create .continue/config.yaml:

mcpServers:
  - name: agentic-qe
    command: npx
    args:
      - "-y"
      - "agentic-qe@latest"
      - "mcp"
    env:
      AQE_MEMORY_PATH: ".agentic-qe/memory.db"
      AQE_V3_MODE: "true"

The installer also creates .continue/rules/aqe-qe-standards.yaml with QE rules in YAML format.

Continue.dev-specific: Uses YAML config format with array-style MCP server entries.


Multi-Platform Setup

To configure all platforms at once:

npx agentic-qe init --auto --with-all-platforms

This creates config files for all 8 platforms. Files are merge-safe — existing configs are preserved and AQE entries are appended.

Auto-Detection

When running npx agentic-qe init --auto, platforms are auto-detected based on directory presence:

Directory Exists Platform Auto-Configured
.vscode/ GitHub Copilot
.cursor/ Cursor
.kilocode/ Kilo Code
.roo/ Roo Code
.codex/ OpenAI Codex CLI
.windsurf/ Windsurf
.continue/ Continue.dev

Note

: Cline is not auto-detected (shares .vscode/ with Copilot). Use --with-cline explicitly.

Verifying Configuration

# Check all platforms
npx agentic-qe platform list

# Verify a specific platform
npx agentic-qe platform verify cursor

Verify checks:

  1. Config file exists at expected path
  2. Config file is valid JSON/TOML/YAML
  3. Config contains agentic-qe server entry
  4. Rules/behavioral file exists

Troubleshooting

Config not detected: Run npx agentic-qe platform verify <name> to see which checks fail.

Merge conflicts: The installer merges safely into existing configs. If you see issues, delete the AQE entry from the config and re-run setup.

MCP server not starting: Ensure npx agentic-qe mcp works standalone first:

npx agentic-qe@latest mcp