Skip to content
Everruns Cloud is open in early access. Run agents without operating the platform.

Runnable Examples

The crates/everruns/examples catalog contains the maintained public examples. Each imports the everruns facade.

The root-level examples catalog contains six Framework walkthroughs. Each folder includes the program, instructions, fixtures where applicable, and recording scripts. Run them from a repository checkout: their dependencies point to the workspace crates.

cargo run uses a real provider and can incur charges. CI tests offline tool behavior and recording logic; it does not establish the quality of a live model’s answer.

ExampleProvider and modelWhat it does
Support AgentOpenAI gpt-5.6-terraChooses between MFA recovery, lockout, and browser troubleshooting from facts and policy.
Everruns Support AgentAnthropic claude-opus-5-5Searches and reads citable official documentation snapshots.
Coding Review AgentAnthropic claude-sonnet-5Reads a refund contract and executes a fixed regression before reporting a defect.
Research AgentOpenRouter z-ai/glm-5.2Searches and fetches primary sources before writing a cited brief.
Incident Commander AgentMeta Model API muse-spark-1.3Investigates fixture telemetry and persists an evidence-backed incident update.

Start with Support for typed tools, Research for reusable capabilities, or Code Review for restricted execution. Each walkthrough shows the agent builder and session loop, explains expected behavior, and documents what remains a fixture.

These are in-memory sessions. For durability itself, use the session-history and workspace examples below. Importable hosted Platform definitions live separately in examples/agents.

ExampleProvider and modelWhat it does
Bashkit Repo AgentOpenAI gpt-5.6-terraCuts a release in a real repository with the sandboxed Bashkit shell as its only tool, then verifies the result on disk.
ForemanTypeSafe jev-latest over an Everruns session, Codex, or yolopSupervises a live coding session with nine decisions questions per reading, and stops, verifies, or finishes it from a deterministic policy.
ExampleDemonstratesCommand
capability_configuration.rsTyped Compaction and ToolSearch, a code-defined Definition, and a dynamic third-party reference through one entrypointcargo run -p everruns --example capability_configuration
workspace_policy.rsSafe workspace scopes and trusted starter files, fully offlinecargo run -p everruns --example workspace_policy
direct_llm.rsOne-shot, builder, and streamed model calls with no agent, fully offlinecargo run -p everruns --example direct_llm
direct_decisions.rsTyped questions and calibrated answers with no agent, fully offlinecargo run -p everruns --example direct_decisions
agent_decisions.rsAn agent that classifies with its own questions, offline by defaultcargo run -p everruns --example agent_decisions
live_session.rsNon-blocking send, automatic steering, and optional waiting, fully offlinecargo run -p everruns --example live_session
hello.rsSmall live-provider agentcargo run -p everruns --features openai --example hello
production_agent.rsTools, files, and production-style setupcargo run -p everruns --features openai --example production_agent
github_monitor.rsTyped tools and an offline simulation modecargo run -p everruns --features openai --example github_monitor -- --simulate
session_work.rsOffline session work, leased delivery, and completion wakescargo run -p everruns --example session_work
session_history.rsOffline durable resume and bounded history pagescargo run -p everruns --features local --example session_history
engine_sessions.rsConcrete Engine ownership, isolated sessions, and engine-scoped resumecargo run -p everruns --example engine_sessions
workspace_heads.rsIsolated Git workspace heads, Environment binding, and durable reopeningcargo run -p everruns --features local --example workspace_heads -- /path/to/repo /path/to/state
canonical_events.rsOffline bounded recording and typed rendering of live eventscargo run -p everruns --example canonical_events
subagents.rsPublic facade composition for delegated workcargo run -p everruns --features openai --example subagents
observe_and_cancel.rsLive events and cancellationcargo run -p everruns --features openai --example observe_and_cancel
advanced_capability.rsCode-defined capability through the unified capability(...) entrypointcargo run -p everruns --features openai --example advanced_capability
lifecycle_hooks.rsAwaited agent, turn, tool, and completion handlerscargo run -p everruns --features openai --example lifecycle_hooks

Live-provider modes use gpt-5.6-terra and require OPENAI_API_KEY. capability_configuration, canonical_events, direct_llm, engine_sessions, live_session, session_work, workspace_heads, workspace_policy, and session_history are fully offline; the GitHub monitor also offers a simulated GitHub flow:

Terminal window
cargo run -p everruns --features openai --example github_monitor -- --simulate

For copyable command details and behavior notes, use the examples/README.md next to the source. Examples that demonstrate low-level host internals remain advanced-host examples, not alternative Framework entrypoints.