product update

Astro Creator Fred Schott Ships Flue 2, Bringing React-Style Hooks to AI Agent Development

TL;DR

Fred Schott, creator of the Astro web framework, has released Flue 2, the first stable version of his agent development framework. The update introduces React-inspired 'Agent Hooks' that let developers build agents whose configuration changes dynamically during a conversation rather than being fixed in advance.

3 min read
0

Fred Schott, the developer behind the Astro web framework, has released Flue 2, the first stable version of his AI agent framework. The headline addition is a system of React-inspired "Agent Hooks" that let developers compose agent behavior dynamically rather than configuring it upfront.

In Flue, an agent is represented as a JavaScript function that re-renders on every turn — meaning before each model call. Flue 2 ships with 16 built-in hooks, including useSkill(), useTool(), and useSubagent(), authored in TypeScript. Developers can also write custom hooks. According to Flue's launch post, these hooks let agents "manage their own state, listen to agent lifecycle events, and even attach different resources and capabilities dynamically to enhance themselves at runtime."

Schott, whose company was acquired by Cloudflare in January, said the hooks approach emerged after he abandoned an earlier plan to port over web-framework concepts like file-based routing. "We kind of naively ported that over to Flue, thinking — great, well, I'll put your five agents in these five files," he told Latent Space. But early users, particularly larger customers, treated their entire company as a single agent with no need for routing. That pushed him toward React's composability model instead.

Flue's core architectural claim is that every agent requires a "harness" — an environment providing the context and capabilities needed to complete tasks, as opposed to a script directing a model turn by turn. "There is no agent without a harness," Schott said. Flue is built on top of Pi, an open source minimal harness, with Flue itself acting as an opinionated layer on top — a relationship Schott compares to Vite's role beneath Astro. Hosted agents in Flue 2 are now built using Vite.

The project originated inside the Astro repository earlier this year as an issue-triage script before evolving into what Schott described in the Flue 1 launch post (early May) as being "like Claude Code, but 100% headless and programmable." Schott confirmed that many developers currently onboard onto Flue by using Claude Code itself to walk through setup, since the framework's documentation is markdown-based.

The closest competitor, according to Schott, is Vercel's eve, which also launched this year and treats the harness as a built-in feature rather than an add-on. He drew a distinction with what he called "OG agent frameworks" — Vercel's AI SDK, Cloudflare's Agents SDK, and Mastra — which are retrofitting harness support rather than building around it from the start. Schott declined to position Flue against emerging "meta-harness" projects like Databricks' Omnigent or Exo, arguing that a single API spanning multiple harnesses would blur Flue's specific definitions of skills and subagents.

Despite working at Cloudflare, Schott emphasized that Flue remains "an open source framework for every host" and said host portability is a defining principle of the project, distinguishing it from tighter platform integrations.

What this means

Flue 2 is a framework release, not a model release — no new weights, no benchmark scores, no pricing tied to inference. Its significance is architectural: it's an early attempt to establish a standard abstraction layer for agent composition, at a moment when, as Sierra CEO Bret Taylor put it, the agent ecosystem is still "in the jQuery era... not the react era." Whether hooks-style composability becomes the dominant pattern for agent frameworks — as React did for UI — depends on adoption by teams building production support and triage agents, the exact use case Schott says drove the redesign. With Vercel's eve pursuing a similar harness-first philosophy, the next competitive question is less about hooks and more about which framework's harness model developers standardize on.

Related Articles

product update

OpenAI Launches Dots, Always-On AI Agents Powered by GPT-6 Astra

OpenAI announced Dots at DevDay 2026, always-on AI agents that run on their own cloud computer and can be assigned tasks via ChatGPT, Slack, or Teams. Powered by GPT-6 Astra, Dots are available today to Pro and Business Premium subscribers.

product update

OpenAI Teases 20+ Announcements Ahead of DevDay 2026 Livestream

OpenAI is teasing 20+ announcements for its DevDay 2026 event, streaming live at 10am PT/1pm ET on September 29. Expectations center on a consumer-facing AI agent to counter xAI's Grok Bot and Meta's Muse.

product update

AWS Publishes Reference Architecture for Contract Intelligence Using Bedrock AgentCore and Dual Claude Models

AWS published a reference architecture showing how to combine structured data extraction with Bedrock AgentCore, dual Claude models, and Amazon Quick to answer portfolio-wide questions that standard RAG systems get wrong. The design uses Claude Sonnet 4.6 for extraction and Claude Haiku 4.5 for independent verification, with Amazon Textract as a deterministic tiebreaker.

product update

Meta Launches Muse for Small Business, Expanding AI Agent Into Enterprise Software Stack

Meta launched Muse for Small Business, connecting its consumer AI agent to workplace tools including Slack, Zoom, Asana, Intuit, Box and Canva. The move follows Muse's top-of-App-Store debut on September 8 and comes a day after Meta announced a new enterprise platform led by former MongoDB CEO CJ Desai.

Comments

Loading...