Choose the right orchestration boundary
The September 2026 public beta describes Agents API as a managed Codex-style harness with sessions, tools and context management. In contrast, the Agents SDK leaves more of the execution loop, storage and approval design with the application; Responses API provides model responses and tool calls. The exact available features may change during beta.
Use the managed harness when a long-running task needs that orchestration, not simply because a small prompt can be framed as an “agent”.
Keep the first pilot synthetic and reversible
- Create a throwaway directory with public or synthetic files.
- Pick a checkable task, such as sorting a list and testing the output.
- Restrict filesystem scope and outbound network explicitly.
- Give the application its API key outside the agent sandbox, with only the documented permissions needed.
- Run one session; inspect tool calls, changes, logs, token use and final tests.
- Delete the test environment and revoke or rotate temporary credentials if used.
Define success before reading the final answer
Add subagents only if the tasks are independent enough to justify separate context and extra usage. A persuasive final message is not a substitute for checking the tool history and artifacts.
- Source: openai.com ↗
- Source: developers.openai.com ↗
- Source: developers.openai.com ↗
- Source: developers.openai.com ↗
- Source: developers.openai.com ↗
- Source: developers.openai.com ↗
- Source: developers.openai.com ↗
- Original guide in Italian →
Input: a synthetic list of names and a sorting rule.
Expected output: sorted file plus a test for duplicates and empty input.
Allowed files: test directory only.
Allowed network: none unless explicitly required.
Evidence: tool log, changed files, test command and result.
Failure: unexpected access, unreviewed package, missing test, or wrong ordering.