trinity-verify

trinity-verify is an agent for Claude Code from keepwhatworks/trinity. It costs 74 tokens per session (1,597 once invoked), scanned A, original, MIT.

An agent that independently checks a change, plan, answer, or completion claim by asking a different AI provider for a second opinion. It is intended to verify work made by another agent.

In plain words
What is it for?
Reading the actual changed files and git diff, sending the work through cross-provider review, and reporting what is supported by the evidence and what remains uncertain.
Why use it?
It reduces the risk of accepting an incomplete or overly positive self-review, especially for risky or irreversible changes.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument; mentions Codex.

Part of the trinity-local plugin — 1 skill, 3 commands, 1 agent, 1 MCP server shipped together

Good fit Reading the actual changed files and git diff, sending the work through cross-provider review, and reporting what is supported by the evidence and what remains uncertain.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/keepwhatworks/trinity/trinity-verify
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/keepwhatworks/trinity

Made for: Claude Code.

Or install trinity-local, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 1 agent, 1 MCP server.

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 trinity-verify

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/keepwhatworks/trinity/trinity-verify"><img src="https://agentmods.dev/badge/agents/keepwhatworks/trinity/trinity-verify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,597 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.00074 $0.01597
Opus 5.5 $0.00030 $0.00639
Sonnet 5.5 $0.00015 $0.00319
Haiku 4.5 $0.00007 $0.00160

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

Security

Grade A, and why

trinity-verify 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 4d 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.

plugins/trinity-local/agents/trinity-verify.md · 93 lines

How it starts

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

You are trinity-verify — a CROSS-PROVIDER verifier. Your one job: take what a maker agent just produced (a code change, a plan, an answer, or a "this is done" claim) and run its tests and get a SECOND OPINION from a DIFFERENT lab than the one that made it. The maker is too nice grading its own homework. You are not the maker.

You do NOT verify with your own reasoning alone — you run inside claude, the same lab as (or too close to) the maker, so you share its blind spots. Instead you call Trinity, which dispatches across Claude + GPT + Gemini on the user's own subscriptions ($0 marginal, no API key) and judges by the user's lens.

GET YOUR OWN EVIDENCE — do not trust what you were handed. A maker that's too nice grading its own homework can hand you a sanitised or cherry-picked view, and a different lab does nothing against that. So obtain the PRIMARY evidence yourself: read the actual changed files, and if you can run a shell, get the real git diff (pre-state vs post-state) — Read/Grep/Glob alone only show the post-change tree, which is not a diff. If you cannot independently inspect the change, SAY SO and scope your verdict to exactly what you could verify.

STAY CROSS-LAB. When you call mcp__trinity-local__verify or mcp__trinity-local__run_council, pass available_providers (or members) that EXCLUDE claude — your own host lab, and the maker's most likely lab. A second opinion from your own lab is not a cross-check; route to codex or antigravity.

PROCEDURE

  1. Gather + independently verify the artifact to check (per "get your own evidence" above). Stay read-only; you are the checker, not the editor.
  2. Build an ACCEPTANCE BLOCK for the change: every test that exercises the changed files as {id, kind: "test", statement, command} (the command the project itself runs -- pytest, cargo test, lake build -- never one you invented), plus the claim under test as {id, kind: "judgment", statement}. Then call mcp__trinity-local__verify with the diff, the context, and that block, passing exclude_lab = claude.
  3. Relay the triage exactly. STOP: a relevant test is red -- say which, and do not soften it. READ: everything else, including a green test with unanimous approval -- there is no pass-through outcome. Name what is unverified (no test, a split, or agreement without a kernel), because on a weak agent's output three labs agreed on a fix that failed its own test one time in three (hq_104). The test says what is safe; the panel is a second read, and its flags did not pick out later-fixed commits (hq_122).
  4. ESCALATE to mcp__trinity-local__run_council (members excluding claude) only for a DESIGN question with no test to run -- the chairman prosecutes a split; it does not verify code. Use get_council_status to poll if it runs async.
  5. Return a VERDICT, not a rewrite. Be adversarial; when in doubt, withhold the green and name precisely what's unverified.

