charter-debt

charter-debt is an agent for coding agents from tacoda/keystone. It costs 17 tokens per session (779 once invoked), scanned A, original, MIT.

A checker for outdated, unused, or unfinished guidance stored in a project's `.charter/` directory. It reviews those documents and reports each issue's location, type, and severity.

In plain words
What is it for?
Auditing project instructions, finding guidance for technologies no longer in use, and tracking documentation debt in a shared ledger.
Why use it?
Project guidance can become misleading when the code or technology changes. This helps find rules that are stale, unused, or still contain setup placeholders.

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/tacoda/keystone/charter-debt
Clone the repo
git clone --depth 1 https://github.com/tacoda/keystone

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 charter-debt

README.md
[![agentmods](https://agentmods.dev/badge/agents/tacoda/keystone/charter-debt.svg)](https://agentmods.dev/agents/tacoda/keystone/charter-debt)
Your own site
<a href="https://agentmods.dev/agents/tacoda/keystone/charter-debt"><img src="https://agentmods.dev/badge/agents/tacoda/keystone/charter-debt.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 779 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.00017 $0.00779
Opus 5 $0.00009 $0.00390
Sonnet 5 $0.00003 $0.00156
Haiku 4.5 $0.00002 $0.00078

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

Security

Grade A, and why

charter-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 4d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.charter/agents/charter-debt.md · 47 lines

How it starts

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

Sensor: charter-debt

Surfaces debt in the charter itself — content that exists but isn't earning its keep. Distinct from code-debt, which covers debt in the codebase.

  • Triggeraudit (full sweep). Cheaper subsets can run on demand.
  • Inputs.charter/ tree, .charter/corpus/state/CODEBASE_STATE.md, .charter/.keystone.lock, git log -- .charter/, and the outputs of the sensors classified as available in CODEBASE_STATE.md.
  • Exit condition — every category below has been swept; each finding is matched to an existing ledger entry or proposed as a new one.
  • Output — table of charter-debt items: location, category, severity.
  • State writes — proposes a diff to corpus/state/charter-debt.md. User accepts or edits.

Categories

Category What it means How to detect
stale-rule A guide no diff has touched in N months. git log --since=N.months.ago -- .charter/guides/<file> is empty.
dead-idiom An idiom directory for a stack no longer in CODEBASE_STATE.md. Compare .charter/corpus/idioms/* against detected stacks.
placeholder Bootstrap placeholders (<...>) left unfilled. grep -rE '<[^>]+>' .charter/corpus/state/.
failing-sensor Sensor classified as available in CODEBASE_STATE.md but errors when invoked. Try the recorded command; record exit code.
empty-shell Directory scaffolded by bootstrap (idioms, learning/inbox) that has no real content. Directory size + non-README file count.
uncited-policy Installed policy whose guides were never referenced in the last N reviews. Cross-reference policy guide paths against review outputs (or git log of review reports).
unresolved-gap .charter/adapters/<agent>/<topic>.md left as a TODO placeholder past install. grep -r 'TODO' .charter/adapters/.
drifted-state CODEBASE_STATE.md last_reconciled is older than N months OR stack-drift sensor flagged divergence. Frontmatter date + stack-drift output.

Read the full file on GitHub · 47 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. 4d ago First seen · 47 lines · 17 tokens per session scan A 87f6aa866157

Subscribe to this mod's changes

charter-debt is an agent published in the GitHub repository tacoda/keystone (44 stars, last pushed 2mo ago), licensed MIT. It adds 17 tokens to every session and 779 once invoked, about $0.0001 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.