Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesOpenAI Agents & OrchestrationCoding Agent: GPT-6 Astra + Agents SDK
The request “I want a refund” drops into the refund agent’s trayThe agent loop: reason, act, observeOne MCP connector linking files, Git and memory
Course

OpenAI Agents & Orchestration

Module 1 · Agent Orchestration: Routines and Handoffs
01Agent Orchestration: Routines and Handoffs
Module 2 · Coding Agent with GPT-4.1
02Coding Agent: GPT-6 Astra + Agents SDK
Module 3 · Reasoning Models + Function Calls
03Function Calls with Reasoning Models (Responses API)
Module 4 · Multi-Agent Systems with Structured Outputs
04Multi-Agent: Structured Outputs + Triage Pattern
Module 5 · Structured Outputs: Basics and Pydantic
05Structured Outputs: JSON Schema + Pydantic
OpenAI Agents & Orchestration · Lesson 2

Coding Agent: GPT-6 Astra + Agents SDK

Building a coding agent on gpt-6-astra with the OpenAI Agents SDK: web_search, shell and apply_patch tools, your own executor and editor in a workspace folder, approval for every step through interruptions, isolation with sandbox agents, and when the Agents API or Codex is the simpler choice.

30 min readUpdated Nov 9, 20263 questions in quizReady prompt included

Which Model a Coding Agent Needs

For hard coding tasks OpenAI currently recommends gpt-6-astra, the most capable model in its lineup. The official guides for the shell and apply_patch tools use it in every example. For a balance of price and quality, use gpt-6.1-sol: $2 per million input tokens and $10 per million output tokens, compared with $10 and $50 for Astra. OpenAI describes it as offering near-Astra performance.

gpt-4.1, which this lesson used before, is deprecated and shuts down on January 14, 2027.

shell works only through the Responses API, and gpt-6-astra also calls tools only through it. The Agents SDK calls the Responses API by default, so no extra setup is needed.

pip install openai-agents
export OPENAI_API_KEY=<your key>

The rest of this lesson opens after a free sign-up

Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.

Sign up freeOr a trial lesson, no sign-up →
In this lesson
Which Model a Coding Agent NeedsThe Agent's Three ToolsShell ExecutorEditor for applypatchThe Agent and Approval for Every StepAgent LoopIsolation: Sandbox AgentsReady-Made OptionsPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free