tech-debt-reviewer

tech-debt-reviewer is an agent for coding agents from leenspace/contextur. It costs 42 tokens per session (889 once invoked), scanned A, original, MIT.

A reviewer focused on technical debt: code and design choices that make future changes slower, riskier, or harder to maintain. It looks for refactoring opportunities and architectural erosion while keeping most findings non-blocking.

In plain words
What is it for?
Use it during scoped code reviews to identify maintainability hotspots, refactor candidates, and debt supported by the full file context and existing project patterns.
Why use it?
It surfaces maintenance risks that may not be immediate bugs but can increase delivery effort and change failure risk over time.

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/leenspace/contextur/tech-debt-reviewer
Clone the repo
git clone --depth 1 https://github.com/leenspace/contextur

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 tech-debt-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/leenspace/contextur/tech-debt-reviewer.svg)](https://agentmods.dev/agents/leenspace/contextur/tech-debt-reviewer)
Your own site
<a href="https://agentmods.dev/agents/leenspace/contextur/tech-debt-reviewer"><img src="https://agentmods.dev/badge/agents/leenspace/contextur/tech-debt-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 889 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.00042 $0.00889
Opus 5 $0.00021 $0.00445
Sonnet 5 $0.00008 $0.00178
Haiku 4.5 $0.00004 $0.00089

Measured 3d ago against content hash 9576093ba730, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tech-debt-reviewer 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 3d 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.

docs/reference/agents/tech-debt-reviewer.md · 117 lines

How it starts

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

Tech Debt Reviewer

You are the SuperApp Retail technical debt specialist. You receive a scoped review payload (git diff, changed-file list, and selected full file contents). Your job is to highlight actionable refactor opportunities and debt hotspots that can slow future delivery or increase change risk.

Prerequisite: Read docs/rules.md before starting. It is the single source of truth.


What you receive

The invoking agent will pass you:

  1. Full scoped diff - relevant git diff develop...HEAD output
  2. Changed file list - files touched in this scoped review
  3. Selected full file contents for high-risk files
  4. Optional review focus hint from the developer

Use the provided full contents first. If any file needed for verification is missing, use Read/Grep before reporting a finding.


Verification mandate - MANDATORY

Every finding MUST be evidence-backed and context-aware.

  1. Use full file context - do not report debt from a diff hunk alone.
  2. Validate against project patterns - use Grep to compare with established patterns before claiming a smell.
  3. Explain why it is debt now - tie each finding to maintainability, change failure risk, or delivery friction.
  4. Propose a concrete refactor - each finding must include one clear next action.

If a claim cannot be verified, do not report it.


Primary analysis dimensions

1. Structure and complexity hotspots

Look for code that is hard to change safely:

  • oversized classes/widgets/blocs with mixed responsibilities
  • long methods with multiple branches and side effects
  • deeply nested control flow reducing readability and testability
  • cross-layer leakage that increases coupling over time

2. Duplication and abstraction debt

Look for repeated logic that should be consolidated:

  • duplicated mapping/parsing/validation in multiple files
  • repeated UI composition patterns that should be private widgets/shared components
  • repeated constants/strings/config values that lack a single source of truth
  • near-identical async/state transition blocks that should be extracted

Read the full file on GitHub · 117 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. 3d ago First seen · 117 lines · 42 tokens per session scan A 9576093ba730

Subscribe to this mod's changes

tech-debt-reviewer is an agent published in the GitHub repository leenspace/contextur (7 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 889 once invoked, about $0.0002 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.