Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build,id=go-build-$TARGETPLATFORM
set -ex
test "$TARGETOS" = "linux"
export XX_GO_PREFER_C_COMPILER=zig
xx-go build -trimpath -tags no_audio -ldflags "-s -w -linkmode=external -X 'github.com/docker/docker-agent/pkg/version.Version=$GIT_TAG' -X 'github.com/docker/docker-agent/pkg/version.Commit=$GIT_COMMIT'" -o /binaries/docker-agent-$TARGETOS-$TARGETARCH .
xx-go build -trimpath -ldflags "-s -w -linkmode=external -X 'github.com/docker/docker-agent/pkg/version.Version=$GIT_TAG' -X 'github.com/docker/docker-agent/pkg/version.Commit=$GIT_COMMIT'" -o /binaries/docker-agent-$TARGETOS-$TARGETARCH .
xx-verify --static /binaries/docker-agent-$TARGETOS-$TARGETARCH
EOT

Expand All @@ -58,7 +58,7 @@ RUN --mount=type=bind,from=osxcross,src=/osxsdk,target=/xx-sdk \
# -Werror,-Woverriding-deployment-version when targeting arm64.
export MACOSX_VERSION_MIN=11.0
fi
xx-go build -trimpath -tags no_audio -ldflags "-s -w -linkmode=external -X 'github.com/docker/docker-agent/pkg/version.Version=$GIT_TAG' -X 'github.com/docker/docker-agent/pkg/version.Commit=$GIT_COMMIT'" -o /binaries/docker-agent-$TARGETOS-$TARGETARCH .
xx-go build -trimpath -ldflags "-s -w -linkmode=external -X 'github.com/docker/docker-agent/pkg/version.Version=$GIT_TAG' -X 'github.com/docker/docker-agent/pkg/version.Commit=$GIT_COMMIT'" -o /binaries/docker-agent-$TARGETOS-$TARGETARCH .
xx-verify --static /binaries/docker-agent-$TARGETOS-$TARGETARCH
if [ "$TARGETOS" = "windows" ]; then
mv /binaries/docker-agent-$TARGETOS-$TARGETARCH /binaries/docker-agent-$TARGETOS-$TARGETARCH.exe
Expand Down
2 changes: 1 addition & 1 deletion cmd/root/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ func readInitialMessage(args []string) (*string, error) {
// tuiOpts returns the TUI options derived from the current flags. args are
// the run command's positional arguments, used to detect an initial message.
func (f *runExecFlags) tuiOpts(args []string) []tui.Option {
opts := []tui.Option{tui.WithEnvProvider(f.runConfig.EnvProvider())}
var opts []tui.Option
if f.lean {
opts = append(opts, tui.WithLeanMode())
}
Expand Down
16 changes: 0 additions & 16 deletions docs/features/tui/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,28 +127,12 @@ Type `/` during a session to see available commands, or press <kbd>Ctrl</kbd>+<k
| `/skills` | List skills available to the current agent |
| `/toolset-restart` | Force a supervisor-driven reconnect of the named toolset (`/toolset-restart <name>`). Press <kbd>Tab</kbd> after `/toolset-restart` and a space to complete a toolset name; non-restartable toolsets are shown dimmed and cannot be selected. |
| `/permissions` | Inspect and edit tool permission rules |
| `/speak` | Voice input via OpenAI's Realtime API (macOS only; requires `OPENAI_API_KEY`) |
| `/exit` | Exit the application (aliases: `/quit`, `/q`) |

Slash commands (both built-in and named) execute immediately when entered. Regular chat messages sent while the agent is working are steered into the ongoing stream by default: the agent picks them up mid-turn (they appear in the transcript at the point the agent sees them) without breaking the stream. Prefer the previous end-of-turn behavior? Switch **While agent is working** to `Queue` on the **Behavior** tab of `/settings`; queued messages are processed in order once the stream stops.

Agent-defined commands (prompts, URL links, agent-switching shortcuts) are configured under `commands:` in the agent YAML — see [Custom Commands](../../configuration/commands/index.md) for the full reference, including how to hide commands with `--disable-commands`.

### Voice Input (`/speak`)

In the full TUI on macOS, `/speak` captures microphone audio and sends it directly to OpenAI's Realtime API for transcription. It is not local or system-provided speech recognition. Its provider, endpoint, and API key are not selected from your chat model's configuration.

Docker's models gateway currently does **not** support `/speak`. Even when your chat uses the gateway, voice input requires a separate OpenAI API key set in the `OPENAI_API_KEY` environment variable **before starting Docker Agent**:

```bash
export OPENAI_API_KEY=your_openai_api_key
docker agent run agent.yaml
```

Run `/speak` to start voice input. Press <kbd>Enter</kbd> to finish transcription and send the message once the final text arrives. Press <kbd>Escape</kbd> to cancel without sending; text already received stays in the draft. Errors or a finalization timeout keep the draft instead of sending a partial message.

Dictation stays with the tab where it started. Switching tabs while transcription finishes keeps the text in the original draft without sending it.

### Plans Sidebar

The optional **Plans** section is off by default. Enable it under `/settings` → **Appearance** → **Sidebar sections**, or in your global [user settings](../../configuration/user-settings/index.md):
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/secrets/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export DOCKER_AGENT_ENV_ANTHROPIC_API_KEY="op://Personal/Anthropic/api-key" # us
docker agent run agent.yaml
```

- The prefix works for every variable Docker Agent resolves through its secret chain: provider API keys, `${VAR}` references in MCP `env`, `DOCKER_TOKEN`, and the OpenAI key used by `/speak`.
- The prefix works for every variable Docker Agent resolves through its secret chain: provider API keys, `${VAR}` references in MCP `env`, and `DOCKER_TOKEN`.
- `DOCKER_AGENT_ENV_<NAME>` wins over `<NAME>` across all [sources](#overview) and `--env-from-file`: an override in the Docker Agent env file beats a plain shell export.
- An empty override is ignored: `export DOCKER_AGENT_ENV_ANTHROPIC_API_KEY=` falls back to an override in a later source, then to `ANTHROPIC_API_KEY`.
- Docker Agent's own settings (`DOCKER_AGENT_*`) are never overridden this way.
Expand Down
26 changes: 0 additions & 26 deletions pkg/audio/capture/capture.go

This file was deleted.

225 changes: 0 additions & 225 deletions pkg/audio/capture/capture_darwin.go

This file was deleted.

Loading
Loading