keystone: Agent for Claude Code

.claude/agents/keystone-charter-debt.md

keystone-charter-debt is an agent for Claude Code from tacoda/keystone. It costs 24 tokens per session (766 once invoked), scanned A, a copy of charter-debt, MIT.

A checker for outdated or unused guidance in a project's charter, the files that describe how the project should be built and maintained. It looks across the charter and related project state.

In plain words
What is it for?
Use it during an audit to find stale rules, unused coding patterns, unfinished placeholders, and other charter problems. It reports each finding and proposes updates to the charter's debt record.
Why use it?
Project guidance can become stale, contain unfinished placeholders, or describe technologies no longer in use.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is tacoda/keystone's own configuration. It tells Claude Code how to work on keystone itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything keystone configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tacoda/keystone. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tacoda/keystone/main/.claude/agents/keystone-charter-debt.md
Clone the repo
git clone --depth 1 https://github.com/tacoda/keystone

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/tacoda/keystone/keystone-charter-debt.svg)](https://agentmods.dev/agents/tacoda/keystone/keystone-charter-debt)
Your own site
<a href="https://agentmods.dev/agents/tacoda/keystone/keystone-charter-debt"><img src="https://agentmods.dev/badge/agents/tacoda/keystone/keystone-charter-debt.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 766 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 95% copy Near-identical to another mod 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.00024 $0.00766
Opus 5 $0.00012 $0.00383
Sonnet 5 $0.00005 $0.00153
Haiku 4.5 $0.00002 $0.00077

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

Security

Grade A, and why

keystone-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 8d 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

This is a copy

95% identical to charter-debt — 7 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/keystone-charter-debt.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 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 · 44 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. 8d ago First seen · 44 lines · 24 tokens per session scan A 3eac59522e2d

Subscribe to this mod's changes

keystone-charter-debt is an agent published in the GitHub repository tacoda/keystone (44 stars, last pushed 2mo ago), licensed MIT. It adds 24 tokens to every session and 766 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to charter-debt, differing in 7 lines, and is treated as a copy.

Related

Other agents, from other repositories

context-finder

Read-only, memory- and index-aware codebase search. Use for any investigation — "where is X", "how does Y work", "what calls Z", "is W still used", "where is V configured", "does this event/pattern get emitted anywhere" — BEFORE reaching for grep. Consults the knowledge graph, code index, and prior session memory…

futuregerald/futuregerald-claude-plugin · 111 tokens

wiki-ingest

Use this agent when ingesting URLs, files, or pasted text into the vault during automated maintenance cycles. Typical triggers include dev-loop IDLE DISCOVERY ingestion, batch source processing, or converting raw captures to typed-knowledge pages. See "When to invoke" in the agent body for worked scenarios.

karlorz/llm-wiki · 64 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens