Playbooks · Agent context
Inject scoped context at session start
Use a SessionStart hook to supply fixed context needed for the task and verify what was injected each run.
FREE AGENT SKILLS · MCP · AUTOMATION
Free public resources
Playbooks · Agent context
Use a SessionStart hook to supply fixed context needed for the task and verify what was injected each run.
Playbooks · Agent context
Use snapshot=False in system_prompt so prompt edits apply per request, separating iteration from stable sessions.
Playbooks · Agent tools
Wrap a narrow Python function as an SDK MCP server and allow only its named tool.
Playbooks · Agent operations
Use max_budget_usd to cap a run’s cost and detect the budget-exceeded terminal status.
Playbooks · Agent operations
Separate missing CLI, connection loss, process failure, and terminal model errors instead of retrying every exception.
Playbooks · Agent operations
Use the stderr callback to collect warning and error lines for CLI or connection diagnosis.
Playbooks · Agent memory
Run the SDK’s SessionStore contract suite before connecting an external transcript backend.
Playbooks · Agent memory
Use the reference S3 SessionStore to mirror session messages and resume a conversation by session ID.
Playbooks · Agent memory
Define an enforceable retention period for transcripts covering object lifecycle and explicit deletion.
Playbooks · Agent output
Set output_format and read structured data from the terminal ResultMessage.structured_output.
Playbooks · Agent workflows
Run recurring reviews with structured verdicts/findings and have each follow-up prove which prior issues remain.
Playbooks · Agent workflows
Use a focused agent to synthesize alerts, logs, and read-only checks while separating facts, hypotheses, and next verification.
Playbooks · Agent research
Provide documents as trusted sources and preserve source locations in answers instead of asking the model to invent citations.
Playbooks · Document automation
Convert documents into fixed-field JSON records while keeping validation in the application.
Playbooks · Agent workflows
Let an orchestrator choose task-specific angles and specialized workers produce comparable drafts.
Playbooks · Agent evaluation
Have a generator implement a task, an evaluator score only against criteria, and iterate within a bounded loop.
Playbooks · Retrieval
Chunk internal documents by heading, retrieve multiple relevant passages, then synthesize with source locations.
Playbooks · Agent evaluation
Use questions with gold source labels to compute retrieval Precision/Recall/MRR separately from end-to-end accuracy.
Playbooks · Retrieval
Generate a short contextual description for each chunk and embed it with the original text to improve retrieval of context-poor passages.
Playbooks · Agent tools
Embed tool descriptions locally and retrieve relevant capabilities for the current task through one narrow search tool.
Playbooks · Document automation
Extract typed entities and relation triples, resolve name variants, then answer multi-hop questions over the graph.
Playbooks · Content automation
Classify clear cases using category definitions, then evaluate ambiguous cases with retrieval context and route them for review.
Playbooks · Content automation
Extract typed attributes from policy and use deterministic rules for publish/reject/review rather than letting a model decide final action.
Playbooks · Data automation
Provide the schema of a test database, inspect generated SQL, then execute it only on a read-only replica.
Playbooks · Agent tools
Have the model write code that chains API calls inside a code-execution tool and returns only filtered results.
No matching entries.