Making a repo agent-friendly: CLAUDE.md, memory files, hooks and MCP config
AI coding agents kept running the wrong test command, editing generated files and reading our .env. The fix was repo setup, not better prompts: a short instruction file, deterministic commands, permission rules, formatting hooks and a checked-in MCP config.