Skip to content
brain.GitHub
Developer docs OPEN SOURCE

Roadmap

What comes next for Brain, and how mature each part is today.

Brain is in active development. This page lists what you can use today, what's coming next with today's workaround for each item, and how each integration has been verified. To ask about an item or suggest one, open an issue.

Available today

  • Sessions with the Pi harness: create sessions, stream events, interrupt and resume turns, and recover sessions after a restart.
  • SDKs: the TypeScript SDK on npm and the Python SDK on PyPI.
  • Tools: HTTP and SSE tools in your own services, and MCP tools from remote MCP servers.
  • Persistence: checkpoint archives in a local directory, Amazon S3, Cloudflare R2, or Google Cloud Storage, and an optional PostgreSQL session index.
  • Tool services: sandboxes on Modal, E2B, and Daytona; storage and web tools for S3 or R2 storage, Brave or Tavily search, and public web fetch; and an example tool server with operator approvals.
  • Platform examples: templates for Docker Compose, Fly.io, AWS ECS/Fargate, and a Cloudflare Worker tool service.
  • Operations: health checks, structured logs, OpenTelemetry traces and metrics, and a published container image.

Next up

Application SDK and session-bound integrations

  • Status: Available for Go application composition, authorized provider bindings, encrypted session credentials, TypeScript/Python runtime functions, direct HTTP/SSE, reverse SSE/HTTP, WebSocket RPC, MCP HTTP/stdio, and optional authorized session reads. Plan 11 records implementation evidence and remaining adapter gates.
  • Today: Use the Go application SDK to install providers; declare runtime functions in a backend client and keep its callback connection alive. Browser authentication and automatic reconnection remain separate work.

Local harness-host supervision

  • Status: Available for Pi on Linux and Windows. Hosts have separate session occupancy and active-turn caps, private homes, session-local cancellation and eviction, and owned process trees. Tests cover eight concurrent native sessions with exact catalogs and separate context, bounded concurrent admission, detachment while peers continue, shared host crashes, and abrupt parent death. These are local correctness tests, not fleet capacity measurements.
  • Today: Configure max_shared, max_active_turns, max_hosts, and max_starting alongside global limits. Other harnesses must pass the same recovery and isolation gates; each session still has one owning Brain instance.

Dynamic session configuration

Change a session's model, instructions, reasoning effort, and tools between turns.

  • Status: Planned. The proposed design applies a configuration event while the session is idle, and plan 08 keeps it as follow-up work.
  • Today: A session's configuration is fixed when you create it. To change it, create a new session with the new configuration.

More harnesses: OpenCode and Codex

Choose OpenCode or Codex for each session through the same API you use for Pi. Each adapter ships once it passes the same tests as Pi: recovery without model or tool calls, an exact tool set, recovery after context compaction, and storage that grows only with new data.

  • Status: Planned. Targeted local probes verified exclusion of the previously observed extra native tools; complete adapters still require recovery, persistence, and isolation qualification. The harness probes record that evidence and the remaining changes, and plan 03 tracks the work.
  • Today: Use the Pi harness, or run your own agent loop through the harness process contract.

Tool catalog: browser and Fly Machines tools

Attach ready-made tools that work in an isolated browser, or that start, inspect, and stop Fly Machines for compute.

  • Status: Planned. Plan 08 describes both services and their safety boundaries, and plan 04 tracks the tool catalog. Release stage R3.
  • Today: Serve your own tools over HTTP, SSE, or MCP. The sandbox and storage and web tool services are available.

Fleet-scale operations

Size a fleet from published evidence: multi-instance load and soak benchmarks with their hardware and workload details, plus handoff and disaster-recovery drills.

  • Status: Planned. Plan 08 targets 1,000 retained sessions, then 1,000 active sessions across several servers. Plan 06 and plan 07 own the operations work and release gates. Release stage R4. Local tests don't establish thousand-session capacity, and the project doesn't claim it.
  • Today: Load-test with your own workload before you size a deployment, and route each session to a single owner. Operations covers capacity limits and routing across servers.

Steering a running turn

Add guidance to a turn while it runs. The API reserves delivery: "steer" for this.

  • Status: Planned. No design document yet.
  • Today: Queue your next message, which runs after the current turn, or interrupt the turn and send a new message.

SDK auto-reconnect

SDK event streams reconnect on their own after a dropped connection.

  • Status: Planned. No design document yet.
  • Today: Reconnect by passing the cursor of the last event you processed. See Session lifecycle.

Browser clients

Call Brain directly from browser apps, with cross-origin (CORS) support and browser-safe authentication.

  • Status: Planned. No design document yet.
  • Today: Proxy requests through your backend, so the Brain token stays on your server.

OAuth for MCP servers and model providers

Connect MCP servers and model providers that require OAuth.

  • Status: Planned. No design document yet.
  • Today: Use API keys and tokens from environment variables. See Models & providers and MCP tools.

Integration status

Local tests and live runs are separate evidence. Verified against live services means the integration passed against a real provider account; verified with local tests means it passed with the provider's official SDK or local fixtures, without a live account. The integration evidence records exactly what each run covered.

