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.
npx agentmods add commands/theastrelo/claude-pipeline/pipeline-undogit clone --depth 1 https://github.com/TheAstrelo/Claude-PipelineWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00730 |
| Opus 5 | $0.00000 | $0.00365 |
| Sonnet 5 | $0.00000 | $0.00146 |
| Haiku 4.5 | $0.00000 | $0.00073 |
Grade A, and why
pipeline-undo 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pipeline Undo Command
Undo a pipeline run's result. With worktree isolation (the current engine),
this is clean and low-risk: a run never touches your checkout — its result
lives only on a pipeline/<session> branch (and, for a --push run, on the
remote). "Undo" therefore means deleting that branch and its worktree, not
reverting your working tree.
Arguments
$ARGUMENTS— optional session ID to undo. Defaults to the most recent run.
Instructions
1. Find the run
- Read
.pipeline/artifacts/current.txtfor the most recent session directory (or resolve the directory matching the$ARGUMENTSsession ID under.pipeline/artifacts/). - The session's
ledger.jsonlis authoritative. Find:- the
run_startedevent → the run's baseline and branch; - a
commit_publishedevent andcommit.sha→ whether a commit was made; - a
branch_publishedevent → whether it was pushed, and to which remote.
- the
- The run branch is
pipeline/<session-id>.
2. Report what will be removed
Show the user, and ask to confirm (y/n):
- Session ID and task (from the
run_startedpayload). - The run branch
pipeline/<session-id>and whether it holds a commit. - Whether a worktree exists at
.pipeline/worktrees/<session-id>. - Whether the branch was pushed to a remote.
- Confirm explicitly that your current checkout will not change — only the run branch/worktree are removed.
3. Execute (only after confirmation)
# Remove the run worktree if it is still present (review-only / halted runs).
git worktree remove --force ".pipeline/worktrees/<session-id>" 2>/dev/null || true
git worktree prune
# Delete the local run branch.
git branch -D "pipeline/<session-id>"
# Remove the per-run checkpoint ref, if any.
git update-ref -d "refs/pipeline-checkpoints/<session-id>" 2>/dev/null || true
If the branch was pushed and the user wants the remote branch removed too (ask separately — this affects shared state):
git push <remote> --delete "pipeline/<session-id>"
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.
- yesterday First seen · 78 lines · 0 tokens per session scan A 0a38a146c589
pipeline-undo is a command published in the GitHub repository TheAstrelo/Claude-Pipeline (44 stars, last pushed 29d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 730 tokens. 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-30.
Other commands, from other repositories
design-form
Design a form end to end — structure, decision points, chunking, validation, errors, and completion.
e2e
Generate and run an end-to-end suite for the critical user flows — Playwright, auto-detected, never imposed.
MIGRATE_DESIGN
Design doc for the migration tool PR. Author: Sol ([email protected]). Co-authored-by: wakesync.
merge
Finalize work on a branch: verify docs + tree are clean, merge to main, clean up. Supports both standard git checkout -b branches and git worktree flows — auto-detected at pre-flight.
diff-script
Compare an MDL script against the project's current state.
toh-help
Display all Toh Framework commands and quick usage guide.