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.
npx skills add alebgl77/tierdecay --skill tier-decaygit clone --depth 1 https://github.com/alebgl77/tierdecayWrote 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.
[](https://agentmods.dev/skills/alebgl77/tierdecay/tier-decay)<a href="https://agentmods.dev/skills/alebgl77/tierdecay/tier-decay"><img src="https://agentmods.dev/badge/skills/alebgl77/tierdecay/tier-decay/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.
<a href="https://agentmods.dev/skills/alebgl77/tierdecay/tier-decay"><img src="https://agentmods.dev/badge/skills/alebgl77/tierdecay/tier-decay.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00071 | $0.01276 |
| Opus 5.5 | $0.00028 | $0.00510 |
| Sonnet 5.5 | $0.00014 | $0.00255 |
| Haiku 4.5 | $0.00007 | $0.00128 |
Grade A, and why
tier-decay 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 21d 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.
How it starts
The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tier Decay — amortize reasoning
Goal: solve a recurring problem CLASS at a high tier, then test whether its distilled pattern is executable one tier lower. Failed probes escalate normally. Expensive tokens are capital expenditure; this protocol is the amortization schedule. The routing rubric is only the cold-start prior — the ledger is the posterior.
1. Ledger — one row per task, every tier
Append to the LOG table in .claude/routing-ledger.md:
| date | class | predicted | executed | outcome | escalations | playbook |
Class signature: 2–4 hyphenated tokens, <verb>-<object>-<surface>
(e.g. add-endpoint-rest, write-migration-postgres, fix-flaky-test-jest).
Before minting a new class, scan the LOG and reuse an existing signature —
matching power depends on signature discipline.
When a class reaches ≥3 rows, compute/update its row in the PRIORS table: its empirical default tier now OVERRIDES the scoring rubric.
2. Distill — after [T2]/[T3] success only
Distill iff the class will plausibly recur (expected ≥2 future occurrences).
Write a ≤15-line entry into the repo-playbook skill, following its
format, including risk: (the class's rubric risk) and epoch: (the current
binding epoch). An entry earns its distillation cost only where the lower tier
fails or struggles without it; if a cold lower-tier attempt already passes,
routing alone captures the saving. Distill the DECISIONS — invariants, order of operations, the trap and
its avoidance — never diffs, never secrets, never volatile business values.
A wrong pattern costs more than no pattern: when in doubt, don't distill.
3. Probe — the downgrade test
On the NEXT occurrence of a distilled class, dispatch one tier below the entry's provenance tier, with the entry quoted verbatim in the brief's CONTEXT and acceptance criteria mandatory.
- Pass →
hits +1on the entry. Downgrade is confidence-gated by the entry'srisk:— 3 / 4 / 5 hits for risk 0 / 1 / 2; risk-3 classes never decay; norisk:line counts as risk 2. (Quarantine-on-failure means the evidence is always k/k passes; k is the smallest count whose 80% Clopper–Pearson lower bound0.2^(1/k)reaches 0.5 / 0.6 / 0.7.) At the threshold the class's default tier is lowered in PRIORS and the entry'sprovenance:is rewritten to the new lower tier. Decay is iterative: the counter resets and — because a live entry outranks PRIORS (model-routing§0) — the class probes the next tier down on later occurrences (T3→T2→T1), until provenance reaches T1. - Recertify → an entry whose
epoch:differs from the current binding epoch (a model or effort changed,.tierdecay/MODELS.md) runs at its provenance tier, entry quoted. Pass → setepoch:to the current epoch,hits: 0. Fail → quarantine as below. - Fail → escalate normally, move the entry to QUARANTINE with a one-line failure cause. The failed tier becomes the class's floor (sticky tier); revise or delete the entry on next encounter.
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.
- 21d ago Changed c4f660258ad1
- 1mo ago Changed · +16 lines 9c137976ac13
- 2mo ago Changed · +5 lines 3863ee6820c3
- 3mo ago First seen · 73 lines · 71 tokens per session scan A b7654f079ddf
tier-decay is a skill published in the GitHub repository alebgl77/tierdecay (1 stars, last pushed 21d ago), licensed MIT. It adds 71 tokens to every session and 1,276 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.
tier-decay compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tier-decayalebgl77/tierdecay | Skill | 1 | 21d ago | MIT | A | 71 | Claude Code |
| mem0-vercel-ai-sdkmem0ai/mem0 | Skill | 70k | 3d ago | Apache-2.0 | A | 146 | Claude Code, Codex |
| mempalace-recallMemPalace/mempalace | Skill | 61k | 3d ago | MIT | A | 94 | Claude Code |
| pausemem0ai/mem0 | Skill | 70k | 3d ago | Apache-2.0 | A | 30 | Claude Code |
| mineMemPalace/mempalace | Skill | 61k | 3d ago | MIT | A | 21 | Claude Code |
| agent-carnetyamadashy/repomix | Skill | 30k | yesterday | MIT | A | 67 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 3d ago | Apache-2.0 | A | 217 | Claude Code, Codex |