← Home
idea · drafted with Claude · session 2026-11-29
idea llm pflow petri-nets

Every LLM system I build lands on the same three dials: knowledge, speed and control. I can turn up any two. The third pays for it.

The three corners

Pick You get You give up Looks like
Knowledge + speed Broad answers, fast Control: no constraints, no verification One-shot prompting, vibe coding
Knowledge + control Correct, checked answers Speed: minutes and dollars per answer Agent loops, tool calls, retries, judges
Speed + control Fast, provably correct behavior Knowledge: only what you encoded State machines, compiled rules, plain code

Seven earlier entries from this notebook placed on the knowledge, speed and control triangle, with dashed arrows for work compiled from the slow corner into the fast one

Here is where some earlier entries land. The placements are my reading of each one, not measurements. The dashed arrows are the migration below: BeatScript authoring compiles to BeatScript playback, and a net drafted from code ends up run by the ODE solver with no LLM involved.

None of the corners is wrong. Each is the right tool at a different moment in a project's life.

Move the work between corners

There's no fourth corner to find. What works is moving work between corners over time.

  1. Explore in the slow corner, knowledge + control. Let the agent loop grind until a behavior is found and checked.
  2. Compile that behavior into the fast corner, speed + control. Write it down as a spec, a model or generated code.
  3. Stop paying for the model's knowledge on every call. The hot path runs without it.
  4. Return to the slow corner only when the world changes and the compiled behavior no longer fits.

The knowledge + speed corner is fine for sketches. It just never gets to be load-bearing.

pflow already has this shape

pflow and its token language already work this way. The LLM explores, the Petri net pins down the structure, and the build runs without the LLM in the hot path.

The LLM's job shrinks to proposing changes to the net, and every proposal gets checked before it lands. A structural constraint ("it can't be otherwise") beats a constraint you have to prompt for every time.

Rented and owned

Knowledge is rented at inference time. Control is owned at compile time. Speed comes from not renting what you already own.

Related: Small Models > LLMs · Code-to-Flow

×

Follow on Mastodon