Why another agent framework
The technical core: React Flow + a real state machine
- Streaming state: an LLM node might produce tokens over 2-3 seconds. What does the downstream node see while tokens are arriving?
- Branching: a condition node routes data to different paths based on LLM output. The paths might run in parallel.
- Tool use: an agent node calls an external API and waits. The wait is asynchronous, but the state machine needs to track that it's pending.
- Error recovery: a step fails. Do you retry? Fallback? Halt the whole workflow?
The memory problem
Streaming responses in a visual interface
What I'd do differently
The interesting thing about building Linea is that the value isn't in the AI part. The LLM calls are commodity. The value is in making the non-AI parts (orchestration, state, data flow, observability) visible and manageable.
Most agent frameworks bury orchestration, state, and data flow as implementation detail, then seem surprised when nobody trusts what the agent did. Linea puts them on the canvas instead. Whether that's the right long-term bet, I honestly don't know yet. What I do know is I can point at any node in a failed run and tell you exactly what it saw, which is more than I could ever say about that first 400-line script.