claude-code

AI Rules

AI Strategy

User hand-writes plans (often in <repo>/.agent/inbox/) for the Orchestrator (main thread agent) to execute.

Executing a plan:

Orchestrator behavior by model:

Values

Language Guidance

Before first reviewing or writing code in a language each session, read the matching file in languages/ next to this file; once read, don’t reread it. If no file matches the language, apply only the shared rules below - don’t search elsewhere:

For green-field projects, prefer a top-level Makefile; dev and CI/CD invoke the same make targets (see make.md).

Project structure

Agent working directories live in <repo>/.agent/, never <repo>/.claude/.

Project memory is <repo>/CLAUDE.md, which Claude Code loads natively, kept per-machine by .git/info/exclude rather than a tracked ignore rule. Where the repo already tracks a root CLAUDE.md of its own, yours falls back to <repo>/.agent/CLAUDE.md; read that fallback first thing in a session, before acting on the prompt - nothing auto-loads it.

Nothing under <repo>/.agent/ is tracked; it holds a .gitignore whose only line is *.