All Lessons

Why run Claude-generated code in an isolated sandbox rather than directly on the application host?

1 / 3
advanced 30 min

Code Execution Sandbox (Sandbox SDK)

Loading lesson content...

Scenario: Customer Support Resolution Agent You are building a customer support resolution agent using the Claude Agent SDK. The agent handles high-ambiguity requests like returns, billing disputes, and account issues. It has access to backend systems through MCP tools (get_customer, lookup_order, process_refund, escalate_to_human). Your target is 80%+ first-contact resolution while knowing when to escalate. While updating the agent’s refund-policy behavior, you need to inspect only the files related to policy configuration and tests. The repository is large, and relevant files are spread across several packages with naming patterns such as return-policy.yaml, refund-policy.test.ts, and policy-overrides.json. What should you do first to locate the relevant files efficiently?

1 / 3