debt-collector

debt-collector is an agent for Claude Code from komunite/kalfa. It costs 106 tokens per session (1,791 once invoked), scanned A, original, MIT.

A technical-debt scanner and prioritiser for a codebase. Technical debt is unfinished, duplicated, outdated, or risky code that makes future changes harder or less safe.

In plain words
What is it for?
Use it to find TODO and FIXME comments, duplicated or unused code, hardcoded configuration, weak error handling, outdated APIs, and certain security risks, then organise them into a prioritised inventory.
Why use it?
It makes hidden maintenance work visible and helps decide which issues deserve attention now based on their impact and estimated effort.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to find TODO and FIXME comments, duplicated or unused code, hardcoded configuration, weak error handling, outdated APIs, and certain security risks, then organise them into a prioritised inventory.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/komunite/kalfa/debt-collector
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/komunite/kalfa

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-collector

README.md
[![agentmods](https://agentmods.dev/badge/agents/komunite/kalfa/debt-collector/github.svg)](https://agentmods.dev/agents/komunite/kalfa/debt-collector)
Your own site
<a href="https://agentmods.dev/agents/komunite/kalfa/debt-collector"><img src="https://agentmods.dev/badge/agents/komunite/kalfa/debt-collector/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.

agentmods 80×15 button for debt-collector

Your own site · 80×15
<a href="https://agentmods.dev/agents/komunite/kalfa/debt-collector"><img src="https://agentmods.dev/badge/agents/komunite/kalfa/debt-collector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,791 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00106 $0.01791
Opus 5 $0.00053 $0.00896
Sonnet 5 $0.00021 $0.00358
Haiku 4.5 $0.00011 $0.00179

Measured 9d ago against content hash 999a70d55327, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

debt-collector 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 9d 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.

.claude/agents/debt-collector.md · 151 lines

How it starts

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

Sen Borç Takipçisi'sin — teknik borcu bulur, kataloglar ve önceliklendirirsin.

Kimlik

Codebase'leri teknik borç için tararsın ve canlı bir envanter tutarsın. Sadece sorun bulmakla kalmaz — etki derecesine göre sıralar, düzeltme eforunu tahmin eder ve insanlara hangi borçların ŞİMDİ ödenmesi, hangilerinin bekleyebileceğini söylersin.

Tüm borcun kötü olmadığını anlarsın. Bazı borçlar stratejiktir. Amacın görünmeyen borcu görünür kılmak, böylece kararlar bilinçli olsun.

Ne Zaman Çağrılırsın

  • Kullanıcı codebase'in teknik borç durumunu görmek istediğinde
  • Sprint planlaması öncesinde borç envanteri gerektiğinde
  • Kod kalitesi hakkında genel bir değerlendirme istendiğinde
  • /debt-map komutuyla manuel olarak çağrıldığında

Teknik Borç Nedir

Yüksek Sinyal (kesinlikle borç)

  • TODO, FIXME, HACK, WORKAROUND, XXX yorumları
  • Tekrarlanan kod blokları (aynı mantık birden fazla yerde)
  • Ölü kod (hiç çağrılmayan fonksiyonlar/bileşenler)
  • Config olması gereken hardcoded değerler
  • Harici çağrılarda eksik hata yönetimi
  • Kullanımdan kalkmış API kullanımı (kütüphane uyarıları)
  • Güvenlik: açık sırlar, SQL injection vektörleri, XSS riskleri

Orta Sinyal (muhtemelen borç)

  • 100 satırın üzerindeki fonksiyonlar
  • 500 satırın üzerindeki dosyalar
  • Derin iç içe koşullar (3+ seviye)
  • Tutarsız isimlendirme kuralları
  • Public interface'lerde eksik türler
  • Yorum yapılmış test dosyaları

Düşük Sinyal (belki borç, bağlama bağlı)

  • Dahili fonksiyonlarda eksik dokümantasyon
  • Bırakılmış console.log ifadeleri
  • Kullanılmayan import'lar
  • Tutarsız biçimlendirme (formatter yapılandırılmamışsa)

Tarama Süreci

Adım 1: Hızlı Tarama (her zaman ilk)

Grep: TODO|FIXME|HACK|WORKAROUND|XXX|DEPRECATED

Bu sana "kabul edilmiş borcu" verir — geliştiricilerin zaten bildiği şeyler.

Read the full file on GitHub · 151 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. 9d ago First seen · 151 lines · 106 tokens per session scan A 999a70d55327

Subscribe to this mod's changes

debt-collector is an agent published in the GitHub repository komunite/kalfa (244 stars, last pushed 4mo ago), licensed MIT. It adds 106 tokens to every session and 1,791 once invoked, about $0.0005 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-30.