design-docs/agentic-runner-refactor.md
toolStart/toolResult emission, and setCode preview
streaming inside the unified loop.Keep video generation, but route it through the agent runner:
agent/runner.py: orchestration + shared stream loop.agent/providers/: provider adapters (openai, responses, anthropic, gemini).agent/tools.py: tool definitions, serialization, and execution.agent/state.py: file state + seeding utilities.