anywhere-agents AGENTS.md

anywhere-agents AGENTS.md is an instructions file for Codex, OpenCode from yzhao062/anywhere-agents. It costs 14,324 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 CodexOpenCode

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/yzhao062/anywhere-agents/agents-md
Clone the repo
git clone --depth 1 https://github.com/yzhao062/anywhere-agents

Made for: Codex, OpenCode.

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 AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yzhao062/anywhere-agents/agents-md.svg)](https://agentmods.dev/instructions/yzhao062/anywhere-agents/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/yzhao062/anywhere-agents/agents-md"><img src="https://agentmods.dev/badge/instructions/yzhao062/anywhere-agents/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 14,324 This file is loaded in full into every session.
When invoked 14,324 The same file — it is already loaded in full.
Security scan F 6 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 $0.14324 $0.14324
Opus 5 $0.07162 $0.07162
Sonnet 5 $0.02865 $0.02865
Haiku 4.5 $0.01432 $0.01432

Measured today against content hash 17d6212b6db4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade F, and why

anywhere-agents AGENTS.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 today.

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
AGENTS.md · 395 lines

How it starts

The opening of the file, as written. The whole thing — 395 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).

Bootstrap block for project repos

Read the full file on GitHub · 395 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. today Changed · +1 lines · +402 tokens per session 17d6212b6db4
  2. 5d ago First seen · 394 lines · 13,922 tokens per session scan F a1d2a13b2249

Subscribe to this mod's changes

anywhere-agents AGENTS.md is an instructions file published in the GitHub repository yzhao062/anywhere-agents (243 stars, last pushed today), licensed Apache-2.0. It adds 14,324 tokens to every session, about $0.0716 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

proof-of-commitment CLAUDE.md

Instructions for piiiico/proof-of-commitment, covering commit, what this is, the thesis, architecture (v0.2) and key decisions.

piiiico/proof-of-commitment · 1,166 tokens

node-modules-inspector AGENTS.md

Instructions for antfu/node-modules-inspector, covering agents.md, layout, commands (from repo root) and conventions.

antfu/node-modules-inspector · 354 tokens

kkRepo copilot-instructions.md

Copilot instructions for klboke/kkRepo, covering kkrepo copilot instructions, engineering rules, build and test, compatibility workflow and review focus.

klboke/kkRepo · 479 tokens

kkRepo protocol-compat.instructions.md

Instructions for klboke/kkRepo, a project described as: kkRepo is a Nexus-compatible, self-hosted artifact repository for Maven, npm, PyPI, Go, Helm, NuGet, Cargo/Rust, Dart/Pub, Docker/OCI, RubyGems, and Yum artifacts. It supports one-click migration from Nexus to kkRepo.

klboke/kkRepo · 191 tokens

kkRepo docs.instructions.md

Instructions for klboke/kkRepo, a project described as: kkRepo is a Nexus-compatible, self-hosted artifact repository for Maven, npm, PyPI, Go, Helm, NuGet, Cargo/Rust, Dart/Pub, Docker/OCI, RubyGems, and Yum artifacts. It supports one-click migration from Nexus to kkRepo.

klboke/kkRepo · 147 tokens

jmcomic-ai AGENTS.md

Instructions for hect0x7/jmcomic-ai, covering ai agent development guide for jmcomic ai, 🎯 core philosophy, 🏗️ architecture for agents, 🛠️ development workflow (recommended for agents) and 1. research & discovery.

hect0x7/jmcomic-ai · 1,799 tokens