Skip to content

Examples

Complete, runnable examples demonstrating Helix Agents patterns and features.

Quick Start Examples

ExampleRuntimeDescription
Research AssistantJSBasic agent with tools, state, and streaming
Research Assistant (Temporal)TemporalSame agent with durable execution
Research Assistant (Cloudflare)CloudflareEdge deployment with D1 and Workflows

Advanced Examples

ExampleDescription
Custom LoopBuild your own execution loop without runtime helpers

By Feature

State Management

Sub-Agents

Streaming

Durable Execution

Running Examples

All examples are in the examples/ directory of the monorepo:

bash
# Clone and setup
git clone https://github.com/your-org/helix-agents.git
cd helix-agents
npm install
npm run build

# Run JS example
cd examples/research-assistant
npm test                              # Run tests (no API key needed)
OPENAI_API_KEY=sk-xxx npm run demo    # Run with real LLM

See each example's README for specific setup instructions.

Released under the MIT License.