agentleFS
darkroomengineeringdarkroomengineering/cc-settings/.claude/AGENTS.md

cc-settings

AGENTS.md47 starsChanged 2 months agoMITView on GitHub

Darkroom Engineering Claude Code configuration repository. This file is the repo's own project instructions. It lives at .claude/AGENTS.md because the root AGENTS.md is an installed artifact, not a place for repo notes. .claude/settings.json excludes that root copy from this repo's own sessions (claudeMdExcludes), since the user CLAUDE.md already imports the installed one; without it the standards load twice. Claude Code 2.1.277+ reads both natively when a project has no CLAUDE.md; Codex reads only the root file. This repo contains two…

  • Commits and pushes

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When a change closes the bug a team-knowledge note documents, rewrite or delete that note in the same push (gh api on …

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

cc-settings

Darkroom Engineering Claude Code configuration repository.

This file is the repo's own project instructions. It lives at .claude/AGENTS.md because the root AGENTS.md is an installed artifact, not a place for repo notes. .claude/settings.json excludes that root copy from this repo's own sessions (claudeMdExcludes), since the user CLAUDE.md already imports the installed one; without it the standards load twice. Claude Code 2.1.277+ reads both natively when a project has no CLAUDE.md; Codex reads only the root file.

Important

This repo contains two config files installed globally:

  • AGENTS.md → ~/.claude/AGENTS.md (portable coding standards, reference copy)
  • CLAUDE-FULL.md → ~/.claude/CLAUDE.md (Claude-Code-specific config)

The AGENTS.md file is the source of truth for coding standards and guardrails. It works across all AI coding tools (Codex, Cursor, Copilot, Windsurf, etc.).

CLAUDE-FULL.md contains only Claude-Code-specific settings (edit strategy, delegation guidance, model config, profiles, hooks). It @-imports AGENTS.md, so the standards load every turn.

About This Repo

TypeScript on Bun. Runtime: bun >=1.2.21. The skill count is enforced by bun run lint:skills; the rule lives in CLAUDE-FULL.md ("Skill library ratchets"), not here. Deps: zod and typescript (the native-ts codemap engine loads the compiler at runtime; YAML parsing uses Bun.YAML, prompts use node:readline). Dev: @biomejs/biome, @types/bun.

Two directories aren't what their names suggest: config/ holds settings fragments that are composed into ~/.claude/settings.json at install time (edit those, never the installed file), and schemas/*.schema.json is generated from the zod sources in src/schemas/ — don't hand-edit it.

Development

  • Install: bash setup.sh (macOS/Linux) or .\setup.ps1 (Windows)
  • Light install: bash setup.sh --light (raw Claude Code + statusline + share-learning skill only; permanent beginner tier — re-run without --light to upgrade)
  • Rollback: bun src/setup.ts --rollback (restores newest backup)
  • Fresh install: bash setup.sh --fresh (reinstall as if from scratch — settings.json, prior-install state, and local approvals reset; login/history/memory untouched; recover via rollback)
  • Dry-run: bun src/setup.ts --dry-run
  • Tests: bun test
  • Token spend from local transcripts: bun run tokens (--all, --days N, --json). Price-weighted by billing type, split main vs subagent; run it before and after a harness change.
  • Hook firing frequency from local transcripts: bun run hooks:report (--days N, --project, --json, --bench <file>). Maps tool calls, prompts, turns and compactions onto the matchers in config/40-hooks.json and lists the Stop hook durationMs Claude Code records.
  • Hook latency replay: bun run hooks:bench (--runs N, --json). Runs each synchronous hook with a sample payload under a throwaway HOME, reports p50/p95. Feed its --json to hooks:report --bench.
  • Skill evals: every skill has cases in evals/<skill>-<slug>/ (claude plugin eval format, tags: [<skill>]). A repo-local hook (.claude/hooks/pre-push-evals.ts) runs the cases for skills changed since upstream before every git push, capped at $5, and blocks on a failing or missing case. Run it by hand with bun src/scripts/eval-changed.ts; a new or reworded skill ships with its case.
  • Typecheck: bun run typecheck
  • Lint: bun run lint / bun run lint:fix
  • Deliberate-shortcut markers: bun run lint:shortcuts (add -- --ledger for the /audit debt view). Convention lives in AGENTS.md → Laziness Ladder.
  • Schemas (regenerate JSON Schema from zod sources): bun run schemas:emit
  • Preview composed settings.json: bun run compose
  • Dry-run a Bash command against the permission rules: bun run permissions:check "<cmd>" (--installed to check against ~/.claude/settings.json instead of config/)
  • Upstream drift scan (Claude Code and Codex CLI): bun run upstream:scan
  • Commits: conventional — feat:, fix:, refactor:, docs:, chore:, test:. A repo-local hook (.claude/hooks/pre-commit-invariants.ts) runs the fast invariant tests before every git commit and blocks on failure; the full suite still runs before a PR.
  • Landing: main is protected. Every change, version bumps included, lands through a PR. The only required check is ci-gate, which the org ruleset "Default branch gate" runs from darkroomengineering/.github on every repo. darky/review is not required. PRs run Windows only for the install tests and setup.ps1; the full Windows suite runs after the merge, on main. Auto-merge is off, so merge by hand once ci-gate passes.
  • When a change closes the bug a team-knowledge note documents, rewrite or delete that note in the same push (gh api on darkroomengineering/team-knowledge, see docs/knowledge-system.md). A stale cc-settings note is worse than none: it prescribes a manual fix for a bug that no longer exists.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.