Skip to content
Automation
Command

/interrupt

Pause the active dev workflow loop without clearing state — resume later with /stagent:continue

From plugin
stagent
259 skills1 agent9 commands8 hooks
Install
> /plugin marketplace add jie-worldstatelabs/stagent
> /plugin install stagent@stagent

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/interrupt

Context preview

What this command does when you run it.

Pause the active dev workflow loop without clearing state — resume later with /stagent:continue

Command definition

interrupt.md
description: "Pause the active dev workflow loop without clearing state — resume later with /stagent:continue"
argument-hint: "[--session <id>]  (omit to interrupt this Claude session's own workflow)"
allowed-tools: ["Bash", "TaskStop"]

Pause the dev workflow at the current stage, preserving all state for resumption.

  • **No arguments**: interrupts the workflow owned by THIS Claude session (resolved via PPID / cwd cache).
  • **`--session <id>`**: interrupts a specific cloud session — useful when you want to pause a workflow that's running in another Claude Code window or on another machine.

Step 1 — Flip state and surface in-flight subagents

bash "${CLAUDE_PLUGIN_ROOT}/scripts/interrupt-workflow.sh" $ARGUMENTS

The script flips the workflow to `interrupted`, removes inflight markers, and — if the workflow had a subagent in flight — prints a line of the form:

STAGENT_STOP_AGENT_IDS: <id1> <id2> ...

Step 2 — Stop each in-flight subagent

If Step 1 printed a `STAGENT_STOP_AGENT_IDS:` line, call the `TaskStop` tool **once per id** to terminate the orphan subagents. If it didn't print that line, skip this step — there were no in-flight subagents.

Stopping subagents is what prevents post-interrupt writes (orphan reports, mid-flight code) from contaminating the resumed run.

Ships withstagent

A Claude Code plugin that runs config-driven development workflows as a state machine. You declare stages, transitions, and inputs in a single workflow.json; the plugin's hooks and scripts drive the loop.

Get the whole plugin
Stats
25
Stars
1
Forks
Maintained
Maintenance
Shell
Language
4mo ago
Last commit
5mo ago
Created

Repo: jie-worldstatelabs/stagent

Other commands on stagent.