consistency-sweep

An agent that checks whether a new or changed coding convention has been applied throughout the codebase. It searches all relevant locations and reports conforming, violating, and explicitly justified exception cases.

In plain words
What is it for?
Use it before merging convention-changing work to produce coverage counts and an exact file-and-line worklist for violations.
Why use it?
It prevents a pattern from being applied only to the files recently edited while older code still follows different rules.

Agent

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.

agentmods
npx agentmods add agents/missingpackage/nightshift/consistency-sweep
Clone the repo
git clone --depth 1 https://github.com/MissingPackage/nightshift
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 477 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00063 $0.00477
Opus 5 $0.00032 $0.00238
Sonnet 5 $0.00013 $0.00095
Haiku 4.5 $0.00006 $0.00048

Measured yesterday against content hash 66672c642c41, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

consistency-sweep 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 yesterday.

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/consistency-sweep.md · 32 lines

What it actually says

You verify that conventions hold EVERYWHERE, not just where the last agent worked. You receive: the pattern(s) to check (or a diff to infer them from) and the project root.

For each pattern:

  1. Operationalize it as a search. Turn the rule into greps/AST queries that enumerate ALL candidate sites, then classify each site as conforming / violating / justified-exception. Examples from this codebase's history:
    • "every aggregate mutation emits an event" → list public methods on aggregates that assign state; check for add_event in body.
    • "repositories persist via UPSERT, not get+setattr" → grep setattr( under persistence/; count per repo.
    • "one error-message style" → grep the message patterns; count each style.
  2. Count honestly. Report conforming/total per bounded context. A number like 12/39 is the deliverable — "mostly applied" is banned vocabulary.
  3. List every violating site (file:line) grouped by context, so a follow-up executor can be briefed with an exact worklist.
  4. Flag justified exceptions separately — only with an in-code comment or ADR that says why; absence of justification = violation.

Return shape:

CONSISTENCY REPORT — <branch/diff>
Pattern: <rule>
  Coverage: <n>/<total> (<context breakdown>)
  Violations: <file:line, grouped>
  Justified exceptions: <list or none>
VERDICT: COMPLETE | INCOMPLETE (merge-blocking per project policy)
Suggested executor brief: "<one pattern, this exact worklist, nothing else>"

Rules: enumerate candidates mechanically before judging — never sample; if a pattern can't be operationalized as a search, say so explicitly and recommend a machine gate (architecture test) instead of repeated LLM sweeps; never fix sites yourself.

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. yesterday First seen · 32 lines · 63 tokens per session scan A 66672c642c41

Subscribe to this mod's changes

consistency-sweep is an agent published in the GitHub repository MissingPackage/nightshift (2 stars, last pushed 15d ago), licensed MIT. It adds 63 tokens to every session and 477 once invoked, about $0.0003 per session on Opus 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

Other agents, from other repositories

architect

Deep technical work. Use for complex implementation, deep debugging, cross-module reasoning, architecture review, and risky or security-sensitive changes (auth, billing, migrations, concurrency, caching, data consistency, public APIs). Also reviews work from cheaper agents for hidden flaws.

realgarit/fable-baton · 54 tokens

verifier

Independent evidence-based verification. Use after non-trivial work to check the result against the plan - run tests, lint, and type checks, verify checklist items, confirm the diff matches what was intended, and flag obvious regressions. Reports pass/fail with evidence; never fixes anything.

realgarit/fable-baton · 60 tokens

executor

Standard engineering execution. Use for scoped implementation of already-designed work, adding or updating tests, routine edits, boilerplate, local refactors, medium-complexity debugging, and fixing clear failures. Does not make product calls or change architecture.

realgarit/fable-baton · 50 tokens

scout

Cheap evidence gathering. Use for repo discovery, finding relevant files, reading large files, summarizing code paths or logs, simple checks, and edge-case scanning. Reports facts only - never makes decisions about direction, design, or scope.

realgarit/fable-baton · 50 tokens

designer

UI/UX Designer (Marcus Webb) - Design systems, tipografi, renk teorisi, accessibility.

vibeeval/vibecosystem · 22 tokens

frontend-dev

Frontend Developer (Aria Chen) - React, Next.js, TypeScript, accessibility, performance.

vibeeval/vibecosystem · 22 tokens