Open source agent infrastructure

Clear Ideas Agent Runtime

Define an agent once, then run it with TypeScript or Python. Run locally, embed it in your application, or send it to a remote worker. You choose the models, tools, and infrastructure; Agent Runtime handles the steps, checkpoints, approvals, and progress events.

Version 1.0.0 available now

Apache-2.0 Node.js 22.20.0+ for TypeScript Python 3.11+

release-brief.agent.yaml
schemaVersion: '1.0'
id: release-brief
name: Release brief

model:
  provider: openai
  model: gpt-5.6

variables:
  - key: topic
    type: string
    requiresOverride: true
  - key: audience
    type: string
    value: customers

steps:
  - id: draft
    type: prompt
    systemPrompt: Write concise release briefs.
    prompt: Draft a brief about {{ topic }} for {{ audience }}.
    outputVariable: draft

  - id: review
    type: prompt
    prompt: |-
      Improve this brief without adding claims:
      {{ draft }}
    includeInFinalOutput: true
Standalone
No hosted service required
Declarative
Agents are portable data
Durable
Checkpointed and resumable
Provider-neutral
Connect the infrastructure you use

Dependency-aware execution

Agent Runtime resolves manifests into execution graphs.

Before a run begins, Agent Runtime analyzes step outputs and variable reads to build an ordered execution plan. With parallel mode enabled, eligible independent branches run concurrently. Dependent steps wait for their inputs, and results commit in manifest order. Sequential execution remains the default.

A 26-second visualization of a manifest resolving into a live execution graph: context streams first, independent drafting and evidence branches fan out, then the graph reconverges for review and final output.

Portable contracts

Define the agent separately from the run and the infrastructure.

The agent describes its steps, variables, tools, and outputs. The run provides invocation values. The host connects models, credentials, state, generated files, and compute.

01

Agent Manifest

A versioned, JSON-safe definition of steps, variables, conditions, loops, tools, outputs, and limits.

02

Agent Run Manifest

A small invocation contract that references an agent and supplies validated runtime variable overrides.

03

Host Configuration

Model providers, credentials, connections, persistence, compute, sandboxes, and telemetry remain under host control.

Included capabilities

A reliable foundation for multi-step agents.

Manifest graph execution

Resolve declarative steps and variable dependencies into a deterministic execution plan with safe fan-out and fan-in.

Model choice

OpenAI, Anthropic, Google, xAI, Groq, Cohere, and OpenAI-compatible endpoints through the AI SDK adapter.

Tools and MCP

Connect application tools and MCP servers. The host sets credentials and tool allowlists, and can pin approved MCP tool definitions.

Host-defined workspaces

Give agents access to a code base, document library, or scratch area. The host chooses visible files and read or write access; agents can only narrow that access.

Native authorization

Credential resolution, connection modes, tool allowlists, read/write narrowing, and host authorization hooks are enforced by the runtime.

Durable state

Checkpoints, blocked runs, restart points, workspace commit points, and fenced execution attempts. TypeScript and Python can resume the same run.

Streaming and events

Ordered lifecycle, model, tool, checkpoint, artifact, and text-delta events for CLIs, applications, and telemetry.

Isolated sandboxes and files

Run workspace operations in an isolated sandbox with command policies, limits, and execution records. Docker, Linux bubblewrap, and Modal providers are available.

Model-token budgets

Set a cumulative token budget for a run. Suspend before the next model call when reported usage reaches the limit, then resume with a higher limit.

Execution adapters

Run the same Agent Manifest across execution environments.

Execution adapters provide a consistent interface for submission, status, ordered events, results, resume, and cancellation. Move between local, child-process, and remote execution without changing the Agent Manifest.

Agent ManifestPortable definition
Agent RuntimeState, events, and adapters
Local processRun directly in an application or through the CLI.
Child processUse the portable worker protocol as a clean process boundary.
Remote computeDispatch through Modal or another execution-engine adapter.

Agent Run Manifest

Supply only the values this run needs.

Runtime variables must match declarations in the Agent Manifest. A run can override a default, satisfy a required input, or leave the agent-level value unchanged. It cannot introduce undeclared variables.

release-brief.run.yaml
schemaVersion: '1.0'
agent:
  ref: ./release-brief.agent.yaml

variables:
  - key: topic
    value: Agent Runtime public release
  - key: audience
    value: developers

Reliability and boundaries

Predictable execution is the default.

Explicit state transitions, bounded operations, and recoverable execution make agent behavior easier to understand and operate.

  • A step commits before the next state-mutating step begins.
  • Tool calls execute in order so state changes remain predictable.
  • Checkpoints preserve state, step outputs, transcripts, generated files, and continuation data.
  • Attempt fencing prevents an older worker from committing after a resumed attempt takes ownership.
  • Event cursors combine attempt and sequence for reconnectable remote streams.
  • Manifests cannot grant themselves credentials, infrastructure access, or broader tool permissions.

Release status

What’s new in 1.0.0

Build and run the same portable agents in TypeScript or Python. Version 1.0.0 saves progress in the same format in both runtimes, so a run started in one language can resume in the other. Durable limits, blocked runs, and restart points make interrupted work easier to recover.

  • TypeScript 1.0.0 packages available on npm
  • Python 1.0.0 package available on PyPI
  • Runs saved in TypeScript can resume in Python, and vice versa
  • Durable run limits, blocked runs, and restart points
  • Workspace commit points for recoverable file operations
  • Showcase examples runnable on both runtimes

Standalone by design

Run it independently.

Clear Ideas Agent Runtime is a standalone open-source project for developers building agent execution into their own applications and infrastructure. Hosted Clear Ideas uses the same runtime foundation for Clear Ideas Agents, but it is not required to install, configure, or operate the runtime.