check-autonomy

check-autonomy is a command for Claude Code from jketreno/clare. It costs 0 tokens per session (325 once invoked), scanned A, original, MIT.

A command that checks which autonomy rule applies to a file path and explains what AI may do there.

In plain words
What is it for?
Use it to inspect a path in clare/autonomy.yml and determine whether changes need normal approval, human review, or must not be generated.
Why use it?
It prevents automated changes from exceeding the level of permission set for that part of the project.

Command for Claude Code

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 commands/jketreno/clare/check-autonomy
Clone the repo
git clone --depth 1 https://github.com/jketreno/clare

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 check-autonomy

README.md
[![agentmods](https://agentmods.dev/badge/commands/jketreno/clare/check-autonomy.svg)](https://agentmods.dev/commands/jketreno/clare/check-autonomy)
Your own site
<a href="https://agentmods.dev/commands/jketreno/clare/check-autonomy"><img src="https://agentmods.dev/badge/commands/jketreno/clare/check-autonomy.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 325 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.1 $0.00000 $0.00325
Opus 5 $0.00000 $0.00162
Sonnet 5 $0.00000 $0.00065
Haiku 4.5 $0.00000 $0.00032

Measured 5d ago against content hash 46a093362a05, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

check-autonomy 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 5d 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.

.claude/commands/check-autonomy.md · 40 lines

What it actually says

/project:check-autonomy — Check the autonomy level for a file path

Given a file path, look up its autonomy level in clare/autonomy.yml and explain what it means for AI-generated changes.

Usage

/project:check-autonomy [path]

Example: /project:check-autonomy src/payment/processor.ts

Instructions

  1. Read clare/autonomy.yml
  2. Find the most specific matching path for the given argument (longest prefix match wins)
  3. Report the level, reason, and what action is appropriate

Response Format

## Autonomy Check: [path]

Matched rule: [matched path pattern]
Level: [full-autonomy | supervised | humans-only]
Reason: [reason from autonomy.yml]

### What this means:
[Explain the appropriate AI behavior for this level]

### Source of Truth (if applicable):
[If the path relates to a declared domain concept, show the source_of_truth entry]

Level Explanations

full-autonomy: AI can proceed normally. No special restrictions or reminders needed.

supervised: AI can generate code but must add: "⚠ Human review required — this path is marked supervised in clare/autonomy.yml." at the end of the response.

humans-only: AI must NOT generate code. Respond with: "This path is marked humans-only in clare/autonomy.yml. I won't generate code here. Please make this change yourself, or update the autonomy level if that boundary no longer applies."

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. 5d ago First seen · 40 lines · 0 tokens per session scan A 46a093362a05

Subscribe to this mod's changes

check-autonomy is a command published in the GitHub repository jketreno/clare (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 325 tokens. 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-31.