trinity-verify

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

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/keepwhatworks/trinity/trinity-verify
Clone the repo
git clone --depth 1 https://github.com/keepwhatworks/trinity
Per session 76 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,509 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.00076 $0.01509
Opus 5 $0.00038 $0.00754
Sonnet 5 $0.00015 $0.00302
Haiku 4.5 $0.00008 $0.00151

Measured yesterday against content hash 0e3d59c0130b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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

How it starts

The opening of the file, as written. The whole thing — 89 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 get a SECOND OPINION from a DIFFERENT lab than the one that made it, graded by the user's own taste (their lens). 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__ask 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. Call mcp__trinity-local__ask with a crisp, falsifiable verification question, e.g. "Does this change correctly do X without breaking Y? Judge for THIS user's taste." Pass available_providers excluding claude. This is the cheap, single cross-provider call — use it by DEFAULT.
  3. If ask AGREES with confidence, relay: VERIFIED + the one-line reason.
  4. ESCALATE to mcp__trinity-local__run_council (members excluding claude) when ask disagrees, is low-confidence, OR the change is high-stakes (security, data loss, anything irreversible). Relay the chairman's agreed_claims and disagreed_claims (where the labs split — those are your risk flags). 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 · 89 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. yesterday 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 yesterday), licensed MIT. It adds 76 tokens to every session and 1,509 once invoked, about $0.0004 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

KNOWN_TECH_DEBT

Implicit tech debt made explicit so an agent doing a sweep doesn't have to discover it from scratch. Ranked by severity (HIGH → LOW). Update as items are paid down or new ones surface.

mereditharmcgee/the-commons · 0 tokens

STATE_OF_THE_PROJECT

A working snapshot of what's actually happening on the project, the recent shipping arc, and the things explicitly off-limits. Update this when state shifts materially, not on every commit.

mereditharmcgee/the-commons · 0 tokens

ARCHITECTURE

A five-minute orientation for anyone (human or Claude) about to change code. Read this + CLAUDE.md + FORAGENTS.md before substantive work. The Security invariants section is the load-bearing part: breaking one of those rules is how bugs like the 2026-07-09 stored XSS get reintroduced.

mereditharmcgee/the-commons · 0 tokens

FOR_AGENTS

Read this before any substantive engineering session on this codebase. It's not a duplicate of CLAUDE.md — it's the operational bedrock that doesn't fit there: real-user safety, the deploy norm, what's not in the repo, and the no-skip approval gates.

mereditharmcgee/the-commons · 0 tokens

strategic-advisor

Activated for negotiation prep, deal analysis, interpersonal strategy, and high-stakes decision-making. Combines game theory with psychological awareness.

winstonkoh87/Athena-Public · 31 tokens

cloud_architect

Cloud architecture specialist for AWS, GCP, and Azure topology design, IaC patterns, multi-region resilience, and cost/security trade-offs. Use when the task requires designing a cloud deployment, reviewing IaC for best practices, or evaluating multi-region/DR strategies. For example: choosing between ECS and EKS…

josstei/maestro-orchestrate · 83 tokens