Skip to main content

Cursor integration

Prefer ide-adapters.md for Cursor and GitHub Copilot selection (--ide-adapters). This page keeps Cursor-oriented product context.

A2C supports AI tools such as Cursor through repository rules, prompt packs, optional adapter wrappers, and (when shipped) the a2c-vscode-extension thin client.

Product surfaces

SurfaceRepositoryPackageRole
Engine + AI workflowsa2c-workflowa2c_coreOrchestration, schemas, contracts
CLIa2c-workflowa2c_cliHeadless commands — also bundled in extension
TUIa2c-workflowa2c_tuiTextual interactive UI
IDE extensiona2c-vscode-extensionWebviews, host shims — invokes bundled CLI (ADR-0007)

Cursor is a VS Code–compatible host. The extension targets Cursor without duplicating workflow logic in extension code.

Method-repo design (a2c-workflow)

LayerLocationRole
Canonical docsdocs/, AGENTS.mdAuthoritative policy
Rulesrules/Machine-usable constraints
Promptsprompts/Bounded execution instructions
Shared Cursor adapterscursor/rules/*.mdcThin pointers for consuming projects
Shared Copilot adapterscopilot/Copilot instruction sources
Repo governance.cursor/rules/*.mdcRules for editing this repo only

Plain Markdown is preferred over tool-specific lock-in. Adapters summarize and link — they do not duplicate full policy inline. Runtime assets live in a2c-workflow (ADR-0005).

Bootstrap in a consuming project

See ide-adapters.md. Summary:

  1. Run a2c bootstrap (default materializes Cursor adapters).
  2. Use --ide-adapters both (or copilot) when needed.
  3. Add project-local overlays beside managed filenames.
  4. Verify ADR-0000 exists.

Agent execution constraints

A2C treats AI as an ergonomic layer over architecture and contracts — not a substitute for them. See workflow/ai-principles.md.

Instruct agents to:

  • start from specs and accepted ADRs
  • generate docs before code
  • scaffold only approved structure
  • proceed in small phases per the commit plan
  • stop after the planned batch
  • avoid speculative extras
  • use adr(<category>): ... for architectural decisions

Prompt entry points

TaskPrompt
New project bootstrappathname:///a2c-assets/prompts/bootstrap/master-bootstrap.md
Docs-first phasepathname:///a2c-assets/prompts/bootstrap/docs-first-bootstrap.md
Inputs intake (drafts in inputs/)pathname:///a2c-assets/prompts/bootstrap/inputs-intake.md — see workflow/inputs-intake.md
Legacy repo adoptionpathname:///a2c-assets/prompts/bootstrap/legacy-adoption.md — see workflow/legacy-adoption.md
ADR workpathname:///a2c-assets/prompts/phases/adr-create-update.md
Implementation batchpathname:///a2c-assets/prompts/phases/implementation-batch.md

@ references in Cursor

@prompts/bootstrap/inputs-intake.md
Start batch-intake-00: inventory inputs/ and produce a migration plan.

When A2C method assets are mounted at tools/ai-rules/, use @tools/ai-rules/prompts/bootstrap/inputs-intake.md instead.