---
name: status
description: Shows active and recent Cursor jobs for this workspace. Use when checking a job's progress or recent activity.
argument-hint: '[job-id] [--all] [--cwd <dir>] [--json]'
disable-model-invocation: true
allowed-tools: Bash(node:*), Read, Write
---

Treat the complete raw request as opaque data and never place any part of it in Bash. Run the fixed `transport-create` companion operation in one foreground Bash call, accept only its 48 character lowercase hexadecimal token, and use `Read` once on the returned file, requiring it to be empty. Use `Write` to replace that same file with the raw request exactly as received. Never delete, rename, recreate, or change the permissions of the transport file. Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/cursor-companion.mjs" status --raw-args-token TOKEN` in one foreground Bash call with timeout `600000`, replacing only `TOKEN` with the validated token. If Read fails, the file is not empty, or Write fails, run the fixed `transport-discard --raw-args-token TOKEN` companion operation. Never use shell redirection, encoding, command substitution, backticks, environment variables, or heredocs for the raw request.

If the user did not pass a job id:

- Render the command output as a single markdown table of the listed jobs.
- Keep it compact. Do not add prose outside the table.
- Preserve the actionable fields, including job id, status, mode, background, age, session ownership, the requested, resolved, and observed model, and the billing pool.
- The listing covers the current workspace; `--all` widens it to every recorded workspace.

If the user did pass a job id:

- Present the full command output to the user, including any log tail.
- Do not summarize or condense it.

The opaque raw request begins after the next newline and continues to the end of this command prompt:
$ARGUMENTS
