finish-tasks

finish-tasks is a command for Claude Code from MadaraUchiha-314/the-loop. It costs 23 tokens per session (435 once invoked), scanned A, original, MIT.

A command for closing a completed work item after its tasks, reviews, pull requests, and evidence have been checked. It also updates the work item's completion status and closes its related ticket.

In plain words
What is it for?
Verifying completion, updating a project specification or execution log, recording the outcome, and closing the related GitHub or Jira ticket.
Why use it?
It prevents work from being marked finished while required tasks or reviews are still outstanding, and records the final result.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the the-loop plugin — 2 skills, 16 commands, 2 hooks shipped together

Good fit Verifying completion, updating a project specification or execution log, recording the outcome, and closing the related GitHub or Jira ticket.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/madarauchiha-314/the-loop/finish-tasks
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/MadaraUchiha-314/the-loop

Made for: Claude Code.

Or install the-loop, the plugin that ships this one along with the rest of its 2 skills, 16 commands, 2 hooks.

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 finish-tasks

README.md
[![agentmods](https://agentmods.dev/badge/commands/madarauchiha-314/the-loop/finish-tasks.svg)](https://agentmods.dev/commands/madarauchiha-314/the-loop/finish-tasks)
Your own site
<a href="https://agentmods.dev/commands/madarauchiha-314/the-loop/finish-tasks"><img src="https://agentmods.dev/badge/commands/madarauchiha-314/the-loop/finish-tasks.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 435 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.00023 $0.00435
Opus 5 $0.00012 $0.00217
Sonnet 5 $0.00005 $0.00087
Haiku 4.5 $0.00002 $0.00044

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

Security

Grade A, and why

finish-tasks 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 8d 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.

commands/finish-tasks.md · 35 lines

What it actually says

the-loop: finish-tasks $ARGUMENTS

Wrap up a work item once all tasks are complete and reviewed. This is the cleanup step of the loop; the cleanup set is intentionally extensible (more may be added later).

Read the the-loop skill and reference/workflow.md. Load .the-loop/harness-config.yaml.

Steps

  1. Verify done. Resolve $ARGUMENTS to docs/specs/<id>/. Confirm every task in tasks.md is checked (- [x]), every PR in the execution log's Pull requests table is merged or closed (a work item may be delivered by several), the required self/critic reviews and human review are recorded, and validated evidence has been presented. If anything is outstanding, stop and report what remains (point back to /the-loop:execute-tasks <id>).

  2. Mark complete. Set the ticket phase label to <phaseLabelPrefix>complete and mirror phase: complete in the spec/execution log; add a final execution-log entry summarizing outcome + evidence.

  3. Cleanup (extensible):

    • Close the ticket(s) for this work item (GitHub issue / Jira), referencing the merged PR(s) / evidence. Closing the ticket is also what ends the work item's harness session — one of its PRs merging does not (see reference/automation.md).
    • Future cleanup steps are added here (e.g. archiving branches, releasing artifacts, notifying channels). Keep this list the single place cleanup grows.
  4. Report the final status and links.

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. 8d ago First seen · 35 lines · 23 tokens per session scan A 8b9ff5c13a80

Subscribe to this mod's changes

finish-tasks is a command published in the GitHub repository MadaraUchiha-314/the-loop (4 stars, last pushed 4d ago), licensed MIT. It adds 23 tokens to every session and 435 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.