Skip to content

Runnable Examples

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

ExampleDemonstratesCommand
workspace_policy.rsSafe workspace scopes and trusted starter files, fully offlinecargo run -p everruns --example workspace_policy
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
canonical_events.rsOffline lossless 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
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. canonical_events, live_session, session_work, 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 runtime compatibility examples, not alternative Framework entrypoints.