Examples
Complete, runnable examples demonstrating Helix Agents patterns and features.
Quick Start Examples
| Example | Runtime | Description |
|---|---|---|
| Research Assistant | JS | Basic agent with tools, state, and streaming |
| Research Assistant (Temporal) | Temporal | Same agent with durable execution |
| Research Assistant (Cloudflare) | Cloudflare | Edge deployment with D1 and Workflows |
Advanced Examples
| Example | Description |
|---|---|
| Custom Loop | Build your own execution loop without runtime helpers |
By Feature
State Management
- Research Assistant - Custom state schema, state mutations in tools
Sub-Agents
- Research Assistant - Summarizer sub-agent delegation
Streaming
- Research Assistant - Real-time streaming with custom events
Durable Execution
- Research Assistant (Temporal) - Crash recovery, checkpointing
- Research Assistant (Cloudflare) - Edge-native durability
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 LLMSee each example's README for specific setup instructions.