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 coding-workspace integration page, CLI/bg commands, and platform diagnostics

Salman Qureshie75804c10490
diff --git a/website/docs/cli-commands/commands.mdx b/website/docs/cli-commands/commands.mdx
index 3c16d893..a7d33f3e 100644
--- a/website/docs/cli-commands/commands.mdx
+++ b/website/docs/cli-commands/commands.mdx
@@ -14,9 +14,10 @@ title: Full Command Reference
| `mercury logs` | Show last 100 lines of daemon logs |
| `mercury status` | Show config, providers, daemon PID, and budget |
| `mercury doctor` | Reconfigure settings — press Enter to keep current values |
+| `mercury doctor --platform` | Show cross-platform terminal/daemon compatibility diagnostics |
| `mercury setup` | Re-run the setup wizard (same as doctor) |
| `mercury help` | Show the full manual (tools, commands, config paths) |
| `mercury service install` | Install as system service (auto-start on boot) |
| `mercury service uninstall` | Uninstall the system service |
| `mercury service status` | Show system service status |
-| `mercury --verbose` | Start with debug logging on stderr |
\ No newline at end of file
+| `mercury --verbose` | Start with debug logging on stderr |
diff --git a/website/docs/cli-commands/in-chat-commands.mdx b/website/docs/cli-commands/in-chat-commands.mdx
index ff7c45f2..f445fb73 100644
--- a/website/docs/cli-commands/in-chat-commands.mdx
+++ b/website/docs/cli-commands/in-chat-commands.mdx
@@ -33,6 +33,13 @@ Type these during a conversation with Mercury. Most work in both CLI and Telegra
| `/view detailed` | Set full progress view |
| `/code agent <task>` | Delegate a coding task to a sub-agent in the background |
| `/ws exit` | Exit workspace IDE mode back to general chat |
+| `/bg <command>` | Run a shell command in the background |
+| `/bg: <task>` | Run a natural-language sub-agent task in background |
+| `/bg current` | Move the current in-flight task to background |
+| `/bg list` | Show background tasks |
+| `/bg <id>` | Show details/output for one background task |
+| `/bg cancel <id>` | Cancel a running background task |
+| `/bg clear` | Prune completed background tasks |
| `/tasks` | List scheduled tasks |
| `/memory` | View and manage second brain memory |
| `/unpair` | Telegram only: reset all access, new users can /start again |
diff --git a/website/docs/getting-started/starting.mdx b/website/docs/getting-started/starting.mdx
index 4d1340e9..6a0b3d0a 100644
--- a/website/docs/getting-started/starting.mdx
+++ b/website/docs/getting-started/starting.mdx
@@ -27,7 +27,7 @@ Starts Mercury as a background daemon by default. Telegram becomes your primary
mercury start --foreground
```
-Runs Mercury attached to your terminal with a readline prompt. Press `Ctrl+C` to exit. All conversation happens in your terminal with real-time text streaming and markdown rendering. Shorthand: `mercury start -f`.
+Runs Mercury attached to your terminal with the Ink TUI interface. Press `Ctrl+C` to exit. The CLI supports chat, coding workspace mode, progress views, and interactive permission prompts. Shorthand: `mercury start -f`.
When running in background mode, you can stop it with:
@@ -41,4 +41,4 @@ Add `--verbose` to any start command to see debug logs on stderr:
```bash
mercury start --verbose
-```
\ No newline at end of file
+```
diff --git a/website/docs/integrations/coding-workspace.mdx b/website/docs/integrations/coding-workspace.mdx
new file mode 100644
index 00000000..71cabbc6
--- /dev/null
+++ b/website/docs/integrations/coding-workspace.mdx
@@ -0,0 +1,55 @@
+---
+id: coding-workspace
+title: Coding Workspace (IDE Mode)
+---
+
+Mercury includes a CLI IDE-style workspace mode for repository-focused coding.
+
+## Enter Workspace Mode
+
+You can enter workspace mode in multiple ways:
+
+- `/code` and choose workspace
+- `/code workspace`
+- `/ws open <path>`
+
+Once active, Mercury switches to coding context for that repository.
+
+## Modes
+
+Use programming modes to control behavior:
+
+- `/code plan` — analysis/planning first, minimal code changes
+- `/code execute` — implementation mode
+- `/code off` — return to normal conversation behavior
+
+### Keyboard shortcuts (CLI)
+
+- `Ctrl+P` → Plan mode
+- `Ctrl+X` → Execute mode
+- `Esc` or `Ctrl+Q` → Exit workspace back to chat
+- `Ctrl+E` → Explorer pane
+- `Ctrl+G` → Git pane
+
+## Workspace Commands
+
+| Command | Description |
+|---------|-------------|
+| `/ws open <path>` | Open a directory in workspace mode |
+| `/ws refresh` | Refresh file tree + git status |
+| `/ws stage <file\|all>` | Stage one file or all changes |
+| `/ws commit <message>` | Commit staged changes |
+| `/ws undo <file>` | Revert file changes |
+| `/ws exit` | Exit workspace mode back to general chat |
+
+## Sub-Agents + Background in Coding
+
+Workspace mode supports explicit delegation and backgrounding:
+
+- `/code agent <task>` — delegate coding work to a sub-agent
+- `/bg current` — move active in-flight work to background
+- `/bg list` — inspect all background tasks (shell + sub-agent)
+- `/bg <id>` — view task details/output
+- `/bg cancel <id>` — cancel running background work
+
+This lets you continue coding/chatting while long operations run asynchronously.
diff --git a/website/sidebars.ts b/website/sidebars.ts
index 28314f79..91129b98 100644
--- a/website/sidebars.ts
+++ b/website/sidebars.ts
@@ -33,6 +33,7 @@ const sidebars: SidebarsConfig = {
'integrations/github-companion',
'integrations/telegram',
'integrations/spotify',
+ 'integrations/coding-workspace',
'integrations/sub-agents',
],
},
@@ -53,4 +54,4 @@ const sidebars: SidebarsConfig = {
],
};
-export default sidebars;
\ No newline at end of file
+export default sidebars;