Teach your agent system design first: 7 rules and a 12-step prompt

damnGruz · x · 2026-11-04

The thread argues the bottleneck now is system design, not code: agents write functions in seconds but can't decide what the system should be, trapping you in a prompt→code→bug→prompt loop.

Principle 1: Design before code — list components, interfaces, and owned data on paper; write code once, last.

Seven rules (each a question the agent won't ask itself):

Principle 2: Multiple bots are a distributed system — bots are services, routines are queue consumers, memory is a stale-able cache, external APIs sit behind circuit breakers, sends pass a rate limiter and approval gate with idempotency keys. No new tools needed — just answer: where work waits, what limits it, what happens on failure, what must never run twice.

Original post →

More from coding & agent

coding & agent channel →