claude-code-setup: Instructions file for Claude Code

AGENTS.md

claude-code-setup AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from petekp/claude-code-setup. It costs 471 tokens per session, scanned B, original, MIT.

Repository instructions for a version-controlled collection of Claude Code and Codex settings, skills, scripts, and symlinks. A symlink is a filesystem link that points to another file or folder.

In plain words
What is it for?
Maintaining agent setup files, skills, shell hooks, symlinks, and configuration changes in that repository.
Why use it?
They explain where changes belong and how to avoid breaking the links that connect the repository to the agent configuration folders. They also define validation checks after edits.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; reads ~/.codex paths.

This is petekp/claude-code-setup's own configuration. It tells Claude Code, Codex and OpenCode how to work on claude-code-setup 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 claude-code-setup configures →

Reuse

Borrowing it

Nothing to install: this file belongs to petekp/claude-code-setup. 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/petekp/claude-code-setup/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/petekp/claude-code-setup

Made for: Claude Code, 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 claude-code-setup AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/petekp/claude-code-setup/agents-md"><img src="https://agentmods.dev/badge/instructions/petekp/claude-code-setup/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 471 This file is loaded in full into every session.
When invoked 471 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00471 $0.00471
Opus 5.5 $0.00188 $0.00188
Sonnet 5.5 $0.00094 $0.00094
Haiku 4.5 $0.00047 $0.00047

Measured 15d ago against content hash c5dc7022c802, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

claude-code-setup AGENTS.md scanned grade B 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 15d 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.

Reads agent configuration directoriesmediumAgent snooping

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

- `~/.claude/settings.json` is a regular file that Claude Code owns. Do not link it to the repo. Record it with `./scripts/settings-snapshot.sh`.
AGENTS.md · 13 lines

What it actually says

This repo is Pete's configuration for Claude Code and Codex: skills, hook scripts, and the setup that links them into ~/.claude and ~/.codex. It is shell scripts and Markdown, plus the TypeScript of the Claude Code mods in mods/. README.md describes the layout.

  • The repo is public. Do not commit employer or client names, customer data, private file paths, or session state. Private configuration belongs in ~/.agents, which is a private repo.
  • Scripts with a #!/bin/sh shebang must be POSIX sh. macOS runs them with bash 3.2 in POSIX mode. shellcheck misses two of its failures:
    • A case pattern inside $(...) needs a leading paren, as in ("$x"/*). Without it, the script fails with a syntax error.
    • [a-z] also matches uppercase letters under a UTF-8 locale. Use [[:lower:]] and [[:digit:]].
  • After changing skills, scripts or mods, run ./scripts/validate.sh and ./scripts/skill-doctor.sh.
  • mods/DEVELOPING.md explains how to test a mod's UI live without touching your own sessions' state.
  • skills/ holds only skills written here. Never commit a symlink into it. A skill from anywhere else goes in ~/.agents/skills, where link-skills.sh finds it.
  • ~/.claude/settings.json is a regular file that Claude Code owns. Do not link it to the repo. Record it with ./scripts/settings-snapshot.sh.
  • Hook scripts run in every session and fail silently. Before committing a change to one, pipe sample hook JSON into it and check the output. SessionStart output goes into the model's context, so a SessionStart script prints nothing when healthy.
  • To remove a skill installed with npx skills, run npx skills remove -g -y <name>. It removes the files, the key in ~/.agents/.skill-lock.json, and the agent links. If the files are already gone, delete the key with jq; otherwise npx skills update -g reinstalls the skill.
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. 15d ago Changed · +5 lines · +213 tokens per session c5dc7022c802
  2. 2mo ago First seen · 8 lines · 258 tokens per session scan B ea4ee310e2f0

Subscribe to this mod's changes

claude-code-setup AGENTS.md is an instructions file published in the GitHub repository petekp/claude-code-setup (49 stars, last pushed 11d ago), licensed MIT. It adds 471 tokens to every session, about $0.0019 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

claude-code-setup AGENTS.md compared with instructions from other repositories

claude-code-setup AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claude-code-setup AGENTS.mdpetekp/claude-code-setupInstructions file4911d agoMITB471Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode