Open any agent codebase today — Claude Code, Codex, Pi, most of the open-source ones — and you'll find the same skeleton. Something like: let state = {}; while ( true ) { const plan = await llm . plan ( state ); const results = await runTools ( plan ); state = updateState ( state , results ); i...

Source: [Dev.to](https://dev.to/tomsun28/why-does-every-ai-agent-still-look-like-while-true--258a)

Sponsored