# 02 · Your First Blackbird Session

> Canonical HTML: https://multiplayer.tech/blackbird/first-session/
> Manual Index: https://multiplayer.tech/blackbird/index.md

Add a model provider, step into your repo, and launch `blackbird`. Replies stream live, tool calls execute immediately without approval prompts, and every session saves cleanly to disk under `~/.local/state/blackbird/`.

```bash
cd ~/code/your-repo
blackbird
```

## Cockpit Keys
Run `/keys` inside a session for the full list, or `/help` for every slash command.

| Key | Action |
| --- | --- |
| `Enter` | Send message (or queue for next turn if mid-turn) |
| `Alt-Enter` / `Ctrl-J` | Insert a new line (`Shift-Enter` also works in terminals like Ghostty) |
| `Tab` | Complete a slash command |
| `Ctrl-Space` / `Ctrl-T` | Fuzzy-search all slash commands |
| `Esc` | Stop current turn and keep queued prompts intact |
| `Ctrl-C` | Stop turn, clear queue, keep current draft |
| `Ctrl-Q` / `Ctrl-D` | Quit and save draft (`Ctrl-D` exits on empty input) |
| `PgUp` / `PgDn` | Scroll conversation history |

Stopping a turn does not roll back side effects. Interrupted commands are recorded as unknown and never rerun automatically.

## Plain Mode & One-Shot Runs
- `blackbird --plain` drops into a minimal `blackbird>` prompt (automatic when stdin is piped). Use `/paste` ... `/send` for multi-line input.
- `blackbird --once 'PROMPT' --effort medium` runs one turn and exits (see https://multiplayer.tech/blackbird/other-programs/index.md).

## Resuming Sessions
Only one Blackbird process can hold a session open at a time.
```bash
blackbird --list-sessions
blackbird --session 'PATH'
```
`--list-sessions` prints JSON with pasteable resume commands. Launch flags (`--model`, `--workflow`) override and save settings. Queued prompts reopen as drafts (`/drafts`, `/draft N`).

## Essential Slash Commands
- `/session` — Inspect active provider, model, effort, and turn program.
- `/provider`, `/model`, `/effort` — Switch models mid-flight (run bare for interactive picker).
- `/context`, `/stats` — Inspect live context blocks, byte sizes, and provider-reported tokens.
- `/flightdeck` — Live cockpit token-stream display fed by real session metrics.
- `/new`, `/sessions`, `/resume DIR` — Start a fresh session or switch between saved sessions.
- `/name NAME`, `/clear` — Label a session, or clear the screen without touching context.
- `/quit` / `/exit` — Stop cleanly and exit.
