anywhere-agents: Instructions file for Claude Code

CLAUDE.md

anywhere-agents CLAUDE.md is an instructions file for Claude Code, Codex from yzhao062/anywhere-agents. It costs 12,577 tokens per session, scanned F, original, Apache-2.0.

Project instructions for anywhere-agents, a shared configuration system for coding agents.

In plain words
What is it for?
Use them to bootstrap consumer repositories and manage shared agent configuration, skills, and settings.
Why use it?
They explain when to refresh shared settings and how repository-specific overrides work, reducing setup mistakes between sessions.

Instructions file for Claude CodeCodex

Written for Claude Code and Codex: PreToolUse hook event, but also runs codex exec. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the TodoWrite tool.

This is yzhao062/anywhere-agents's own configuration. It tells Claude Code and Codex how to work on anywhere-agents 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 anywhere-agents configures →

Reuse

Borrowing it

Nothing to install: this file belongs to yzhao062/anywhere-agents. 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/yzhao062/anywhere-agents/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/yzhao062/anywhere-agents

Made for: Claude Code, Codex.

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 anywhere-agents CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yzhao062/anywhere-agents/claude-md/github.svg)](https://agentmods.dev/instructions/yzhao062/anywhere-agents/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/yzhao062/anywhere-agents/claude-md"><img src="https://agentmods.dev/badge/instructions/yzhao062/anywhere-agents/claude-md/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 anywhere-agents CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/yzhao062/anywhere-agents/claude-md"><img src="https://agentmods.dev/badge/instructions/yzhao062/anywhere-agents/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12,577 This file is loaded in full into every session.
When invoked 12,577 The same file — it is already loaded in full.
Security scan F 6 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
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.12577 $0.12577
Opus 5 $0.06288 $0.06288
Sonnet 5 $0.02515 $0.02515
Haiku 4.5 $0.01258 $0.01258

Measured yesterday against content hash 7546e270111d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade F, and why

anywhere-agents CLAUDE.md scanned grade F with 6 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 yesterday.

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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- Everything above this line is bootstrap setup instructions. -->

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- macOS: `curl -fsSL https://claude.ai/install.sh | sh`

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Merge shared Claude project defaults (e.g., `permissions`, `attribution`) from `.agent-config/repo/.claude/settings.json` into the project `.claude/settings.json`. Shared keys are updated on every bootstrap run; project-

Recursive force deletehighDestructive command

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

| File / device destruction | `Bash` + `PowerShell` | Bash `rm -rf`/`-fr`/`-r -f`, `dd`, `mkfs*`, `shred`; PowerShell `Remove-Item` (+ aliases `rm`/`del`/`rd`/`rmdir`) with `-Recurse`/`-r`/`/s` | **ask** (user confirms)

Makes network callslowCapability

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

curl -sfL https://raw.githubusercontent.com/yzhao062/anywhere-agents/main/bootstrap/bootstrap.sh -o .agent-config/bootstrap.sh

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- **Keep `CREATE_NO_WINDOW` on the shells the suite spawns**, which `tests/_quiet_spawn.py` installs by patching `subprocess.run` and `subprocess.Popen`. Measured on an isolated shell-to-`cmd.exe` chain: three windows ov
CLAUDE.md · 377 lines

How it starts

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

Claude Code / Codex / other agents -- determine your context before proceeding:

Source repo test: If bootstrap/bootstrap.sh, bootstrap/bootstrap.ps1, and skills/ all exist at the repo root, you are in the anywhere-agents source repo (or a fork with the same layout). Skip the bootstrap block below and proceed directly to ## Session Start Check. Do not execute the bootstrap script in the source repo; it would try to bootstrap itself.

Consumer repo path: Otherwise, you are in a project that consumes the shared config. You MUST execute the matching bootstrap block below at the start of every session, before responding to any user request or running session checks. Use the PowerShell block on Windows and the Bash block on macOS/Linux. Bootstrap is idempotent: run it every session even if .agent-config/ already exists, so shared config, skills, and settings are refreshed from upstream before any work begins. Do not treat the block below as reference documentation -- it is a required runtime command. After running, report the refresh result in one line (for example, "bootstrap: refreshed AGENTS.md, skills, settings").

Bootstrap: Shared Config and Skills

This file is the shared agent configuration hosted at https://github.com/yzhao062/anywhere-agents. Project repos should include the following bootstrap block in their own AGENTS.md so that agents automatically pull the latest shared defaults and skills before starting any task. Because bootstrap rewrites the consumer's root AGENTS.md from this source on every run, the block below ends up serving two roles in consumer repos: it is both the embedded reference for how the setup works and the runtime command the agent executes each session (see the top-of-file note for the source-vs-consumer test that decides which role applies in the current repo).

Read the full file on GitHub · 377 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. yesterday Changed · +5 tokens per session 7546e270111d
  2. 3d ago Changed · +98 tokens per session 745639d9667c
  3. 9d ago First seen · 377 lines · 12,474 tokens per session scan F 9b3fcda4db59

Subscribe to this mod's changes

anywhere-agents CLAUDE.md is an instructions file published in the GitHub repository yzhao062/anywhere-agents (244 stars, last pushed 2d ago), licensed Apache-2.0. It adds 12,577 tokens to every session, about $0.0629 per session on Opus 5. A static security scan graded it F with 6 findings (hidden instructions, downloads and executes remote code, reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

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

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,153 tokens

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

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

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

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