You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Builtin cursor monitor is not useful unless the pid walk can see cursor-agent.
_agmsg_agent_binaries does not list cursor-agent, so cursor falls through to claude codex gemini. Watchers are not liveness-gated. Manifest already has detect_proc.
Builtin cursor is delivery_modes=turn off. Cursor Agent CLI has no Monitor tool; idle wake is Shell notify_on_output. Offer monitor (BETA is fine). Keep monitor=no on spawn.
Needs the #477- fold (sibling #855 / #857) because the launch command uses "${CURSOR_CONVERSATION_ID:--}". That is a runtime dependency, not a git stack: #858 stays a draft until #857 and #860 have landed.
The grok-build pid mapping is independently mergeable on #859 / #860.
Pid name
. scripts/lib/resolve-project.sh
_agmsg_agent_binaries cursor # claude codex gemini (wrong)
Fix, before the * arm:
cursor) echo"cursor-agent";;
The matcher already accepts "$bin"|"$bin"-*. Follow-up (not this issue): read detect_proc from type.conf for plugins (#631).
Shared basename agent
Do not add agent to _agmsg_agent_binaries or to detect_proc for cursor or grok-build.
Homebrew grok-build installs both grok and agent. The Cursor CLI installer also ships agent as an alias of cursor-agent. The basename is not type-distinctive. detect_proc globs are required to be disjoint (detect-cli-type.sh); a shared name would attach the wrong pid (#93).
Env detection already distinguishes the CLIs (CURSOR_AGENT / CURSOR_CONVERSATION_ID vs GROK_SESSION_ID). Pid walk still needs distinctive comm/argv0 (cursor-agent, grok) to find the enclosing process. Missing the alias is intentional. Disambiguating via cmdline or install path is a follow-up, not this issue.
Also do not list cursor (the desktop app code shim).
#860 comments this omission on _agmsg_agent_binaries.
_delivery.sh: keep the existing turn .mdc + check-inbox.sh rule. Add a monitor rule that launches watch.sh once via Shell + notify_on_output. Status must distinguish turn vs monitor. Short AGMSG-DIRECTIVE on set monitor.
Summary
Builtin cursor
monitoris not useful unless the pid walk can seecursor-agent._agmsg_agent_binariesdoes not listcursor-agent, socursorfalls through toclaude codex gemini. Watchers are not liveness-gated. Manifest already hasdetect_proc.delivery_modes=turn off. Cursor Agent CLI has no Monitor tool; idle wake is Shellnotify_on_output. Offermonitor(BETA is fine). Keepmonitor=noon spawn.Needs the #477
-fold (sibling #855 / #857) because the launch command uses"${CURSOR_CONVERSATION_ID:--}". That is a runtime dependency, not a git stack: #858 stays a draft until #857 and #860 have landed.The grok-build pid mapping is independently mergeable on #859 / #860.
Pid name
Fix, before the
*arm:The matcher already accepts
"$bin"|"$bin"-*. Follow-up (not this issue): readdetect_procfrom type.conf for plugins (#631).Shared basename
agentDo not add
agentto_agmsg_agent_binariesor todetect_procfor cursor or grok-build.Homebrew
grok-buildinstalls bothgrokandagent. The Cursor CLI installer also shipsagentas an alias ofcursor-agent. The basename is not type-distinctive.detect_procglobs are required to be disjoint (detect-cli-type.sh); a shared name would attach the wrong pid (#93).Env detection already distinguishes the CLIs (
CURSOR_AGENT/CURSOR_CONVERSATION_IDvsGROK_SESSION_ID). Pid walk still needs distinctive comm/argv0 (cursor-agent,grok) to find the enclosing process. Missing the alias is intentional. Disambiguating via cmdline or install path is a follow-up, not this issue.Also do not list
cursor(the desktop appcodeshim).#860 comments this omission on
_agmsg_agent_binaries.Cursor monitor
type.conf:delivery_modes=turn monitor off. Optionaldetect=CURSOR_AGENT CURSOR_CONVERSATION_ID._delivery.sh: keep the existing turn.mdc+check-inbox.shrule. Add a monitor rule that launcheswatch.shonce via Shell +notify_on_output. Status must distinguish turn vs monitor. ShortAGMSG-DIRECTIVEonset monitor.template.md: offer monitor; Ensure-monitor; actas/drop 4th arg;modeacceptsmonitor, rejectsboth.Do not invent a Monitor tool. Do not use
/loopsleep as delivery. Do not change grok caller templates.Maintainer merge order
main(picks up the fold, thegrokarm, and theagentcomment) and then merge. Keep feat(cursor): offer monitor delivery and name cursor-agent #858 a draft until that rebase; do not mark it ready earlier.Related
watch.shfold of sentinel-(needed at runtime by cursor monitor)grok-build→grokpid name, plus theagentomission commentdetect_procfrom the manifest