codex-claude-code-config: Instructions file for Claude Code

CLAUDE.md

codex-claude-code-config CLAUDE.md is an instructions file for Claude Code from AnastasiyaW/codex-claude-code-config. It costs 8,348 tokens per session, scanned A, original, MIT.

Global rules for Claude Code covering code quality, task completion, dependency safety, and handling secrets. They define how changes should be implemented and checked in a project.

In plain words
What is it for?
Use them when deciding how to structure a fix, checking code quality, handling dependencies, working with secrets, or finishing a development task.
Why use it?
They give a coding agent consistent boundaries for making minimal, reliable changes and for preventing sensitive data from reaching a public repository.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is AnastasiyaW/codex-claude-code-config's own configuration. It tells Claude Code how to work on codex-claude-code-config 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 codex-claude-code-config configures →

Reuse

Borrowing it

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

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 codex-claude-code-config CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/anastasiyaw/codex-claude-code-config/claude-md"><img src="https://agentmods.dev/badge/instructions/anastasiyaw/codex-claude-code-config/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,348 This file is loaded in full into every session.
When invoked 8,348 The same file — it is already loaded in full.
Security scan A 0 findings. 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.08348 $0.08348
Opus 5.5 $0.03339 $0.03339
Sonnet 5.5 $0.01670 $0.01670
Haiku 4.5 $0.00835 $0.00835

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

Security

Grade A, and why

codex-claude-code-config CLAUDE.md scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 494 lines

How it starts

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

Claude Global Rules

Core Working Rules (always-on, mechanical)

Hard user directives, codified as drop-in rules/ + mirrored on hooks:

  • rules/secrets-as-data.md -- secrets are working data, used freely; the closed Claude/Codex working chat is inside our trust boundary, so an exact credential needed for the task may be read, used, and shown here without masking; do NOT scrub tokens or nag about rotation; the only hard line is nothing leaks into a PUBLIC repo (pre-push scan). Do not dump unrelated credentials without a work need.
  • rules/quality-code.md -- code quality between two poles: no monkey-patches (don't cut corners at the cost of stability) AND no over-engineering (YAGNI ladder); sweet spot = minimal correct architecture + verify. /lean-code = on-demand intensifier (our own skill).
  • rules/finish-the-task.md -- the single work-discipline canon (6 pillars, all in one place): finish to runtime · cover all accepted branches of the current milestone · quality over token economy · difficulty is no reason to defer · fix every exact reproduced cause immediately with one minimal causal test · execute available reversible machine steps instead of telling the user to copy/paste/run them; ask only for the irreducibly human OTP/CAPTCHA/physical approval after reaching that prompt · explicit user instructions outrank skill methodology, and a skill-caused pause names the exact instruction · never block the current sufficient milestone on a future, unavailable, optional, or production-only capability unless it is an explicit current acceptance criterion or causally required for correctness/safety. Broad repeated reviews/tests are forbidden unless a concrete changed risk requires them. Enforced by stop-phrase-guard + session-handoff-*; near-overflow -> write a handoff.
  • rules/quality-over-tokens-independent-verify.md -- optimize for quality, NOT token economy; complex/irreversible work gets independent fresh-context agent verification (Generator-Evaluator).
  • rules/deletion-confirm-and-verify.md -- any deletion needs explicit unambiguous user confirmation; after a delete/copy, re-verify it actually happened. Enforced by human-confirmation-guard + verify-deleted-guard.
  • rules/autonomy-risk-tiers.md -- necessary reversible steps within the accepted task and verified owned internal contour are authorized by the task; continuation preserves its scope, without a separate magic phrase per file or host. Verify the destination and carry the original request into the normal access request. Do not bypass a real tool denial; identify its layer and retry only with material new evidence or authority. Deletion, irreversible actions and work outside the authorized contour require separate authority; a backup is not authorization. No menus or user homework for agent-owned reversible steps.
  • rules/no-guessing.md -- never guess: every decision rests on a verifiable source (code / probe / docs / checklist / user quote), not memory or intuition; unsure -> research or ask. High-stakes decisions get an independent fresh-context verifier.
  • rules/git-source-of-truth.md -- git is the single source of truth: everything committable gets committed and pushed; deployed == committed; only 4 classes stay out (regenerable, secrets, machine junk, heavy binaries).
  • rules/file-organization-cohesion.md -- durable artifacts go into the existing structure (repo / KB / project folder); related files stay TOGETHER, not scattered across /tmp, home root, Desktop, Downloads. Advisory hook file-cohesion-guard reminds.
  • rules/cross-harness-agents-md.md -- multi-harness projects keep canonical context in AGENTS.md (Claude Code imports it via @AGENTS.md, Gemini CLI reads it via context.fileName, Codex natively); NO symlinks; markdown briefs/handoffs are the cross-harness context currency.
  • rules/learn-from-corrections.md -- the agent learns a lesson every time the user corrects it: session-feedback-capture (Stop) auto-queues sessions, /distill-feedback extracts durable corrections into rules human-gated. Detection is LLM-semantic (a keyword detector was independently tested and rejected at held-out F1 0.42 vs 0.97). Operationalizes TRACE — compile corrections into rules, and into hooks where mechanically checkable.

Read the full file on GitHub · 494 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 · +14 lines · +501 tokens per session cfeb5ef82e75
  2. 1mo ago Changed · +3 lines · +69 tokens per session b1133b47df7b
  3. 1mo ago Changed · +21 tokens per session 87d37aa6a2b9
  4. 1mo ago Changed · +12 lines · +172 tokens per session dc97677a9775
  5. 1mo ago Changed · +81 tokens per session 66dbbe312f92
  6. 1mo ago First seen · 465 lines · 7,504 tokens per session scan A c991f35f5378

Subscribe to this mod's changes

codex-claude-code-config CLAUDE.md is an instructions file published in the GitHub repository AnastasiyaW/codex-claude-code-config (212 stars, last pushed today), licensed MIT. It adds 8,348 tokens to every session, about $0.0334 per session on Opus 5.5. A static security scan graded it A with 0 findings. 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

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 · 9,715 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,581 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens