Back to feed
News Story
APriority74
Latent Space
1 sources

React for Agents: Astro Creator Brings Hooks to His Meta-Harness, Flue

Fred Schott, creator of Astro, released version 2 of his agent framework Flue, introducing React-style 'Agent Hooks' for dynamic agent development. The framework allows agents to manage state, listen to lifecycle events, and attach resources at runtime, aiming to make agents more adaptable for real-world applications like support bots.

SynthePulse Insight · AI deep readingMembers

Flue 2: Redefining the Agent 'Harness' with React-Style Hooks

Version 1 · 1 source

Astro creator Fred Schott releases Flue 2, bringing React's Hooks concept to agent frameworks, emphasizing that 'no harness, no agent,' and sparking reflection on agent development paradigms.

  • Flue 2 is the first stable release of Flue, centered on React-style 'Agent Hooks,' offering 16 built-in hooks such as useSkill(), useTool(), and useSubagent().
  • In Flue, an agent is represented by a JavaScript function that 're-renders' before each model call, enabling dynamic configuration and real-time adaptation.
  • Schott argues that an agent must have a 'harness,' and Flue is built on the open-source minimal harness Pi, with the harness built in.
Open section navigationFrom Astro to Flue: The Birth of React-Style Hooks

From Astro to Flue: The Birth of React-Style Hooks

Fred Schott, creator of the Astro framework, whose company was acquired by Cloudflare in January, has just released Flue 2, the first stable version of Flue, based on React-style 'Agent Hooks.' In Flue, an agent is represented by a JavaScript function that 're-renders' before each model call.

Schott initially wanted to port web framework concepts to agent frameworks but found patterns like file-based routing didn't apply, as large clients often treat their entire company as a single agent. He instead drew inspiration from React's componentization, thinking, 'Maybe no one has built React for agents yet.'

Hooks are written in TypeScript, allowing developers to build dynamic agents that manage their own state, listen to lifecycle events, and dynamically attach resources and capabilities at runtime. Flue 2 includes 16 built-in hooks, including useSkill(), useTool(), and useSubagent(), and supports custom hooks.

Free for now

Read the full analysis

3 more sections of analysis, plus the full takeaway

Loading

Credibility boundary

This article is based on Latent Space's interview with Fred Schott, including direct quotes and product release information. All facts come from this single source and have not been independently verified by third parties.

Primary report

Latent Space

Primary source