Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

docs: add documentation for background tasks, workers, and Docker deployment guidelines

Salman Qureshib8eb5437958e
diff --git a/website/docs/daemon-mode/background-mode.mdx b/website/docs/daemon-mode/background-mode.mdx
index 76973f0f..d58456db 100644
--- a/website/docs/daemon-mode/background-mode.mdx
+++ b/website/docs/daemon-mode/background-mode.mdx
@@ -63,4 +63,22 @@ Shows whether the daemon is running, its PID, and the log file path.
:::info Crash recovery
Background mode includes a watchdog. If Mercury crashes, it restarts automatically with exponential backoff (1s, 1.25s, 1.56s...). After 10 crashes within 60 seconds, it exits to prevent crash loops. Stale PID files are auto-cleaned on startup to prevent "already running" false positives.
-:::
\ No newline at end of file
+:::
+
+## Background Tasks and Workers
+
+Daemon mode supports async background execution for both shell commands and delegated sub-agent work.
+
+### Shell background tasks
+
+- Start with `/bg <command>`
+- Inspect with `/bg list` and `/bg <id>`
+- Cancel with `/bg cancel <id>`
+
+### Sub-agent workers
+
+- Delegate coding with `/code agent <task>` or `/bg: <task>`
+- Move active task to worker with `/bg current`
+- Worker progress/completion is surfaced in the shared background task board (`/bg list`)
+
+These workers are designed to keep Mercury responsive while long-running work continues.
diff --git a/website/docs/daemon-mode/platform-guide.mdx b/website/docs/daemon-mode/platform-guide.mdx
index 99027da4..5116daef 100644
--- a/website/docs/daemon-mode/platform-guide.mdx
+++ b/website/docs/daemon-mode/platform-guide.mdx
@@ -61,4 +61,15 @@ schtasks /delete /tn "MercuryAgent" /f
```
</TabItem>
-</Tabs>
\ No newline at end of file
+</Tabs>
+
+## Docker Status
+
+Mercury does not currently ship first-party Docker assets in this repository (no `Dockerfile` or `docker-compose.yml` by default).
+
+If you run Mercury in a container, treat it as an advanced/custom deployment:
+
+- Prefer foreground mode (`mercury start --foreground`) inside the container
+- Let the container runtime handle restart policy
+- Mount `~/.mercury` as persistent storage
+- Validate terminal/TTY behavior separately for interactive CLI usage