Skip to content
The AI Agent Factory

30.8 How today's tools realize it

Approved by
Panaversity ·
26 min read

For reference. How today's products fill the six rows of docs/environments.md. Skim it now, and come back when you choose a surface or port the ingestion. Product details change often, so every product line here carries its date: checked November 30, 2026. A line with no label was read on the product owner's own pages that day. A line marked from an earlier chapter is one this book already prints, with that chapter's date. A line marked proposed design is this book's way of building on a product. No line here is yet tested in a lab run.

In everyday life. You travel to a new country with your phone charger. The charger is the same everywhere. But each country has its own socket and its own voltage, so before you plug in, you check the socket. You ask the same few questions in every country. In this section, the countries are products, and the questions are the six rows of your table.

What you will learn. You practice this in Lab 30, Task 5.

  • What does each product put in each row?
  • What stays true on every option?

Why it matters. A row's value is set by the product as much as by your code. A cloud platform with no file store changes row 3. A product that moves no overloaded request to another model changes row 4. If you know where products differ, you know which cells to check again before a request moves.

At work. On Tuesday afternoon the change is in staging. Lab 30 ends with a port to OpenAI, so you need to know which of your six rows change on another vendor.

No standard that covers every vendor defines a deployment environment. So this section asks each product the chapter's own six questions, one row at a time.

What does each product put in each row?

The six rows are the same on every product. What changes is the value a product fills in when you set nothing.

Claude

Anthropic: the Claude API, the apps, Claude Code, the Agent SDK and the cloud platforms.

Row 1, who sends, and what it adds. What each surface adds, with its dated lines, is in 30.1. One line more: Claude Code has a system prompt of its own, and claude -p uses it by default.1

Row 2, what leaves, and what is kept. What Anthropic keeps, and for how long, is in 30.2, dated November 30, 2026. One line more: a file's expiry is set once, at upload, and it "cannot be changed".2

Row 3, which workspace the file ids belong to. Taught in 30.3. A file can be up to 500 MB, and an organization can store 1 TB.2 Where the worker runs decides whether you have a file store at all.

PlatformFiles APIA file id in an image or document block
Claude APIYesWorks
Claude Platform on AWSYesWorks
Claude Models on Google Cloud (Anthropic managed)YesWorks
Microsoft Foundry, hosted on AnthropicYesWorks
Microsoft Foundry, hosted on AzureNo: "a 400 Bad Request error by design"Refused
Amazon Bedrock, and Claude Models on Google Cloud (Google managed)NoNone: images and PDFs go as base64 only

The table's sources are Anthropic's Files API, vision and Foundry pages.234 Google's service is now called Google Cloud's Agent Platform, and its SDK client is still named AnthropicVertex.5 On a platform with no file store, row 3's cell is "none, the bytes go in every request". The worker's stored ids do not apply there.

Row 4, which models may answer. From the 4.6 generation on, a dateless model id "maps to a single, fixed model snapshot", so a pin holds.6 Each platform names models its own way (30.1). On Microsoft Foundry, "The deployment name you choose becomes the value you pass in the model parameter", so the pin there is a name you chose.4 Anthropic gives "at least 60 days' notice" before it retires a model, and a retired model answers 404 not_found_error.7

The fallbacks parameter, which moves only a refused request, is behind the beta header server-side-fallback-2026-07-01.8 Where it works, and where it does not, is in 30.4.

Row 5, which configuration the run reads. The settings order is in 12.8, and the model order and settingSources in 30.5. Two lines more. The flag --bare skips hooks, skills, plugins, MCP servers, auto memory and CLAUDE.md. Anthropic says it "will become the default for -p in a future release".9 So write CI's choice in row 5, and set the flag one way or the other, rather than rest on today's default. And for one company's data kept apart from another's, the Agent SDK's page says "Do not rely on default query() options".10

The API version is configuration too. The SDK sends the anthropic-version header for you, and on Amazon Bedrock 2026-10-21 is "available for Claude 4.7 and later models".11 A move to it goes through row 6 (30.6).

Row 6, how a change arrives. The GitHub Action's two traps are in 30.7. Two more lines. The Action rejects a bot as the actor "unless you list it in allowed_bots".12 And with a plain-text prompt, "Claude has no shell or GitHub API access until you grant the tools the prompt needs".12 Claude Code for GitLab CI/CD is in beta, and "This integration is maintained by GitLab."13

Status and price. File calls are limited to "approximately 500 requests per minute".2 What a file costs in a request is in 30.3.

OpenAI

OpenAI: the Responses API, its Files API, and Codex.

Row 1, who sends, and what it adds. The OpenAI pages read for this chapter do not say what ChatGPT adds around a person's words, or whether the API adds anything. So this page says nothing either way.

Row 2, what leaves, and what is kept. An uploaded file is kept until you delete it, with one exception: a file uploaded for a batch expires after 30 days by default. You may set an expiry, expires_after, from 3,600 seconds (1 hour) to 2,592,000 seconds (30 days).1415 So the longest expiry is 30 days on OpenAI and 90 days on Claude. Brightline's production row deletes a file when its invoice closes, on either vendor.

Row 3, where the file ids belong. The Responses API takes a file as input_file, by its bytes (file_data), a file_id or a file_url. Chat Completions "accepts only PDF files as file content parts", and no web address.16 A PDF is read as "both text and page images", like Claude's. Other documents are read as text only.16 Each file "must be under 50 MB". A request's files together are limited to 50 MB.16 A file for the model is uploaded with the purpose user_data.16 A stored file can be up to 512 MB, and "each project can store up to 2.5 TB of files in total".1415 An OpenAI project is a group inside an OpenAI organization. Its files have their own storage limit, and it can have its own spend limit, as row 4 shows. As far as the pages read say, it plays the part a workspace plays on Claude.

Row 4, which models may answer. OpenAI's error codes fall into the same classes, with different numbers.17

ClassClaudeOpenAI
Rate limit429 rate_limit_error, with retry-after429, with Retry-After. If it is missing, "use exponential backoff with jitter", a small random wait added so many clients do not retry at once (21.9)
Grew too fast429 ramp_limit_exceeded429 slow_down
A spend limit you set400 invalid_request_error429, with a code such as project_spend_limit_exceeded
Overloaded529 overloaded_error503 server_is_overloaded
Server error500 api_error500

The Claude column is from Anthropic's errors and rate limits pages.1819 The row that changes a decision is the spend limit. On Claude it is a 400, which is never retried. On OpenAI it is a 429, the same status as a rate limit. Your error classifier is the code that reads an error and returns its class. One that reads only the status would wait and retry against a limit that will not lift. So the port reads the error's code, not only its status. OpenAI's Python SDK names its classes RateLimitError, InternalServerError, BadRequestError, NotFoundError, APITimeoutError and others.17

Row 5, which configuration the run reads. Codex reads ~/.codex/config.toml, and a project's .codex/config.toml only "when you trust the project".20 Its order, highest first, is command-line flags, then the project, a profile, the user, cloud-managed settings, and the system file.20 Codex joins AGENTS.md files "from the root down", the closer files last, up to 32 KiB by default.21

Row 6, how a change arrives. The GitHub Action openai/codex-action@v1 "installs the Codex CLI ... and runs codex exec". It takes a prompt or a prompt-file, an openai-api-key and an output-file. Its safety-strategy defaults to drop-sudo.22

Status and price. The pages read give no price for file storage.

Open source

Open source: OpenCode in CI, and an open-weight model with no file store.

Rows 5 and 6. OpenCode reads opencode.json or opencode.jsonc in the project, or in its .opencode/ folder, and a global file in ~/.config/opencode/. "Managed settings have the highest precedence, so users and projects cannot override the values they set".23 Its opencode run sends a prompt "without opening the interactive interface", and is "designed for scripts, CI jobs, and other workflows".24 It runs headless in CI, as claude -p does (from an earlier chapter, 15.10, with its own date).

Rows 1 to 4, for an open-weight model. An open-weight model runs on your own computer (24.10). No vendor receives the request, so row 1 adds nothing you did not write, and row 2 is your own disk. No vendor keeps your files either, so row 3 has no ids: each scan is converted on your computer and sent as bytes. Row 4 is the model file you downloaded, and its version is your pin (proposed design).

Security. A project's opencode.json sits in the repository, so a pull request can change the configuration that CI reads. Make the file one of row 5's proofs, so that check:environments sees the change. A local model's scans stay on your computer, and their text is still data, never instructions (Chapter 28).

What stays true on every option?

On every product, the six rows are yours to write. A value that differs between environments differs on purpose, in a file, with a proof.

A cell filled by a product's default is a cell you did not write. It can change with the product's next release, and check:environments cannot compare it, so name it in the cell.

The operating rule: before a request moves to another product or platform, read that product's pages for each of the six rows. Write in docs/environments.md what fills each cell when you set nothing, and then set it yourself.

For the exam. The developer exam's questions are about Claude only. The OpenAI and open-source boxes are practice for the lab's port.

Do this now. Pick one product or cloud platform you might move a worker to. Open its documentation, and give your coding agent this prompt.

Read the pages I name for this product. For each of six rows, tell me what the product does when I set nothing: who sends the request and what it adds, what it keeps and for how long, where an uploaded file can be read, which models may answer and what happens on an overload, which configuration a run reads, and how a change reaches it in CI. Quote the page's own sentence for each, and write "the page does not say" where it is silent.

Each "the page does not say" is a cell you fill yourself.

Read next. Chapter 31 builds a worker that improves itself. It carries each change through the same environments, and row 6 is the path it takes.

Check yourself

Question 1 / 6

0 answered

Production would call Claude through Microsoft Foundry, on a deployment hosted on Azure. The worker sends each invoice by its file id. What happens, as of November 30, 2026?

  1. Modifying system prompts, Claude Agent SDK, Anthropic.↑
  2. Files API, Claude API docs, Anthropic.↑↑2↑3↑4
  3. Vision, Claude API docs, Anthropic.↑
Owner
Panaversity