Devin, Codex cloud and Claude Code on the web: give cloud agents your team's context
Cloud coding agents start from your repo, not your laptop. We tested what a fresh clone keeps in Claude Code and Codex. Four habits for a team.
By Scott Strang
Last updated
The short answer. A cloud coding agent (also called a background coding agent) starts in a fresh sandbox built from your repo, so it knows what your team has committed and nothing that lives on anyone's laptop. In Claude Code on the web and Codex cloud, your personal instruction file, your own skills, MCP servers you added on your machine and the notes from yesterday's standup don't come along; Devin reads rules and skills from the repo and from plugins installed in Devin, not from your laptop. So before you hand work to one, put the team's rules, skills and decisions in the repo, put setup and secrets in the cloud environment, and write the task so it names the files.
We tested a stand-in for the cloud in Claude Code and Codex (the real cloud setup stopped us first, see below): a session on a fresh local clone with no home config found the team decision we had committed, and none of what we had left uncommitted, untracked or in our home folder. We didn't test Devin.
Comparing Devin, Codex cloud and Claude Code on the web? Jump to where each one reads your team's context.
The usual fixes don't reach a cloud agent
| The usual fix | What it costs | How it fails in the cloud |
|---|---|---|
| "It's in my CLAUDE.md" | Nothing. It's already set up | Your ~/.claude/CLAUDE.md stays on your machine. Claude Code on the web reads the repo's files, and Codex cloud doesn't sync your personal setup |
| Paste the context into the task prompt | A long prompt every time, written from memory | Each person pastes something different, and the next task starts without it |
| "The agent will figure it out from the code" | A review cycle | Code shows what was done, not what was decided last week. The PR follows the old pattern |
A local agent gets away with these because it runs on a machine that has everything. A cloud agent never sees that machine.
Treat the repo as the cloud agent's whole world
Why it works. All three tools start from your repository. Anthropic's docs say cloud sessions start from a fresh clone, and list what carries over: the repo's files do, your home folder's don't. OpenAI says repo skills are available in Codex cloud tasks and personal skills from your computer aren't synced. Devin pulls its rules from AGENTS.md, CLAUDE.md and similar files in the repo. If the team's rules and skills are in the repo, every cloud agent gets the same ones.
Try this week. Ask each person to list what in their own agent setup helps the whole team: a rule in their personal instruction file, a skill in their home folder, an MCP server they added for themselves. Move each team-wide one into the repo in one pull request: rules into AGENTS.md (keep CLAUDE.md as @AGENTS.md or a symlink, see our CLAUDE.md and AGENTS.md guide), skills into .claude/skills/ and .agents/skills/, and MCP servers into a project-scope .mcp.json (claude mcp add --scope project).
Watch for. "It works when I run it." When a task succeeds locally and fails in the cloud, something it needed is on that person's machine.
Write the decision into the repo before you hand off the task
Why it works. A cloud agent has no standup, no chat history and no memory of last week. In our test, a decision we committed to docs/decisions.md, with one line in AGENTS.md pointing there, was found by both tools on the fresh clone. The same kind of decision, written in an untracked standup note, wasn't there at all: the folder doesn't exist in a clone. (Even on the laptop it was luck: Codex searched and found the note, Claude Code didn't look.)
Try this week. Before the next cloud task, write the decisions it depends on into docs/decisions/ (what, why, date, owner), commit, push, and name the file in the task: "Follow docs/decisions/2026-11-23-pagination.md." Our decision log template has a format both people and agents follow.
Watch for. Tasks written as "do it the way we discussed". The cloud agent wasn't there.
Put setup and secrets in the cloud environment, not in a person's head
Why it works. Each tool has one place for what a session needs before it starts: an environment with setup and network secrets in Claude Code and Codex cloud, a blueprint and a Secrets tab in Devin. Setup written there runs the same for every task and every teammate. Secrets there never go into the repo.
Try this week. Pick the repo you'd run cloud agents on first. Write its setup steps (tools to install, test command, domains it must reach) into that tool's environment, and add the keys it needs as secrets there. Then start one small task and read its log from the top. Expect one-time setup first: our first claude --cloud on our own repo stopped at "GitHub repository access check failed". The message names three possible causes: no access to the repo, the repo isn't in the Claude GitHub App's repository selection, or an expired GitHub connection. Check all three.
Watch for. An API key in AGENTS.md or a setup script, and network access opened to everything because one task failed. In Codex cloud, check which docs you're reading: the current ones describe network secrets the proxy fills in for allowed destinations, while the legacy ones say secrets are available only to setup scripts. Make sure a key your task needs reaches the agent's run, not just setup.
When a cloud agent's PR misses context, fix the file, then the PR
Why it works. Fixing the PR by hand fixes one task. Adding the missing rule or decision to the repo fixes every later task, for every agent, local or cloud.
Try this week. For each cloud-agent PR you review, ask one question: "Was this wrong because the agent lacked something we know?" If yes, write that thing into AGENTS.md or docs/decisions/ in the same review, then fix the PR.
Watch for. The same review comment twice. The second time, it belongs in the repo.
Run it in a week: list, move, set up, try one task, review
| Mon | Tue | Wed | Thu | Next Mon |
|---|---|---|---|---|
| Each person lists the team-wide parts of their own agent setup | Move them into the repo in one PR | Write the cloud environment's setup and secrets for one repo | Run one small cloud task that names a decision file; read its log | Review: which cloud PRs missed something? Add it to the repo |
Stop / start
| Stop | Start instead | Why |
|---|---|---|
| Keeping team rules in your own instruction file | Keeping them in the repo's AGENTS.md | The cloud session reads the repo, not your home folder |
| Handing off a task right after a meeting | Committing the decision first and naming the file in the task | A cloud agent wasn't in the meeting |
| Installing tools by hand when a task fails | Writing them into the environment's setup | It runs the same for every task |
| Putting keys in files the agent reads | Putting them in the environment's secrets | Secrets stay out of the repo |
| Fixing a context miss only in the PR | Adding the missing rule or decision to the repo too | The next task gets it |
Signs it's working
- A task that works on your laptop works in the cloud on the first try.
- When someone asks why a cloud agent did something, the answer is a file in the repo.
- Review comments on cloud-agent PRs stop repeating.
- A new teammate's first cloud task needs no message to anyone.
A fresh clone keeps what's committed and loses what isn't
The real cloud setup stopped us before any session started (see "What happened when we tried the real cloud"), so we rebuilt what the vendors say a cloud session starts from: a fresh git clone of the repo and none of this machine's home config. Then we asked Claude Code and Codex the same six questions on the laptop copy and on the clone.
| Where it was | Laptop: Claude Code | Laptop: Codex | Fresh clone: Claude Code | Fresh clone: Codex |
|---|---|---|---|---|
A decision in docs/decisions.md, committed, pointed to from AGENTS.md | ✅ Found | ✅ Found | ✅ Found | ✅ Found |
| A skill committed to the repo | ✅ Found | ✅ Found | ✅ Found | ✅ Found |
A SessionStart hook in the repo's .claude/settings.json | ✅ Ran | Not used by Codex | ✅ Ran | Not used by Codex |
| A rule added to AGENTS.md but not committed | ✅ Found | ✅ Found | ❌ Missed | ❌ Missed |
| A standup note in an untracked file | ❌ Missed (didn't look) | ✅ Found | ❌ Missed (not in the clone) | ❌ Missed (not in the clone) |
User-level instructions (~/.claude/CLAUDE.md, ~/.codex/AGENTS.md) | ✅ Loaded | ✅ Loaded | ❌ Not loaded | ❌ Not loaded |
| Skills available (the agent's own count) | 185 | 126 | 14 | 6 |
Claude Code 2.1.283 and Codex CLI 0.146.0, Nov 24, 2026. Each setup ran once, headless; the answers are the agents' own reports of what they saw. A real cloud VM adds setup scripts, network limits and secrets that this stand-in doesn't. For the rows it covers, Anthropic's "what carries over from your setup" table says the same as the clone columns. One exception: when Claude Code uploads your local repo instead of cloning from GitHub, uncommitted edits to tracked files go with it. Untracked files never do.
Devin, Codex cloud and Claude Code on the web read your team's context in different places
This compares where each tool gets the team's context, not which is better.
| Claude Code on the web | Codex cloud | Devin | |
|---|---|---|---|
| Each task starts from | A fresh VM with a clone of your GitHub repo at your current branch (push first) | An isolated workspace from the environment's prepared filesystem | A fresh copy of a snapshot with your repos cloned and tools installed |
| Rules | The repo's CLAUDE.md and .claude/rules/ | The repo's AGENTS.md (the legacy docs mention it for lint and test commands) | Knowledge from the repo's AGENTS.md, CLAUDE.md, .cursorrules, .rules and .windsurf, moving to Skills in plugins |
| Skills | The repo's .claude/skills/, plus skills you enable on claude.ai | Skills stored in the repo | Skills from installed plugins and from repos |
| MCP servers | The repo's .mcp.json (in a single-repo session; Project threads skip it); connectors you enable | Not covered in the cloud docs we read | Declared by an installed plugin |
| Setup | A setup script on the environment (cached when it finishes in about five minutes); the repo's SessionStart hooks (single-repo sessions, not Project threads) | An install script saved with the environment when you publish it | The blueprint the snapshot is built from |
| Secrets | Network secrets kept outside the sandbox; environment variables | Network secrets the proxy fills in for allowed destinations | The Secrets tab, injected as environment variables |
| Network by default | Limited: package registries and an allowlist | A setting: full internet, or only the package-manager domains and domains you list | Not covered on the pages we read |
| Your laptop's setup | Not carried over: ~/.claude/CLAUDE.md, your own skills, user-scope MCP servers and plugins | Personal skills aren't synced | Not started from a laptop |
Checked Nov 24, 2026 against each vendor's docs (Sources). We tested Claude Code and Codex, not Devin.
What still needs a person when the repo is right
Everything on this page so far works without SageOx: the repo carries the rules, skills and decisions, and the environment carries setup and secrets. What stays manual is keeping the repo current with what the team decides in meetings and chats, and knowing what each cloud agent did once its PR is merged.
What happened when we tried the real cloud
Nov 24, 2026, Claude Code 2.1.283 and Codex 0.146.0: on a fresh clone with no home config, both tools found the decision we had committed and missed everything we hadn't.
We started with the real cloud and hit the setup steps a team meets once. claude --cloud on our own repo stopped at "GitHub repository access check failed", and on a small local repo it asked the folder-trust question first, which we left for a person to answer. Codex cloud needs an environment per repo, and our account had one only for an unrelated personal project. So connect each repo once, then judge the agent. We now treat any decision a cloud task depends on as unfinished until it's in the repo.
Where SageOx helps
SageOx level: helpful.
SageOx isn't an agent. It's a tool-agnostic context layer that gives the people and agents on a team the same context, and it sits beside Claude Code, Codex and Devin.
- Cloud agents: our docs cover running ox in sandboxes such as Claude Code on the web, Devin, GitHub Actions and Codespaces, on a personal access token kept in the environment's secrets. Team-scoped service tokens for unattended agents are in early access.
- Agent priming loads the team's context, rules and prior work into each session when it starts, not just the rules file. Live for everyone.
- Coding session recording captures each session to the repo's Ledger, its shared record of coding sessions, and summarizes it, so the team can see what a cloud agent did. Live for everyone.
It pays off when the whole team runs it: every person's agents, local and cloud, start from the same context. How it works with orchestrators is in the agent factories docs, and the token a sandbox uses in personal access tokens.
List what lives only on your laptop
Run this in Claude Code or Codex at the root of the repo you'll hand to cloud agents. It lists what they'd miss and changes nothing until you approve. Have each teammate run it once, then compare the lists in one PR: the overlap is your team's missing context.
We're about to run cloud coding agents (Claude Code on the web, Codex cloud or Devin) on this
repo. They start from a fresh clone and get none of my machine's setup. Find what they'd miss.
Change nothing until I approve.
1. Run `git status --short`. List uncommitted changes and untracked files that hold rules,
decisions, notes or skills.
2. List my user-level agent setup that applies here, one line each: ~/.claude/CLAUDE.md,
~/.claude/skills/, hooks and plugins in ~/.claude/settings.json, MCP server names in
~/.claude.json, ~/.codex/AGENTS.md, ~/.codex/config.toml, ~/.agents/skills/.
Names and one-line summaries only. Never print a token, key or password.
3. Mark each item: team (belongs in the repo), personal (fine to leave), or setup (belongs in
the cloud environment's setup script or secrets).
4. For each team item, propose where it goes: AGENTS.md, docs/decisions/, .claude/skills/ and
.agents/skills/, or a project-scope .mcp.json.
5. List what the cloud environment needs: tools to install, the names (not values) of the
secrets, and the domains to allow.
Show me the list and a draft diff before you commit anything.See how a team stays in the loop →
Questions
Is Claude Code better than Devin or Codex for a team? This page doesn't rank Devin vs Claude Code vs Codex; that changes with every release. For a team, what matters more is that all three start from your repo, so the same committed rules, skills and decisions reach whichever one you run.
What's the difference between Codex cloud and running Codex locally?
Locally, Codex reads your machine's ~/.codex setup and whatever is in your working folder. A Codex cloud task starts from the repo and the cloud environment, and OpenAI says personal skills from your computer aren't synced.
Does Claude Code on the web read CLAUDE.md?
Yes, the repo's. Your ~/.claude/CLAUDE.md isn't carried over; Anthropic's docs show a setup script that writes one for personal preferences.
Why doesn't my cloud session have my latest changes?
claude --cloud clones your GitHub remote at your current branch, not your local checkout, so push first. Untracked files never reach it, and uncommitted edits go along only when Claude Code uploads your local repo instead of cloning, which the docs say happens for a repo with no remote or one the Claude GitHub App isn't installed on.
Can a cloud agent use our MCP servers?
In Claude Code on the web, yes, if they're in the repo's .mcp.json and the session works on that one repo (threads in a Claude Code Project skip it); servers you added at user or local scope stay on your machine. Devin gets them from installed plugins, and Codex's cloud docs we read don't cover MCP.
Related guides
- Blog · How to share context between Claude Code and Codex
- How-to · CLAUDE.md and AGENTS.md: keeping them right for a whole team
- Advice · Claude Code and Codex together on one team
- How-to · Running parallel agents across a team without collisions
Sources
This is practice from people who live it, not a study. Tested with a local stand-in: Claude Code 2.1.283 and Codex CLI 0.146.0, Nov 24, 2026. Devin not tested.
| Source | What we used | Checked |
|---|---|---|
| Use Claude Code in the cloud | claude --cloud; clone at your current branch, push first; local-repo upload | Nov 24, 2026 |
| Configure cloud environments | What carries over from your setup; setup scripts; network levels; network secrets; claude.ai skills; connectors | Nov 24, 2026 |
| Codex cloud environments | Isolated workspace; prepared filesystem; repo skills available; personal skills not synced; network secrets | Nov 24, 2026 |
| Codex Cloud (Legacy) | AGENTS.md for lint and test commands; secrets only for setup scripts | Nov 24, 2026 |
| Devin Knowledge Onboarding | Rule files Devin reads; Knowledge moving to Skills in plugins | Nov 24, 2026 |
| Devin plugins and the Customize page | Skills and MCP servers from plugins and repos | Nov 24, 2026 |
| Devin environment setup | Snapshot per session; Secrets tab | Nov 24, 2026 |

