finish-tasks

finish-tasks is a command for Claude Code from MadaraUchiha-314/the-loop. It costs 23 tokens per session (839 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 — 3 skills, 20 commands, 3 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 3 skills, 20 commands, 3 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/github.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/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 finish-tasks

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 839 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.00839
Opus 5.5 $0.00009 $0.00336
Sonnet 5.5 $0.00005 $0.00168
Haiku 4.5 $0.00002 $0.00084

Measured 18d ago against content hash 6ad929cac9e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 18d 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 · 57 lines

How it starts

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

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 evidence/pull-requests.md's 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 loop:complete; the outcome and its evidence are already recorded where each gate left them, under evidence/.

  3. Post the completion summary — first, and promptly. One comment on the ticket, posted with the-loop comment --work-item <ref> --body-file - (it stamps the marker and reaches the room through the mirror; issue-447): what shipped, the evidence links, the accepted gaps. This is the endgame's one message a reader most wants, and it is raced by the close (issue-405 P2): when the merge's Closes #N has already closed the ticket, the daemon holds the session for routing.tmux.finishGraceSeconds (default 300 s) waiting for exactly this summary and the claim below, then ends it. Post the summary before anything else here; do no other work in between.

  4. Claim completion. the-loop graph complete <id> — the claim that tells the graph, and through it the daemon, that the terminal node's work is done. The daemon reads it as "the session has finished" and ends the held closure at once, so the pane, the checkout and the record go the moment you are done rather than at the deadline.

  5. Cleanup (extensible):

    • Close the ticket(s) for this work item (GitHub issue / Jira) if still open, with the-loop ticket close <ref> (issue-447; --reason not_planned for work that was dropped), after a the-loop comment that references the merged PR(s) and evidence. On a jira: ref it transitions the ticket into Done; when the ticket offers no such transition, or several, nothing moves and the error lists them — escalate with the-loop ask naming them, or have the operator set integrations.jira.closeTransition. The Jira MCP tools only when the CLI is not installed. A ticket a merge's Closes #N already closed is expected — say so in the summary and move on; do not reopen it. 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.

Read the full file on GitHub · 57 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. 18d ago Changed · +4 lines 6ad929cac9e5
  2. 24d ago Changed · +3 lines f0a91276cf3e
  3. 1mo ago Changed · +16 lines a2ba9de68a38
  4. 1mo ago Changed · -1 lines 1a40ba69b5c2
  5. 1mo ago Changed 2225581dca8e
  6. 1mo 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 (7 stars, last pushed 2d ago), licensed MIT. It adds 23 tokens to every session and 839 once invoked, about $0.0001 per session on Opus 5.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.