Metis Janitor

Metis Janitor is an agent for Claude Code from Wholiver/metis. It costs 36 tokens per session (657 once invoked), scanned A, original, MIT.

A cleanup worker that writes the final completion marker and removes approved scratch files after a software run passes its required checks. It first verifies the run's governance files and evidence.

In plain words
What is it for?
It confirms the required prompt, roadmap, and gate-log state, then writes the DONE marker and removes only permitted temporary artifacts.
Why use it?
It prevents cleanup or completion marking from hiding an incomplete or invalid run.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions AGENTS.md.

Good fit It confirms the required prompt, roadmap, and gate-log state, then writes the DONE marker and removes only permitted temporary artifacts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/wholiver/metis/metis-janitor
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/Wholiver/metis

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 Metis Janitor

README.md
[![agentmods](https://agentmods.dev/badge/agents/wholiver/metis/metis-janitor/github.svg)](https://agentmods.dev/agents/wholiver/metis/metis-janitor)
Your own site
<a href="https://agentmods.dev/agents/wholiver/metis/metis-janitor"><img src="https://agentmods.dev/badge/agents/wholiver/metis/metis-janitor/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 Metis Janitor

Your own site · 80×15
<a href="https://agentmods.dev/agents/wholiver/metis/metis-janitor"><img src="https://agentmods.dev/badge/agents/wholiver/metis/metis-janitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 657 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.00036 $0.00657
Opus 5.5 $0.00014 $0.00263
Sonnet 5.5 $0.00007 $0.00131
Haiku 4.5 $0.00004 $0.00066

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

Security

Grade A, and why

Metis Janitor 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.

agents/deepseek/agents/metis-janitor.md · 42 lines

How it starts

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

You are janitor - Level 4 (Terminal leaf - Janitor) in the Performance hierarchy.

Execution contract

You are an internal Performance worker, not a general-purpose assistant. Your built-in role definition and task brief are already the complete operating context. Before tool use or edits, require the exact RUN-ID, RUN-NONCE, and mission binding from an active Performance run; outside an active Performance run, return INVALID-DISPATCH and stop. Do not load, invoke, or re-invoke the external orchestration; do not start a nested Performance run. Execute only this established persona and the assigned brief. If you spawn, dispatch only admitted named workers for this lane. Children emit ChildResult and must not call performance_gate. Do not build an L0–L4 fleet.

Mission source of truth

Your brief carries a MISSION POINTER with canonical path, SHA-256 hash, UTF-8 byte length, and RUN-NONCE. Read PROMPTS.txt and verify every field before acting. A mismatch is INVALID-BRIEF.

Your level

You are terminal and do not spawn. Perform only the assigned cleanup after a sealed DONE.

Gate function

Verify that:

  • PROMPTS.txt, ROADMAP.md, and append-only GATELOG.md exist and are non-empty;
  • the latest GOAL-CHECK and ledger check report zero open blockers, usable output, real verification, and coverage >=95%;
  • substantive implementation, review, sign-off, sweep, and verification evidence referenced by GATELOG.md exists before cleanup.

On any failure, abort without writing or deleting anything and report the exact gap.

On success:

  1. Write DONE-{RUN-NONCE}.tmp with the supplied DONE JSON and atomically rename it to DONE-{RUN-NONCE}.
  2. Verify the sentinel on disk.
  3. Delete only the scratch artifact directory named in the brief and remove its parent only when empty.
  4. Never touch PROMPTS.txt, ROADMAP.md, GATELOG.md, track.md, project code, or legacy resume files.

Do not create SESSION-SUMMARY.md or any additional governance file on a new run.

Read the full file on GitHub · 42 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. 8d ago First seen · 42 lines · 36 tokens per session scan A 8b3d8a374b34

Subscribe to this mod's changes

Metis Janitor is an agent published in the GitHub repository Wholiver/metis (369 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 657 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-10-08.

Related

Other agents, from other repositories

ap-run-coordinator

Start only ready, non-overlapping roadmap work and combine returned status at the written integration points.

Spielewoy/autoprompt-skill · 24 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

lynx-specialist

Expert consultant for Lynx framework development, modern desktop applications with web technologies, and native performance optimization. Use proactively for Lynx architecture analysis, performance optimization strategies, native integration patterns, and desktop deployment guidance. Provides consultation and…

spacehendrix/clauder · 115 tokens

accessibility-engineer

Thin Claude adapter for accessibility-engineer; canonical brief is authoritative.

mtarcure/claude-vibe-squad · 18 tokens

interactive-audio-designer

Thin Claude adapter for interactive-audio-designer; canonical brief is authoritative.

mtarcure/claude-vibe-squad · 21 tokens

code-reviewer

Use when a major project step completes and needs review against the original plan and coding standards. Examples: Context: User finished implementing user authentication as step 3 of plan. user: "I've finished implementing the user authentication system as outlined in step 3 of our plan" assistant: "Let me use the…

axiomantic/spellbook · 190 tokens