# 30.1 One model, many surfaces (/building-ai-workers/shipping-claude-applications/one-model-many-surfaces)

---
type: Document
title: "30.1 One model, many surfaces"
description: "What the same request carries on the Messages API, the Claude apps, Claude Code, the Agent SDK and the cloud platforms, and why a prompt tried in one place proves nothing in another."
status: stable
order: 330.01
ksor:
  owner: team:panaversity
  audience:
    - public
  approval:
    by: process:panaversity
    at: 2026-11-30T10:58:03Z
chapter: '30'
part: III
expert_status: builder-only
concepts: [ "30.1" ]
last_verified: '2026-11-30'

sources:
  - id: anthropic-ccdv-f-exam-guide
    title: Claude Certified Developer - Foundations Exam Guide, version 1.1, effective December 7, 2026 (read 2026-11-30)
    resource: https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794946771/Claude_Certified_Developer_-_Foundations_Exam_Guide_Updated_Dec_7.pdf
  - id: anthropic-system-prompts
    title: System prompts (Claude release notes, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/release-notes/system-prompts
  - id: claude-help-projects
    title: How can I create and manage projects? (Claude Help Center, verified 2026-11-30)
    resource: https://support.claude.com/en/articles/9519177
  - id: claude-help-memory
    title: Use Claude's chat search and memory to build on previous context (Claude Help Center, verified 2026-11-30)
    resource: https://support.claude.com/en/articles/11817273
  - id: claude-code-memory
    title: How Claude remembers your project (Claude Code docs, verified 2026-11-30)
    resource: https://code.claude.com/docs/en/memory
  - id: agent-sdk-system-prompts
    title: Modifying system prompts (Claude Agent SDK, verified 2026-11-30)
    resource: https://code.claude.com/docs/en/agent-sdk/modifying-system-prompts
  - id: agent-sdk-claude-code-features
    title: Use Claude Code features in the SDK (Claude Agent SDK, verified 2026-11-30)
    resource: https://code.claude.com/docs/en/agent-sdk/claude-code-features
  - id: anthropic-bedrock
    title: Claude in Amazon Bedrock (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock
  - id: anthropic-google-managed
    title: Claude Models on Google Cloud, Google managed (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed
  - id: claude-platform-aws
    title: Claude Platform on AWS (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws
  - id: anthropic-foundry
    title: Claude in Microsoft Foundry (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry
generated:
  at: 2026-11-30T10:58:03Z
  by: esl-rewrite/1.2.0+ksor.1
trust_tier: unverified
build_id: sha256:d6ce3f28a2cf8e492a60bae1b426b7cc6466e35e83d70c3b9763db2c55009f4b
dirty: true
ksor_version: 0.0.60
---

**In everyday life.** You give two friends your mother's recipe for lentils. One friend cooks it at home, with only what the recipe says. Another gives it to a restaurant kitchen. The kitchen has its own rules for every dish, a shelf of house spices, and a notebook of what this guest liked last time. Both dishes come from the same words, and they taste different. In this section, the recipe is your prompt, and the home cook is the Messages API. The restaurant is an app that adds its own instructions, files and memory.

**What you will learn.** You practice this in Lab 30, Task 0, where you fill row 1 of the table.

- What does Claude receive on each surface?
- Why can a prompt that worked in a Claude project answer differently from your code?
- What does the Agent SDK add, and what does it load by default?
- What changes on a cloud platform?
- What goes in row 1 for each environment?

**Why it matters.** The model is the same on every surface. What surrounds your words is not. An answer you saw on one surface is evidence about that surface only.

**At work.** On Monday morning Ana sends you the extraction prompt's next version. "It read my phone photos well in my project," she writes. Before you send the same words through the worker's code, you list what her project put around them that your code will not.

### What does Claude receive on each surface?

**On the Messages API, only what your request holds. On every other surface, the product adds something.** The exam guide asks how Claude "interprets instructions on different surfaces".[^anthropic-ccdv-f-exam-guide] Here a surface is any product or service through which a request reaches the model. That is wider than in [2.4](../../ai-worker-paradigm/what-is-an-ai-worker/surface-and-model.md), where a surface was the way a product runs work, by chat or by an agent.

<!-- FIGURE 30.2: "One prompt, four senders." Four boxes in a row, each holding the same three words, "your prompt here", in the same font. Around each box, a labeled frame for what that sender adds. (1) Box labeled "the Messages API": no frame, and a small note "adds nothing". (2) Box labeled "a Claude app": three frames around it, from outside in, "Anthropic's system prompt", "project instructions and files", "memory". (3) Box labeled "Claude Code": frames "its own system prompt" and "CLAUDE.md, settings, tools, skills". (4) Box labeled "the hosted worker": one frame, "agents/ap-worker.md". An arrow from each box points down to one shared circle labeled "the same model". The alt text must name all four senders, give every frame each one adds in order, say that the Messages API adds nothing, and say that all four arrows reach the same model. -->

*Figure 30.2. The same words, sent four ways. The model is the same. What each sender wraps around the words is not.*

| Surface | What Claude receives besides your words | What follows for you |
| --- | --- | --- |
| **The Messages API** | Only what your request holds: your system prompt, your messages, your tools | Nothing is added and nothing is remembered. If the model should know it, send it |
| **The Claude apps** | Anthropic's own system prompt. In a project, the project's instructions and files. Memory from earlier chats | The same prompt in the app and through the API can give different answers |
| **Claude Code** | Its own system prompt, then `CLAUDE.md` files, settings, tools and skills ([Chapter 12](../agentic-coding/overview.md)) | A rule for a coding session goes in `CLAUDE.md` or a setting, not in an API prompt |
| **The Claude Agent SDK** | A minimal system prompt unless you ask for more, and the settings files that `settingSources` names | Ask for the system prompt you want, and name the settings it may load |
| **The hosted worker** | The worker's instructions in `agents/ap-worker.md`, on every session (23.4) | A change to the instructions is a change to that file, reviewed and applied |
| **The cloud platforms** | The same model through another company's service, with its own keys, regions, prices and model ids | Some features are missing or work differently. Check each one you use before you choose the route |

The Claude apps are claude.ai, the desktop app and the mobile app. They add Anthropic's system prompt "at the start of every conversation", and Anthropic says that "These updates do not apply to the Claude API."[^anthropic-system-prompts] Claude Code's instructions arrive in two parts. It has its own system prompt. `CLAUDE.md` comes after it: "CLAUDE.md content is delivered as a user message after the system prompt, not as part of the system prompt itself."[^claude-code-memory]

### Why can a prompt that worked in a Claude project answer differently from your code?

**Because the project put three things around it that your code never sends.**

- *Anthropic's system prompt.* Anthropic publishes one version of it. "Other chats, including those with web search turned on, use other versions, which these pages don't publish."[^anthropic-system-prompts] So you cannot always read everything Ana's chat was given.
- *The project's instructions and files.* "Claude will use these instructions for all the chats within the project." Anything uploaded to the project "will be used across all of your chats within that project."[^claude-help-projects]
- *Memory.* "Claude can also remember context from your chats and carry it into new conversations …" And "Each project has its own memory."[^claude-help-memory]

<!-- OPEN: whether a connector's tools in Ana's project reach the model as part of what Claude receives is not confirmed by any page read for this chapter (facts 7.3, spec raised point 21). This section names no connector. Styles are left out, because the old styles article answers 404. -->

So a good answer in Ana's project is a try, never a test. Some of what made it good may be in her project and not in the prompt. The fix is the API's rule: if the extraction needs it, put it in the request. In practice that means the prompt file the worker sends, which the suite reads (25.1). Ana's try still has value. It told you which version to test next.

### What does the Agent SDK add, and what does it load by default?

**Less than you may expect in the system prompt, and more than you may expect from settings.** With no system prompt set, "the SDK uses a minimal prompt that covers tool calling but omits the rest of the `claude_code` preset's content, including its security and safety instructions."[^agent-sdk-system-prompts] If you want Claude Code's own system prompt, ask for the `claude_code` preset by name.

`CLAUDE.md` is a separate switch, `settingSources`. Left out, it loads user, project and local settings, and `CLAUDE.md` with them. Only an empty list stops it ([30.5](#305-configuration-that-travels)).[^agent-sdk-claude-code-features]

One more trap. If you resume a saved session with a changed system prompt, "Claude doesn't see it on the next turn".[^agent-sdk-system-prompts] It takes effect after compaction, when the SDK summarizes the older part of a long conversation ([22.7](../agent-sdks/where-the-conversation-lives.md)), or in a new session. To change instructions in a running session, "send the new instructions in the conversation instead of changing `systemPrompt`".[^agent-sdk-system-prompts]

### What changes on a cloud platform?

**The model is the same. The service around it, and some of its features, are not.** The routes have their own names today.

- *Amazon Bedrock,* with two endpoints. `bedrock-mantle` serves the Messages API, and `bedrock-runtime` serves Amazon's own request forms. Model ids there carry an `anthropic.` prefix.[^anthropic-bedrock]
- *Claude Models on Google Cloud,* in two kinds: Google managed and Anthropic managed. For Google managed, "Google sets the lifecycle dates", and they "can differ from the Claude API schedule".[^anthropic-google-managed]
- *Claude Platform on AWS,* which Anthropic runs with the Claude API's own model ids. New features arrive "Typically same-day as Claude API".[^claude-platform-aws]
- *Microsoft Foundry,* where "The deployment name you choose becomes the value you pass in the `model` parameter".[^anthropic-foundry]

Know the routes and how they differ. Some of the differences change this chapter's rows. Bedrock and Google managed have no Files API, which matters in 30.3.[^anthropic-bedrock][^anthropic-google-managed] Bedrock, Google managed and Foundry have no server-side fallback, which matters in 30.4.[^anthropic-bedrock][^anthropic-google-managed][^anthropic-foundry] So check every feature you use on the route you plan to use.

### What goes in row 1 for each environment?

**Who sends each request in that column, what that sender adds, and how you prove it.** The extraction is one Messages API call from your code, so it adds nothing in any column. The hosted worker does add something, its agent file.

| Row 1: who sends, and what it adds | Development | Staging | Production |
| --- | --- | --- | --- |
| **The extraction** | The worker's code, through the SDK, with the staging key. Adds nothing. By a person: the request in the local log | The portal's morning job calls the Messages API. CI's suite on recorded answers sends nothing. Its live job runs only when the prompt, the model or the golden set changes (Lab 24) | Same, in the production workspace |
| **The hosted worker** | Not run here | Adds `agents/ap-worker.md`. Proof: `claude-lock.staging.json`, the agent's version | Same. Waiting: `claude-lock.production.json`, made by the production apply |
| **The Claude project Ana used** | Adds Anthropic's system prompt, the project's instructions and files, and memory. By a person | Not here | Not here |

<!-- OPEN: `claude-lock.production.json` does not exist when Lab 30 starts. Lab 23 made the production workspace and key, but applying to production was "an extension, not run in this lab" (hosted-agents/lab.md:749). The production apply makes it, and Task 4 writes that apply as a plan. How it runs is still to be designed (spec, raised point 20). -->

Ana's project is a place whose proof can only be "by a person". Nothing in the repository records what her project added, so the check has nothing to compare.

**The operating rule:** if the model should know it, put it in the request. Treat a result on another surface as a try, and write in row 1 who sends each request and what it adds.

**Do this now.** Ask your coding agent to list every sender in a project you already have. Copy this line:

> List every place in this project where a request goes to a model. For each one, say which product or service sends it, what that sender adds besides the request's own system prompt and messages, and which file shows it. Mark each place where you cannot tell what is added. Change no file.

[^anthropic-ccdv-f-exam-guide]: Claude Certified Developer - Foundations Exam Guide, version 1.1, Anthropic.
[^anthropic-system-prompts]: System prompts, Claude release notes, Anthropic.
[^claude-code-memory]: How Claude remembers your project, Claude Code docs, Anthropic.
[^claude-help-projects]: How can I create and manage projects?, Claude Help Center, Anthropic.
[^claude-help-memory]: Use Claude's chat search and memory to build on previous context, Claude Help Center, Anthropic.
[^agent-sdk-system-prompts]: Modifying system prompts, Claude Agent SDK, Anthropic.
[^agent-sdk-claude-code-features]: Use Claude Code features in the SDK, Claude Agent SDK, Anthropic.
[^anthropic-bedrock]: Claude in Amazon Bedrock, Claude API docs, Anthropic.
[^anthropic-google-managed]: Claude Models on Google Cloud, Google managed, Claude API docs, Anthropic.
[^claude-platform-aws]: Claude Platform on AWS, Claude API docs, Anthropic.
[^anthropic-foundry]: Claude in Microsoft Foundry, Claude API docs, Anthropic.
