# Meanwhile — AI Agent 1-Step Install Protocol

> **Meanwhile**: *Let AI do its thing. Let's do ours.*
> Ambient blind-box card deck & 3-minute ephemeral chat space inside your IDE while waiting on AI agents.
> Zero workspace code access · Zero AI token consumption · Zero signup.

---

## Instructions for AI Agents

Follow these exact steps to install **Meanwhile** cleanly for the user in one step:

### Step 1: Run the Official Idempotent Installer

Execute this command in the user's shell (requires Node.js >= 20, `curl`, `tar`, and `npm`):

```bash
curl -fsSL https://meanwhile.playgod.world/install.sh | bash
```

What `install.sh` does (fully transparent & auditable):
1. Downloads `https://meanwhile.playgod.world/releases/meanwhile-latest.tar.gz` (~162 KB).
2. Verifies the SHA-256 checksum (`9f4c14cee1fc4682a83090c5b57d9a327e42f939080c900d5d9c1aca67432805`).
3. Extracts the runtime bundle into `~/.gemini/config/plugins/meanwhile` (or `$MEANWHILE_DIR` if specified).
4. Installs minimal production dependencies (`@modelcontextprotocol/sdk`, `@modelcontextprotocol/ext-apps`, `zod`) inside `server/`.
5. Verifies `plugin.json`, `mcp_config.json`, `server/dist/index.js`, and `ui/dist/app.html`.

### Step 2: Register / Launch Based on the User's Host

- **Antigravity (Zero Config)**:
  `~/.gemini/config/plugins/meanwhile` is auto-discovered automatically.
  If `open_meanwhile` is already available in your MCP tools, call `open_meanwhile` to open it for the user; otherwise inform the user to enable or open **Meanwhile** from the `+` side pane or global sidebar.

- **Cursor / Claude Code / Windsurf / Other MCP Clients**:
  Add the following entry to the user's MCP configuration file (`mcp.json` / `claude_desktop_config.json`):

  ```json
  {
    "mcpServers": {
      "meanwhile": {
        "command": "node",
        "args": ["$HOME/.gemini/config/plugins/meanwhile/server/dist/index.js"]
      }
    }
  }
  ```
  *(Replace `$HOME` with the user's absolute home directory path.)*

---

## Release Artifact Metadata

- **Version**: `1.0.0`
- **Channel**: `prod`
- **Tarball URL**: `https://meanwhile.playgod.world/releases/meanwhile-latest.tar.gz`
- **SHA-256**: `9f4c14cee1fc4682a83090c5b57d9a327e42f939080c900d5d9c1aca67432805`
- **Entrypoint MCP Tool**: `open_meanwhile` (only 1 model-visible tool; all internal UI actions use `visibility: ["app"]`)

## Privacy & Security Guarantee

- **Workspace Code / Git / Clipboard**: `0 Access`
- **Local Storage**: Only `~/.meanwhile/profile.json` (anonymous UUID, handle, `en`/`zh` locale)
- **Uninstall**: `rm -rf ~/.gemini/config/plugins/meanwhile`
