OpenAI
OpenAISep 10
Tech

Introducing the Agents API

2 min video2 key momentsWatch original
⚡
TL;DR

OpenAI launched the Agents API to handle orchestration, session management, and context tracking so developers can build production agents without maintaining their own infrastructure.

Key Insights

1

Context compaction for long tasks — The API manages session state and context automatically, including context compaction for long-running tasks so agents can continue investigations without losing prior work.

2

Multi-agent delegation — Agents can delegate work to sub-agents via multi-agent orchestration — for example, one agent examines code changes while another checks telemetry, then a lead agent unifies findings.

3

Filter before passing tokens — Programmatic tool calling lets agents filter logs and process data in code before passing results to the model, reducing token waste on raw data.

Want this for every new video OpenAI posts? Brevyd summarizes each upload automatically, the morning it drops.

Deep Dive

The problem OpenAI is solving

Building a production agent requires more than a capable model. You need to wire up tools, track state across interactions, manage context windows, and run secure infrastructure. OpenAI's Agents API moves all that burden onto their platform. The API brings a hosted version of what they call the Codex harness — the orchestration layer that handles sessions, context, and tool coordination so you can write business logic instead of infrastructure.

How it works in practice

The demo walks through an incident investigation agent that needs access to observability data, recent code changes, and runbook instructions. You wire tools through MCPs (Model Context Protocol) and pass operational knowledge as skills. The agent can then process large log files by filtering results in code rather than dumping raw data into the model, conserving tokens for what actually matters. For bigger tasks, you can spin up sub-agents to work in parallel — one on code changes, one on telemetry — then have a lead agent synthesize their findings into a single report.

Built-in efficiency features

Long-running sessions stay efficient through context compaction, which summarizes all prior work so the model can continue without replaying every step. You maintain control over what tools the agent can access and where execution happens — whether through OpenAI's sandbox, a third-party provider, or your own infrastructure. Once work completes, findings are packaged into a shareable report with root cause, supporting evidence, and next steps.

Takeaways

  • ✓Start your first agent by mapping out required tools and connecting them via MCPs instead of building custom orchestration.
  • ✓For large datasets, filter in tool code before passing results to the model to save tokens and improve response latency.

Key moments

0:11Agents API launch

“Today, we're launching the Agents API to handle that infrastructure for you.”

1:27Multi-agent orchestration

“we might want one sub-agent to examine recent changes, another to check telemetry, and then have the lead agent unify their findings.”

You just read one. Brevyd does this for every upload.

Follow OpenAI and every new video comes back as a summary like this, in your morning briefing. No watching required.