@cloudflare/think@0.8.6

cloudflare/agents@cloudflare/think@0.8.6Jun 7, 2026by github-actions[bot]

AI Summary

Introduces the first Think framework layer for convention-driven agent apps, featuring a manifest-driven Vite plugin, new CLI commands, and support for host frameworks like React Router and TanStack Start.

Key Highlights

  • Manifest-driven Vite plugin for discovering and generating agents
  • New CLI commands: `think init`, `think inspect`, `think types`
  • Experimental framework status with helpful notices
  • Host-framework coverage for React Router and TanStack Start

New Features

  • Think framework layer
  • Vite plugin integration
  • CLI tooling
  • Framework-specific routing and detection

Full Release Notes

### Patch Changes

-   [#1613](https://github.com/cloudflare/agents/pull/1613) [`124a47a`](https://github.com/cloudflare/agents/commit/124a47a91c8a9db0bcf08ab931a5dd99a2fac663) Thanks [@threepointone](https://github.com/threepointone)! - Introduce the first Think framework layer for convention-driven agent apps.

    This release adds a manifest-driven Vite plugin that discovers agents from the
    `agents/` directory, generates a Worker entrypoint and virtual framework
    modules, derives stable Durable Object class names, and merges framework-owned
    Worker config defaults with user Wrangler config. It also keeps the Think Vite
    plugin usable directly in normal Vite plugin arrays.

    The framework now supports optional app server entries, manifest-scoped friendly
    agent and sub-agent routing, deterministic route surfaces, colocated skill
    detection, Worker Loader requirement diagnostics, and explicit diagnostics for
    unsupported nested sub-agent conventions. Think currently supports top-level
    agents and one sub-agent layer; deeper nesting is rejected with guidance so that
    the routing and lifecycle model can be designed deliberately.

    This framework layer is experimental: both the Vite plugin (once, on build
    start) and the `think` CLI (on startup) emit a notice that the API may change
    or be removed in any release. The core Think agent runtime is unchanged.

    The Think CLI now includes `think init`, `think inspect`, and `think types`.
    `think init` scaffolds a minimal Workers/Vite Think app, safely handles prompted
    or named target directories, refuses unsafe migrations, and installs npm
    dependencies by default. `think inspect` exposes manifest/config diagnostics in
    text or JSON, while `think types` generates Think-owned declarations and can
    optionally compose with Wrangler type generation.

    This release also adds host-framework coverage for React Router and TanStack
    Start, updates examples to use the convention-first framework shape, and hardens
    Agents/worker-bundler virtual modules for bundled skill compatibility.

-   [#1695](https://github.com/cloudflare/agents/pull/1695) [`b545e86`](https://github.com/cloudflare/agents/commit/b545e867d8ee559de9aff7b795dfdf7ef90d2185) Thanks [@threepointone](https://github.com/threepointone)! - Add a `--template` flag to `think init` and a programmatic `@cloudflare/think/cli` entry point. `think init` now scaffolds from the repo's starter templates (locally, or via an injected fetcher) instead of generating a single inline app. This is what powers the new `create-think` package.