closeout

closeout is a command for Claude Code from cirwel/unitares. It costs 9 tokens per session (1,262 once invoked), scanned A, original, Apache-2.0.

A command that checks whether a UNITARES workspace is ready to be handed over after work is finished. It reports repository changes, delivery status, running processes, and optional branch-cleanup information.

In plain words
What is it for?
Use it before finishing to check whether Git is clean, whether changes are staged or untracked, whether work was pushed and merged, and whether repository processes or cleanup candidates remain.
Why use it?
It prevents unfinished local changes, unpushed work, or leftover development processes from being overlooked. A baseline lets it ignore processes that were already running before the work began.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it before finishing to check whether Git is clean, whether changes are staged or untracked, whether work was pushed and merged, and whether repository processes or cleanup candidates remain.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/cirwel/unitares/closeout
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/cirwel/unitares

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 closeout

README.md
[![agentmods](https://agentmods.dev/badge/commands/cirwel/unitares/closeout/github.svg)](https://agentmods.dev/commands/cirwel/unitares/closeout)
Your own site
<a href="https://agentmods.dev/commands/cirwel/unitares/closeout"><img src="https://agentmods.dev/badge/commands/cirwel/unitares/closeout/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 closeout

Your own site · 80×15
<a href="https://agentmods.dev/commands/cirwel/unitares/closeout"><img src="https://agentmods.dev/badge/commands/cirwel/unitares/closeout.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 1,262 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.00009 $0.01262
Opus 5.5 $0.00004 $0.00505
Sonnet 5.5 $0.00002 $0.00252
Haiku 4.5 $0.00001 $0.00126

Measured 18d ago against content hash a29589075885, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

closeout 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/closeout.md · 108 lines

How it starts

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

Use this before saying work is done, especially after edits, test runs, local servers, BEAM residents, or any cleanup request from the operator.

Before the final response, if you created actionable KG findings this session, revisit at most three of your own still-open bugs, questions or improvements. Use the UUID returned by this process's start_session (not a display name, predecessor or harness account), and the existing read:

knowledge(action="search", agent_id_filter="<this process UUID>",
          status="open", limit=10, include_details=false, response_mode="lean")

Open details for candidates you can assess. If addressed, use the existing update_finding with a closure class and evidence; fix_verified needs both deployment and a positive observation, so a merged PR alone is insufficient. Otherwise keep it open with a brief unresolved condition or artifact pointer when that adds information. Permanent insights, decisions and ordinary notes may legitimately stay open. This is a bounded reminder, not a quota or an extra check-in. If you wrote no actionable findings, the graph is unavailable, or the remaining claims cannot be verified now, continue closeout; do not mint an identity just for this reminder or automatically archive anything.

First run a non-mutating check:

  • python3 scripts/dev/workspace_closeout.py
  • python3 scripts/dev/workspace_closeout.py --branch-hygiene when branch or worktree cleanup is part of the question

This uses .unitares/workspace-closeout-baseline.json when present. The baseline is written by /governance-start through workspace_closeout.py --start-check; it lets the closeout check ignore resident/control-plane processes that already existed before the agent began work and focus on newly started repo-rooted processes.

Report:

  • whether git is clean
  • the delivery: line, including whether work is local-only, unpushed, pushed-but-not-proven-merged, or synced with default upstream
  • any staged, unstaged, or untracked files
  • any repo-rooted processes still running
  • whether a remaining process is managed by a LaunchAgent label (macOS only; other platforms report no labels)
  • the branch hygiene: line when requested, including cleanup candidates, safe deletions performed, held branches, and sweep errors

If work should be delivered instead of left local, stage the intentional files and use the ship helper:

  • When the operator asks to ship, finish, deliver, open a PR, or otherwise complete a delivery workflow, treat the default draft-PR route as authorized; do not ask for a second confirmation just to push or open the draft PR.
  • ./scripts/dev/ship.sh --plan "commit message" previews the delivery route
  • ./scripts/dev/ship.sh "commit message" is the default route: a draft PR for every change, per docs/operations/github-workflow-conventions.md. Once CI is green and the review passes, mark it ready and apply approved-to-merge (the merge queue lands it; a governance-sensitive PR waits for the operator). Runtime/detached work mints a fresh agent-prefixed branch; non-runtime work on a named branch opens the draft PR on that branch
  • ./scripts/dev/ship.sh --direct "commit message" opts out for docs/tests-only pushes where you knowingly skip the PR
  • ./scripts/dev/ship.sh --auto-merge "commit message" opts into auto-merge-on-green; use only when the operator explicitly asks, not by default

If the operator asked to clean the workspace, or if you are finishing a task whose intended work is already committed/stashed, run:

  • python3 scripts/dev/workspace_closeout.py --stash-dirty --stop-repo-processes --bootout-launch-agents --branch-hygiene-live

--bootout-launch-agents applies only on macOS LaunchAgent installs. --branch-hygiene-live reuses the branch-hygiene safety contract in docs/operations/branch-hygiene-runbook.md: patch-equivalent or empty stale branches may be pruned, clean stale worktrees may be removed, and branches with unique commits, dirty worktrees, or a protected checkout are held for review instead of deleted.

Read the full file on GitHub · 108 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 · +2 lines a29589075885
  2. 23d ago Changed · +20 lines abd5ddd6c2f1
  3. 1mo ago Changed · +1 lines 78e07119c05e
  4. 2mo ago First seen · 85 lines · 9 tokens per session scan A 4b25fe7752c4

Subscribe to this mod's changes

closeout is a command published in the GitHub repository cirwel/unitares (6 stars, last pushed today), licensed Apache-2.0. It adds 9 tokens to every session and 1,262 once invoked, about $0.0000 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.

Related

closeout compared with commands from other repositories

closeout next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
closeoutcirwel/unitaresCommand6todayApache-2.0A9Claude Code
statusbar-styleleeguooooo/claude-code-usage-barCommand3896d agoMITA16Claude Code
icpg-bootstrapalinaqi/maggyCommand71124d agoMITA0Claude Code
coder-eval-implement-planUiPath/coder_evalCommand156yesterdayApache-2.0A22Claude Code
lians-recallLians-ai/LiansCommand174d agoApache-2.0A19Claude Code
memory-statusRichmondAlake/memorizzCommand7814d agononeA9Claude Code
sugar-taskroboticforce/sugarCommand100yesterdaynoneA14Claude Code