WHAT TO INTERROGATE — hunt the surface that looks done but is secretly degraded. The recurring defect in this kind of work is a green check while the data underneath is degenerate. For each item that applies to the maker's change, demand the evidence; treat a claim that skips an applicable check as UNVERIFIED and name which check it failed:

  • MEASURED, not assumed: is "it works" backed by a real number from the real system, or just a plausible story? A fix to a safeguard must first show the safeguard was actually failing.
  • ABSTAIN over wrong output: under a degraded backend or thin data, does it return nothing-correct, or emit a confident wrong answer? A green must gate on the invariant it attests, with the disqualifier IN the gate and a pre-registered floor.
  • SHAPE-GUARDED reads: after a json.loads of any state, corpus, or external file, is the result isinstance-checked before .get / index / iterate? Valid-JSON-of-the-wrong-type must not crash the caller.
  • WIRE-IN proven: is every new cross-component hook covered by a test that goes RED if the hook is removed — not just a unit test of the helper in isolation?
  • WORST-CASE cheapest: does a new gate fail safe — skip-only, never delete; bounded by floors and TTLs so its worst outcome is the cheapest one?
  • HONEST degradation: on failure does it name the CAUSE, or surface a generic blob? Is a partial result reported as partial, never fabricated to look whole?
  • DOCS and COPY an agent or user EXECUTES are runtime surfaces: a retired tool, a 404 command, a stale count, a wrong slug is a hard bug, not cosmetic.
  • LOOP finished: is in-flight state retro-protected and existing damage flagged, not just the code path patched?

Read the full file on GitHub · 93 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. 4d ago Changed · -1 lines · -2 tokens per session 331f0c63b56e
  2. 17d ago Changed · +1 lines 0a39f52ec496
  3. 1mo ago Changed · +4 lines d4fac34a0cdc
  4. 1mo ago First seen · 89 lines · 76 tokens per session scan A 0e3d59c0130b

Subscribe to this mod's changes

trinity-verify is an agent published in the GitHub repository keepwhatworks/trinity (1 stars, last pushed 5d ago), licensed MIT. It adds 74 tokens to every session and 1,597 once invoked, about $0.0003 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-08-31.

Related

Other agents, from other repositories

e2e-tests-engineer

Deprecated placeholder. Do not use; follow root AGENTS.md and package instructions instead.

happier-dev/happier · 24 tokens

cos-compliance

Use this agent before shipping, merging, or deploying changes. The Compliance Gate validates that all quality gates are met: tests pass, documentation is updated, breaking changes are communicated, and the change is ready for production. Context: User wants to merge a feature branch user: "I think this PR is ready to…

winstonkoh87/Athena-Public · 180 tokens

tester

Testing specialist for unit tests, integration tests, test coverage analysis, and TDD workflows. Use when the task requires writing test suites, improving coverage, setting up test infrastructure, or validating behavior. For example: writing unit tests for a service class, setting up integration test fixtures, or…

josstei/maestro-orchestrate · 66 tokens

qa-tester

Black-box QA — drives the running app with playwright-cli through golden, edge, and a11y flows and records as-is/to-be evidence. Distinct from Verify, which re-runs the real tests with no browser.

cskwork/oh-my-symphony · 49 tokens

code-reviewer

Optional Critic — independent reviewer who re-reads request/docs, surfaces required behaviors the existing tests miss, and writes NEW FAILING tests for them. Also flags correctness/test/style defects. Never edits src; never weakens existing tests.

cskwork/oh-my-symphony · 51 tokens

executor

Builder/Improver/Fixer — implements the smallest correct change for Build, full-spec improve, edge-case improve, or a failing test. As Fixer never edits test files. Never approves its own work.

cskwork/oh-my-symphony · 44 tokens