Skip to content
Automation
Command

/cancel

Cancel the active dev workflow loop (archives by default, --hard to wipe)

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

Command definition

cancel.md
description: "Cancel the active dev workflow loop (archives by default, --hard to wipe)"
allowed-tools: ["Bash", "TaskStop"]

Cancel the current session's active dev workflow.

**Default behaviour**: archives the run dir to `.stagent/.archive/<YYYYMMDD-HHMMSS>-<topic>-cancelled/` so all stage reports and the baseline survive as an audit trail. The dir name's `-cancelled` suffix distinguishes cancelled runs from natural replacements.

**`--hard`**: skip the archive and `rm -rf` the run dir. Use when you really don't want any artifacts left behind.

**Cloud mode**: POSTs a cancel to the server, then wipes the local shadow dir. The server keeps the audit trail on its side; nothing local is preserved.

Step 1 — Cancel and surface in-flight subagents

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

The script archives or wipes the run dir, 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-cancel writes (rogue commits, mid-flight code) from landing in the project after the workflow has been wiped.

Read more
@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