# The waddle command

> Every waddle command, what it does, and what it exits with.

Install it first: [Install the waddle command](https://docs.waddle.sh/install.md). It talks only to Waddle on this Mac (`127.0.0.1`), and most commands need Waddle running.

## Commands

| Command | What it does |
|---|---|
| `waddle wait <command>` | Runs it. When it's done, Waddle walks over: happy if it worked, with its last line if not. Exits with the command's own exit code. |
| `waddle say <words>` | Waddle says it. |
| `waddle deploy <name> [live\|failed]` | The deploy duck, for a deploy Waddle doesn't see on GitHub: `waddle deploy limen-fm live`. |
| `waddle top [filter]` | What's using your Mac, forgotten dev servers first. `--cpu` or `--mem` sorts, `--json` for scripts. |
| `waddle stop <what>` | Stops it, by project, port or name (`limen`, `:3000`, `"next dev"`). Asks it to quit; `--force` doesn't ask. |
| `waddle notes [words]` | Your newest notes, or a search: typos forgiven, `#tag`, `in:folder`, `"exact words"`. `--json` for scripts. |
| `waddle notes show <note>` | Prints one note as markdown, by its title or path. |
| `waddle mcp` | Waddle Notes and your context for agents, as an MCP server on stdio. See [MCP tools](https://docs.waddle.sh/mcp.md). |
| `waddle feedback [words]` | Tells Limen something about Waddle. It opens in Waddle for you to read and send. |
| `waddle context sweep` | Reads what your agents saved about you since the last sweep (with your own Claude Code, headless, so it uses your allowance), and proposes your calls for your yes. `--dry-run` shows them. |
| `waddle url` | Your quack address (Waddle Club), copied. `--new` makes a new one, `--stop` stops it. See [Your quack address](https://docs.waddle.sh/quack-address.md). |
| `waddle hook zsh` | Prints a shell hook (zsh, bash or fish): a command that takes 30 seconds or more and finishes while you're in another app, Waddle brings it. See [Tell me when tests finish](https://docs.waddle.sh/tests.md). |
| `waddle docs [page]` | These pages, offline: a page's markdown, or the list of pages. From 0.2.0-beta.17. |
| `waddle help` | Opens Waddle's manual. `--text` prints the command list. |
| `waddle --version` | Waddle's version. |

## waddle wait

```sh
waddle wait npm test
waddle wait "npm test && npm run build"
waddle wait cargo build --release; echo done
```

One quoted string with spaces or shell bits runs in your shell. In a terminal, the command keeps its colours and progress bars, and you can still type to it. Ctrl-C stops the command, and Waddle stays put: you're right there.

Only the command's name, how long it took, whether it worked and its last line go to Waddle. Its output never leaves your terminal.

## Exit codes

| Code | When |
|---|---|
| 0 | It worked. |
| 1 | Waddle isn't running (`waddle: couldn't reach Waddle on this Mac (is it running?)`). |
| 2 | Something's missing from the command, like `waddle say` with nothing to say. |

`waddle wait` is the exception: it exits with your command's code.

## Run by an agent

When an agent runs `waddle wait`, Waddle notes it down instead of walking over: the agent already has the answer, and its duckling shows it's busy. Waddle knows an agent ran it from the marks agents leave in their environment (`CLAUDECODE`, `CODEX_SANDBOX`, `OPENCODE`, `GEMINI_CLI`, `CURSOR_AGENT`), or `WADDLE_AGENT` if you set it.
