Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add juanmhidalgo/claude-plugins/plugin install code-reviewWrote 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/commands/juanmhidalgo/claude-plugins/tech-debt)<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/tech-debt"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/tech-debt/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/commands/juanmhidalgo/claude-plugins/tech-debt"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/tech-debt.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.00028 | $0.01687 |
| Opus 5.5 | $0.00011 | $0.00675 |
| Sonnet 5.5 | $0.00006 | $0.00337 |
| Haiku 4.5 | $0.00003 | $0.00169 |
Grade A, and why
tech-debt 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 26d 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 — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Context
- Current branch: !
git branch --show-current - Arguments: !
bash "${CLAUDE_PLUGIN_ROOT}/scripts/args.sh" '$ARGUMENTS' - All arguments: $ARGUMENTS
- Staged files: !
git diff --cached --name-only
Scope Detection
The Arguments line is the parsed form of what the user typed: one JSON
object with pane, spec, effort and positional. Read its fields; do not
parse the raw arguments yourself. This command uses positional[0] and pane
only; an effort or spec the user typed is not an error, just unused.
Determine the scope from positional[0]:
- If it is
staged→ analyze staged changes only - If it is a branch name → use it as the base branch
- If
positionalis empty → check if there are staged files:- If staged files exist → analyze staged changes
- Otherwise → default to branch comparison against
main(ormaster)
Pre-flight: Base Branch Staleness Check
Only for branch scope. Skip entirely for staged scope.
Before running the analysis, check if the local base branch is behind its remote. A stale base produces false findings by including already-merged commits in the diff.
-
Resolve the remote tracking ref:
git rev-parse --abbrev-ref <base>@{upstream}(falls back toorigin/<base>if no upstream is configured) -
If a remote ref exists, run
git rev-list --count <base>..<remote-ref>to count commits the local base is behind -
If the count is
0→ proceed silently -
If the count is
>0→ stop and warn the user:Your local
<base>is N commits behind<remote-ref>. The tech-debt analysis may include commits already merged upstream, producing false findings.Suggested:
git fetch origin <base>:<base>(or pull if checked out), then re-run.Proceed anyway? (yes / no)
-
If the remote ref cannot be resolved (no upstream, no
origin/<base>) → proceed silently; do not fail the command
Never auto-fetch or auto-pull — the user decides.
Herdr pane
Run this review in a Herdr pane when pane is true, or when pane is null
and review_in_pane is configured true (${user_config.review_in_pane}).
pane: false always wins: it is what the pane session itself receives. In the
pane, run in collect mode: follow ${CLAUDE_PLUGIN_ROOT}/references/herdr-pane.md
instead of the Instructions below. It falls back to the normal run outside Herdr.
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.
- 26d ago Changed · +5 lines 9026e6b1a694
- 1mo ago Changed · +18 lines 29fa3259bee7
- 2mo ago Changed · +38 lines a8f77f6039e6
- 3mo ago First seen · 94 lines · 28 tokens per session scan A 97dd737c0936
tech-debt is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 18d ago), licensed MIT. It adds 28 tokens to every session and 1,687 once invoked, about $0.0001 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.
tech-debt compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tech-debtjuanmhidalgo/claude-plugins | Command | 8 | 18d ago | MIT | A | 28 | Claude Code |
| planazrtydxb/procoder | Command | 212 | 22d ago | Apache-2.0 | A | 27 | Claude Code |
| auditazrtydxb/procoder | Command | 212 | 22d ago | Apache-2.0 | A | 27 | Claude Code |
| testazrtydxb/procoder | Command | 212 | 22d ago | Apache-2.0 | A | 20 | Claude Code |
| sm-buffScienceIsNeato/slop-mop | Command | 16 | 4d ago | Apache-2.0 | A | 0 | Claude Code |
| standardssamibs/skillfoundry | Command | 13 | 2mo ago | MIT | A | 0 | Claude Code |
| refactoring-strategistsamibs/skillfoundry | Command | 13 | 2mo ago | MIT | A | 0 | Claude Code |