keystone: Command for Claude Code

.claude/commands/keystone-mode.md

keystone-mode is a command for Claude Code from tacoda/keystone. It costs 13 tokens per session (238 once invoked), scanned A, a copy of mode, MIT.

A command for changing the project's working mode between paired, solo, and autopilot workflows.

In plain words
What is it for?
Use it to set or inspect whether each step needs confirmation, can proceed with occasional questions, or should run end to end.
Why use it?
It makes the expected level of human review and agent independence explicit.

Command 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/commands/keystone-mode.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-mode

README.md
[![agentmods](https://agentmods.dev/badge/commands/tacoda/keystone/keystone-mode.svg)](https://agentmods.dev/commands/tacoda/keystone/keystone-mode)
Your own site
<a href="https://agentmods.dev/commands/tacoda/keystone/keystone-mode"><img src="https://agentmods.dev/badge/commands/tacoda/keystone/keystone-mode.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 238 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 92% 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.00013 $0.00238
Opus 5 $0.00006 $0.00119
Sonnet 5 $0.00003 $0.00048
Haiku 4.5 $0.00001 $0.00024

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

Security

Grade A, and why

keystone-mode 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 3d 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

92% identical to mode — 4 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/commands/keystone-mode.md · 23 lines

What it actually says

mode

Switch the charter pacing mode (paired / solo / autopilot). Read .charter/guides/process/modes.md.

Activities

  1. If the user named paired, solo, or autopilot, set that as the active mode.
  2. If no mode was named, print the current mode and a one-line description of each.
  3. Update .charter/guides/process/modes.md in place — replace the "Current mode" line. Do not rewrite the rest of the file.

Mode summary

  • paired — user is at the keyboard reviewing every step. Confirm before non-trivial edits.
  • solo — user is around but not watching every step. Run sensors and proceed; ask only at genuine forks.
  • autopilot — user is away. Execute end-to-end; pause only on iron-law violations or destructive actions.

Iron law

No silent overwrites of state files. Show the modes.md diff before saving.

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. 3d ago First seen · 23 lines · 13 tokens per session scan A efe9bc2733fa

Subscribe to this mod's changes

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