revert

revert is a command for Claude Code from wshobson/agents. It costs 15 tokens per session (2,070 once invoked), scanned A, original, MIT.

A Git-aware command for undoing a complete track, phase, or task—the logical work units used to organize project changes.

In plain words
What is it for?
Use it to revert selected Conductor tracks, phases, or tasks after reviewing the repository state.
Why use it?
It helps reverse planned work while checking for uncommitted changes and unfinished merges or rebases.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the conductor plugin — 3 skills, 6 commands, 1 agent shipped together

Good fit Use it to revert selected Conductor tracks, phases, or tasks after reviewing…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wshobson/agents/revert
About the project

Agentic Plugin Marketplace is a collection of reusable plugins, agents, skills, commands, and rules for coding-agent tools including Claude Code, Codex CLI, Cursor, OpenCode, Antigravity CLI, and GitHub Copilot. It is for developers assembling agentic workflows across multiple harnesses from shared Markdown sources, and the catalogue entries are examples or subsets of those workflow components.

wshobson/agents · 39,449 stars · on GitHub · sethhobson.com

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.

Clone the repo
git clone --depth 1 https://github.com/wshobson/agents

Made for: Claude Code.

Or install conductor, the plugin that ships this one along with the rest of its 3 skills, 6 commands, 1 agent.

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 revert

README.md
[![agentmods](https://agentmods.dev/badge/commands/wshobson/agents/revert.svg)](https://agentmods.dev/commands/wshobson/agents/revert)
Your own site
<a href="https://agentmods.dev/commands/wshobson/agents/revert"><img src="https://agentmods.dev/badge/commands/wshobson/agents/revert.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,070 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00015 $0.02070
Opus 5 $0.00008 $0.01035
Sonnet 5 $0.00003 $0.00414
Haiku 4.5 $0.00002 $0.00207

Measured 3d ago against content hash a2c8f97e3fda, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

revert 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.

plugins/conductor/commands/revert.md · 354 lines

How it starts

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

Revert Track

Revert changes by logical work unit with full git awareness. Supports reverting entire tracks, specific phases, or individual tasks.

Pre-flight Checks

  1. Verify Conductor is initialized:

    • Check conductor/tracks.md exists
    • If missing: Display error and suggest running /conductor:setup first
  2. Verify git repository:

    • Run git status to confirm git repo

    • Check for uncommitted changes

    • If uncommitted changes exist:

      WARNING: Uncommitted changes detected
      
      Files with changes:
      {list of files}
      
      Options:
      1. Stash changes and continue
      2. Commit changes first
      3. Cancel revert
      
  3. Verify git is clean enough to revert:

    • No merge in progress
    • No rebase in progress
    • If issues found: Halt and explain resolution steps

Target Selection

If argument provided:

Parse the argument format:

Full track: {trackId}

  • Example: auth_20250115
  • Reverts all commits for the entire track

Specific phase: {trackId}:phase{N}

  • Example: auth_20250115:phase2
  • Reverts commits for phase N and all subsequent phases

Specific task: {trackId}:task{X.Y}

  • Example: auth_20250115:task2.3
  • Reverts commits for task X.Y only

If no argument:

Display guided selection menu:

What would you like to revert?

Currently In Progress:
1. [~] Task 2.3 in dashboard_20250112 (most recent)

Recently Completed:
2. [x] Task 2.2 in dashboard_20250112 (1 hour ago)
3. [x] Phase 1 in dashboard_20250112 (3 hours ago)
4. [x] Full track: auth_20250115 (yesterday)

Options:
5. Enter specific reference (track:phase or track:task)
6. Cancel

Select option:

Commit Discovery

For Task Revert

  1. Search git log for task-specific commits:

    git log --oneline --grep="{trackId}" --grep="Task {X.Y}" --all-match
    
  2. Also find the plan.md update commit:

    git log --oneline --grep="mark task {X.Y} complete" --grep="{trackId}" --all-match
    

Read the full file on GitHub · 354 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 · 354 lines · 15 tokens per session scan A a2c8f97e3fda

Subscribe to this mod's changes

revert is a command published in the GitHub repository wshobson/agents (39,449 stars, last pushed 5d ago), licensed MIT. It adds 15 tokens to every session and 2,070 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-09-03.