mission-abort

mission-abort is a command for coding agents from rajconnects/founder-stack. It costs 29 tokens per session (902 once invoked), scanned A, original, MIT.

A command that stops an active mission, records it as aborted, and keeps its mission files for review.

In plain words
What is it for?
Use it to abort a running mission by ID, add an optional reason, and prevent further automatic wake-ups. Review any code changes separately with Git.
Why use it?
It gives you a clear, logged way to stop work without deleting the record or pretending that code changes were undone.

Command

Part of the founder-stack plugin — 21 commands, 13 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/rajconnects/founder-stack/mission-abort
Clone the repo
git clone --depth 1 https://github.com/rajconnects/founder-stack

Or install founder-stack, the plugin that ships this one along with the rest of its 21 commands, 13 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mission-abort

README.md
[![agentmods](https://agentmods.dev/badge/commands/rajconnects/founder-stack/mission-abort.svg)](https://agentmods.dev/commands/rajconnects/founder-stack/mission-abort)
Your own site
<a href="https://agentmods.dev/commands/rajconnects/founder-stack/mission-abort"><img src="https://agentmods.dev/badge/commands/rajconnects/founder-stack/mission-abort.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 902 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00029 $0.00902
Opus 5 $0.00015 $0.00451
Sonnet 5 $0.00006 $0.00180
Haiku 4.5 $0.00003 $0.00090

Measured 3d ago against content hash 97f89da2cfd5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mission-abort scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

workflow-v1/commands/mission-abort.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are aborting an in-flight mission.

Arguments: $ARGUMENTS

Steps

  1. If $ARGUMENTS is empty: print ERROR: /mission-abort requires a mission id. Run /mission-status to see active missions. and stop.

  2. Parse: first whitespace-separated token is the id; remainder is the abort reason (may be empty).

  3. Read .claude/project.jsonmission_root. Confirm <mission_root>/<id>/state.json exists.

  4. Read the state. If status is already completed or aborted: print Mission <id> already <status>. Nothing to do. and stop.

  5. Confirm with the user. Print:

    About to abort mission <id> (goal: <goal>).
    Status:    <status>
    Features:  <completed>/<total> completed
    Reason:    <reason or "not provided">
    
    This will:
      - Set status: aborted in state.json
      - Append a final log entry
      - Stop further /loop wakeups
      - Preserve the mission directory at <mission_root>/<id>/ for audit
      - NOT roll back any code changes the worker made — review with git diff
    
    Proceed? (yes/no)
    

    On no: stop.

  6. Perform the abort synchronously (small enough to inline):

    • Set state.json status: aborted. Append error_log entry with timestamp + the parsed reason (or "user-initiated abort" if empty).
    • Save state atomically.
    • Append to log.md: <timestamp> | mission aborted by user.
    • Remove the mission-mode marker for this mission: rm -f "$CLAUDE_PROJECT_DIR/.claude/.mission-tick-active-<id>". Otherwise main-push-guard.sh would keep blocking interactive pushes to main after the mission is gone.
    • Close the coordination.json row if it exists: set status: completed, completed: <iso>. Do not use completed_unclean — that status is reserved for crashed sessions and could trigger a future automated sweep to remove the worktree, which would defeat the audit-trail guarantee. The mission-level "aborted" signal lives in state.json.status, not in the coordination row.
    • Do not delete files (other than the mission-mode marker). Do not call memory-broker. The mission directory and the worktree are preserved for audit.
  7. Worktree cleanup hint. If state.worktree is set, print:

    Worktree preserved at <state.worktree.path> on branch <state.worktree.branch>.
    To inspect: cd <state.worktree.path> && git status
    To discard: git worktree remove --force <state.worktree.path> && git branch -D <state.worktree.branch>
    
  8. Cron pace cleanup. If state.pace == "cron": invoke the /schedule skill via the Skill tool to delete the routine named mission-<id>. If deletion fails (already gone), log a warning but don't fail — the user invoked abort with clear intent. If state.pace is local, skip (nothing to clean up).

  9. Suggest:

    Review code changes with:  cd <state.worktree.path> && git diff <state.worktree.base_ref>
                               (or `git diff` from the main repo if worktree is disabled)
    Review mission with:       cat <mission_root>/<id>/log.md
    

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 67 lines · 29 tokens per session scan A 97f89da2cfd5

Subscribe to this mod's changes

mission-abort is a command published in the GitHub repository rajconnects/founder-stack (2 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 902 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.