scan-tier-ranker

scan-tier-ranker is an agent for coding agents from nestharus/agent-implementation-skill. It costs 21 tokens per session (598 once invoked), scanned A, original, MIT.

A file-prioritisation agent that sorts a section’s related files into three relevance levels: core, supporting, and peripheral. It also decides which levels should receive deeper scanning.

In plain words
What is it for?
Use it to rank files based on how directly they implement, define, support, or merely relate to a section’s concern.
Why use it?
It directs limited analysis time toward files most central to the work while preserving useful context.

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/nestharus/agent-implementation-skill/scan-tier-ranker
Clone the repo
git clone --depth 1 https://github.com/nestharus/agent-implementation-skill

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 scan-tier-ranker

README.md
[![agentmods](https://agentmods.dev/badge/agents/nestharus/agent-implementation-skill/scan-tier-ranker.svg)](https://agentmods.dev/agents/nestharus/agent-implementation-skill/scan-tier-ranker)
Your own site
<a href="https://agentmods.dev/agents/nestharus/agent-implementation-skill/scan-tier-ranker"><img src="https://agentmods.dev/badge/agents/nestharus/agent-implementation-skill/scan-tier-ranker.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 598 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.1 $0.00021 $0.00598
Opus 5 $0.00010 $0.00299
Sonnet 5 $0.00004 $0.00120
Haiku 4.5 $0.00002 $0.00060

Measured yesterday against content hash 8e03a2c20ab2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

scan-tier-ranker 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.

src/scan/agents/scan-tier-ranker.md · 68 lines

How it starts

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

Scan Tier Ranker

You rank a section's related files into relevance tiers and decide which tiers should be deep-scanned. This is a prioritization task — you allocate scan budget, not perform analysis.

Method of Thinking

Centrality to the section's concern determines tier.

A file's tier reflects how directly it participates in the section's core work. Files that implement or define the section's concern are tier-1. Files needed for context but not primary targets are tier-2. Files that are tangentially related are tier-3.

Ranking Process

  1. Read the section: Understand what this section builds, modifies, or integrates. Identify the core concern.

  2. Classify each file: For every file in the related-files list, assign a tier:

    • tier-1 (core): Directly implements, defines, or is the primary target of the section's work. The section cannot proceed without understanding these files.
    • tier-2 (supporting): Provides context, defines interfaces, or contains dependencies that the section interacts with. Important but not the primary focus.
    • tier-3 (peripheral): Tangentially related. Might be useful for edge cases or future work but not needed for the main implementation path.
  3. Decide scan scope: Choose which tiers to deep-scan now:

    • Always include tier-1.
    • Include tier-2 when the section has complex integration concerns (multiple subsystems, interface contracts, cross-cutting changes).
    • Include tier-3 only when the section scope is genuinely unclear and peripheral context would help clarify it.

You own the scan budget. Be deliberate — scanning everything is wasteful, but under-scanning causes missed dependencies.

Output

Structured JSON:

{"tiers": {"tier-1": ["path/a"], "tier-2": ["path/b"], "tier-3": ["path/c"]}, "scan_now": ["tier-1", "tier-2"], "reason": "complex integration across 3 subsystems"}

Anti-Patterns

  • Flat ranking: Putting everything in tier-1 defeats the purpose. Be honest about what is core vs supporting vs peripheral.
  • Scanning everything by default: tier-3 scanning is expensive and rarely changes the implementation plan. Include it only with reason.
  • Ignoring section context: A utility file is tier-1 if the section is modifying that utility. Tier depends on the section, not the file's general importance.

Read the full file on GitHub · 68 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 · 68 lines · 21 tokens per session scan A 8e03a2c20ab2

Subscribe to this mod's changes

scan-tier-ranker is an agent published in the GitHub repository nestharus/agent-implementation-skill (3 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 598 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-09-03.

Related

Other agents, from other repositories

os-architect-tester

Validation agent for os-architect. Runs pre-scripted user scenarios through the os-architect interview flow via Copilot CLI, evaluates whether classification, routing, and HANDOFFBLOCK output meet acceptance criteria, and produces a structured test report. Use to battle-harden os-architect after changes, or to…

richfrem/agent-plugins-skills · 176 tokens

rlm-factory-init-agent

Guided setup wizard for the rlm-factory plugin. Works standalone (O(1) keyword search across dense file summaries, zero external deps) or as Phase 1 of a Super-RAG stack with vector-db and/or obsidian-wiki-engine. Starts with a setup mode question so the user gets exactly what they need. Creates rlmprofiles.json and…

richfrem/agent-plugins-skills · 247 tokens

vector-db-init-agent

Guided setup wizard for the vector-db plugin. Works standalone (semantic search with zero external dependencies) or as part of a Super-RAG stack with rlm-factory and/or obsidian-wiki-engine. Starts with a setup mode question so the user gets exactly what they need. Installs Python dependencies, creates…

richfrem/agent-plugins-skills · 179 tokens

requirements-doc-agent

Lightweight requirements documentation sub-agent modelled on the doc-coauthoring pattern. Dispatched by the exploration-cycle-orchestrator via Copilot CLI (cheap model, many invocations per session). Each invocation handles one focused capture task: problem framing, business requirements, user stories…

richfrem/agent-plugins-skills · 99 tokens

runtime-observer

Dynamic observation agent designed to inspect running applications, trace state transitions, log API traffic, and flag race conditions, cache states, or timing issues. Trigger with "start runtime observer", "observe live system", "trace API calls", or during characterization test validation.

richfrem/agent-plugins-skills · 56 tokens

debate-synthesizer

Multi-Agent Debate Judge. Receives two or more competing perspectives, proposals, or analyses and synthesizes them into a single hardened conclusion using dialectical reasoning. Resolves conflicts, names tradeoffs, and produces a final verdict.

richfrem/agent-plugins-skills · 52 tokens