tidy

tidy is a command for Claude Code from OdinMB/ops-workflow. It costs 33 tokens per session (2,499 once invoked), scanned A, original, MIT.

A housekeeping command for repositories that organize knowledge with INDEX.md files and project notes such as MEMORY.md.

In plain words
What is it for?
Use it to scan the repository, process pending update files, fix issues that can be corrected automatically, and report decisions that still need a person.
Why use it?
It finds missing or outdated file listings, orphaned files, stale dates, and unfinished waiting markers so the knowledge structure stays reliable.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the ops plugin — 10 skills, 10 commands, 5 agents shipped together

Good fit Use it to scan the repository, process pending update files, fix issues that can be corrected automatically, and report decisions that still need a person.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/odinmb/ops-workflow/tidy
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/OdinMB/ops-workflow

Made for: Claude Code.

Or install ops, the plugin that ships this one along with the rest of its 10 skills, 10 commands, 5 agents.

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 tidy

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/odinmb/ops-workflow/tidy"><img src="https://agentmods.dev/badge/commands/odinmb/ops-workflow/tidy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 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,499 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.00033 $0.02499
Opus 5.5 $0.00013 $0.01000
Sonnet 5.5 $0.00007 $0.00500
Haiku 4.5 $0.00003 $0.00250

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

Security

Grade A, and why

tidy 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 9d 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/tidy.md · 169 lines

How it starts

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

Ops Housekeeping

Scan this project's knowledge structure for inconsistencies and staleness, fix everything that can be fixed automatically, then brief the user on the little that's left for them to decide.

Pre-check: Process .update/ Inbox

Before running consistency checks, process any pending files in .update/. Spawn the updater (subagent_type: "ops:updater") to handle this in an isolated context. Pass it a follow-up file path at .tmp/housekeeping-update-followup.md.

If .update/ is empty or doesn't exist, skip this step.

Wait for the updater agent to finish before proceeding — the consistency checks should run against the freshly-updated knowledge base.

Phase 1: Scan

If the repo's CLAUDE.md has an ## Autopilot section, autopilot's files are checked like any others, with three limits:

  • state/autopilot.md and references/autopilot-policy.md are autopilot's own: fix their INDEX.md entries, but never split, move, rename, rewrite or delete them.
  • Never move or rename a file or folder autopilot finds by path: those the section names, and backlog/ideas.md, backlog/code.md, references/discards.md, references/decisions.md, references/users/ and state/harness.md.
  • An autopilot cycle record (plans/*autopilot-cycle*, with the folder of variant screenshots beside it, which needs no INDEX.md) stays where autopilot put it; autopilot moves it to plans/completed/ once the user has decided what it offered.

An autopilot/ folder left from before autopilot moved into this layout waits for autopilot to migrate it: leave it out of every check and fix.

to-decide/, the queue of what waits for the user's decision (ops:decide), is indexed through its own INDEX.md, whose fixed text never lists items: the files in to-decide/items/ and to-decide/archive/ are exempt from checks 1, 3 and 9. Never move, split, rename or archive items/, archive/, outbox/ledger.md or outbox/HALT, or anything in them.

1. INDEX.md Accuracy

Read the full file on GitHub · 169 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. 9d ago Changed · +9 lines 1cdfba64cd7d
  2. 1mo ago Changed · +6 lines b58870f79523
  3. 1mo ago Changed · +2 lines 93fa2d813883
  4. 1mo ago Changed 8136ebbe9595
  5. 3mo ago First seen · 152 lines · 33 tokens per session scan A 49edf3f70897

Subscribe to this mod's changes

tidy is a command published in the GitHub repository OdinMB/ops-workflow (6 stars, last pushed 10d ago), licensed MIT. It adds 33 tokens to every session and 2,499 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.

Related

tidy compared with commands from other repositories

tidy next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tidyOdinMB/ops-workflowCommand610d agoMITA33Claude Code
onboardingodere-pro/claude-wiki-pages-pluginCommand35mo agoMITA32Claude Code
flow-nexus-user-toolsruvnet/rufloCommand83ktodayMITA14Claude Code
flow-nexus-authruvnet/rufloCommand83ktodayMITA11Claude Code
cs-bizopsalirezarezvani/claude-skillsCommand31kyesterdayMITA52Claude Code
engage.actionshypnguyen1209/offensive-claudeCommand4361mo agoMITA11Claude Code
scout-meta-reviewRaven-Scout/ScoutCommand20todayMITA63Claude Code