Skip to content
Automation
Command

/interrupt

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

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

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.

@jie-worldstatelabs
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.

263 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
26
Star history of jie-worldstatelabs/stagent on GitHub, a chart by star-history.com

Other commands on stagent.

create

create

Command

Create a new workflow suite (published to hub by default), or edit an existing one with --flow=<path>

More commands from other plugins.

plan

plan

Command

Plan n8n Linear ticket implementation

n8n11d209k
@n8n-io@n8n-ioInstall Command
setup

setup

Command

One-time setup after installing ARIS as a Claude Code plugin — registers the Codex reviewer MCP server from the plugin directory…

aris12d18k
@wanshuiyin@wanshuiyinInstall Command
agent
Auto-invoked

agent

Command

name: sc:agent description: SC Agent — session controller that orchestrates investigation, implementation, and review category:…

@galaxy-dawn@galaxy-dawnInstall Command