From 237bec5bc9ba3ca8ac498467b47b5996abb17f16 Mon Sep 17 00:00:00 2001 From: chenchen Date: Fri, 27 Nov 2026 15:06:19 +0800 Subject: [PATCH 1/2] Split the Claude directory plugin (claude/) from the marketplace plugin (claude-code/) The Claude plugin directory refused v0.3.5 on three findings: the Chrome sign-in import tip (operating sites in the user's signed-in sessions), offload's secret opt-in (credentials sent to the box) and offload's box agent started with --dangerously-skip-permissions. The last two are what offload does, so they are removed from the directory folder rather than reworded. claude/ is now the directory submission: the box MCP server and the box skill, without offload (skill + /offload, /back) and without the Chrome import tip; moving files never sends a secret. claude-code/ is the full plugin and the marketplace now points at it, so marketplace users and CodeBuddy, ZCode and WorkBuddy keep offload. CI validates both folders and keeps their CLI pins on one version; e2e reads the pin from claude-code/. Both versions go to 0.3.6. Closes 81 --- .claude-plugin/marketplace.json | 2 +- .github/workflows/ci.yml | 11 ++- README.md | 15 ++-- claude-code/.claude-plugin/icon.png | Bin 0 -> 15973 bytes claude-code/.claude-plugin/plugin.json | 18 ++++ claude-code/.mcp.json | 8 ++ claude-code/README.md | 83 ++++++++++++++++++ {claude => claude-code}/commands/back.md | 0 {claude => claude-code}/commands/offload.md | 0 .../skills/box-offload/SKILL.md | 0 claude-code/skills/box/SKILL.md | 33 +++++++ claude/.claude-plugin/plugin.json | 2 +- claude/README.md | 59 ++----------- claude/skills/box/SKILL.md | 4 +- e2e/cli.mjs | 6 +- openai/README.md | 2 +- 16 files changed, 170 insertions(+), 73 deletions(-) create mode 100644 claude-code/.claude-plugin/icon.png create mode 100644 claude-code/.claude-plugin/plugin.json create mode 100644 claude-code/.mcp.json create mode 100644 claude-code/README.md rename {claude => claude-code}/commands/back.md (100%) rename {claude => claude-code}/commands/offload.md (100%) rename {claude => claude-code}/skills/box-offload/SKILL.md (100%) create mode 100644 claude-code/skills/box/SKILL.md diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 03f829f..71aebb0 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -8,7 +8,7 @@ "plugins": [ { "name": "simular-box", - "source": "./claude", + "source": "./claude-code", "description": "box by Simular: a cloud computer your agent drives over MCP." } ], diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75c9187..e0d601d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ name: CI # (versions pinned in e2e/clients.json). No secrets. # live Layer 2: a real staging key (secret BOX_CI_KEY, variable BOX_CI_MCP_URL) proves the # headless clients reach box and list its tools. Never on PRs from forks. -# The CLI under test is `npx -y @simular-ai/box@X.Y.Z` at the version claude/ pins (e2e/cli.mjs). +# The CLI under test is `npx -y @simular-ai/box@X.Y.Z` at the version claude-code/ pins (e2e/cli.mjs). # # TODO(layer 3): nightly run against the latest client versions plus a real agent task on a box. @@ -21,6 +21,7 @@ on: paths: - 'e2e/**' - 'claude/**' + - 'claude-code/**' - 'dsh/**' - 'hermes/**' - 'openclaw/**' @@ -33,6 +34,7 @@ on: paths: - 'e2e/**' - 'claude/**' + - 'claude-code/**' - '.claude-plugin/**' - '.github/workflows/ci.yml' workflow_dispatch: @@ -77,18 +79,19 @@ jobs: export HOME="$(mktemp -d)" claude plugin validate . claude plugin validate ./claude + claude plugin validate ./claude-code - name: Plugin pins the CLI to one exact version that is on npm # A range (^1.0.0) lets npx run a version published after review; the Claude directory # review asks for an exact pin. The CLI is the Rust simular-box, released from # simular-ai/box-cli, so the pin follows its npm releases. e2e/ tests this same version. run: | set -euo pipefail - pins=$(grep -rhoE '@simular-ai/box@[^ `"]*' claude | sort -u) - if [ "$(printf '%s\n' "$pins" | grep -c .)" -ne 1 ]; then echo "claude/ must pin one CLI version, found:"; echo "$pins"; exit 1; fi + pins=$(grep -rhoE '@simular-ai/box@[^ `"]*' claude claude-code | sort -u) + if [ "$(printf '%s\n' "$pins" | grep -c .)" -ne 1 ]; then echo "claude/ and claude-code/ must pin one CLI version, found:"; echo "$pins"; exit 1; fi v=${pins#@simular-ai/box@} if ! printf '%s' "$v" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then echo "pin an exact release, not $pins"; exit 1; fi if [ "$(npm view "@simular-ai/box@$v" version)" != "$v" ]; then echo "$pins is not on npm"; exit 1; fi - echo "claude/ pins $pins" + echo "claude/ and claude-code/ pin $pins" - name: DeepSeek Harness package run: npm pack ./dsh --dry-run - name: Hermes plugin diff --git a/README.md b/README.md index e948204..b01ab9c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ Most agents need no plugin: add the MCP server `https://mcp.box.simular.ai/mcp` | Agent | Folder | Sign-in | Install | | --- | --- | --- | --- | -| Claude Code and Cowork | [`claude/`](claude/) | OAuth, once in the browser | `/plugin marketplace add simular-ai/box-plugin`, then `/plugin install simular-box@simular-box` | +| Claude Code and Cowork | [`claude-code/`](claude-code/) | OAuth, once in the browser | `/plugin marketplace add simular-ai/box-plugin`, then `/plugin install simular-box@simular-box` | +| Claude plugin directory | [`claude/`](claude/) (the same plugin without offload and without the Chrome sign-in import tip) | OAuth, once in the browser | Listed by Anthropic after review | | DeepSeek Harness (dsh) | [`dsh/`](dsh/) | Personal key (`cb_...`), pasted on the plugin's page in Plugins | [dsh/README.md](dsh/README.md) | | OpenClaw | [`openclaw/`](openclaw/) | OAuth, once from the plugin's page in Settings | `openclaw plugins install @simular-ai/openclaw-box` | | Any of Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Hermes, OpenClaw, VS Code (and steps for Claude Desktop) | [`@simular-ai/box`](https://www.npmjs.com/package/@simular-ai/box) (the box CLI, from [simular-ai/box-cli](https://github.com/simular-ai/box-cli)) | OAuth; personal key with `--auth key` for Hermes and OpenClaw | `npx @simular-ai/box connect` (check with `npx @simular-ai/box doctor`) | @@ -15,9 +16,9 @@ Most agents need no plugin: add the MCP server `https://mcp.box.simular.ai/mcp` | OpenCode | [`opencode/`](opencode/) | OAuth, once in the browser (`opencode mcp auth box`) | Add `"plugin": ["@simular-ai/opencode-box"]` to `opencode.json` ([opencode/README.md](opencode/README.md)) | | Pi | [`pi/`](pi/) | OAuth, once in the browser (`/mcp login box`) | `pi install npm:@simular-ai/box-pi` ([pi/README.md](pi/README.md)) | | Grok Build | [`grok/`](grok/) | OAuth, once in the browser (`/mcps`, then `i`) | `/marketplace`, find **box**, press `i` ([grok/README.md](grok/README.md)) | -| CodeBuddy Code (Tencent) | [`claude/`](claude/) (CodeBuddy reads the Claude Code plugin and marketplace as they are) | OAuth, once in the browser (`/mcp`, pick `plugin:simular-box:box`, Authenticate) | `/plugin marketplace add simular-ai/box-plugin`, then pick **simular-box** and press `i`; `/reload-plugins` | -| ZCode (Zhipu) | [`claude/`](claude/) (ZCode reads the Claude Code plugin and marketplace as they are) | OAuth, once in the browser: after installing, Settings > Plugins > MCP > box > **Open authorization**, and allow within 5 minutes. Sending a task first does not ask you to sign in | Plugin Marketplace > Add > Add plugin marketplace, enter `simular-ai/box-plugin`, install `simular-box` (box by Simular) | -| WorkBuddy (Tencent) | [`claude/`](claude/) (WorkBuddy reads the Claude Code plugin and marketplace as they are, like CodeBuddy) | OAuth, once in the browser: Experts · Skills · Connectors > Connectors > **Custom connectors**, then **Connect** on box. Sending a task first does not ask you to sign in | Experts · Skills · Connectors > Skills > Plugins > **+**, enter `simular-ai/box-plugin`, then **Install** on simular-box | +| CodeBuddy Code (Tencent) | [`claude-code/`](claude-code/) (CodeBuddy reads the Claude Code plugin and marketplace as they are) | OAuth, once in the browser (`/mcp`, pick `plugin:simular-box:box`, Authenticate) | `/plugin marketplace add simular-ai/box-plugin`, then pick **simular-box** and press `i`; `/reload-plugins` | +| ZCode (Zhipu) | [`claude-code/`](claude-code/) (ZCode reads the Claude Code plugin and marketplace as they are) | OAuth, once in the browser: after installing, Settings > Plugins > MCP > box > **Open authorization**, and allow within 5 minutes. Sending a task first does not ask you to sign in | Plugin Marketplace > Add > Add plugin marketplace, enter `simular-ai/box-plugin`, install `simular-box` (box by Simular) | +| WorkBuddy (Tencent) | [`claude-code/`](claude-code/) (WorkBuddy reads the Claude Code plugin and marketplace as they are, like CodeBuddy) | OAuth, once in the browser: Experts · Skills · Connectors > Connectors > **Custom connectors**, then **Connect** on box. Sending a task first does not ask you to sign in | Experts · Skills · Connectors > Skills > Plugins > **+**, enter `simular-ai/box-plugin`, then **Install** on simular-box | | Cursor (Cursor Marketplace) | [`cursor/`](cursor/) | OAuth, once in the browser | Listed by Cursor after review; until then install from this repo ([cursor/README.md](cursor/README.md)) | | Gemini CLI (extension gallery) | [`gemini-extension.json`](gemini-extension.json) at the repo root, context in [`gemini/`](gemini/) | OAuth, once in the browser | `gemini extensions install https://github.com/simular-ai/box-plugin` | | Antigravity (App, CLI, IDE) | [`cursor/`](cursor/) (same folder as Cursor: [`.antigravity-plugin/plugin.json`](cursor/.antigravity-plugin/plugin.json) + [`mcp_config.json`](cursor/mcp_config.json)) | OAuth, once in the browser | `agy plugin install https://github.com/simular-ai/box-plugin/tree/main/cursor`; Antigravity Marketplace after Google's partner review | @@ -28,11 +29,11 @@ Going offline in the middle of a task? In Claude Code with the plugin, `/simular ## Adding an agent -Add a folder named after the agent with its own manifest, MCP config and, where the agent supports skills, a copy of `claude/skills/box/SKILL.md`. Point it at `https://mcp.box.simular.ai/mcp`. Use OAuth sign-in where the agent supports it; otherwise read a personal key from an environment variable or the agent's own credentials store, never from a file in the package. Add a row above. +Add a folder named after the agent with its own manifest, MCP config and, where the agent supports skills, a copy of `claude-code/skills/box/SKILL.md`. Point it at `https://mcp.box.simular.ai/mcp`. Use OAuth sign-in where the agent supports it; otherwise read a personal key from an environment variable or the agent's own credentials store, never from a file in the package. Add a row above. ## Releasing -- `claude/`: bump `version` in `claude/.claude-plugin/plugin.json`. Claude Code doesn't auto-update third-party marketplaces: users get it with `/plugin marketplace update simular-box` and `/plugin update simular-box@simular-box`, or with `npx @simular-ai/box connect`. +- `claude-code/` and `claude/`: bump `version` in both `.claude-plugin/plugin.json` files (`claude/` is the directory listing, `claude-code/` the marketplace). Claude Code doesn't auto-update third-party marketplaces: users get it with `/plugin marketplace update simular-box` and `/plugin update simular-box@simular-box`, or with `npx @simular-ai/box connect`. - `openclaw/`: bump `version` in `openclaw/package.json` and `openclaw/openclaw.plugin.json`, then `npm run build` and `clawhub package publish .` from `openclaw/`. - `cursor/`: bump `version` in `cursor/.cursor-plugin/plugin.json`. Cursor re-reads the repo after the first review; a new listing goes through cursor.com/marketplace/publish. - Antigravity: bump `version` in `cursor/.antigravity-plugin/plugin.json` too (keep it equal to the Cursor manifest), and run `agy plugin validate ./cursor` (one expected warning: `mcp.json` is Cursor's). A Marketplace listing goes through Google's partner intake form. @@ -42,5 +43,5 @@ Add a folder named after the agent with its own manifest, MCP config and, where - `hermes/`: bump `version` in `hermes/plugin.json`, merge, then open a PR to [NousResearch/hermes-agent](https://github.com/NousResearch/hermes-agent) that moves `sha:` (and `version:`) in `plugin-catalog/box.yaml` to the merge commit. Hermes installs only the pinned, reviewed commit. - `pi/`: bump `version` in `pi/package.json`, merge to main, then push a matching tag `pi-vX.Y.Z`. `release-pi.yml` publishes `@simular-ai/box-pi` to npm through trusted publishing, with provenance (the first version is published once by hand, see the workflow's header). pi.dev lists packages with the `pi-package` keyword on its own. - `grok/`: bump `version` in `grok/.grok-plugin/plugin.json`, then open a PR to [xai-org/plugin-marketplace](https://github.com/xai-org/plugin-marketplace) that moves the `box` entry's `sha` to the new commit and regenerates its index. -- The Claude plugin's CLI pin: since 1.0.0, `@simular-ai/box` on npm is the Rust CLI released from [simular-ai/box-cli](https://github.com/simular-ai/box-cli). To move the plugin to a new CLI release, change the exact pin `npx -y @simular-ai/box@X.Y.Z` in `claude/skills/box-offload/SKILL.md` and bump `version` in `claude/.claude-plugin/plugin.json` in one PR (CI fails unless every pin under `claude/` names the same exact version and that version is on npm; never a range, because the Claude directory review requires that what runs is what it read). +- The Claude plugin's CLI pin: since 1.0.0, `@simular-ai/box` on npm is the Rust CLI released from [simular-ai/box-cli](https://github.com/simular-ai/box-cli). To move the plugin to a new CLI release, change the exact pin `npx -y @simular-ai/box@X.Y.Z` in every `npx -y` command under `claude-code/` and `claude/` and bump both `plugin.json` versions in one PR (CI fails unless every pin under both folders names the same exact version and that version is on npm; never a range, because the Claude directory review requires that what runs is what it read). - The box CLI (`@simular-ai/box` on npm) is released from simular-ai/box-cli, not from here. `e2e/` tests the pinned version against each real client (versions in `e2e/clients.json`); see `.github/workflows/ci.yml`. diff --git a/claude-code/.claude-plugin/icon.png b/claude-code/.claude-plugin/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..d10feb0ae8ce797b480a830a06c9724e8bb06b20 GIT binary patch literal 15973 zcmeIZXIN8P^C-STm7<7>h*ZS}2uM*n#A88^2q+?`ghUWfQ4r}hQI3j~V4+EoC@M+| zy+h#8lon8WXaf2RH zq-gnl#4P{35L(v4BsU5G{}kP6%q0(@$dNLk<7+;m1#uf+y8>vF?}B`dQ|Yk;z7&qy zv3l*r0SV@ZS|gfS@*v{TwMTGmJ$4^-+2tQ~msn0k{-;7GpEa-=@2V?R zNbv#PKQM;wc4DIqLa%I}6>M8gIu&qFa(+n&08(niu?N$OH%X-%eJ>xbg$B`5Q@l0q z9RvrK(zUl)N;4a0pFHsJo@?vUW>B}l@tu*$t4WszvuFL-^vWP|;`N%olh--Wsx+bX zgWPX1izZO;G9ibySRLK+>j0S7;xqstQ~WV{KLHvGJa)gk zF545y>MA(<>Jj5KoBJ)UTm-3y7)djW`;v>;tNnf_yY0CFKsy|-Vvq3tDF_!b>~JOP z;3yvlIy!aYbChBH@oe`|cK0mbjqOl&7!t9N+<1g-wU}tx8?R(~oN~Hg2Pkg)=q`cv zARnP!XgECPg1ow>{ukc2+dumrJNHBI#N!NE;P$d%T=StOJ-*8)m;D!{HF~i#YLdP6 zj32%2uDW0gHy1%Evy>Qkc7H%puOFuSH^LX*(mbCc7UVVXUVe)2P$W3^JXV%>m~znt%Y zI0S9&E*}bC{2`dkeg7cHJ&&oYm<_0BhUVTm3et3f$M*Q+wU$+XlCk?Mk3>sg~Am9s3@10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xk%0xw^n+&wtsdhw|k?PJo=?!^$@U U8yUtm2m$BM7@yAg1NZoU0fN}iGXMYp literal 0 HcmV?d00001 diff --git a/claude-code/.claude-plugin/plugin.json b/claude-code/.claude-plugin/plugin.json new file mode 100644 index 0000000..afbf71b --- /dev/null +++ b/claude-code/.claude-plugin/plugin.json @@ -0,0 +1,18 @@ +{ + "name": "simular-box", + "displayName": "box by Simular", + "version": "0.3.6", + "description": "Give Claude a computer of its own: a cloud Linux desktop with Chrome and a shell that it drives over MCP, while your own computer stays free. You sign in once in the browser; no key to paste.", + "author": { + "name": "Simular", + "url": "https://simular.ai" + }, + "homepage": "https://box.simular.ai", + "repository": "https://github.com/simular-ai/box-plugin", + "license": "MIT", + "privacyPolicyUrl": "https://www.simular.ai/privacy-policy", + "termsOfServiceUrl": "https://www.simular.ai/terms-of-use", + "supportUrl": "https://www.simular.ai/support", + "documentationUrl": "https://box.simular.ai/docs", + "keywords": ["computer-use", "browser-automation", "desktop-automation", "cloud-computer", "mcp"] +} diff --git a/claude-code/.mcp.json b/claude-code/.mcp.json new file mode 100644 index 0000000..25bd95c --- /dev/null +++ b/claude-code/.mcp.json @@ -0,0 +1,8 @@ +{ + "mcpServers": { + "box": { + "type": "http", + "url": "https://mcp.box.simular.ai/mcp" + } + } +} diff --git a/claude-code/README.md b/claude-code/README.md new file mode 100644 index 0000000..c8fe0b3 --- /dev/null +++ b/claude-code/README.md @@ -0,0 +1,83 @@ +# box by Simular: plugins + +[box](https://box.simular.ai) gives your AI agent a computer of its own: a cloud Linux desktop with Chrome and a shell that it drives over MCP, while your own computer stays free. You can watch it live and take over at https://box.simular.ai/box. + +Most agents need no plugin: add the MCP server `https://mcp.box.simular.ai/mcp` and sign in once (see https://box.simular.ai/install). The [simular-ai/box-plugin](https://github.com/simular-ai/box-plugin) repository holds a package for each agent that installs box its own way. Each folder stands alone and is released through that agent's channel. This folder is the Claude Code and Cowork plugin in this repository's marketplace. The plugin listed in the Claude plugin directory is [`claude/`](https://github.com/simular-ai/box-plugin/tree/main/claude), the same without offload. + +| Agent | Folder | Sign-in | Install | +| --- | --- | --- | --- | +| Claude Code and Cowork | [`claude-code/`](https://github.com/simular-ai/box-plugin/tree/main/claude-code) | OAuth, once in the browser | `/plugin marketplace add simular-ai/box-plugin`, then `/plugin install simular-box@simular-box` | +| DeepSeek Harness (dsh) | [`dsh/`](https://github.com/simular-ai/box-plugin/tree/main/dsh) | Personal key (`cb_...`), pasted on the plugin's page in Plugins | [dsh/README.md](https://github.com/simular-ai/box-plugin/blob/main/dsh/README.md) | +| OpenClaw | [`openclaw/`](https://github.com/simular-ai/box-plugin/tree/main/openclaw) | OAuth, once from the plugin's page in Settings | `openclaw plugins install @simular-ai/openclaw-box` | +| Any of Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Hermes, OpenClaw, VS Code (and steps for Claude Desktop) | [`@simular-ai/box`](https://www.npmjs.com/package/@simular-ai/box) (the box CLI, from [simular-ai/box-cli](https://github.com/simular-ai/box-cli)) | OAuth; personal key with `--auth key` for Hermes and OpenClaw | `npx @simular-ai/box connect` (check with `npx @simular-ai/box doctor`) | +| Hermes Agent | [`hermes/`](https://github.com/simular-ai/box-plugin/tree/main/hermes) | Personal key (`cb_...`) in `MCP_BOX_API_KEY`; OAuth optional | [hermes/README.md](https://github.com/simular-ai/box-plugin/blob/main/hermes/README.md) | +| ChatGPT and Codex (OpenAI plugin directory) | [`openai/`](https://github.com/simular-ai/box-plugin/tree/main/openai) | OAuth, once in the browser | Listed by OpenAI after review; build the upload with `openai/build-zip.sh` ([openai/README.md](https://github.com/simular-ai/box-plugin/blob/main/openai/README.md)) | + +## What this plugin contains + +- **The box MCP server** (`.mcp.json`): `https://mcp.box.simular.ai/mcp`, over HTTP. You sign in once with OAuth in the browser (`/mcp`, pick `plugin:simular-box:box`, Authenticate); there is no key to paste, and the plugin stores none. +- **The `box` skill** (`skills/box/SKILL.md`): when to use the box tools and which one fits. +- **Offload and back** (`commands/offload.md`, `commands/back.md`, `skills/box-offload/SKILL.md`): `/simular-box:offload` and `/simular-box:back`, below. They and moving files (below) are the only parts of the plugin that run a program on your computer. +- **Moving files** (in `skills/box/SKILL.md`): when you ask Claude to bring a file home from your box or send one to it, Claude runs the same pinned CLI (`npx -y @simular-ai/box@1.2.2 exec` or `rsh`, with `rsync` for folders) in your terminal. It goes only to your own box, over box's API, signed in as you. + +## Offload: move a coding task into your box and back + +Going offline in the middle of a task? In Claude Code with the plugin, `/simular-box:offload` hands the task to a fresh Claude Code (or Codex) session in your box, which keeps working while you are away; `/simular-box:back` brings its commits and its written hand-over home and merges them. Any other agent or a plain terminal uses `npx @simular-ai/box@1.2.2 offload` and `npx @simular-ai/box@1.2.2 back`. Setup and details: [the CLI's README](https://www.npmjs.com/package/@simular-ai/box). + +Offload sends nothing until you run `/simular-box:offload` yourself; moving files sends only what you ask Claude to send. + +### What `/simular-box:offload` runs + +- **One npx package, pinned to an exact version:** `npx -y @simular-ai/box@1.2.2`, the `simular-box` CLI, built and released by Simular from [simular-ai/box-cli](https://github.com/simular-ai/box-cli) and published to npm as [`@simular-ai/box`](https://www.npmjs.com/package/@simular-ai/box). The pin is exact, never a range, so what runs is the version this plugin was reviewed with. +- **Claude's steps** (from `skills/box-offload/SKILL.md`): + 1. Write a hand-over to the file `npx -y @simular-ai/box@1.2.2 offload handover-path` prints, from a fixed template: goal, decisions, files touched, next steps, commands. Secrets go in by name only, never by value. + 2. Run `npx -y @simular-ai/box@1.2.2 offload --kind claude` in your repo. The CLI does every step that follows; the skill tells Claude never to copy files or secrets itself. +- **Checks before anything is sent.** The CLI stops, and sends nothing, when the folder is not a git repo, `rsync` is missing, this repo already has an offload in progress, the box's image is too old, or the task needs macOS. It warns, and goes on only after you say yes, when you have untracked files, a `.env` file stays behind, the hand-over names secrets you have not opted in, the code reads environment variables set here but not in the box, the repo uses Git LFS or submodules, it calls local services or VPN-only hosts, or the copy is over 500 MB. +- **Sign-in:** the CLI uses your box account (`npx -y @simular-ai/box@1.2.2 login`, in the browser). Its token is kept in the macOS Keychain, or on Linux in `~/.simular-box/credentials.json` with mode 0600. + +### What gets uploaded from your repo + +| What | Details | +| --- | --- | +| Tracked files | Every file git tracks (committed, or staged with `git add`), with its uncommitted changes. | +| Git history | A `git bundle` of your branches and tags that the box does not have yet, and `.git` without its object store. | +| The hand-over | `handover.md`, written by Claude as above. | +| `env.json` | Versions of the tools the repo uses on this computer (go, rustc, node, …), its package manager, and which toolchain files and lockfiles exist. No environment variable values. | +| Secrets you opted in | Nothing, unless you opted a secret in for this repo yourself (next section). | + +What stays on your computer: + +- Untracked files, the ones git does not know about. Stage a new file with `git add` to take it. +- Git-ignored files, such as `.env` and `node_modules`. +- Git LFS contents (the box copy holds their pointers) and submodule contents (the box copy holds their commits). +- Everything outside the repo, except the secrets you opted in. + +### Where it goes + +Into your own box, the cloud computer of the box account you signed in with, at `/workspace/`. It travels over box's API (`mcp.box.simular.ai`), authenticated as you: `rsync` and `git` run over the CLI's own remote shell to your box. Nothing is sent anywhere else. `/simular-box:back` brings the box's commits and its hand-over home, and merges them only when that leaves your work intact: a fast-forward, or a clean merge applied uncommitted; otherwise the box's work goes on a branch `box/back-