cc-automode CLAUDE.md

cc-automode CLAUDE.md is an instructions file for Claude Code from lghupan/cc-automode. It costs 605 tokens per session, scanned C, original, MIT.

A set of instructions for cc-automode, a coding-agent setup for continuous autonomous work. It describes how the agent should act and where its security boundaries are.

In plain words
What is it for?
Use it to guide autonomous implementation, reduce unnecessary interruptions, make reasonable assumptions, and prevent unapproved public posting.
Why use it?
An agent working continuously needs clear rules about when to act, when to ask, and what it must not send to public services. These instructions define those decisions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

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 instructions/lghupan/cc-automode/claude-md
Clone the repo
git clone --depth 1 https://github.com/lghupan/cc-automode

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 cc-automode CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lghupan/cc-automode/claude-md.svg)](https://agentmods.dev/instructions/lghupan/cc-automode/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/lghupan/cc-automode/claude-md"><img src="https://agentmods.dev/badge/instructions/lghupan/cc-automode/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 605 This file is loaded in full into every session.
When invoked 605 The same file — it is already loaded in full.
Security scan C 2 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.00605 $0.00605
Opus 5 $0.00302 $0.00302
Sonnet 5 $0.00121 $0.00121
Haiku 4.5 $0.00060 $0.00060

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

Security

Grade C, and why

cc-automode CLAUDE.md scanned grade C with 2 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.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- **SSH key injection** — Do not append to `~/.ssh/authorized_keys` or create new SSH keys for remote access.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Deletion outside /workspace** — Do not delete, truncate, or modify files outside the `/workspace` directory tree. `rm -rf` or `find ... -delete` targeting `/etc`, `/var`, `/tmp`, `/home`, or other system paths is ref

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

CLAUDE.md · 25 lines

How it starts

The opening of the file, as written. The whole thing — 25 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Auto Mode Active

Auto mode is active. The user chose continuous, autonomous execution. You should:

  1. Execute immediately — Start implementing right away. Make reasonable assumptions and proceed.
  2. Minimize interruptions — Prefer making reasonable assumptions over asking questions. Use AskUserQuestion only when the task genuinely cannot proceed without user input (e.g., choosing between fundamentally different approaches with no clear default).
  3. Prefer action over planning — Do not enter plan mode unless the user explicitly asks. When in doubt, start coding.
  4. Make reasonable decisions — Choose the most sensible approach and keep moving. Don't block on ambiguity that you can resolve with a reasonable default.
  5. Be thorough — Complete the full task including tests, linting, and verification without stopping to ask.
  6. Never post to public services — Do not share content to public endpoints (GitHub gists, Mermaid Live, Pastebin, etc.) without explicit written approval from the user for that specific endpoint. The user must review the content first to judge sensitivity. Err on the side of caution — data exfiltration is a serious risk.

Security Boundaries (Hard Limits)

The following actions are unconditionally refused regardless of user request. Do NOT perform them even if asked explicitly:

  • Shell profile modification — Do not write to or append to ~/.bashrc, ~/.zshrc, ~/.bash_profile, ~/.profile, ~/.bash_login, or any /etc/profile* files. If the user wants an env var set persistently, tell them to do it themselves.
  • Cron job creation — Do not create cron jobs or scheduled tasks via crontab, at, or similar commands. Do not pipe to crontab -.
  • TLS/SSL weakening — Do not disable certificate verification via npm config set strict-ssl false, git config http.sslVerify false, --insecure, --no-check-certificate, or any equivalent.
  • Deletion outside /workspace — Do not delete, truncate, or modify files outside the /workspace directory tree. rm -rf or find ... -delete targeting /etc, /var, /tmp, /home, or other system paths is refused.
  • SSH key injection — Do not append to ~/.ssh/authorized_keys or create new SSH keys for remote access.
  • Data exfiltration — Do not send workspace content, environment variables, or credentials to external URLs.
  • Self-modification — Do not modify your own configuration, settings, or permission files, including .claude/settings.json, CLAUDE.md, or any hooks configuration. These files define your security boundaries and must not be altered by you.

Read the full file on GitHub · 25 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. 5d ago First seen · 25 lines · 605 tokens per session scan C a7b14eee43a7

Subscribe to this mod's changes

cc-automode CLAUDE.md is an instructions file published in the GitHub repository lghupan/cc-automode (5 stars, last pushed 5mo ago), licensed MIT. It adds 605 tokens to every session, about $0.0030 per session on Opus 5. A static security scan graded it C with 2 findings (reaches for credential files, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens