Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
My custom auto-commit subagent works in Cursor IDE, but cannot be invoked when Cursor CLI runs as an ACP server through OpenHands.
Both user-level and project-level definitions fail to become callable:
- User-level:
C:\Users\Administrator\.cursor\agents\auto-commit.md - Project-level:
<workspace>\.cursor\agents\auto-commit.md
Copying the definition into the project-level directory did not resolve the issue. The ACP agent can read the project-level file and describe its instructions, but auto-commit is still missing from the Task tool’s accepted subagent_type values.
An actual Task invocation was attempted and rejected with:
Invalid enum value. Expected 'generalPurpose' | 'cursor-guide' | 'ci-investigator' | 'best-of-n-runner', received 'auto-commit'
This is a failure to invoke the custom subagent, not merely a missing slash-command suggestion.
Steps to Reproduce
Create a custom subagent named auto-commit.
Place its definition in the project’s .cursor/agents/auto-commit.md.
Connect OpenHands to the Windows backend and select a custom ACP agent using the launch command above.
Start a Cursor ACP conversation in that project.
Ask the agent to invoke auto-commit through the Task tool, performing only a read-only repository status check.
Observe that Task rejects the custom subagent name.
Operating System
Windows 10/11
Version Information
OS: Windows, native installation
Terminal: PowerShell
Installed Cursor CLI version: 2026.10.14-941492e, verified with --version
ACP client: OpenHands Agent Canvas
Requested subagent: auto-commit
Requested Task model: composer-2.5
ACP launch command configured in OpenHands:
powershell.exe -NoLogo -NoProfile -Command "& 'C:/Users/Administrator/AppData/Local/cursor-agent/agent.cmd' acp"
Does this stop you from using Cursor
No - Cursor works, but with this issue