debt

debt is a command for Claude Code from ilyasibrahim/claude-agents-coordination. It costs 6 tokens per session (590 once invoked), scanned B, original, Unlicense.

A command for viewing and managing a technical-debt registry. Technical debt is postponed cleanup or design work that makes future changes harder, slower, or riskier.

In plain words
What is it for?
Use it to view debt summaries, add items with priorities, mark items resolved, or review the full registry for old and critical work.
Why use it?
It keeps known maintenance problems visible instead of leaving them in scattered notes. Priorities and item ages help show what should be handled first.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to view debt summaries, add items with priorities, mark items…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ilyasibrahim/claude-agents-coordination/debt
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.

Clone the repo
git clone --depth 1 https://github.com/ilyasibrahim/claude-agents-coordination

Made for: Claude Code.

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 debt

README.md
[![agentmods](https://agentmods.dev/badge/commands/ilyasibrahim/claude-agents-coordination/debt.svg)](https://agentmods.dev/commands/ilyasibrahim/claude-agents-coordination/debt)
Your own site
<a href="https://agentmods.dev/commands/ilyasibrahim/claude-agents-coordination/debt"><img src="https://agentmods.dev/badge/commands/ilyasibrahim/claude-agents-coordination/debt.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 590 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00006 $0.00590
Opus 5 $0.00003 $0.00295
Sonnet 5 $0.00001 $0.00118
Haiku 4.5 $0.00001 $0.00059

Measured 7d ago against content hash 3b9044825cd4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

debt scanned grade B with 1 finding 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 7d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

1. Get next TD number: `grep -oE 'TD-[0-9]+' .claude/reports/_tech-debt.md | sort -t- -k2 -n | tail -1`
claude-user/commands/debt.md · 110 lines

How it starts

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

Tech Debt Command

Manage technical debt tracking.

Usage

/debt                          # View debt summary
/debt add [description]        # Add new debt item
/debt resolve [TD-NNN]         # Mark item resolved
/debt review                   # Full registry review

View Summary

/debt

Read .claude/reports/_tech-debt.md and display:

# Tech Debt Summary

## By Priority
| Priority | Count | Oldest |
|----------|-------|--------|
| Critical | [n] | [date] |
| High | [n] | [date] |
| Medium | [n] | [date] |
| Low | [n] | [date] |

## Critical Items (Immediate Attention)
[List critical items]

## Recommendations
- [If critical > 0]: Address critical debt before new features
- [If oldest > 90 days]: Review and reprioritize stale items

Add Debt

/debt add "Description" --priority [critical|high|medium|low]
  1. Get next TD number: grep -oE 'TD-[0-9]+' .claude/reports/_tech-debt.md | sort -t- -k2 -n | tail -1
  2. Add to appropriate section
  3. Report confirmation

Resolve Debt

/debt resolve TD-NNN
  1. Find item in registry
  2. Mark as [x]
  3. Move to Resolved section
  4. Add resolution date
  5. Update metrics

Full Review

/debt review

Invoke analysis:

Task(code-quality, "
Mode: qa-strategy

Audit tech debt registry at .claude/reports/_tech-debt.md

Assess:
1. Are priorities accurate?
2. Any items that should be escalated?
3. Stale items (>90 days without progress)?
4. Items that may no longer be relevant?
5. Missing debt items based on codebase review?

Output recommendations for registry cleanup.
")

Integration

Tech debt is created from:

  • /postmortem action items
  • /review-full findings marked "won't fix now"
  • /rfc deferred requirements
  • Sprint retrospectives

Debt Types

Type Example Typical Priority
Code Duplicated logic, missing abstractions Medium
Test Low coverage, flaky tests High
Dependency Outdated packages, deprecated APIs High
Architecture Scaling limits, tight coupling Critical
Documentation Missing docs, stale docs Low
Infrastructure Manual processes, missing automation Medium

Read the full file on GitHub · 110 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. 7d ago First seen · 110 lines · 6 tokens per session scan B 3b9044825cd4

Subscribe to this mod's changes

debt is a command published in the GitHub repository ilyasibrahim/claude-agents-coordination (83 stars, last pushed 3mo ago), licensed Unlicense. It adds 6 tokens to every session and 590 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.