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
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- adhdSkill
- auditSkill
- autoresearchSkill
- buildSkill
- ccSkill
- checkpointSkill
- codexSkill
- componentSkill
- consolidateSkill
- context-docSkill
- design-tokensSkill
- dr-initSkill
- exploreSkill
- fixSkill
- freezeSkill
- handoffSkill
- harvestSkill
- hookSkill
- lighthouseSkill
- oracleSkill
- orchestrateSkill
- plan-ceo-reviewSkill
- plan-featureSkill
- poke-holesSkill
- projectSkill
- proof-of-workSkill
- qaSkill
- refactorSkill
- retroSkill
- review-batchSkill
- reviewSkill
- share-learningSkill
- shipSkill
- strategistSkill
- testSkill
- tldrSkill
- triageSkill
- zero-tech-debtSkill
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
- Very specific: line 56
When a change closes the bug a team-knowledge note documents, rewrite or delete that note in the same push (gh api on …
≈ “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.
Files
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-learningskill only; permanent beginner tier — re-run without--lightto 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 inconfig/40-hooks.jsonand lists the Stop hookdurationMsClaude Code records. - Hook latency replay:
bun run hooks:bench(--runs N,--json). Runs each synchronous hook with a sample payload under a throwawayHOME, reports p50/p95. Feed its--jsontohooks:report --bench. - Skill evals: every skill has cases in
evals/<skill>-<slug>/(claude plugin evalformat,tags: [<skill>]). A repo-local hook (.claude/hooks/pre-push-evals.ts) runs the cases for skills changed since upstream before everygit push, capped at $5, and blocks on a failing or missing case. Run it by hand withbun 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-- --ledgerfor the/audit debtview). 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>"(--installedto check against~/.claude/settings.jsoninstead ofconfig/) - 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 everygit commitand 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 fromdarkroomengineering/.githubon every repo.darky/reviewis not required. PRs run Windows only for the install tests andsetup.ps1; the full Windows suite runs after the merge, on main. Auto-merge is off, so merge by hand onceci-gatepasses. - When a change closes the bug a team-knowledge note documents, rewrite or delete that note in the same push (
gh apiondarkroomengineering/team-knowledge, seedocs/knowledge-system.md). A stale cc-settings note is worse than none: it prescribes a manual fix for a bug that no longer exists.
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
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.

