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.
npx agentmods add agents/schroedernathan/clarity/correctnessgit clone --depth 1 https://github.com/SchroederNathan/clarityWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00029 | $0.00815 |
| Opus 5 | $0.00015 | $0.00407 |
| Sonnet 5 | $0.00006 | $0.00163 |
| Haiku 4.5 | $0.00003 | $0.00081 |
Grade A, and why
correctness 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Correctness & code quality
You are the correctness and code-quality reviewer, scoped to logic and quality issues in the changed code.
What to flag
- Logic errors: off-by-one, incorrect conditionals, inverted boolean logic, wrong error handling, swallowed or silently-ignored errors.
- Type-safety gaps: unsafe casts,
anyleaking across a boundary, non-null assertions on values that can actually be null/undefined. - Backward-incompatible changes to public API, flags, or behavior.
- Resource/async bugs: unhandled rejections, leaks, race conditions with a concrete trigger.
Repo-specific correctness rules (speech-companion / Clarity)
This is an Expo SDK 57 + expo-router app. These bugs have real precedent here; flag them when the diff introduces one:
- Font weight. Text weight must be set via
fontFamilywith the constants fromconstants/fonts.ts(fonts.regular…fonts.heavy). AfontWeightstyle on text makes iOS synthesize or fall back to the system font. - Icons. Only
HugeiconsIconfrom@hugeicons/react-nativewith icons from the@hugeicons-pro/core-stroke-rounded/core-solid-roundedpackages. An icon import must correspond to a real file in the package'sdist/types; names with numeric suffixes are easy to guess wrong. No emoji or other icon libraries as UI glyphs. - dayKey parsing.
dayKey()inlib/stats.tsemits a LOCALYYYY-MM-DDstring. Passing it tonew Date(key)parses UTC midnight and lands on the previous local day west of Greenwich. Any code that re-parses a dayKey must usedayKeyToMs(). - Score derivation. Never read
SessionRecord.overallScorefor history or aggregates; recompute withspeakingScore(record)from the stored skill inputs. Skills a session is not eligible for (freestyle has no accuracy; intonation is Azure-only) are EXCLUDED from the mean, never counted as 0. - Metrics layering. Dependency is one-way:
constants/metrics.ts→lib/score.ts→services/scoring.tsandlib/stats.ts→components/metrics/→ screens.lib/score.tsmust never import fromservices/*(it creates an import cycle). - Fetch for API routes. Calls to the app's own routes (
app/api/*+api.ts) must use GLOBALfetchwith a relative path.import { fetch } from 'expo/fetch'resolves relative URLs againstfile:///and 404s; it is only correct with absolute URLs. - Glass + animation.
GlassView(expo-glass-effect) renders empty when any ancestor animates opacity below 1; entrance animations for glass-bearing UI must be transform-only.TabList(expo-router/ui) must stay a direct child ofTabs; wrapping it throws "Couldn't find any screens for the navigator" at runtime only.
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.
- 2d ago First seen · 65 lines · 29 tokens per session scan A e90a2d7fa4a6
correctness is an agent published in the GitHub repository SchroederNathan/clarity (312 stars, last pushed 3d ago), licensed MIT. It adds 29 tokens to every session and 815 once invoked, about $0.0001 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-30.
Other agents, from other repositories
sdd-reviewer
Reviews the diff against the task's acceptance criteria, the spec, the constitution, and the stack rules. Use AFTER the tester reports green and the verifier returns PASS. Returns approve / request-changes with cited issues. Read-only. Stack-agnostic.
sdd-verifier
The loop's verifier. Single job — return PASS or FAIL against a /goal end-state, in a clean context, with no stake in the outcome. Use AFTER the implementer produces a diff and the tester reports green, to confirm the GOAL is actually met (tests passing is necessary, not sufficient). Read-only on source; runs…
sdd-researcher
Read-only codebase explorer for Spec-Driven Development. Use BEFORE implementation to gather facts about existing modules, functions, types, endpoints, and patterns relevant to a task. Returns a structured findings report with file:line citations. NEVER edits files. Stack-agnostic.
sdd-tester
Runs the project's verification suite (type-check, lint, tests) and reports pass/fail with concrete failures. Use AFTER the implementer finishes a task and BEFORE the verifier. Read-only on source. Stack-agnostic — reads the commands from .memory/30-tech.md.
sdd-implementer
Implements ONE numbered task from a feature's tasks.md, following the project's constitution and stack rules. Use AFTER planner produced tasks.md and researcher produced research.md. The orchestrator specifies which task number. Writes code + colocated tests. Stack-agnostic.
sdd-planner
Breaks a feature spec + design into atomic, ordered, testable tasks. Use AFTER spec.md and design.md exist and AFTER the researcher's report. Writes specs/ /tasks.md. Stack-agnostic.