# Cross-context divergence — local has X, openclaw doesn't
<!--
ref: @protocol/cross-context-divergence
type: protocol
tags: [tips, bootstrap, multi-context, groom-op]
triggers: [workflow fails in cloud, context missing in remote agent, local context not recognized]
trigger_prompt: When you notice that a task works seamlessly on your local agent but encounters issues or requests missing context when executed in a cloud or mobile environment.
version: 3
updated_at: 2026-09-10T16:27:28.369Z
-->

When your local agent works because of context only it has, your cloud/app agents fail. Promote the local-only piece to a published protocol so every context inherits it.

## Problem signature

Your local agent (Claude Code on dev machine) handles a workflow well.
You try the same thing from your cloud agent (OpenClaw, mobile app, CI),
and it fails or asks for context the local agent already has.

Common causes:
- A piece of context lives in `~/.claude/CLAUDE.md` (visible only locally)
- A skill is installed in your local `.claude/skills/` (cloud agent has
  no equivalent)
- A local file the agent reads (e.g. `~/workspace/conventions.md`) isn't
  available to remote contexts

## Suggested move

Promote the local-only piece to a published entry in your personal repo.
Then add it as a bootstrap include so *every* context (local, cloud, app)
loads it automatically.

```bash
# 1. Publish the local convention to your personal repo
cat ~/.claude/conventions.md | curly protocol /repo/<your-handle>/publish \
  -X POST -d "$(jq -Rs '{files: [{path: "conventions", content: .}]}')"

# 2. Add to bootstrap (now visible to every context)
curly protocol /user/bootstrap/config -X POST -d '{
  "kind": "protocol", "ref": "@<your-handle>/conventions", "depth": "short"
}'

# 3. (Optional) Trim the local CLAUDE.md to point at the published version
```

## When this applies

- You operate from 2+ agent contexts (local + cloud, local + app, etc.)
- The divergent context is **stable** (a convention, a skill, a workflow
  pattern) — not session-state
- The piece would be visible to every context if it were in the bootstrap

## When it doesn't

- The divergent context is **secret** (API keys, local credentials) —
  that should never go in a bootstrap
- The piece is **local-only by design** (paths, hostnames, dev-only setup)

## Evidence

Surfaced repeatedly in retros from users running multiple agent
surfaces. The asymmetry is invisible until a cloud agent fails on a
task the local one handled fine yesterday.

*Part of the grooming ecosystem: the master pass is `@protocol/grooming`; sibling operations are `/search?q=tag:groom-op`.*

---

*Related: `@protocol/groom-protocols` · `@protocol/bootstrap-core` · `@protocol/retro` · `@protocol/impulse-the-recurring-task` · `@protocol/harvest`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*