feat: add Cursor CLI (agent) support#285
Conversation
|
This PR appears to be missing the required checklist from the PR template. Please edit your PR description to include the checklist section. The checklist helps maintainers review your contribution. This PR will be automatically closed in 24 hours if the template is not restored. If you're using an AI coding tool, please ensure it preserves the PR template. |
Add Cursor as a supported agent using the new centralized registry. Cursor CLI is built on Claude Code's codebase, so status detection delegates to the existing Claude detector. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
395b650 to
0945899
Compare
|
Hi @covlllp ! I had my agent review, I think there are a few things that need to be addressed: Let me know if you have any questions, thanks! |
- Fix YOLO flag: --yolo -> --force (per Cursor CLI docs) - Add instruction_flag: --append-system-prompt (Claude Code compatible) - Use RunWithArg detection: agent --version instead of which agent - Add container_env: CURSOR_CONFIG_DIR for sandbox support - Add AGENT_CONFIG_MOUNTS entry for ~/.cursor/ sandbox syncing - Remove Cursor from sandbox image descriptions (Dockerfile not updated) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thanks for the thorough review @njbrake! All issues addressed in the latest push: Bugs fixed:
Additional improvements based on review suggestions:
All tests pass (643/643, the one |
|
Hi @covlllp next review from Claude :) Have you personally run this with the cursor CLI and verified that it works ok? |
|
closing given the latest commit |
I pushed to your branch because I'm doing a last cleanup before merging your branch into main :) I ran it and it's working for me 🚀 |
|
ah my bad 😆 TY! |
Description
Adds Cursor CLI as a supported agent using the new centralized
AgentDefregistry pattern from #282.Cursor CLI is built on Claude Code's codebase, so status detection delegates to the existing Claude detector. The binary name is
agent, but it's intentionally NOT added as an alias inresolve_tool_namesince it's too generic -- users should use-c cursor.One
AgentDefentry, one status detection function, documentation updates across 6 docs files.PR Type
Checklist
AI Usage
AI Model/Tool used: Claude Code (Claude Opus 4.6)
Any Additional AI Details you'd like to share: Implementation planned and executed via Claude Code CLI.