Flue v2 brings React-style hooks to agents
Archive item — written before sources were shown.
Astro creator Fred Schott shipped Flue 2.0, an open-source TypeScript agent framework built around composable 'Agent Hooks' instead of static config.
Fred Schott, the creator of the Astro web framework, shipped Flue 2.0 this week, the first stable release of his open-source TypeScript agent framework. The headline addition is Agent Hooks, a React-inspired pattern that lets an agent manage its own state, react to lifecycle events, and attach new tools or capabilities while a task is already running, rather than locking everything into a static config file before the agent starts. Flue ships with 16 built-in hooks, including useSkill(), useTool(), useSubagent(), and useModel(), and the framework now builds on Vite with a flue init command to scaffold a new project.
Schott has framed the project as a bet that agent frameworks need their own version of what React did for UI: composable primitives instead of one rigid way to wire things together. The comparison he draws is explicit, he’s aiming for “the React for agents,” not another file-based-routing framework like his own Astro or Next.js.
What it means for you
If you’re building or evaluating agent frameworks, the hooks model is worth understanding even if you don’t adopt Flue itself: it treats an agent’s configuration as something that evolves mid-task (upgrading a model, enabling a tool conditionally, advancing a workflow step) rather than something fixed at startup. That’s the same direction Writer’s harness rework pointed at yesterday: the orchestration layer around a model is where a growing share of real engineering effort, and differentiation, is landing. Flue is open source and free to try against whatever model you already run.
- 01Flue 2.0flueframework.com · primary
- 02React for Agents: Astro Creator Brings Hooks to his Meta-Harness, Fluelatent.space · reporting
