Home / Subagents / Metis Janitor
Metis Janitor
Wholiver/metisSubagent
L4 terminal leaf - JANITOR. Writes the DONE sentinel atomically and removes only scratch artifacts after the three-file governance state and substantive evidence pass validation.
Why this score
This repo hosts 40 subagents, so its 405 stars are split between them (about 10 each) for scoring.
Popularity score: 58/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank
What it can use
- Run shell commands
- Edit and write files
- Read and search files
Tools listed in the file: read, write, edit, bash, grep, find, ls
This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.
The agent file
---
id: metis-janitor
name: Metis Janitor
description: "L4 terminal leaf - JANITOR. Writes the DONE sentinel atomically and removes only scratch artifacts after the three-file governance state and substantive evidence pass validation."
tools: ["read", "write", "edit", "bash", "grep", "find", "ls"]
---
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.
## Report shape
Report in <=150 words: CLEANED or ABORTED, sentinel path, deleted scratch path, preserved governance files, and any failed precondition. Echo RUN-NONCE.
## Brief contract
The compact brief must carry the verified mission pointer, root governance pointers, latest goal-check and ledger-check evidence pointers, scratch directory, sentinel path/payload, output schema, and truthful model/effort status. Do not require pasted doctrine or legacy `BRIEF.md`, `AGENTS.md`, `COVERAGE.md`, `bucketlist.md`, or `BACKLOG.md`.
MIT license, from Wholiver/metis at commit 8b1eda95afea.
Security
Scanned Oct 21, 2026 at commit 8b1eda95afea, with Cisco's open-source skill-scanner.
None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.
A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan
Alternatives
Other makers' add-ons that do the same job, next to this one.
| Name | Score | Stars | Context | Updated |
|---|---|---|---|---|
| This oneMetis Janitor Wholiver/metis · Subagent | 58 | ★ 405 | ≈48 in chat | 19d ago |
| ap-janitor Spielewoy/autoprompt-skill · Subagent Both about janitor | 58 | ★ 1.2k | ≈24 in chat | 1mo ago |
| janitor-report khendzel/skills-janitor · Skill Both about janitor and pass | 57 | ★ 122 | ≈65 always | 1mo ago |