415.tech
AI & tech, from the frontlines of Silicon Valley
Astro creator's Flue 2 brings React-style hooks to agent frameworks

Astro creator's Flue 2 brings React-style hooks to agent frameworks

Fred Schott, Astro's creator and now at Cloudflare after its January 2026 acquisition, shipped Flue 2 with 16 TypeScript hooks — useSkill(), useTool(), useSubagent() and more — that let an agent attach tools and subagents mid-conversation instead of being configured up front. Agents are JavaScript functions that re-render on every turn before each model call, so a support bot can pull in account-management tools only after verifying a user. Built on the minimal open-source Pi harness, Flue is positioned as host-portable, the sharpest line separating it from Vercel's eve, which is tuned for Vercel's own infrastructure.

Source: latent.space

Post on XEmail

I originally tweeted that we were building the Astro for agents or the Next.js for agents. But then I realized: maybe no one has even built the React for agents.

Fred Schott, Flue creator

Why this matters

  • → Hooks unlock dynamic agent configuration mid-conversation, not static setup
  • → Support bots can verify users before loading tools — real-world pattern
  • → React-style composability emerging as the dominant agent framework paradigm
React for agents