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.
npx agentmods add commands/agoldian/claudenv/autonomygit clone --depth 1 https://github.com/AGoldian/claudenvWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00017 | $0.00685 |
| Opus 5 | $0.00009 | $0.00342 |
| Sonnet 5 | $0.00003 | $0.00137 |
| Haiku 4.5 | $0.00002 | $0.00068 |
Grade C, and why
autonomy scanned grade C 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 2d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
Safety net: audit logging + hard blocks on rm -rf / and force push to main How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Autonomy Profile Manager
Manage Claude Code autonomy profiles directly from within a session.
Instructions
Parse $ARGUMENTS and execute the matching action below.
1. Determine the action
- If
$ARGUMENTSis empty orstatus→ go to Status - If
$ARGUMENTSstarts withsafe,moderate,full, orci→ go to Switch Profile - Otherwise → go to Usage Help
2. Status
Show the current autonomy configuration:
- Check if
.claude/hooks/pre-tool-use.shexists in the current project directory.- If it exists, read the first 5 lines to find the
# Profile:comment header and report the active profile name. - If it doesn't exist, report "No autonomy profile configured for this project."
- If it exists, read the first 5 lines to find the
- Check if
.claude/settings.jsonexists. If so, read it and summarize the permissions (allowedTools, disallowedTools counts). - List available profiles:
safe,moderate,full,ci.
3. Switch Profile
The target profile is the first word of $ARGUMENTS. Check for --dry-run flag in the remaining arguments.
If the profile is full:
Before proceeding, display this warning:
⚠️ FULL AUTONOMY MODE — UNRESTRICTED ACCESS
This profile grants Claude Code complete access including:
• All file system operations (read, write, delete)
• Credential files (~/.ssh, ~/.aws, ~/.gnupg, ~/.kube, etc.)
• All git operations including force push
• No permission prompts (--dangerously-skip-permissions)
Safety net: audit logging + hard blocks on rm -rf / and force push to main
Ask the user to confirm before proceeding. If they decline, abort.
Apply the profile:
Build the command:
claudenv autonomy --profile <name> --yes --overwrite
If --dry-run is present in $ARGUMENTS, append --dry-run to the command.
Run the command via Bash. If the command fails with "command not found", tell the user:
claudenv is not on PATH. Install it with:
npm install -g claudenv
After successful execution, show the output and confirm the profile was applied.
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.
- 2d ago First seen · 91 lines · 17 tokens per session scan C d643cf374415
autonomy is a command published in the GitHub repository AGoldian/claudenv (10 stars, last pushed 2mo ago), licensed MIT. It adds 17 tokens to every session and 685 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.