ace:remove-phase

ace:remove-phase is a command for Claude Code from AgriciDaniel/ace-claude-code. It costs 9 tokens per session (860 once invoked), scanned C, original, MIT.

A command for removing a phase from a project roadmap, including its planned work and later phase numbering.

In plain words
What is it for?
Use it to check a phase, review its plans and commits, see the impact of removal, and choose how to handle its existing work.
Why use it?
It helps clean up phases that are no longer needed or will be postponed indefinitely while showing what existing work could be affected.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit Use it to check a phase, review its plans and commits, see the impact of removal, and choose how to handle its existing work.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/agricidaniel/ace-claude-code/remove-phase
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/AgriciDaniel/ace-claude-code

Made for: Claude Code.

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 ace:remove-phase

README.md
[![agentmods](https://agentmods.dev/badge/commands/agricidaniel/ace-claude-code/remove-phase/github.svg)](https://agentmods.dev/commands/agricidaniel/ace-claude-code/remove-phase)
Your own site
<a href="https://agentmods.dev/commands/agricidaniel/ace-claude-code/remove-phase"><img src="https://agentmods.dev/badge/commands/agricidaniel/ace-claude-code/remove-phase/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ace:remove-phase

Your own site · 80×15
<a href="https://agentmods.dev/commands/agricidaniel/ace-claude-code/remove-phase"><img src="https://agentmods.dev/badge/commands/agricidaniel/ace-claude-code/remove-phase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 860 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00009 $0.00860
Opus 5.5 $0.00004 $0.00344
Sonnet 5.5 $0.00002 $0.00172
Haiku 4.5 $0.00001 $0.00086

Measured 1mo ago against content hash 15ebf579c156, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

ace:remove-phase scanned grade C with 1 finding 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 1mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .ace/planning/phases/{phase}/
.ace/commands/remove-phase.md · 165 lines

How it starts

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

Use for phases that are no longer needed or should be deferred indefinitely.

Required: @.ace/planning/ROADMAP.md @.ace/planning/STATE.md

1. Validate Phase

if $ARGUMENTS is empty:
    Error: "Specify phase: /ace:remove-phase 3"

if phase $ARGUMENTS not in ROADMAP.md:
    Error: "Phase $ARGUMENTS not found"

if phase $ARGUMENTS is current or completed:
    Warning: "Phase [N] has work. Are you sure?"

2. Check for Existing Work

if phases/{phase}/ directory exists:
    List all PLAN.md and SUMMARY.md files
    Show: "[X] plans exist for this phase"

3. Display Impact

+==============================================================+
|                    REMOVE PHASE IMPACT                       |
+==============================================================+

Removing: Phase [N] - [Name]

Existing work:
- [X] plans created
- [Y] plans executed
- [Z] commits made

Subsequent phases will be renumbered:
  Phase [N+1] -> Phase [N]
  Phase [N+2] -> Phase [N+1]

+==============================================================+

4. Get Confirmation

Use AskUserQuestion:

  • "How should we handle this phase?"
  • Options:
    • "Archive and remove" (move to .ace/archived/)
    • "Delete permanently" (no recovery)
    • "Cancel"

5. Archive or Delete

If Archive:

mkdir -p .ace/archived/
mv .ace/planning/phases/{phase}/ .ace/archived/phase-{N}-{name}/

If Delete:

rm -rf .ace/planning/phases/{phase}/

6. Update ROADMAP.md

  1. Remove the phase entry
  2. Renumber subsequent phases
  3. Update plan IDs in remaining phases

7. Update STATE.md

If current phase > removed phase:

  • Decrement current phase number
  • Update progress calculations

If current phase == removed phase:

  • Set to previous phase or "Phase 1 ready to plan"

8. Update Remaining Plans

Read the full file on GitHub · 165 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. 1mo ago First seen · 165 lines · 9 tokens per session scan C 15ebf579c156

Subscribe to this mod's changes

ace:remove-phase is a command published in the GitHub repository AgriciDaniel/ace-claude-code (27 stars, last pushed 6mo ago), licensed MIT. It adds 9 tokens to every session and 860 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.