IntegrationStatusNotes
Amazon S3 archiveVerified against live servicesPassed live cold-restore qualification in AWS eu-west-2, including immutable writes, restore into an empty directory, and older-checkpoint restore. This covers the tested standard bucket and IAM setup, not every S3-compatible service or policy.
Cloudflare R2 archiveVerified with local testsThe real AWS SDK transport passes the archive fixtures with R2 settings. Not yet run against a live R2 account.
Google Cloud Storage archiveVerified with local testsThe official SDK passes multipart, precondition, read, and shared archive contract tests. Not yet run against a live GCS account.
PostgreSQL session indexVerified with local testsCI runs the index tests against a PostgreSQL 18 server. Hosted services such as Neon, Supabase, and RDS haven't been qualified separately.
MCP toolsVerified with local testsOfficial SDK HTTP and owned-stdio fixtures cover explicit discovery, process loss, progress, structured output, tenant isolation, limits, cancellation, and no replay. No third-party MCP server has been tested live.
Modal, E2B, and Daytona sandboxesVerified with local testsPinned SDK type checks, an HTTP tool journey, signed sandbox handles that stay valid across service restarts, and cancellation and cleanup fixtures. A live script, npm --prefix services/sandbox run live -- PROVIDER, needs your provider credentials.
Storage and web toolsVerified with local testsAn AWS SDK and HTTP registry journey covers authentication, tenant prefixes, read-only policy, and deletes, alongside Brave and Tavily request fixtures and public-network and HTML extraction tests. Live search and R2 tool accounts are unqualified.
Platform templatesVerified with local teststests/platforms.test.mjs validates the Docker Compose, Fly.io, AWS ECS/Fargate, and Cloudflare Worker templates. They aren't evidence of a live deployment on each platform.
Cloudflare Containers as a Brain runtimeExperimentalCloudflare Containers run container images with Durable Objects for routing. This runtime stays experimental until container lifecycle and handoff tests pass. A standard Cloudflare Worker can host tool services, not Brain.
Google Cloud Run as a Brain runtimeNot validatedTurns keep running after the send-message request (POST /sessions/{id}/events) returns 202 Accepted, so request-based CPU allocation throttles them. Instance-based CPU avoids that, but termination windows, request timeouts, and single-owner routing still need validation. Cloud Run's in-memory file system also needs conservative cache limits.

Release stages

Brain is built in stages: a solid local session server first, then portable session state, more harnesses, a catalog of ready-made tools, and evidence for running a fleet.

StageGoalScopeVerification gateStatus
R0: Local previewRun and manage local Pi sessions through one server.Session records in SQLite, append-only event and harness-state files, the session and streaming API, interrupt and resume, HTTP and SSE tools, approval and inspection examples, the TypeScript SDK, OpenTelemetry, and bounded queues.End-to-end Pi lifecycle, restart recovery, separate tool and session errors, responsiveness during tool waits, tenant isolation, stream reconnects, and overload checks.Available
R1: Portable stateMove or recover sessions across servers with external object storage.S3, R2, and filesystem checkpoint stores, an optional PostgreSQL session index, background batching and retries, and explicit flush, sync, and restore.PostgreSQL and S3/R2 contract suites, restore into an empty cache with the model's context intact, interrupted-upload tests, and backpressure tests during archive outages.Available
R2: Multi-harness betaChoose Pi, OpenCode, or Codex per session through the same API.Pinned OpenCode and Codex adapters, the MCP tool transport, native resume and rewind where a harness supports them, and the Python SDK.Conformance tests for next-turn context after restore, input queueing during tool waits, error boundaries, and fully disabling a harness's own local tools.Partly available: MCP tools and the Python SDK. OpenCode and Codex are next up.
R3: Tool catalog betaAttach ready-made storage, web research, browser, and compute tools.External tool services for S3 and R2 buckets, Fly and Modal sandboxes, code execution, browser bridges, and web search and fetch.Isolation, quota, approval, and cleanup tests for each service against real providers.Partly available: storage, web search and fetch, and Modal, E2B, and Daytona sandboxes, verified with local tests. Browser and Fly Machines tools are next up.
R4: Operational releaseRun Brain as a predictable compute unit in a multi-tenant fleet.Multi-instance load and soak benchmarks, long-session compaction and checkpoint measurements, and handoff and disaster-recovery drills.Every advertised adapter passes credentialed CI, soak suites, and restore drills on fresh infrastructure, with published hardware and workload numbers.Planned

Design documents

These documents are for contributors. They record how Brain is designed and how the work is split up.

Plan 10: Published clients and subsystem boundaries is implemented and deployed. Plan 08: Integration expansion and plan 09: Delivery, documentation, and platform examples have landed their first cuts. Their remaining work, including dynamic configuration, browser and Fly Machines tools, and fleet benchmarks, is listed under Next up.

AreaPlanTarget stages
Server runtime and local state01 Local runtimeR0
Object checkpoints and PostgreSQL index02 External persistenceR1
Pi, OpenCode, and Codex runners03 Harness adaptersR0 (Pi), R2 (OpenCode, Codex)
HTTP/SSE, MCP, and external tool catalog04 Distributed toolsR0 (HTTP/SSE), R2 (MCP), R3 (catalog)
HTTP contract and TypeScript/Python SDKs05 API and SDKsR0–R2
Telemetry, limits, Docker, and capacity06 Observability and operationsR0–R4
Test suites and release gates07 Verification and releaseR0–R4
Cloud storage, MCP, tool catalog, harnesses, and capacity evidence08 Integration expansionR1–R4

On this page