Skip to content

Cursor IDE Setup ​

Cursor supports native subagents via .cursor/agents/ — the same YAML frontmatter format as Claude Code. Each subagent runs in its own isolated context window with automatic delegation driven by the description field.

.claude/agents/ also works

Cursor reads .claude/agents/ as a compatibility path. If you already set up KAIROS for Claude Code, Cursor picks up the same files automatically — no duplication needed.

Priority order: .cursor/agents/ > .claude/agents/

Prerequisites ​

  • Cursor (Agent mode)
  • A project open in Cursor with agents/ from KAIROS

Step 1 — Copy agents to .cursor/agents/ ​

bash
mkdir -p .cursor/agents
copy agents\*.md .cursor\agents\

Or, if you already use Claude Code, skip this — Cursor reads .claude/agents/ directly.

Project layout:

your-project/
├── .cursor/
│   └── agents/
│       ├── orchestrator-agent.md
│       ├── context-extractor-agent.md     ← Pre-pipeline: full-repo context (standalone)
│       ├── impact-assessment-agent.md     ← Pre-pipeline: issue grounding, facts for the derivation (dispatched by the orchestrator)
│       ├── bug-triage-agent.md            ← Bug reproduction + root cause (standalone)
│       ├── pm-agent.md
│       ├── architect-agent.md
│       ├── implementer-tdd-agent.md       ← TDD implementer (default)
│       ├── implementer-coder-agent.md     ← Code-first implementer (code, then the tests the project calls for)
│       ├── code-reviewer-agent.md
│       ├── security-reviewer-agent.md     ← Adversarial security review (optional, read-only)
│       ├── test-verifier-agent.md
│       ├── qa-plan-agent.md
│       ├── release-planner-agent.md
│       ├── documentation-agent.md         ← Feature-facing docs (optional, Phase 6b)
│       ├── retrospective-agent.md         ← Standalone, post-pipeline: lessons capture
│       ├── improvement-advisor-agent.md   ← Standalone, infrequent: framework change proposals
│       └── dependency-audit-agent.md       ← Standalone, periodic: dependency + tech-debt backlog

agents/team/ (Layered Mode) isn't included — see the warning at the bottom of this page.

Step 2 — How subagents are loaded ​

Cursor reads every .md file in .cursor/agents/ (or .claude/agents/) and parses the YAML frontmatter:

yaml
---
name: PM Agent
description: Collects and structures requirements. Use at the START of a new feature.
tools:
  - read_file
  - write_file
model: sonnet
---

The description field drives automatic delegation — Cursor's agent reads all descriptions and decides which subagent to invoke without you naming it explicitly.

Configuration fields supported by Cursor:

FieldPurpose
nameDisplay name and /name invocation identifier
descriptionControls when the agent auto-delegates
modelinherit (default), fast, or a specific model ID
readonlytrue = no file writes or shell mutations
is_backgroundtrue = runs without blocking the parent

Step 3 — Start a KAIROS session ​

In Cursor Agent mode, type:

Help me implement [your feature] using the KAIROS framework

The orchestrator's description signals Cursor to delegate to it, which then coordinates the subagents it derives for the change, in sequence (PM → Architect → Implementer → Reviewer → Test Verifier → Release Planner).

Explicit invocation ​

You can also invoke a specific agent with the /name syntax:

/pm-agent gather requirements for a user authentication feature
/architect-agent design the architecture for: [paste requirements]

Step 4 — HITL checkpoints ​

The HITL gate is enforced by the agent definitions — each KAIROS agent ends with:

✅ Approve and continue to the next phase
✏️  Request changes (describe what to fix)
⛔  Stop here

You must respond with your choice. The orchestrator will not call the next agent until you explicitly approve.

Step 5 — .kairos/ persistence ​

Each KAIROS agent writes its validated output to .kairos/<feature_folder>/ via the write_file tool listed in its frontmatter — automatic when you approve. The orchestrator derives feature_folder from the issue number and feature title at the start of every pipeline run. Every phase writes a single Markdown file: a small YAML frontmatter header (status, counts) followed by the human-readable report body (data model, issues, findings, runbook).

.kairos/
└── issue-42_add-stripe-payments/   ← one subfolder per feature
    ├── 01-requirements.md
    ├── 02-architecture.md
    ├── 03-implementation.md
    ├── 04-review.md
    ├── 05-test-verification.md
    └── 06-deployment-plan.md

Parallel execution ​

Cursor supports running subagents concurrently. For phases that can overlap:

Run the Code Reviewer and Test Verifier on the current implementation in parallel

Cursor spawns both subagents simultaneously and returns both results.

Feature comparison vs Claude Code ​

FeatureClaude CodeCursor
Native subagent format✅ .claude/agents/✅ .cursor/agents/ (+ .claude/agents/ compat)
Context isolation per agent✅✅
Auto-delegation via description✅✅
Explicit /agent-name invocation❌✅
Parallel subagents✅✅
.kairos/ persistence✅ Automatic✅ Via write_file tool
HITL gate✅ Orchestrator-enforced⚠️ Via agent prompt wording

Troubleshooting ​

ProblemFix
Agents not foundCheck .cursor/agents/ exists with valid .md files
Wrong agent invokedRefine the description — be more specific about when to use the agent
Agent not pausing for approvalAdd "Always wait for explicit ✅ approval before proceeding" to the agent prompt
.kairos/ not writtenEnsure write_file is in the agent's tools: list

Suggested Models ​

Cursor accepts inherit (workspace default), fast (Haiku-class), or an explicit model ID. The model: field in agent frontmatter overrides whatever is selected in the Cursor UI.

Same reasoning/execution split as the shipped agents/*.md frontmatter — see Customizing models for the full rationale.

AgentRecommendedNotes
orchestrator-agentopusNever use inherit or fast — coordination requires full reasoning
architect-agentopusNever use inherit or fast — system design requires full reasoning
context-extractor-agentopusfast not recommended even for small codebases — full-repo scans benefit from stronger reasoning
impact-assessment-agentopusNever use inherit or fast — its facts drive the orchestrator's derivation of every downstream agent
security-reviewer-agentopusNever use inherit or fast — adversarial security analysis requires full reasoning
improvement-advisor-agentopusRarely invoked; keep on opus for cross-feature pattern recognition
bug-triage-agentopusNever downgrade — root-cause reasoning from partial evidence
pm-agentsonnetfast acceptable for quick requirement sketches
implementer-tdd-agentsonnetUpgrade to opus for complex TDD cycles spanning many files
implementer-coder-agentsonnetfast not recommended; no test-first overhead but still needs solid reasoning
code-reviewer-agentsonnetUpgrade to opus for deep security audits
test-verifier-agentsonnetSufficient for coverage analysis
release-planner-agentsonnetSufficient for deployment planning
documentation-agentsonnetSufficient for README/CHANGELOG/API-reference generation
retrospective-agentsonnetSufficient for lessons synthesis from existing artifacts
dependency-audit-agentsonnetScanning and tabulation; upgrade only for large monorepos with tangled transitive trees

Layered Mode not supported

Cursor does not run KAIROS Layered Mode (agents/team/, called Team Mode until v9.5.0). The orchestrator offers it only on Claude Code, and these agents are not mirrored for Cursor. Use the single implementer.

KAIROS Framework v9.7.1 — Released under the AGPL-3.0 License.