Flue 2: TypeScript Agent Framework Adopts React-Inspired Hooks

X postfksAnnouncement

Fred K. Schott has announced Flue 2, a TypeScript framework for building AI agents that introduces a React-style hooks pattern to tackle capability composition and runtime adaptability.

Key points

  1. Flue 1.0 Beta accumulated over 700,000 downloads since its launch the previous month.
  2. The framework is powered by the pi.dev agent harness.
  3. Flue 2 introduces hooks inspired by React to solve composability and maintainability issues when scaling agent complexity.
  4. Agents can enforce multi-step workflows, dynamically acquire tools upon meeting conditions, and switch to larger models when tasks demand it.
  5. Context and metadata handling are streamlined to work like standard function arguments instead of custom framework APIs.

Why it matters

Managing state and capabilities across expanding agent workflows often creates maintenance bottlenecks. Adapting proven frontend patterns such as hooks into TypeScript agent development provides developers with an expressive and familiar mental model.

Analysis

Schott targets a major limitation in agent architecture: composability. By taking cues from React hooks, Flue 2 enables agents to dynamically alter toolsets, adjust model tiers mid-execution, and pass state without complex proprietary abstractions.

Original post

fks

@FredKSchott · 31 July 2026

Introducing Flue 2 — Build dynamic agents that evolve over time. Flue is a TypeScript framework for building the next generation of agents, powered by the @pidotdev agent harness. The Flue 1.0 Beta was released last month & has now been downloaded 700,000+ times. And from all t.co/nykyfdNmAY

851 likes63 replies639 bookmarks126.6k views

View on X
Selected replies (1)
  • @mister__gupta @FredKSchott @pidotdev @flueai Correct me if i am wrong. This new api and pattern feels like a way to declare code that can be used to update agent behaviour mid-agent loop?

Links and tools from this entry

Summary generated by AI (Gemini 3.8 Flash, 27 September 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Article:Fred K. Schott

    Flue 2.0: Agent Framework Adopts Hooks Architecture

    Flue 2.0 rebuilds the TypeScript agent framework around a React-inspired hooks API. This allows developers to build dynamic agents that can adapt models, tools, and persistent state at runtime as conversations evolve.

    AI & LLMs· Announcement

  • Link:DeepSeek

    DeepSeek Harness: Modular Open-Source Framework for AI Agents

    DeepSeek has launched a developer preview of DeepSeek Harness, an open-source runtime framework for AI agents. Built on the Cordis kernel, it implements an architecture where all capabilities are plugins alongside an append-only event stream for full traceability.

    AI & LLMs· Announcement

  • Repository:earendil-works/pi

    Pi: Modular TypeScript Toolkit for AI Agents and Coding CLIs

    Pi by earendil-works is an open-source TypeScript ecosystem for autonomous AI agents. It bundles a unified multi-provider LLM API, an agent runtime with state management, a terminal UI library, and an interactive coding agent CLI.

    102kstarsTypeScript

    AI & LLMs· Tool

  • X post:Wes Bos

    Wes Bos highlights Scott's video on Pi Durable

    Developer Wes Bos recommends a new video by Scott covering Pi Durable. Bos notes that Scott was two months early on identifying OpenClaw, suggesting developers pay close attention to his coverage of Pi Durable.

    346bookmarks20.4kviews

    AI & LLMs· Resource

  • Repository:deepseek-ai/deepseek-harness

    DeepSeek Harness: Plugin-Based Open-Source AI Agent Framework

    DeepSeek Harness (dsh) is an open-source AI agent harness by DeepSeek AI. Built with TypeScript and Cordis, it uses an 'everything-is-a-plugin' architecture to provide modular agent capabilities and a Web UI.

    212.8kstarsTypeScript

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.