ThePrimeagen visualizes program state machines to regain control in the agent era

samgoodwin89 · x · 2026-11-14

Well-known developer ThePrimeagen highlights a core pain of the agent era: the gap between what you think should be done and what the agent actually does — too much control is lost. His idea: visualize the state machine of your program so developers can see and steer behavior again.

Inspired by this, someone built domain-devtools, a developer tool for Alchemy Domain aggregates (19 stars on GitHub) that generates Mermaid command diagrams and aggregate state overviews from source, letting you inspect contracts, decisions, events, and evolution.

Original post →

More from coding & agent

coding & agent channel →