Summary
Close the highest-value Cursor Agent CLI gaps in HAPI remote sessions:
/multitask + related slash pass-through (and better subagent task visibility)
autoReview permission mode (Cursor Auto-review / Smart Auto)
- Cursor-native
--worktree / --add-dir for Cursor sessions (plus mid-session slash)
Also expand Cursor slash pass-through to commands that are actually useful over ACP (text prompt), not interactive TUI menus.
Research notes (ACP probe on agent 2026.07.09)
- Cursor ACP
configOptions.mode only exposes agent | plan | ask (no debug, no auto-review).
- Auto-review is a spawn flag:
agent --auto-review acp works; mid-session toggle is slash /auto-review.
- Cursor-native worktree works as
agent --worktree <name> acp → ~/.cursor/worktrees/<repo>/<name>.
- Multitask / best-of-n / worktree apply-delete / add-dir are agent slash commands, not ACP config options — remote HAPI should isolate + pass them through as prompts (same pattern as
/compress).
Slash pass-through: include vs exclude
Include (agent-executable as prompt; useful remotely):
- already:
/compress, /model
- add:
/summarize, /compact (aliases)
- add:
/multitask, /best-of-n
- add:
/worktree, /apply-worktree, /delete-worktree
- add:
/add-dir
- add:
/context, /fork
- add:
/auto-review
Exclude (interactive TUI / IDE-only / needs special protocol):
/config, /mcp, /sandbox, /plugins, /vim, /copy, /logs, /statusline, /btw, /rewind, /resume, /login, /logout, /update
- Mode switches
/ask /plan /debug — already covered by HAPI permission-mode UI via ACP set_config_option
Acceptance criteria
1) Slash pass-through
2) Auto-review mode
3) Cursor-native worktree / multi-root
4) Subagent visibility (MVP)
Out of scope (follow-ups)
- Cloud Agents /
/in-cloud / private worker
- Interactive
/sandbox /mcp /config remote UIs
/btw mid-turn overlay, /rewind timeline
- True non-interrupting multitask orchestration UI
Test plan
Summary
Close the highest-value Cursor Agent CLI gaps in HAPI remote sessions:
/multitask+ related slash pass-through (and better subagent task visibility)autoReviewpermission mode (Cursor Auto-review / Smart Auto)--worktree/--add-dirfor Cursor sessions (plus mid-session slash)Also expand Cursor slash pass-through to commands that are actually useful over ACP (text prompt), not interactive TUI menus.
Research notes (ACP probe on agent 2026.07.09)
configOptions.modeonly exposesagent|plan|ask(nodebug, noauto-review).agent --auto-review acpworks; mid-session toggle is slash/auto-review.agent --worktree <name> acp→~/.cursor/worktrees/<repo>/<name>./compress).Slash pass-through: include vs exclude
Include (agent-executable as prompt; useful remotely):
/compress,/model/summarize,/compact(aliases)/multitask,/best-of-n/worktree,/apply-worktree,/delete-worktree/add-dir/context,/fork/auto-reviewExclude (interactive TUI / IDE-only / needs special protocol):
/config,/mcp,/sandbox,/plugins,/vim,/copy,/logs,/statusline,/btw,/rewind,/resume,/login,/logout,/update/ask/plan/debug— already covered by HAPI permission-mode UI via ACPset_config_optionAcceptance criteria
1) Slash pass-through
2) Auto-review mode
autoReviewadded toCURSOR_PERMISSION_MODES(+ labels/tones + schema allowlist)autoReviewspawnagent --auto-review … acpautoReviewkeeps ACP mode=agentand sends isolated/auto-reviewonce (best-effort; ACP has no config option)3) Cursor-native worktree / multi-root
agent=cursor+ New SessionsessionType=worktree, runner does not create HAPI-side worktree; instead passes Cursor--worktreeinto ACP spawn--add-dir/ repeated dirs supported on ACP spawn (CLI flag + runner plumbing); mid-session/add-dirvia pass-throughUsing worktree: …or resolved path)createWorktreebehavior4) Subagent visibility (MVP)
cursor/tasknotifications render as liveCursorTasktool cards with status from payload when present (running/completed), not always force-completedOut of scope (follow-ups)
/in-cloud/ private worker/sandbox/mcp/configremote UIs/btwmid-turn overlay,/rewindtimelineTest plan
bun typecheck && bun run test(shared + cli cursor suites)/multitask …, permission Auto-review, New Session worktree for Cursor