Cursor
Integration with Cursor's agent mode via CLI.
AgentCraft supports Cursor as a third AI coding agent alongside Claude Code and OpenCode.
Setup
If Cursor is installed (~/.cursor/ directory or cursor CLI on PATH), AgentCraft automatically installs hooks to ~/.cursor/hooks.json during setup. These hooks report session events (spawn, active, idle, file operations) to AgentCraft in real time.
To install or update Cursor hooks manually:
npx @idosal/agentcraft installTo remove Cursor hooks:
npx @idosal/agentcraft uninstallSpawning Cursor Heroes
Press E at the Town Hall (or in the command grid) to spawn a Cursor hero. The E option is grayed out if the Cursor CLI is not detected.
Model Selection
When you select a Cursor hero, the model dropdown shows a flat list of Cursor-specific model identifiers:
autosonnet-4sonnet-4-thinkingopus-4.1gpt-5gemini-3-progrok
AgentCraft auto-discovers available models by parsing cursor agent --help output at startup. If the Cursor CLI is not reachable, a built-in fallback list is used.
Cursor model identifiers are short names — they differ from Claude Code and OpenCode model strings.
Features
Cursor heroes appear on the map and support core AgentCraft features including:
- Real-time status tracking
- Mission tracking
- Map visualization
- Hero selection and control groups
Notes
- Cursor integration uses Cursor's own model configuration and subscription
- Some advanced features (plan approval, permission handling, Agent Teams) are Claude Code-specific