moelsaka01

Tierview — AI skill for Claude Code

AI community

Tiered Claude code review with a cost receipt: routes each diff hunk to the cheapest Claude model that can handle it, escalates when unsure.

How to install Tierview

This entry records only its repository, not the path inside it, so there is no exact command to give. Open moelsaka01/tierview and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Tierview does

Tiered Claude code review with a cost receipt: routes each diff hunk to the cheapest Claude model that can handle it, escalates when unsure.

Alternatives in AI

  • Agent Teams AI — You're the boss, agents are your team 2k ★
  • Sloppy — Static analysis for the debt AI agents leave in PHP: 25 rules, Claude Code hooks, git-diff review, a Rector an 84 ★
  • Axocoatl — Run coding agents unattended 72 ★

README

tierview

**Tiered Claude code review with a cost receipt**

On 23 held-out real bugs it caught 12, vs 16 for all-Opus, with no false alarms on 12 clean commits (small sample: the true rate could be up to ~26%, 95% Clopper-Pearson bound), at 18% lower cost.
(Not statistically significant, p = 0.29, and the two test sets disagree: it beat all-Opus 9 to 7 on the first 13 bugs and lost 3 to 9 on the next 10. Read the results and limits before trusting any of it.)

![tierview review --dry-run on a small sample repo](https://raw.githubusercontent.com/moelsaka01/tierview/main/assets/demo.gif)

`tierview review --dry-run` on the 4-file change in demo/: it shows where every hunk would go and what the review would cost, with zero model calls. Recorded with VHS.

![Bugs caught vs cost per case on both held-out sets (23 bugs)](https://raw.githubusercontent.com/moelsaka01/tierview/main/bench/results/chart-heldout.svg)

What it does

tierview reads a diff, scores each hunk for risk with deterministic rules (auth, SQL, memory, concurrency, boundary changes and so on), and sends it to the cheapest Claude model that can handle it: boring hunks to Sonnet 5.5 at low effort, risky ones to Opus 5.5. When a model is unsure, contradicts itself or reports something serious, the hunk goes up a tier for a second look, and a higher tier can refute a lower tier's finding. At the end it prints a **cost receipt**: tokens and cost per tier, and what the same work would have cost on the most expensive model.

A real receipt

This is a saved run from the benchmark ([`django-lookup-rhs-iterator__tierview.json`](bench/results/runs/django-lookup-rhs-iterator__tierview.json)), a Django commit whose later fix says it consumed iterator right-hand sides. tierview caught it. The explanation is shortened here; the receipt i