:7227`:
`proxy_set_header X-Forwarded-Proto $scheme;`.
- Pass `/ws` through as well as ordinary requests, including the upgrade.
- Keep the address the browser used in `Host` (or send it as
- `X-Forwarded-Host`). Live updates and the computers' terminals only accept
- a websocket from the app's own address; Caddy and Cloudflare Tunnel keep
- it, and nginx needs `proxy_set_header Host $host;`.
-- Give the proxy a real certificate. Browsers treat plain HTTP as unsafe, so
- the installable app, offline support, Web Push notifications and voice
- recording stay off until the address is HTTPS.
+ `X-Forwarded-Host`). Live updates and the computers' terminals only accept a
+ websocket from the app's own address; Caddy and Cloudflare Tunnel keep it, and
+ nginx needs `proxy_set_header Host $host;`.
+- Give the proxy a real certificate. Browsers treat plain HTTP as unsafe, so the
+ installable app, offline support, Web Push notifications and voice recording
+ stay off until the address is HTTPS.
Nothing on the machine needs a certificate installed: the browser only ever
talks to the proxy. See the Help page in the app for the common proxy fixes.
## Update and uninstall
-The same script is the updater. It keeps the database, media, computers'
-home directories and generated secrets, backs up the database before
-replacing the container, and does nothing when the image has not changed.
+The same script is the updater. It keeps the database, media, computers' home
+directories and generated secrets, backs up the database before replacing the
+container, and does nothing when the image has not changed.
```bash
curl -fsSL https://url.moduletrace.com/cobble | sudo bash
@@ -157,54 +220,24 @@ curl -fsSL https://url.moduletrace.com/cobble | sudo bash -s -- --uninstall --pu
### Options
-| Option | Meaning |
-| --------------------- | ---------------------------------------------------------- |
-| `--home DIR` | Install directory, default `/opt/cobble` |
-| `--data-dir DIR` | Data directory mounted at `/data`, default `HOME/data` |
-| `--port PORT` | Host port, default `7227` |
-| `--bind ADDRESS` | Host address to publish on, default `0.0.0.0` |
-| `--cpus N` | CPU cores for the app container, default `1` |
-| `--memory MB` | Memory for the app container in MB, default `2048` |
-| `--image IMAGE` | Container image, default `ghcr.io/moduletrace/cobble` |
-| `--version TAG` | Image tag, default `latest` |
+| Option | Meaning |
+| --- | --- |
+| `--home DIR` | Install directory, default `/opt/cobble` |
+| `--data-dir DIR` | Data directory mounted at `/data`, default `HOME/data` |
+| `--port PORT` | Host port, default `7227` |
+| `--bind ADDRESS` | Host address to publish on, default `0.0.0.0` |
+| `--cpus N` | CPU cores for the app container, default `1` |
+| `--memory MB` | Memory for the app container in MB, default `2048` |
+| `--image IMAGE` | Container image, default `ghcr.io/moduletrace/cobble` |
+| `--version TAG` | Image tag, default `latest` |
| `--extra-network NET` | Join another Docker network, for a tunnel or reverse proxy |
-| `--force` | Recreate the container even when it is current |
-| `--no-pull` | Use an image that is already on the machine |
-| `--skip-backup` | Update without a database backup |
-| `--no-docker-install` | Fail instead of installing Docker |
-| `--yes`, `-y` | Accept the defaults without asking |
-| `--uninstall` | Stop and remove the app container |
-| `--purge` | With `--uninstall`, also delete the data directory |
-
-## How it fits together
-
-```
-You ── chat ── Coordinator ── delegates ── Workers
- │ │
- ├── Workspaces ────────────┤
- │ context, memory, bots │
- ├── Routines ──────────────┤
- │ cron schedules │
- └── Computers ─────────────┘
- docker sandboxes:
- real Chrome, shell
-```
-
-- **Coordinator** is yours alone. It plans, delegates to workers, and keeps
- the crew in order. It is the only bot that reaches every worker.
-- **Workers** are the crew. Each has a job, its own instructions and memory,
- and its own models if you want to tune cost per bot.
-- **Workspaces** group bots around a subject. Models, instructions, memory
- and the default computer resolve per workspace before per bot.
-- **Routines** are cron schedules that queue a task without you asking.
-- **Computers** are per-install Docker containers of Cobble's own image
- (`computer/`: Debian 13, Google Chrome on a virtual screen, Playwright MCP
- and a shell). Bots drive the browser and the shell, and you can watch the
- same browser live in the chat and take over.
-
-Each conversation is split into sessions, so a long-running bot does not grow
-one endless thread: the bot names a session, summarizes it, and carries the
-summary into the next one.
+| `--force` | Recreate the container even when it is current |
+| `--no-pull` | Use an image that is already on the machine |
+| `--skip-backup` | Update without a database backup |
+| `--no-docker-install` | Fail instead of installing Docker |
+| `--yes`, `-y` | Accept the defaults without asking |
+| `--uninstall` | Stop and remove the app container |
+| `--purge` | With `--uninstall`, also delete the data directory |
## Data and settings
@@ -227,38 +260,37 @@ Everything that must survive an update lives under the install directory:
`.env` holds the port and the encryption keys. The keys encrypt sessions and
settings, so keep a copy and do not rotate them without re-entering provider
-keys and other secrets. Provider keys, MCP servers, tools and app settings
-are managed in the app, not in `.env`.
+keys and other secrets. Provider keys, MCP servers, tools and app settings are
+managed in the app, not in `.env`.
-Edit `.env` and run `docker restart cobble` to apply changes. The installer
-only appends missing values and keeps what is already there, apart from the
-port it manages.
+Edit `.env` and run `docker restart cobble` to apply changes. The installer only
+appends missing values and keeps what is already there, apart from the port it
+manages.
Settings > Backups makes two kinds of copy. Database snapshots (bun-sqlite's
-`backup` command) stay in `data/db/.backups` and can be restored from the
-app. Whole-data archives are a `tar.gz` of the entire `data/` directory,
-written to `backups-archives/` (mounted at `/backups-archives`, the
-`BACKUP_ARCHIVE_DIR` setting); every entry sits under one folder named after
-the archive, so extracting one by hand drops a single folder. Each group
-can create a copy, restore from one (a listed row, or a file uploaded from
-the button beside Create), download it and delete it; the newest five
-archives are kept.
+`backup` command) stay in `data/db/.backups` and can be restored from the app.
+Whole-data archives are a `tar.gz` of the entire `data/` directory, written to
+`backups-archives/` (mounted at `/backups-archives`, the `BACKUP_ARCHIVE_DIR`
+setting); every entry sits under one folder named after the archive, so
+extracting one by hand drops a single folder. Each group can create a copy,
+restore from one (a listed row, or a file uploaded from the button beside
+Create), download it and delete it; the newest five archives are kept.
The app container is started with the Docker socket mounted and
-`MAIN_SERVER=1`, so it can create computer containers and run cron, the
-queue and Web Push.
+`MAIN_SERVER=1`, so it can create computer containers and run cron, the queue
+and Web Push.
## Images
-Every release publishes a multi-arch image to
-`ghcr.io/moduletrace/cobble`, which is what the installer pulls. Tags are
-`latest`, the release version, `major.minor` and the commit sha.
+Every release publishes a multi-arch image to `ghcr.io/moduletrace/cobble`,
+which is what the installer pulls. Tags are `latest`, the release version,
+`major.minor` and the commit sha.
The same image is copied into `git.tben.me/moduletrace/cobble` by
`bun run mirror:gitea`, which runs after the build over the VPN (the Gitea
registry is not on the public internet, so GitHub Actions cannot reach it).
-Install from Gitea with `--image git.tben.me/moduletrace/cobble`, or build
-from source with `docker build -t cobble:local .` and
+Install from Gitea with `--image git.tben.me/moduletrace/cobble`, or build from
+source with `docker build -t cobble:local .` and
`--image cobble --version local --no-pull`.
A release is published from a clean `main` with the two scripts, which tag the
@@ -291,32 +323,31 @@ Open `http://localhost:7227`. With no users, every page goes to
SEED_SUPER_ADMIN_PASSWORD=... bun run seed
```
-The development server serves plain HTTP, the same as the container. To try
-the app from a phone, run a proxy or tunnel in front of it (see
-[HTTPS](#https)); the installed app, Web Push and voice need that secure
-context.
+The development server serves plain HTTP, the same as the container. To try the
+app from a phone, run a proxy or tunnel in front of it (see [HTTPS](#https)); the
+installed app, Web Push and voice need that secure context.
-| Command | Purpose |
-| ---------------------- | ----------------------------------- |
-| `bun run dev` | Development server |
-| `bun run start` | Production server on the host |
-| `bun run typecheck` | Type-check |
-| `bun run test` | Run the test suite |
-| `bun run check:bundle` | Bundle budget after a build |
-| `bun run seed` | Create the super admin from the CLI |
-| `bun run seed:bots` | Add a sample crew |
-| `bun run db:schema` | Sync the schema and types |
-| `bun run gen:favicon` | Regenerate favicons and PWA assets |
+| Command | Purpose |
+| --- | --- |
+| `bun run dev` | Development server |
+| `bun run start` | Production server on the host |
+| `bun run typecheck` | Type-check |
+| `bun run test` | Run the test suite |
+| `bun run check:bundle` | Bundle budget after a build |
+| `bun run seed` | Create the super admin from the CLI |
+| `bun run seed:bots` | Add a sample crew |
+| `bun run db:schema` | Sync the schema and types |
+| `bun run gen:favicon` | Regenerate favicons and PWA assets |
Plain Node does not work: the app runs on Bun. The stack is Bun,
-[`@moduletrace/bunext`](https://github.com/Moduletrace/bunext) for
-filesystem routing, SQLite via
-[`@moduletrace/bun-sqlite`](https://github.com/Moduletrace/bun-sqlite),
-Tailwind CSS and the `@moduletrace/twui` component library. The model layer is
-one adapter over OpenAI-compatible APIs, so any compatible provider works.
+[`@moduletrace/bunext`](https://github.com/Moduletrace/bunext) for filesystem
+routing, SQLite via
+[`@moduletrace/bun-sqlite`](https://github.com/Moduletrace/bun-sqlite), Tailwind
+CSS and the `@moduletrace/twui` component library. The model layer is one
+adapter over OpenAI-compatible APIs, so any compatible provider works.
-See [AGENTS.md](AGENTS.md) for the full architecture, routes, queue, harness
-and data model. CI runs type-check and tests on every push and pull request;
+See [AGENTS.md](AGENTS.md) for the full architecture, routes, queue, harness and
+data model. CI runs type-check and tests on every push and pull request;
releases are built by GitHub Actions and pushed to both registries. See
[RELEASING.md](RELEASING.md) for the release and launch checklist.
@@ -325,9 +356,24 @@ releases are built by GitHub Actions and pushed to both registries. See
Issues and pull requests are welcome, in English, on either
[GitHub](https://github.com/Moduletrace/cobble) or
[Gitea](https://git.tben.me/Moduletrace/cobble). Run `bun run typecheck` and
-`bun run test` before opening a pull request, and read
-[AGENTS.md](AGENTS.md) first: it documents the conventions the code follows.
+`bun run test` before opening a pull request, and read [AGENTS.md](AGENTS.md)
+first: it documents the conventions the code follows.
+
+Good first contributions right now: a worker role that ships as a one-click
+template, an MCP server integration that other people would install, a missing
+proxy recipe for the Help page, or a test around a bug you hit while installing.
## License
MIT. See [LICENSE](LICENSE).
+
+---
+
+
+
+**If Cobble saves you from stitching three tools together, star the repo.**
+It is the fastest way to help other people find it.
+
+[](https://github.com/Moduletrace/cobble/stargazers)
+
+
diff --git a/docs/readme/DEMO.md b/docs/readme/DEMO.md
new file mode 100644
index 00000000..96960d67
--- /dev/null
+++ b/docs/readme/DEMO.md
@@ -0,0 +1,35 @@
+# Demo GIF
+
+The demo recording is a placeholder. `README.md` carries the image line commented
+out, pointing at `docs/readme/demo.gif`, which does not exist yet.
+
+## To go live
+
+1. Record the loop below and save it as `docs/readme/demo.gif`, under 8 MB
+ (GitHub renders anything bigger badly, and the point is that it plays
+ instantly on the repo page).
+2. Uncomment the image line near the top of `README.md`.
+
+## Shot list
+
+Target 12 to 18 seconds, 960px wide, loop, no audio.
+
+1. **0.0s** The rail. Coordinator at top, four workers below with different
+ faces. Mouse hovers one, its status line reads "working".
+2. **2.5s** Cut to the chat. You type: "Check whether the staging site still
+ returns 200 and open a PR if the footer link is broken." Send.
+3. **4.5s** The coordinator delegates. Two worker faces go to "working" in the
+ rail at the same time.
+4. **6.5s** Cut to the live computer view. Chrome is open, the bot is scrolling
+ the staging site. The cursor moves on its own. Terminal panel beside it shows
+ curl output.
+5. **10.0s** The bot hits a login wall. Face flips to "needs you". Card appears
+ asking to take over. You click, type the password, hand it back.
+6. **12.5s** The bot finishes. PR link appears in chat. Worker faces go to
+ "done".
+7. **15.0s** Pull back to the rail. Whole crew idle, everything green, one line
+ of summary text.
+
+That sequence is the entire product in one loop: delegate, parallel work, a real
+browser, a human handoff, a shipped artifact. Do not replace it with a
+screenshot carousel.
\ No newline at end of file