How do you structure a monorepo so Claude Code stops violating your architecture as it grows?

alatmaca · reddit · 2026-10-22

A developer reports that as their codebase grows, Claude Code repeatedly violates documented architectural rules and burns context faster than expected. They ask for systematic advice on monorepo architecture (DDD/hexagonal fit), how CLAUDE.md/AGENTS.md/ADRs/skills/hooks should divide documented vs. mechanically enforced rules, context management without losing architectural knowledge, and whether the real problem is task delegation and validation rather than repo structure.

Original post →

More from coding & agent

coding & agent channel →