Reference — examples by number

This page lists every shipped example by number with a one-line summary. Use it when you know the file number and want to jump straight to the source. For discovery by topic, start with Tutorials or Learn the SDK.

There are 47 shipped examples. The first 32 demonstrate individual SDK capabilities. The last 15 are full walkthroughs with sibling READMEs.


Quickstart

#Example
01hello_agentpip install && python → working agent

SDK basics

#ExampleCapability
02tool_agentTool calling
03multi_modelAnthropic ↔ OpenAI swap
04memory_agentMemory basics
05workflowMulti-step workflows
06guardrailsSafety filters
07mcp_toolsMCP integration
08directivesDirective library
13model_routingRouting rules
18local_llm_routingOllama / LM Studio
27app_factoryApp-factory pattern

Integrations

#ExampleTool
09proxy_claude_codeClaude Code CLI
10proxy_cursorCursor IDE
11proxy_codexOpenAI Codex
14register_agentRegistry — publish
15discover_agentsRegistry — consume
23harness_proxyHarness proxy primitives
24harness_agentHarness agent integration

Production patterns

#ExampleProblem solved
12budget_enforcementPer-user/team/project budget caps
16agent_governanceApproval flows + audit
19domain_modelDomain-modelled agent state
20fleet_workersDistributed worker registration
21full_stackEnd-to-end SDK + workflow + fleet
22memory_holds_across_llmsMemory portability across LLMs
25training_data_pipelineCurator-style data capture
26fleet_scoped_dispatchCapability-based dispatch
28autopilot_quickstartAutopilot without an LLM key
29memory_strategiesStrategy-based memory extraction
31grounded_multi_modelMulti-LLM grounded retrieval
32global_shared_memoryCross-agent shared knowledge
35autopilot_hosted_serviceAutopilot via hosted blueprint service

End-to-end walkthroughs

Each example below ships with a sibling README and maps to a tutorials page.

#ExampleReal-world problemTutorial
30oncall_agentIncident response(cross-cutting)
33fleet_sealed_integrationMulti-tenant production with isolated tenantsProduction multitenancy
34observatory_cost_trackingTrack AI spend by team and projectObservability and cost
36autopilot_training_loopCapture → fine-tune triggerTrain your own model
37semantic_checkpoint_recallMaintain long context across weak modelsMemory and retrieval
38unsloth_finetuneReal LoRA fine-tune, dual-backendTrain your own model
38amlx_lm_server_deployApple Silicon deploy via mlx_lm.serverInference deployment
39sandbox_scoped_credentialsSandbox + scoped credentialsProduction multitenancy
40fleet_under_load20+ workers, live state HUDObservability and cost
41graph_memory_incident_dependencyGraph beats vector for multi-hopMemory and retrieval
42support_triage_agentCustomer-support triageModeration and classification
43observatory_liveReal telemetry → live dashboardsObservability and cost
44colab_free_cudaFree Tesla T4 via Drive-syncInference deployment
45vastai_marketplace_bidBid-cheapest with reliability scoringInference deployment
46custom_inference_as_toolBring-your-own endpointInference deployment
47runpod_finetune_orchestrationRunPod reliable rentalInference deployment
48modal_serverless_inferencePer-second serverlessInference deployment
49community_moderationThree classifiers + LLM judgeModeration and classification

Notes

  • Example 17 — unsloth_finetune (legacy stub): superseded by Example 38 (real fine-tune). Marked deprecated in its docstring; left in place for backward compatibility.
  • No example numbered 02-08 in the _factory, _perf_*, _soaks, or notebooks subdirectories — those are dev tools, not user-facing examples.
  • Numbering gaps and sibling-suffixes (e.g. 38a) follow the example-build-conventions — when two PRs collide on a number, the later one gets a lowercase-letter sibling suffix to preserve numeric reservations.