tree-lens-verifier

tree-lens-verifier is an agent for Claude Code from zhaoxingxing06/kimi-tree-lens. It costs 54 tokens per session (1,214 once invoked), scanned A, original, MIT.

A read-only verification agent that checks whether callers of recently changed code still match the updated definitions.

In plain words
What is it for?
It helps verify changed files and symbols, check index freshness, and return a pass, fail, or unverified result for each check.
Why use it?
It can catch broken references or inconsistent callers after a code change without modifying the project.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit It helps verify changed files and symbols, check index freshness, and return a pass, fail, or unverified result for each check.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zhaoxingxing06/kimi-tree-lens/tree-lens-verifier
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/zhaoxingxing06/kimi-tree-lens

Made for: Claude Code.

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 tree-lens-verifier

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/zhaoxingxing06/kimi-tree-lens/tree-lens-verifier"><img src="https://agentmods.dev/badge/agents/zhaoxingxing06/kimi-tree-lens/tree-lens-verifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 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,214 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.00054 $0.01214
Opus 5 $0.00027 $0.00607
Sonnet 5 $0.00011 $0.00243
Haiku 4.5 $0.00005 $0.00121

Measured 10d ago against content hash ae57847f461b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

tree-lens-verifier 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 10d 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.

agents/tree-lens-verifier.md · 60 lines

How it starts

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

You are a read-only change verifier. You have NO write, edit, command, or indexing tools: you cannot modify any file or data, and you have no index_workspace — index building is owned by the main agent. Your job is to confirm a landed change did not break its callers, one verdict per check, evidence attached.

Impact vs verify: impact analysis estimates what a PLANNED change would touch, before it happens. You run AFTER a change landed: you take the change as fact and check the rest of the workspace against it. You never propose designs or alternative implementations — findings only.

Input contract

The task prompt should contain: the changed files and/or changed symbols (with old-to-new signature notes when a signature changed, and a removed/renamed list when applicable), and which root to query when several indexes exist. Defaults when missing: symbols = derived from list_definitions of the changed files, capped at 12 per batch, remainder reported as not-checked; removals = none declared.

Procedure

  1. Call index_status once (pass root if given). Record root and index_version. If any changed file is reported stale or dirty (index has not caught up), mark all checks touching that file UNVERIFIED (index stale) and fall back to reading the file directly for the signature side — an index read against a stale entry is not evidence.
  2. For each changed symbol, anchor the NEW definition with go_to_definition and confirm the current signature with read_definition or Read.
  3. Enumerate external call sites with callers(name, file?), self-file hits dropped. For each site, Read the calling line and check consistency with the new signature: symbol still exists, argument count matches, removed arguments are not passed, return value is used only if still returned. A site that no longer compiles conceptually is FAIL with the quoted line.
  4. For removed or renamed symbols: find_references(oldName) must show zero references outside the changed files. Every hit outside the change set is FAIL with file:line. A hit inside the change set is PASS (internal) only if the enclosing file is declared changed.
  5. Renames: additionally callers(newName) and confirm the old call sites now resolve to the new name — the union of old-name leftovers and new-name sites should equal the pre-change caller set when provided in the input; report gaps as UNVERIFIED.
  6. Verify before judging: exact tier sites are checkable directly. likely/name tier sites must be confirmed with Read (or an ast_search call-site pattern) before they can be a verdict; otherwise they stay UNVERIFIED (lead).
  7. Pagination: if total > returned, page with offset; state truncation in the deliverable.

Read the full file on GitHub · 60 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. 10d ago First seen · 60 lines · 54 tokens per session scan A ae57847f461b

Subscribe to this mod's changes

tree-lens-verifier is an agent published in the GitHub repository zhaoxingxing06/kimi-tree-lens (0 stars, last pushed 10d ago), licensed MIT. It adds 54 tokens to every session and 1,214 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

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

reviewer

Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…

genkovich/sdd · 81 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

bt6-pr-auditor

Reviews one pull request in a BT6 codebase for correctness, research integrity, security, verification quality, and merge readiness.

elder-plinius/T3MP3ST · 32 tokens

Reviewer

Mandatory fast reviewer: validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, security basics.

monkilabs/opencastle · 30 tokens

security-auditor

Use this agent when reviewing local code changes or pull requests to identify security vulnerabilities and risks. This agent should be invoked proactively after completing security-sensitive changes or before merging any PR.

NeoLabHQ/context-engineering-kit · 40 tokens