Remote control: CLI and MCP
Remote control lets programs work in Doghoodie tabs that you can watch: run a command and get its exit status, type text and keys, read the screen, wait for output, and open SSH connections. It needs Pro.
Turn it on
Turn on Doghoodie > Remote Control > Allow Control Socket, or Allow control socket on the Remote Control page of Settings. That page also shows:
- the path of the
doghoodietool inside the app - the list of
doghoodiecommands and MCP tools - Session windows: where
run --sessionopens a new session tab (One window per project, One window per session name or A new window for each session) - the lines for manual SSH shell integration
The doghoodie tool
The tool is inside the app at Doghoodie.app/Contents/Helpers/doghoodie. To call it by name, add that folder to your PATH, for example in ~/.zshrc:
export PATH="/Applications/Doghoodie.app/Contents/Helpers:$PATH"
doghoodie with no command prints the full usage to stderr.
Find a tab
doghoodie ls
lists the open tabs with their window and tab numbers and their state. Most commands take a target: -t N for a tab number from ls, or --session NAME for a tab you named. ls --json prints the same as JSON.
Run a command
doghoodie run --session build -- 'make && make test'
runs the command in the tab named build (opening it if there is none), waits for it, prints its new output and exits with the command’s exit status. One operand is a shell command line; two or more are one program and its arguments.
| Exit status | Meaning |
|---|---|
| The command’s status | The command finished |
| 200 | The command waits for a password. Type it in the tab, then doghoodie run --wait ID |
| 201 | Timed out (default 120 seconds); the command is still running. Continue with --wait ID |
| 202 | Interrupted |
| 203 | Refused, or no such tab or run |
| 204 | No Doghoodie with the control socket on |
| 205 | Usage error |
Doghoodie never types into a password prompt for a program: send-text, send-key and run are refused there, and only your keyboard types the password.
Other commands
| Command | What it does |
|---|---|
send-text, send-key |
Type text, or keys such as Enter, C-c, Up, F5 |
get-text |
Print the screen, or the scrollback with --scrollback |
wait-text |
Wait until the screen matches a regular expression |
wait --state |
Wait until a tab is at a prompt, busy, at a password prompt, or closed |
events |
Print tab, run, command and SSH events as JSON Lines |
foreground, close |
Bring a tab to the front, or close it |
new-tab, new-window |
Open a local shell tab or window (direct edition) |
ssh-ls, ssh-add, ssh-edit, ssh-rm |
List, add, change and remove saved SSH connections |
ssh-connect, ssh-disconnect, ssh-reconnect |
Open, close and reopen SSH connections |
ssh-integration |
Print manual shell integration steps for a server |
mcp |
Run the MCP server |
No command prints or takes a password or a key file. A program that opens an SSH connection waits for you in the connect window when a password, a key file or a host key check is needed.
A command run inside a Doghoodie tab cannot type into, run in, or close that same tab unless you add --allow-self.
Shell integration
Shell integration lets a tab report when a command starts and ends. run and wait --state need it.
- Local tabs (direct edition): with Shell integration on in the Remote Control page of Settings, a new zsh or bash tab loads it by itself.
- SSH tabs: Doghoodie loads it into a zsh or bash login shell at login. Nothing is installed on the server. Where that does not work,
doghoodie ssh-integrationprints a line to add to the server’s startup file.
Other shells (sh, dash, ksh, tcsh, csh, fish) have no integration, so run refuses their tabs.
MCP server for AI coding agents
doghoodie mcp is an MCP server on stdin and stdout. Its tools match the commands above:
ls, send_text, send_key, get_text, wait_text, new_tab, new_window, foreground, run, wait_state, close, ssh_ls, ssh_add, ssh_edit, ssh_rm, ssh_connect, ssh_disconnect, ssh_reconnect
Direct edition: install from the menu
Doghoodie > Remote Control has two menus:
- Install MCP Server adds
doghoodie mcpto the MCP settings of Claude Code, Codex, Claude Desktop or Antigravity. - Install CLI Skill writes the
doghoodieskill and a hook that sends the agent’s shell commands to Doghoodie tabs, for Claude Code, Codex or Antigravity.
Each item shows whether it is installed; choose it again to remove it. Quit Claude Desktop before installing for it.
Mac App Store edition: add it yourself
Add the server to your agent’s MCP settings. For Claude Code:
claude mcp add doghoodie -- /Applications/Doghoodie.app/Contents/Helpers/doghoodie mcp
For a program that reads an mcpServers JSON file:
{
"mcpServers": {
"doghoodie": {
"command": "/Applications/Doghoodie.app/Contents/Helpers/doghoodie",
"args": ["mcp"]
}
}
}