claude-code-setup AGENTS.md

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 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/petekp/claude-code-setup/agents-md
Clone the repo
git clone --depth 1 https://github.com/petekp/claude-code-setup

Made for: Codex, OpenCode.

Per session 258 This file is loaded in full into every session.
When invoked 258 The same file — it is already loaded in full.
Security scan B 1 finding. 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.00258 $0.00258
Opus 5 $0.00129 $0.00129
Sonnet 5 $0.00052 $0.00052
Haiku 4.5 $0.00026 $0.00026

Measured yesterday against content hash ea4ee310e2f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

Reads agent configuration directoriesmediumAgent snooping

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

- `~/.claude/settings.json` must remain a symlink to this repo's `settings.json`. Editing it in place can silently replace the symlink with a regular file — after any settings change, confirm the symlink is intact and re
AGENTS.md · 8 lines

What it actually says

This repo is my version-controlled configuration for Claude Code and Codex: skills, hook scripts, settings, and the symlink setup that wires them into ~/.claude and ~/.codex. It is bash and markdown only — no application code, build step, or test suite.

  • Shell scripts live in scripts/ and setup.sh. Keep scripts with a #!/bin/sh shebang POSIX-compatible (no bashisms).
  • After changing skills or scripts, run ./scripts/validate.sh (frontmatter checks) and ./setup.sh --verify (symlink health).
  • ~/.claude/settings.json must remain a symlink to this repo's settings.json. Editing it in place can silently replace the symlink with a regular file — after any settings change, confirm the symlink is intact and restore it if not.
  • Entries in skills/ are a mix of real directories and symlinks out to ~/.agents/skills and other repos. Edit symlinked skills at their source; never dereference a symlink into a copy.
  • Hook scripts referenced by settings.json run on every session. Test changes to them before committing (they fail silently in the harness).
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 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 (45 stars, last pushed 25d ago), licensed MIT. It adds 258 tokens to every session, about $0.0013 per session on Opus 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.