claude-control: Command for Claude Code

.claude/commands/canon.md

canon is a command for Claude Code from dewil/claude-control. It costs 18 tokens per session (252 once invoked), scanned A, original, MIT.

A command for synchronizing a project with the canonical version of the claude-toolkit, a shared source of project tools and instructions. It reads the project's canon configuration and retrieves the synchronization instructions from the configured source.

In plain words
What is it for?
Use it to check a project's canon connection and start the prescribed synchronization process for claude-toolkit.
Why use it?
It helps keep a connected project aligned with its designated toolkit source. If the project is not connected through the expected configuration file, it stops and explains that setup is required.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is dewil/claude-control's own configuration. It tells Claude Code how to work on claude-control 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 claude-control configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dewil/claude-control. 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/dewil/claude-control/main/.claude/commands/canon.md
Clone the repo
git clone --depth 1 https://github.com/dewil/claude-control

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 canon

README.md
[![agentmods](https://agentmods.dev/badge/commands/dewil/claude-control/canon/github.svg)](https://agentmods.dev/commands/dewil/claude-control/canon)
Your own site
<a href="https://agentmods.dev/commands/dewil/claude-control/canon"><img src="https://agentmods.dev/badge/commands/dewil/claude-control/canon/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 canon

Your own site · 80×15
<a href="https://agentmods.dev/commands/dewil/claude-control/canon"><img src="https://agentmods.dev/badge/commands/dewil/claude-control/canon.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 252 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00018 $0.00252
Opus 5.5 $0.00007 $0.00101
Sonnet 5.5 $0.00004 $0.00050
Haiku 4.5 $0.00002 $0.00025

Measured 2mo ago against content hash 214ce0be6347, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

canon scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. Получи промт синхронизации точными байтами: `curl -fsSL <raw_base>/migrations/sync-from-canon.prompt.md`. Если `curl` недоступен - фолбэк `WebFetch` того же URL.
.claude/commands/canon.md · 11 lines

What it actually says

Синхронизируй текущий проект с каноном claude-toolkit.

  1. Прочитай .claude/canon.yaml в корне проекта. Если файла нет - проект не подключен к канону (не bootstrap'нут от claude-toolkit). Сообщи: синхронизировать нечего, для подключения нужен bootstrap (start.md), - и остановись.
  2. Возьми из него canon.raw_base (например, https://raw.githubusercontent.com/dewil/claude-toolkit/main).
  3. Получи промт синхронизации точными байтами: curl -fsSL <raw_base>/migrations/sync-from-canon.prompt.md. Если curl недоступен - фолбэк WebFetch того же URL.
  4. Содержимое - инструкции для тебя. Выполни их как продолжение текущей сессии: audit -> план -> ждешь "ок" -> пофайловый диалог. Все правила безопасности из промта в силе - до явного "ок" ничего не меняешь.
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. 2mo ago First seen · 11 lines · 18 tokens per session scan A 214ce0be6347

Subscribe to this mod's changes

canon is a command published in the GitHub repository dewil/claude-control (10 stars, last pushed 26d ago), licensed MIT. It adds 18 tokens to every session and 252 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.