R449 · Agent architecture › Memory and context

Instructions travel, enforcement does not: what a cloud thread inherits from your repository

Read the original

instruction-filesproject-memorypermissionshooksmulti-agentcloud-sessionscost

A coordinator model that starts and tracks parallel cloud sessions on your repositories is now in public beta in one major coding-agent product. The pitch is the obvious one — you stop being the dispatcher. The documented inheritance rules are more interesting than the pitch, because they draw a line straight through a repository's .claude directory, and the line falls in a place with real consequences for anyone who has been putting guardrails there.

The architecture, briefly

Three parts. A long-running coordinator conversation, where you drop work as it arrives. Threads, each a separate session with its own context window, doing one piece of work and reporting back; a cloud thread gets its own branch and opens a pull request when the work calls for one. An overview pane listing threads by state. The coordinator "sees what threads report back, not every step they take" — so the summarisation boundary between worker and coordinator is explicit, which is more than most multi-agent designs state.

Context windows are not yours to manage: threads compact automatically, and the coordinator works from recent messages, recent threads and project memory rather than its full history. That is a reasonable default and also a constraint — there is no handle to pull when the coordinator forgets something, except putting it in memory.

The inheritance line

Here is the documented matrix of what a cloud thread picks up from each repository in the project:

In the repositoryIn a cloud thread
CLAUDE.md, .claude/CLAUDE.md, .claude/rules/ at the rootLoaded from every repository at thread start
Skills, agents, commands under .claude/Loaded from every repository (with exceptions, below)
MCP servers in .mcp.jsonNot loaded — use account-level connectors
Permission rules in .claude/settings.jsonNot applied — approve inside the thread
Hooks in .claude/settings.jsonNot run — run the thread on your own machine instead
env in .claude/settings.jsonNot applied — set it on the cloud environment

Read the column boundary rather than the rows. Everything advisory is inherited: prose instructions, rules files, skills, agents, commands. Everything enforcing is dropped: permission rules, hooks, server allow-lists, environment variables.

That is exactly backwards from how a careful team builds guardrails. Prose in CLAUDE.md is what you write when you are asking nicely. A PreToolUse hook that blocks a destructive command, a deny rule on a tool, a pinned .mcp.json — those are what you write when asking nicely has already failed. In this execution model the polite half survives the trip and the enforcing half does not.

And the mode on the other side is the permissive one. The documentation is direct about it: threads run in auto mode where available, so most tool calls run without asking; cloud threads do not read a repository's permission rules, so you rely on auto mode and on approvals given inside each thread. A thread needing approval blocks inside that thread — telling the coordinator to proceed does nothing, and the thread keeps waiting.

So a repository whose safety story is "the hook catches it" has no safety story here. The fix the docs offer is to run that thread on your own machine, which is a real option and also an admission: the enforcement lives on the machine, not in the repository.

Preferences are not settings

A related and easily missed distinction. You can tell the coordinator things like "run at most two threads at a time" or "don't open a pull request until I've seen the plan." It saves these to project memory and follows them in later threads.

The documentation then says plainly that these are instructions the model keeps to, not enforced settings, so a thread limit given this way is not a hard cap. If you want it worded exactly and applied to every thread from the start, it belongs in project instructions.

This is worth internalising as a general rule for coordinator-style systems: a constraint you expressed in conversation is a preference, and a preference is a probability. Concurrency limits, pull-request gates and "ask me first" rules are precisely the constraints you do not want expressed probabilistically, because the failure mode is several sessions acting at once on work you have not seen.

Standing context, and the one hard number

Three channels carry context across threads, and they are genuinely distinct:

Project memory is separate from the repositories' CLAUDE.md files and separate from the local auto-memory on your machine, even though both use a MEMORY.md index — three things sharing one filename, which is a naming collision worth being careful about when you write about your own setup. Memory being switched off at the account level disables project memory entirely.

Failure modes worth knowing before you rely on it

Skills can silently not load. A thread does not load its repositories' skills, agents or commands if it started before a cutoff date, if any of its repositories has a name beginning with a dot (.github is the example given), or if the environment is self-hosted. The dot-repository rule is the dangerous one: adding an innocuous repository to a project can switch off skill loading for threads that have nothing to do with it.

A repository added mid-task arrives without its instructions. A thread can add a repository it needs, but the clone happens partway through, so that repository's CLAUDE.md was not present when the thread started. The next thread starts without the repository at all. If your project spans many repositories, the documented advice is to add the one or two that nearly every task touches and name the rest in project instructions.

Uncommitted work can be lost. A cloud thread's sandbox pauses between turns and resumes when the thread continues; if it cannot be resumed, the thread continues from a fresh clone. The documented mitigation is to ask for work in progress to be committed and pushed on long tasks. Treat the sandbox as cache, not storage.

Path-specific rules do not load at the start. Root-level rules files do; path-scoped ones do not. If your conventions live in per-directory rules, they are not in the thread's opening context.

Cost has three draws, and the third is easy to forget. Running threads, the coordinator's own tokens for reading reports and deciding what to do next, and — the surprising one — threads watching a pull request, which wake and spend again when CI fails or a review comment arrives. An otherwise idle project still spends when a watched pull request moves. A further trap: an idle thread past the cache lifetime re-reads its whole conversation when a follow-up reaches it, so a fresh thread can be cheaper than reviving an old one.

Hard limits. Not available in the terminal CLI, the VS Code extension or the JetBrains plugin, nor through the three major cloud model platforms. A project belongs to one user and cannot be shared. A thread belongs to the project that started it and cannot be moved, copied out, or merged with another project. Uploads are capped at 1,000 files and 2 GB at a time, a single file at 480 MB, and ten folders per project.

Review checklist before putting a repository behind a coordinator

  1. Grep your .claude/settings.json for anything load-bearing. Every hook, deny rule and env entry is a guardrail that will not be there. Decide, per item, whether it moves to the cloud environment, becomes prose in CLAUDE.md, or forces that work onto your own machine.

  2. Re-read your CLAUDE.md as the only control you have left. It is now carrying weight it was not written to carry. Anything that was "enforced elsewhere, mentioned here" needs to become fully specified here.

  3. Check for dot-named repositories in the project. One is enough to switch off skill loading for every thread.

  4. Put concurrency and pull-request gates in project instructions, not in chat. Chat-expressed limits are preferences and not caps.

  5. Budget against 16,000 characters of project instructions, and decide what goes there versus per-repository CLAUDE.md versus lazily-read memory files.

  6. State a commit-and-push cadence for long tasks in project instructions, because the sandbox can be replaced by a fresh clone.

  7. Name a watching policy. Decide whether threads should keep watching their pull requests, and say so, because that is a standing spend you did not explicitly start.

  8. Move secrets to the environment. Repository env is not applied; a thread that needs a token needs it on the cloud environment or in a network secret.

The generalisable point

When an agent system gains a new execution context — cloud, remote, scheduled, delegated — ask which half of your configuration crossed the boundary with it. The answer is usually that the declarative, advisory, human-readable half travelled, because it is just text, and the enforcing half stayed behind, because enforcement is bound to a runtime. The configuration that is cheapest to carry is the configuration that was never a constraint in the first place.

Connections

See R449 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.