patina
AGENTS.md362 starsChanged 3 months agoMITView on GitHub
This document describes the three Claude Code plugin subagents bundled with patina and how they compose into an optional multi-agent strict flow. The default /patina skill and ordinary /patina --strict return verified CLI output, without host-agent rewriting or polishing. A failed CLI run is reported, never silently replaced with an inline rewrite. The host-agent multi-pass flow described here requires explicit /patina --instruction-only --strict (SKILL.md). Its subagents are additive — they provide parallel, independent analysis lanes within that opt-in flow, not…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/patina.mdcCursor rule
- patinaSkill
The file
We split this agents.md into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
All three subagents are read-only analysis agents.
- Distinctive: line 17
Use when: you need a pre-rewrite audit log, want to verify which patterns were actually detected, or need the detection report as evidence …
- Distinctive: line 25
Use when: you need an auditable record that the rewrite did not alter facts, or when fidelity is critical for academic, technical, medical, …
- Distinctive: line 38
Use when: you want quality assurance on the rewrite before delivering it, or when the strict flow needs an independent grade signal.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Patina Subagents — Optional Multi-Agent Strict Flow
This document describes the three Claude Code plugin subagents bundled with patina and how they compose into an optional multi-agent strict flow.
Overview
The default /patina skill and ordinary /patina --strict return verified CLI output, without host-agent rewriting or polishing. A failed CLI run is reported, never silently replaced with an inline rewrite. The host-agent multi-pass flow described here requires explicit /patina --instruction-only --strict (SKILL.md). Its subagents are additive — they provide parallel, independent analysis lanes within that opt-in flow, not CLI verification.
All three subagents are read-only analysis agents. None of them rewrites text. They produce reports and verdicts that the main skill (or Claude acting as orchestrator) uses to decide whether to accept, retry, or roll back a rewrite.
The Three Subagents
patina-detector
Runs the full detection pass on the input text before any rewrite. Loads all applicable pattern packs from patterns/, computes burstiness CV and MATTR per core/stylometry.md, applies AI-lexicon density checks, and runs Korean diagnostic signals for ko inputs. Emits a paragraph/span-level findings report with severity ratings per core/scoring.md.
Use when: you need a pre-rewrite audit log, want to verify which patterns were actually detected, or need the detection report as evidence in an output.
patina-fidelity-auditor
Given the ORIGINAL and REWRITE texts, audits meaning preservation against all four fidelity criteria defined in core/scoring.md §§9-14: claims preserved, no fabrication, audience/register match, and length ratio. Also checks MPS-level semantic anchors: numbers, polarity, causation, named entities, and direct quotes. Returns a PASS or NEEDS-ROLLBACK verdict with the fidelity score and offending spans identified.
The verification floor applies here: fidelity_score ≥ verification.fidelity-floor (default: 70) is required for PASS.
Use when: you need an auditable record that the rewrite did not alter facts, or when fidelity is critical for academic, technical, medical, or legal Document Types.
patina-naturalness-reviewer
Re-runs detection on the rewrite text to check for residual AI tells. Computes a residual AI-likeness score per core/scoring.md, flags over-editing (changes to paragraphs that had no detected patterns), and checks for genre or register drift. Assigns an A–D quality grade:
| Grade | Meaning |
| A | Residual score ≤ 30, no over-editing — accept |
| B | Residual score 31–50 or minor over-editing — acceptable, optional polish |
| C | Residual score 51–70 or moderate over-editing — retry recommended |
| D | Residual score > 70 or genre/register violation — rollback required |
Use when: you want quality assurance on the rewrite before delivering it, or when the strict flow needs an independent grade signal.
Strict Flow: Composition
The three subagents compose into the following sequential flow:
INPUT TEXT
│
▼
patina-detector ─────────────────── findings report (patterns + suspect zones)
│
▼
/patina --instruction-only --strict rewrite (SKILL.md stages 5a/5b/5c)
│
├──► patina-fidelity-auditor ── PASS / NEEDS-ROLLBACK + offending spans
│
└──► patina-naturalness-reviewer ── grade A/B/C/D + residual tells
│
▼
Decision
├── fidelity PASS + grade A or B → ACCEPT rewrite
├── fidelity PASS + grade C → RETRY rewrite (one more pass)
└── fidelity NEEDS-ROLLBACK or grade D → ROLLBACK to originalThe fidelity auditor and naturalness reviewer run in parallel after the rewrite is produced. Both verdicts are required before accepting the rewrite. A NEEDS-ROLLBACK from the fidelity auditor overrides a grade A from the naturalness reviewer — meaning preservation always takes priority.
This flow is entirely optional. The standard /patina skill functions without these subagents. They add a structured audit trail and an explicit accept/retry/rollback gate.
Automatic delegation from --instruction-only --strict
The explicit /patina --instruction-only --strict mode (defined in SKILL.md) wires this flow automatically. When the patina plugin is installed and these subagents are available, --instruction-only --strict delegates its read-only analysis passes via the Task tool — P1 to patina-detector, P3 to patina-fidelity-auditor, P4 to patina-naturalness-reviewer — while the main skill keeps orchestration, the rewrite (P2), and the accept/retry/rollback gate (P5). When the subagents are not available (Codex CLI, Cursor, OpenCode, or a non-plugin install), --instruction-only --strict runs the same passes inline in a single agent. Both modes use identical floors and gate logic; delegation only adds context isolation. This inline fallback exists only within the explicit instruction-only flow, never as a fallback for the default CLI route or ordinary --strict. Instruction-only output is labeled "instruction-only; CLI not run; no CLI verification" outside the prose and carries no CLI receipt.
CLI-first routes
The normal /patina and /patina --strict routes remain CLI-first: a failed CLI
run is an error, never an inline rewrite or a silent fallback. The optional
instruction-only route above is the only host-agent analysis path. Backend
setup and per-backend behavior are in AUTHENTICATION.md.
Advisory Metadata Rule
Korean translationese and koPostEditese.v1 signals are advisory only across the entire pipeline, including inside all three subagents. These signals must never influence the AI-likeness score, fidelity score, quality grade, verification outcome, or any authorship verdict. They appear in report output labeled as advisory and non-scoring.
Claude Code Plugin Auto-Discovery
Patina ships an agents/ directory in the plugin root. Claude Code discovers agent files automatically by scanning agents/*.md at plugin load time. Each file's YAML frontmatter declares the agent's name, description, model, and tools allowlist.
To use the subagents:
- Install the patina plugin in Claude Code.
- Claude will auto-discover
agents/patina-detector.md,agents/patina-fidelity-auditor.md, andagents/patina-naturalness-reviewer.md. - Reference them by name in your prompts, or let Claude invoke them automatically based on their
descriptionfields.
The subagents are tool-limited to Read, Grep, and Glob (detector and reviewer) or Read only (fidelity auditor). They do not use hooks, MCP servers, or elevated permission modes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

