fak: Instructions file for Claude Code

CLAUDE.md

fak CLAUDE.md is an instructions file for Claude Code from anthony-chaudhary/fak. It costs 1,308 tokens per session, scanned A, original, Apache-2.0.

A Claude Code instruction file that points to the canonical fak agent rules and lists important contribution constraints.

In plain words
What is it for?
Guiding Claude Code when working on fak and its documentation or source files.
Why use it?
It helps Claude Code follow the repository's required workflow instead of treating it like an unrestricted codebase.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is anthony-chaudhary/fak's own configuration. It tells Claude Code how to work on fak 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 fak configures →

Reuse

Borrowing it

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

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 fak CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/anthony-chaudhary/fak/claude-md.svg)](https://agentmods.dev/instructions/anthony-chaudhary/fak/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/anthony-chaudhary/fak/claude-md"><img src="https://agentmods.dev/badge/instructions/anthony-chaudhary/fak/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,308 This file is loaded in full into every session.
When invoked 1,308 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.01308 $0.01308
Opus 5 $0.00654 $0.00654
Sonnet 5 $0.00262 $0.00262
Haiku 4.5 $0.00131 $0.00131

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

Security

Grade A, and why

fak 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 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.

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 · 60 lines

How it starts

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

CLAUDE.md

Not the human contributor guide. This file is operating instructions for automated contributors working inside the maintainers' shared checkout. Humans want README.md for what fak is and CONTRIBUTING.md for how to contribute; nothing on this page applies to you.

The canonical instructions

The canonical agent instructions for this repo are in AGENTS.md — read it first for build/test/run, the repo map, and the rules.

The five hard rules

The five that will bite you if you skip them:

  • Work directly on the trunk (main). Never open a feature branch or new worktree — the trunk guard refuses off-trunk commits (OFF_TRUNK). The one sanctioned exception is a detached per-worker worktree that lands its diff back on main via fak worktree worker prepare|land|reap (build isolation, #1334 / epic #3165): because it is detached (never a branch) and commits only through the serialized land under the worker's lane lease, it is not off-trunk and never trips OFF_TRUNK. Feature branches and any other off-trunk commit stay forbidden. (Details in AGENTS.md.)
  • Commit via fak commit or fak sweep by explicit path — all commits must be made via fak commit --path <p> -m "<subject> (fak <leaf>)" or fak sweep --apply --lane <lane> -m "<subject>", never git add -A or uncoordinated raw git commit (shared multi-session tree). fak commit locks the lane, stages exactly your paths, provides automatic DCO sign-off (with -s accepted for compatibility), and verifies that no peer files were raced in (PATHSPEC_RACE). End every ship commit's Conventional-Commits subject with a bindable (fak <leaf>) trailer so the dos verify referee can bind it — e.g. fix(gateway): treat same-tick ready as positive (fak gateway). A bare un-stamped subject stays NOT_SHIPPED. Emergency raw git fallback is permitted ONLY when the fak binary is unbuilt (git commit -s -m "<subject> (fak <leaf>)" -- <paths>). The /commit-clean skill mechanizes this rule end to end. (Full convention in AGENTS.md.)
  • Default is to ship green work and sync safely unprompted — do more work by default: pre-flight sync with trunk (fak sync check, fak sync reconcile --apply, or fak sync apply), verify on-device (fak validate --mine <paths>, go test ./internal/<pkg>/...), commit by explicit path (fak commit --path <p> -m "<subject> (fak <leaf>)" or fak sweep --apply --lane <lane> -m "<subject>"), and push unprompted via fak sync push or fak commit --push. "Green" requires shift-left proof: for changes touching executable CLI verbs, gateway adapters, or runtime logic, execute real paths in dogfood or integration tests rather than relying on mock-only or shallow tests. Safe merge discipline: verify no in-flight MERGE_HEAD exists before staging (if active, unstage and wait; never clobber, abort, or finish a peer's merge); use fak sync apply (--ff-only) for clean trunk convergence; route divergence via fak sync reconcile (disjoint integration, superset merge, or dirty parking via fak wip park); never force-push, use --autostash, or perform raw 3-way merges. Dual-repo synchronization invariant: when working across both repos or touching shared interfaces (pkg/*), keep both fak and fak-private synchronized (fetch both remotes and refs/fak/locks/*, fast-forward both, sync go.work to prevent module skew, and audit with public leak scrub tools/scrub_public_copy.py --audit-staged). Full default + verify command in AGENTS.md.
  • Divide and conquer: delegate substantive work and keep this coordinator context clean; enforce capability-aware scoping and persistence — decompose substantive or multi-part requests into atomic single-concern units and launch specialized subagents concurrently for independent components. Use guarded headless agents or equivalent isolated workers for investigation, implementation, tests, and review. Constrain smaller models and workers to atomic S0/S1 leaf units (1–3 files, single package, exactly one witness). Scope abstention strictly to bounded high-difficulty aspects (concurrency, frozen ABI, kernel memory layout, security gates): emit a structured ABSTAIN for the escalated boundary while executing all independent, safe, solvable sub-components (such as reproduction tests or diagnostics). Treat guard refusals as actionable feedback rather than session stops: query fak recover <TOKEN>, adapt execution or wait out transient locks, and maintain momentum on the objective without repeating failing calls. Keep only decisions and compact witnessed evidence here; independently verify worker effects before landing or reporting them. Reserve direct work for lightweight coordination and truly trivial tasks. Full contract in AGENTS.md.
  • The Go module is the repository root — run go commands from the clone root; go install github.com/anthony-chaudhary/fak/cmd/fak@latest resolves directly.

Read the full file on GitHub · 60 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 · +146 tokens per session 0805d14bfe49
  2. 2d ago Changed · +3 lines · +192 tokens per session 18e68fe9b55b
  3. 3d ago Changed · +2 lines · +64 tokens per session 96504cd6336f
  4. 4d ago First seen · 55 lines · 906 tokens per session scan A ff8ba1dbaa52

Subscribe to this mod's changes

fak CLAUDE.md is an instructions file published in the GitHub repository anthony-chaudhary/fak (37 stars, last pushed today), licensed Apache-2.0. It adds 1,308 tokens to every session, about $0.0065 per session on Opus 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-09-03.

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