Back to directory
bcanfield avatar
bcanfield / agentic-tech-debt

agentic-tech-debt

Every shortcut your coding agent takes, saved to your repo as it happens. Fix them when you're ready.

8

Stars

1

Forks

0

Watchers

MIT

License

debt-ops

Catches AI-introduced tech debt at write-time

Works with any coding agent. Any stack.

Two decades of tech-debt research, distilled into a plugin and validated across dozens of codebases.

debt-ops in Claude Code: the agent edits api/checkout.ts and casts a value to `as any` to clear a type error; debt-ops catches the loosened type at write-time and logs +1 entry: as-any-checkout-payload (A)

MIT License Claude Code plugin

What it does

  • Tracks the debt — every "I'll fix this later," shortcut, and punt your agent writes lands in a folder in your repo.
  • Records the decisions — a short ADR when your agent makes an architectural call.
  • Works quietly in the loop — reads what's already logged, ranks cleanup by hotspot, and surfaces failures before they hit your diff.

Install

Just needs a git repo and Python 3.10+.

Claude Code

/plugin marketplace add bcanfield/agentic-tech-debt
/plugin install debt-ops@agentic-tech-debt
Codex
codex plugin marketplace add bcanfield/agentic-tech-debt
# then, inside Codex: /plugins → install debt-ops
Cursor

One-click install via the plugin (hooks + skills bundled):

/add-plugin     # then pick debt-ops, or browse cursor.com/marketplace

Prefer to install by hand? Copy hooks.local.json + the scripts into .cursor/ and the skills into .agents/skills/:

mkdir -p .cursor/hooks .agents/skills
cp cursor/hooks/hooks.local.json .cursor/hooks.json
cp cursor/hooks/*.py .cursor/hooks/
cp -r cursor/skills/debt-ops-* .agents/skills/

See the Cursor adapter README for details.

GitHub Copilot CLI
copilot plugin marketplace add bcanfield/agentic-tech-debt
copilot plugin install debt-ops@agentic-tech-debt

Then run debt-ops-init once — Copilot has no per-session inject, so this writes the disciplines into your charter (.github/copilot-instructions.md or AGENTS.md). See the Copilot adapter README for the manual-install alternative and details.

Any other agent (Gemini CLI, Windsurf, opencode…)

Via portable Agent Skills:

npx skills add bcanfield/agentic-tech-debt

Then run debt-ops-init once to write the disciplines into your AGENTS.md.


Commands

Commands

Claude Code /debt-ops:<name> · Codex $<name>:

  • add: register a debt entry (auto-fires when your agent defers work). Drop with drop A, drop A,C, or drop all.
  • review: audit and rank the registry, then walk paydown.
  • init (opt-in): write the disciplines into CLAUDE.md/AGENTS.md so the team shares them.
  • metrics: read-only health summary of the registry.

Why it exists

AI writes more code and cleans up less of it: across 211M lines, one study saw refactoring more than halve while duplicated code kept climbing. So debt piles up faster than you can review it. The fixes are well understood: keep it visible, pay it down over time, record the decisions. debt-ops wires those into the agent loop as nine cited pillars. Full research synthesis.

A `as any` cast in api/checkout.ts is caught at write-time and files itself as a registry entry `+1 entry: as-any-checkout-payload (A)`; a `// TODO` nit is caught the same way; the nit is pruned and the kept entry is paid down (strikethrough + green check); the registry empties to zero; debt-ops wordmark.

Releases

Jun 23, 2026

debt-ops: v0.10.0

Download .zip

0.10.0 (2026-06-23) Features

add Cursor full hook adapter with all four mechanisms (#46) (ba3ccd0)

Jun 6, 2026

debt-ops: v0.9.1

Download .zip

0.9.1 (2026-06-06) Bug Fixes

hooks: expand bare $CHANGED_FILES to one argv entry per file and seed test-count baseline (#37) (bf2db48)

Jun 6, 2026

debt-ops: v0.9.0

Download .zip

0.9.0 (2026-06-06) Features

codex: add marketplace interface metadata and icon (#35) (18fa2d2)

Jun 3, 2026

debt-ops: v0.8.1

Download .zip

0.8.1 (2026-06-03) Bug Fixes

Fix cwd in copilot harnass (1e13e93)

Jun 3, 2026

debt-ops: v0.8.0

Download .zip

0.8.0 (2026-06-03) Features

add portable Agent Skills layer and github copilot layer (#30) (55c27fa)

Bug Fixes

Copilot (ff26912)