@strands-agents/cli 0.2.4 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +217 -133
- package/bin/strands.js +1 -5
- package/dist/src/{tui/strands-backend.js → agent/backend.js} +90 -28
- package/dist/src/agent/backend.js.map +1 -0
- package/dist/src/{tui/background/activity.js → agent/background.js} +173 -6
- package/dist/src/agent/background.js.map +1 -0
- package/dist/src/{tui/agent-configuration.js → agent/configuration.js} +62 -105
- package/dist/src/agent/configuration.js.map +1 -0
- package/dist/src/agent/context.js +112 -0
- package/dist/src/agent/context.js.map +1 -0
- package/dist/src/{tui/chat/sdk-projector.js → agent/events.js} +6 -5
- package/dist/src/agent/events.js.map +1 -0
- package/dist/src/{tui/permissions/file-change-preview.js → agent/file-changes.js} +10 -8
- package/dist/src/agent/file-changes.js.map +1 -0
- package/dist/src/agent/mcp.js +436 -0
- package/dist/src/agent/mcp.js.map +1 -0
- package/dist/src/agent/messaging.js +424 -0
- package/dist/src/agent/messaging.js.map +1 -0
- package/dist/src/agent/permission-rules.js +267 -0
- package/dist/src/agent/permission-rules.js.map +1 -0
- package/dist/src/agent/permissions.js +288 -0
- package/dist/src/agent/permissions.js.map +1 -0
- package/dist/src/agent/runtime.js +524 -0
- package/dist/src/agent/runtime.js.map +1 -0
- package/dist/src/{tui/workspace → agent}/sandbox.js +92 -25
- package/dist/src/agent/sandbox.js.map +1 -0
- package/dist/src/{tui/chat → agent}/shell.js +1 -1
- package/dist/src/agent/shell.js.map +1 -0
- package/dist/src/{tui → agent}/skills.js +37 -56
- package/dist/src/agent/skills.js.map +1 -0
- package/dist/src/{tui/builtin-tools.js → agent/tools.js} +2 -3
- package/dist/src/agent/tools.js.map +1 -0
- package/dist/src/agent/types.js.map +1 -0
- package/dist/src/{tui/voice/session.js → agent/voice.js} +221 -224
- package/dist/src/agent/voice.js.map +1 -0
- package/dist/src/{tui/acp/projection.js → cli/acp-events.js} +19 -4
- package/dist/src/cli/acp-events.js.map +1 -0
- package/dist/src/{tui/project/acp.js → cli/acp-python.js} +41 -18
- package/dist/src/cli/acp-python.js.map +1 -0
- package/dist/src/{tui/acp/server.js → cli/acp.js} +149 -46
- package/dist/src/cli/acp.js.map +1 -0
- package/dist/src/cli/arguments.js +8 -3
- package/dist/src/cli/arguments.js.map +1 -1
- package/dist/src/{console.js → cli/console.js} +69 -4
- package/dist/src/cli/console.js.map +1 -0
- package/dist/src/cli/invocation.js +75 -44
- package/dist/src/cli/invocation.js.map +1 -1
- package/dist/src/cli/run.js +66 -38
- package/dist/src/cli/run.js.map +1 -1
- package/dist/src/{tui → cli}/telemetry.js +2 -2
- package/dist/src/{tui → cli}/telemetry.js.map +1 -1
- package/dist/src/cli/update.js +35 -7
- package/dist/src/cli/update.js.map +1 -1
- package/dist/src/{tui/mcp/config.js → config/mcp.js} +25 -35
- package/dist/src/config/mcp.js.map +1 -0
- package/dist/src/{tui → config}/settings.js +78 -130
- package/dist/src/config/settings.js.map +1 -0
- package/dist/src/config/source.js +87 -0
- package/dist/src/config/source.js.map +1 -0
- package/dist/src/{tui/config.js → config/store.js} +178 -49
- package/dist/src/config/store.js.map +1 -0
- package/dist/src/{tui/workspace → config}/trust.js +12 -16
- package/dist/src/config/trust.js.map +1 -0
- package/dist/src/logging.js +3 -4
- package/dist/src/logging.js.map +1 -1
- package/dist/src/{tui/provider → model}/aws-config.js +13 -4
- package/dist/src/model/aws-config.js.map +1 -0
- package/dist/src/{tui/provider/bedrock-catalog.js → model/bedrock.js} +70 -3
- package/dist/src/model/bedrock.js.map +1 -0
- package/dist/src/{tui/provider → model}/discovery.js +11 -10
- package/dist/src/model/discovery.js.map +1 -0
- package/dist/src/{tui/provider → model}/environment.js +19 -16
- package/dist/src/model/environment.js.map +1 -0
- package/dist/src/{tui/model/display.js → model/metadata.js} +6 -1
- package/dist/src/model/metadata.js.map +1 -0
- package/dist/src/model/packages.js.map +1 -0
- package/dist/src/{tui/model → model}/runtime.js +31 -62
- package/dist/src/model/runtime.js.map +1 -0
- package/dist/src/{tui/model → model}/selection.js +9 -15
- package/dist/src/model/selection.js.map +1 -0
- package/dist/src/{tui/package-version.js → package-version.js} +6 -0
- package/dist/src/package-version.js.map +1 -0
- package/dist/src/paths.js +23 -0
- package/dist/src/paths.js.map +1 -0
- package/dist/src/project/archive.js +461 -0
- package/dist/src/project/archive.js.map +1 -0
- package/dist/src/{tui/project → project}/export.js +249 -72
- package/dist/src/project/export.js.map +1 -0
- package/dist/src/{tui/project → project}/import.js +58 -6
- package/dist/src/project/import.js.map +1 -0
- package/dist/src/{tui/project → project}/module-loader.js +1 -5
- package/dist/src/project/module-loader.js.map +1 -0
- package/dist/src/{tui/project → project}/packaging.js +25 -8
- package/dist/src/project/packaging.js.map +1 -0
- package/dist/src/project/portability.js +455 -0
- package/dist/src/project/portability.js.map +1 -0
- package/dist/src/{tui/project → project}/python.js +46 -31
- package/dist/src/project/python.js.map +1 -0
- package/dist/src/{tui/project → project}/source.js +45 -26
- package/dist/src/project/source.js.map +1 -0
- package/dist/src/project/typescript-backend.js +733 -0
- package/dist/src/project/typescript-backend.js.map +1 -0
- package/dist/src/project/typescript-worker.js +488 -0
- package/dist/src/project/typescript-worker.js.map +1 -0
- package/dist/src/{tui/project → project}/typescript.js +19 -7
- package/dist/src/project/typescript.js.map +1 -0
- package/dist/src/project/watch.js +33 -0
- package/dist/src/project/watch.js.map +1 -0
- package/dist/src/{tui/project → project}/worker.py +358 -106
- package/dist/src/session/agent-definition.js +35 -0
- package/dist/src/session/agent-definition.js.map +1 -0
- package/dist/src/session/catalog.js +156 -0
- package/dist/src/session/catalog.js.map +1 -0
- package/dist/src/{tui/session → session}/context.js +45 -5
- package/dist/src/session/context.js.map +1 -0
- package/dist/src/{tui/session → session}/desktop-profile.js +1 -0
- package/dist/src/session/desktop-profile.js.map +1 -0
- package/dist/src/{tui/session → session}/sessions.js +126 -27
- package/dist/src/session/sessions.js.map +1 -0
- package/dist/src/terminal/arguments.js +53 -0
- package/dist/src/terminal/arguments.js.map +1 -0
- package/dist/src/{tui/terminal → terminal}/composer.js +51 -24
- package/dist/src/terminal/composer.js.map +1 -0
- package/dist/src/terminal/directory-picker.js +182 -0
- package/dist/src/terminal/directory-picker.js.map +1 -0
- package/dist/src/terminal/ink.js.map +1 -0
- package/dist/src/terminal/mouse-input.js.map +1 -0
- package/dist/src/terminal/npm.js.map +1 -0
- package/dist/src/terminal/open-editor.js +40 -0
- package/dist/src/terminal/open-editor.js.map +1 -0
- package/dist/src/terminal/open-url.js +26 -0
- package/dist/src/terminal/open-url.js.map +1 -0
- package/dist/src/terminal/process-tree.js.map +1 -0
- package/dist/src/terminal/shell-output.js.map +1 -0
- package/dist/src/{tui/terminal → terminal}/terminal.js +40 -2
- package/dist/src/terminal/terminal.js.map +1 -0
- package/dist/src/{tui/terminal/sanitize.js → terminal/text.js} +40 -6
- package/dist/src/terminal/text.js.map +1 -0
- package/dist/src/terminal/theme-detection.js +197 -0
- package/dist/src/terminal/theme-detection.js.map +1 -0
- package/dist/src/{tui/view/fade-in.js → ui/animation.js} +26 -1
- package/dist/src/ui/animation.js.map +1 -0
- package/dist/src/ui/app.js +176 -0
- package/dist/src/ui/app.js.map +1 -0
- package/dist/src/ui/chat/attachments.js +135 -0
- package/dist/src/ui/chat/attachments.js.map +1 -0
- package/dist/src/{tui → ui}/chat/commands.js +55 -7
- package/dist/src/ui/chat/commands.js.map +1 -0
- package/dist/src/{tui → ui}/chat/controller.js +1176 -345
- package/dist/src/ui/chat/controller.js.map +1 -0
- package/dist/src/ui/chat/conversations.js +692 -0
- package/dist/src/ui/chat/conversations.js.map +1 -0
- package/dist/src/{tui → ui}/chat/help.js +11 -5
- package/dist/src/ui/chat/help.js.map +1 -0
- package/dist/src/ui/chat/panel-state.js +513 -0
- package/dist/src/ui/chat/panel-state.js.map +1 -0
- package/dist/src/{tui → ui}/chat/projector.js +93 -8
- package/dist/src/ui/chat/projector.js.map +1 -0
- package/dist/src/ui/chat/prompt.js +176 -0
- package/dist/src/ui/chat/prompt.js.map +1 -0
- package/dist/src/ui/chat/runtime.js +589 -0
- package/dist/src/ui/chat/runtime.js.map +1 -0
- package/dist/src/ui/chat/screen.js +1907 -0
- package/dist/src/ui/chat/screen.js.map +1 -0
- package/dist/src/{tui/chat/controller-helpers.js → ui/chat/state.js} +39 -3
- package/dist/src/ui/chat/state.js.map +1 -0
- package/dist/src/ui/chat/stream-presentation.js.map +1 -0
- package/dist/src/ui/chat/transcript-turn.js +189 -0
- package/dist/src/ui/chat/transcript-turn.js.map +1 -0
- package/dist/src/{tui/view → ui/chat}/transcript.js +66 -6
- package/dist/src/ui/chat/transcript.js.map +1 -0
- package/dist/src/ui/chat/types.js +2 -0
- package/dist/src/ui/chat/types.js.map +1 -0
- package/dist/src/ui/chat/view.js +249 -0
- package/dist/src/ui/chat/view.js.map +1 -0
- package/dist/src/ui/chat/voice.js +388 -0
- package/dist/src/ui/chat/voice.js.map +1 -0
- package/dist/src/ui/footer.js +110 -0
- package/dist/src/ui/footer.js.map +1 -0
- package/dist/src/{tui/view → ui}/frog-canvas.js +47 -50
- package/dist/src/ui/frog-canvas.js.map +1 -0
- package/dist/src/{tui/view → ui}/frog-drawing.js +36 -29
- package/dist/src/ui/frog-drawing.js.map +1 -0
- package/dist/src/{tui/view/frog-intro-renderer.js → ui/frog-renderer.js} +63 -46
- package/dist/src/ui/frog-renderer.js.map +1 -0
- package/dist/src/{tui/view/frog-easter-egg.js → ui/frog.js} +34 -6
- package/dist/src/ui/frog.js.map +1 -0
- package/dist/src/ui/interaction.js +525 -0
- package/dist/src/ui/interaction.js.map +1 -0
- package/dist/src/{tui/view → ui}/markdown.js +12 -9
- package/dist/src/ui/markdown.js.map +1 -0
- package/dist/src/ui/mcp-diagnostics.js +56 -0
- package/dist/src/ui/mcp-diagnostics.js.map +1 -0
- package/dist/src/ui/media.js +59 -0
- package/dist/src/ui/media.js.map +1 -0
- package/dist/src/ui/panels/agents.js +97 -0
- package/dist/src/ui/panels/agents.js.map +1 -0
- package/dist/src/ui/panels/configuration.js +201 -0
- package/dist/src/ui/panels/configuration.js.map +1 -0
- package/dist/src/ui/panels/context.js +102 -0
- package/dist/src/ui/panels/context.js.map +1 -0
- package/dist/src/ui/panels/export.js +17 -0
- package/dist/src/ui/panels/export.js.map +1 -0
- package/dist/src/ui/panels/help.js +22 -0
- package/dist/src/ui/panels/help.js.map +1 -0
- package/dist/src/ui/panels/models.js +180 -0
- package/dist/src/ui/panels/models.js.map +1 -0
- package/dist/src/ui/panels/panel.js +122 -0
- package/dist/src/ui/panels/panel.js.map +1 -0
- package/dist/src/ui/panels/permissions.js +90 -0
- package/dist/src/ui/panels/permissions.js.map +1 -0
- package/dist/src/ui/panels/sessions.js +54 -0
- package/dist/src/ui/panels/sessions.js.map +1 -0
- package/dist/src/ui/panels/settings.js +125 -0
- package/dist/src/ui/panels/settings.js.map +1 -0
- package/dist/src/ui/panels/shared.js +50 -0
- package/dist/src/ui/panels/shared.js.map +1 -0
- package/dist/src/ui/panels/tasks.js +15 -0
- package/dist/src/ui/panels/tasks.js.map +1 -0
- package/dist/src/ui/panels/voice.js +142 -0
- package/dist/src/ui/panels/voice.js.map +1 -0
- package/dist/src/{tui/permissions/settings.js → ui/permission-options.js} +13 -2
- package/dist/src/ui/permission-options.js.map +1 -0
- package/dist/src/{tui/view → ui}/presentation.js +170 -112
- package/dist/src/ui/presentation.js.map +1 -0
- package/dist/src/{tui → ui}/run.js +173 -36
- package/dist/src/ui/run.js.map +1 -0
- package/dist/src/{tui/view/setup-wizard/settings-panel.js → ui/setup/form.js} +6 -6
- package/dist/src/ui/setup/form.js.map +1 -0
- package/dist/src/ui/setup/menu.js +133 -0
- package/dist/src/ui/setup/menu.js.map +1 -0
- package/dist/src/{tui/view/setup-wizard → ui/setup}/providers.js +157 -20
- package/dist/src/ui/setup/providers.js.map +1 -0
- package/dist/src/{tui/view/setup-wizard → ui/setup}/steps.js +193 -147
- package/dist/src/ui/setup/steps.js.map +1 -0
- package/dist/src/ui/setup/wizard.js +2075 -0
- package/dist/src/ui/setup/wizard.js.map +1 -0
- package/dist/src/ui/startup.js +147 -0
- package/dist/src/ui/startup.js.map +1 -0
- package/dist/src/{tui/terminal/size.js → ui/terminal-size.js} +1 -1
- package/dist/src/ui/terminal-size.js.map +1 -0
- package/dist/src/ui/text-input.js +50 -0
- package/dist/src/ui/text-input.js.map +1 -0
- package/dist/src/{tui/view → ui}/theme.js +24 -31
- package/dist/src/ui/theme.js.map +1 -0
- package/dist/src/ui/update.js +126 -0
- package/dist/src/ui/update.js.map +1 -0
- package/dist/src/usage.js +0 -5
- package/dist/src/usage.js.map +1 -1
- package/dist/src/values.js +5 -0
- package/dist/src/values.js.map +1 -0
- package/package.json +16 -8
- package/src/agent/voice-sidecar.py +730 -0
- package/dist/src/console.js.map +0 -1
- package/dist/src/tui/acp/projection.js.map +0 -1
- package/dist/src/tui/acp/server.js.map +0 -1
- package/dist/src/tui/agent-configuration.js.map +0 -1
- package/dist/src/tui/background/activity.js.map +0 -1
- package/dist/src/tui/background/inbox.js +0 -120
- package/dist/src/tui/background/inbox.js.map +0 -1
- package/dist/src/tui/background/tasks.js +0 -98
- package/dist/src/tui/background/tasks.js.map +0 -1
- package/dist/src/tui/builtin-tools.js.map +0 -1
- package/dist/src/tui/chat/commands.js.map +0 -1
- package/dist/src/tui/chat/controller-helpers.js.map +0 -1
- package/dist/src/tui/chat/controller.js.map +0 -1
- package/dist/src/tui/chat/help.js.map +0 -1
- package/dist/src/tui/chat/panels.js +0 -407
- package/dist/src/tui/chat/panels.js.map +0 -1
- package/dist/src/tui/chat/projector.js.map +0 -1
- package/dist/src/tui/chat/sdk-projector.js.map +0 -1
- package/dist/src/tui/chat/shell.js.map +0 -1
- package/dist/src/tui/chat/types.js +0 -2
- package/dist/src/tui/chat/types.js.map +0 -1
- package/dist/src/tui/config.js.map +0 -1
- package/dist/src/tui/configuration-instructions.js +0 -14
- package/dist/src/tui/configuration-instructions.js.map +0 -1
- package/dist/src/tui/mcp/config.js.map +0 -1
- package/dist/src/tui/mcp.js +0 -98
- package/dist/src/tui/mcp.js.map +0 -1
- package/dist/src/tui/memory-options.js +0 -10
- package/dist/src/tui/memory-options.js.map +0 -1
- package/dist/src/tui/messaging.js +0 -193
- package/dist/src/tui/messaging.js.map +0 -1
- package/dist/src/tui/model/context.js +0 -69
- package/dist/src/tui/model/context.js.map +0 -1
- package/dist/src/tui/model/display.js.map +0 -1
- package/dist/src/tui/model/runtime.js.map +0 -1
- package/dist/src/tui/model/selection.js.map +0 -1
- package/dist/src/tui/npm.js.map +0 -1
- package/dist/src/tui/package-version.js.map +0 -1
- package/dist/src/tui/permissions/file-change-preview.js.map +0 -1
- package/dist/src/tui/permissions/policy.js +0 -222
- package/dist/src/tui/permissions/policy.js.map +0 -1
- package/dist/src/tui/permissions/settings.js.map +0 -1
- package/dist/src/tui/project/acp.js.map +0 -1
- package/dist/src/tui/project/archive.js +0 -241
- package/dist/src/tui/project/archive.js.map +0 -1
- package/dist/src/tui/project/configuration-secrets.js +0 -107
- package/dist/src/tui/project/configuration-secrets.js.map +0 -1
- package/dist/src/tui/project/configuration.js +0 -201
- package/dist/src/tui/project/configuration.js.map +0 -1
- package/dist/src/tui/project/export.js.map +0 -1
- package/dist/src/tui/project/import.js.map +0 -1
- package/dist/src/tui/project/module-loader.js.map +0 -1
- package/dist/src/tui/project/packaging.js.map +0 -1
- package/dist/src/tui/project/portable-dependencies.js +0 -34
- package/dist/src/tui/project/portable-dependencies.js.map +0 -1
- package/dist/src/tui/project/portable-mcp.js +0 -118
- package/dist/src/tui/project/portable-mcp.js.map +0 -1
- package/dist/src/tui/project/python.js.map +0 -1
- package/dist/src/tui/project/run.js +0 -116
- package/dist/src/tui/project/run.js.map +0 -1
- package/dist/src/tui/project/source.js.map +0 -1
- package/dist/src/tui/project/typescript.js.map +0 -1
- package/dist/src/tui/provider/aws-client.js +0 -67
- package/dist/src/tui/provider/aws-client.js.map +0 -1
- package/dist/src/tui/provider/aws-config.js.map +0 -1
- package/dist/src/tui/provider/bedrock-catalog.js.map +0 -1
- package/dist/src/tui/provider/discovery.js.map +0 -1
- package/dist/src/tui/provider/environment.js.map +0 -1
- package/dist/src/tui/provider/packages.js.map +0 -1
- package/dist/src/tui/run.js.map +0 -1
- package/dist/src/tui/runtime.js +0 -524
- package/dist/src/tui/runtime.js.map +0 -1
- package/dist/src/tui/session/agent-definition.js +0 -100
- package/dist/src/tui/session/agent-definition.js.map +0 -1
- package/dist/src/tui/session/catalog.js +0 -159
- package/dist/src/tui/session/catalog.js.map +0 -1
- package/dist/src/tui/session/context.js.map +0 -1
- package/dist/src/tui/session/conversation-helpers.js +0 -46
- package/dist/src/tui/session/conversation-helpers.js.map +0 -1
- package/dist/src/tui/session/conversations.js +0 -471
- package/dist/src/tui/session/conversations.js.map +0 -1
- package/dist/src/tui/session/desktop-profile.js.map +0 -1
- package/dist/src/tui/session/options.js +0 -44
- package/dist/src/tui/session/options.js.map +0 -1
- package/dist/src/tui/session/sessions.js.map +0 -1
- package/dist/src/tui/session/voice.js +0 -353
- package/dist/src/tui/session/voice.js.map +0 -1
- package/dist/src/tui/settings.js.map +0 -1
- package/dist/src/tui/skills.js.map +0 -1
- package/dist/src/tui/steering.js +0 -67
- package/dist/src/tui/steering.js.map +0 -1
- package/dist/src/tui/strands-backend.js.map +0 -1
- package/dist/src/tui/stream-presentation.js.map +0 -1
- package/dist/src/tui/terminal/composer.js.map +0 -1
- package/dist/src/tui/terminal/directory-picker.js +0 -76
- package/dist/src/tui/terminal/directory-picker.js.map +0 -1
- package/dist/src/tui/terminal/ink.js.map +0 -1
- package/dist/src/tui/terminal/mouse-input.js.map +0 -1
- package/dist/src/tui/terminal/open-url.js +0 -21
- package/dist/src/tui/terminal/open-url.js.map +0 -1
- package/dist/src/tui/terminal/process-tree.js.map +0 -1
- package/dist/src/tui/terminal/sanitize.js.map +0 -1
- package/dist/src/tui/terminal/shell-output.js.map +0 -1
- package/dist/src/tui/terminal/size.js.map +0 -1
- package/dist/src/tui/terminal/terminal.js.map +0 -1
- package/dist/src/tui/update-check.js +0 -37
- package/dist/src/tui/update-check.js.map +0 -1
- package/dist/src/tui/view/agents-panel.js +0 -21
- package/dist/src/tui/view/agents-panel.js.map +0 -1
- package/dist/src/tui/view/app.js +0 -1061
- package/dist/src/tui/view/app.js.map +0 -1
- package/dist/src/tui/view/chat-root.js +0 -49
- package/dist/src/tui/view/chat-root.js.map +0 -1
- package/dist/src/tui/view/chat-view.js +0 -145
- package/dist/src/tui/view/chat-view.js.map +0 -1
- package/dist/src/tui/view/command-palette.js +0 -15
- package/dist/src/tui/view/command-palette.js.map +0 -1
- package/dist/src/tui/view/custom-theme-editor.js +0 -301
- package/dist/src/tui/view/custom-theme-editor.js.map +0 -1
- package/dist/src/tui/view/effort-panel.js +0 -15
- package/dist/src/tui/view/effort-panel.js.map +0 -1
- package/dist/src/tui/view/export-panel.js +0 -14
- package/dist/src/tui/view/export-panel.js.map +0 -1
- package/dist/src/tui/view/fade-in.js.map +0 -1
- package/dist/src/tui/view/frog-canvas.js.map +0 -1
- package/dist/src/tui/view/frog-drawing.js.map +0 -1
- package/dist/src/tui/view/frog-easter-egg.js.map +0 -1
- package/dist/src/tui/view/frog-intro-renderer.js.map +0 -1
- package/dist/src/tui/view/help-footer.js +0 -48
- package/dist/src/tui/view/help-footer.js.map +0 -1
- package/dist/src/tui/view/interaction.js +0 -352
- package/dist/src/tui/view/interaction.js.map +0 -1
- package/dist/src/tui/view/markdown.js.map +0 -1
- package/dist/src/tui/view/mcp-trust-prompt.js +0 -17
- package/dist/src/tui/view/mcp-trust-prompt.js.map +0 -1
- package/dist/src/tui/view/media.js +0 -70
- package/dist/src/tui/view/media.js.map +0 -1
- package/dist/src/tui/view/model-panel.js +0 -77
- package/dist/src/tui/view/model-panel.js.map +0 -1
- package/dist/src/tui/view/panel-components.js +0 -17
- package/dist/src/tui/view/panel-components.js.map +0 -1
- package/dist/src/tui/view/panels.js +0 -139
- package/dist/src/tui/view/panels.js.map +0 -1
- package/dist/src/tui/view/presentation.js.map +0 -1
- package/dist/src/tui/view/prompt-editor.js +0 -82
- package/dist/src/tui/view/prompt-editor.js.map +0 -1
- package/dist/src/tui/view/provider-list.js +0 -14
- package/dist/src/tui/view/provider-list.js.map +0 -1
- package/dist/src/tui/view/rename-panel.js +0 -11
- package/dist/src/tui/view/rename-panel.js.map +0 -1
- package/dist/src/tui/view/sessions-panel.js +0 -15
- package/dist/src/tui/view/sessions-panel.js.map +0 -1
- package/dist/src/tui/view/settings-panel.js +0 -146
- package/dist/src/tui/view/settings-panel.js.map +0 -1
- package/dist/src/tui/view/setup-wizard/brand.js +0 -34
- package/dist/src/tui/view/setup-wizard/brand.js.map +0 -1
- package/dist/src/tui/view/setup-wizard/index.js +0 -1638
- package/dist/src/tui/view/setup-wizard/index.js.map +0 -1
- package/dist/src/tui/view/setup-wizard/opening-menu.js +0 -99
- package/dist/src/tui/view/setup-wizard/opening-menu.js.map +0 -1
- package/dist/src/tui/view/setup-wizard/path-completion.js +0 -53
- package/dist/src/tui/view/setup-wizard/path-completion.js.map +0 -1
- package/dist/src/tui/view/setup-wizard/profile-fields.js +0 -29
- package/dist/src/tui/view/setup-wizard/profile-fields.js.map +0 -1
- package/dist/src/tui/view/setup-wizard/progress.js +0 -43
- package/dist/src/tui/view/setup-wizard/progress.js.map +0 -1
- package/dist/src/tui/view/setup-wizard/providers.js.map +0 -1
- package/dist/src/tui/view/setup-wizard/settings-panel.js.map +0 -1
- package/dist/src/tui/view/setup-wizard/steps.js.map +0 -1
- package/dist/src/tui/view/setup-wizard/types.js.map +0 -1
- package/dist/src/tui/view/setup-wizard/use-provider-discovery.js +0 -143
- package/dist/src/tui/view/setup-wizard/use-provider-discovery.js.map +0 -1
- package/dist/src/tui/view/startup-view.js +0 -79
- package/dist/src/tui/view/startup-view.js.map +0 -1
- package/dist/src/tui/view/text-input.js +0 -33
- package/dist/src/tui/view/text-input.js.map +0 -1
- package/dist/src/tui/view/theme-detection.js +0 -45
- package/dist/src/tui/view/theme-detection.js.map +0 -1
- package/dist/src/tui/view/theme.js.map +0 -1
- package/dist/src/tui/view/transcript-layout.js +0 -60
- package/dist/src/tui/view/transcript-layout.js.map +0 -1
- package/dist/src/tui/view/transcript-turn.js +0 -135
- package/dist/src/tui/view/transcript-turn.js.map +0 -1
- package/dist/src/tui/view/transcript.js.map +0 -1
- package/dist/src/tui/view/use-party-frame.js +0 -15
- package/dist/src/tui/view/use-party-frame.js.map +0 -1
- package/dist/src/tui/view/use-spinner.js +0 -14
- package/dist/src/tui/view/use-spinner.js.map +0 -1
- package/dist/src/tui/voice/session.js.map +0 -1
- package/dist/src/tui/workspace/sandbox.js.map +0 -1
- package/dist/src/tui/workspace/trust.js.map +0 -1
- package/src/tui/voice/sidecar.py +0 -631
- /package/dist/src/{tui/view/setup-wizard → agent}/types.js +0 -0
- /package/dist/src/{tui/provider → model}/packages.js +0 -0
- /package/dist/src/{tui/terminal → terminal}/ink.js +0 -0
- /package/dist/src/{tui/terminal → terminal}/mouse-input.js +0 -0
- /package/dist/src/{tui → terminal}/npm.js +0 -0
- /package/dist/src/{tui/terminal → terminal}/process-tree.js +0 -0
- /package/dist/src/{tui/terminal → terminal}/shell-output.js +0 -0
- /package/dist/src/{tui → ui/chat}/stream-presentation.js +0 -0
package/README.md
CHANGED
|
@@ -65,11 +65,16 @@ Update a global installation with:
|
|
|
65
65
|
strands update
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
+
### Windows
|
|
69
|
+
|
|
70
|
+
Windows uses its built-in Windows PowerShell for the shell tool and `!` commands; Git Bash is not
|
|
71
|
+
required. File tools accept drive-letter and UNC paths, and exported agents use the same native
|
|
72
|
+
PowerShell behavior.
|
|
73
|
+
|
|
68
74
|
On the first interactive launch, the intro animation plays before the setup panel opens. Quickstart
|
|
69
|
-
lets you choose
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
sources but never writes API keys to its config.
|
|
75
|
+
lets you choose a provider and model, then launch. Customize lets you select tools, skills, MCP, and
|
|
76
|
+
other capabilities individually or together, and edit the agent instructions, data paths, and approval
|
|
77
|
+
controls. The CLI detects standard credential sources but never writes API keys to its config.
|
|
73
78
|
|
|
74
79
|
## Using it
|
|
75
80
|
|
|
@@ -98,8 +103,9 @@ compiled output and skips all source-build behavior.
|
|
|
98
103
|
## Customize the agent
|
|
99
104
|
|
|
100
105
|
Run `strands` or use `/setup` in chat to reopen the saved configuration. Quickstart and Customize
|
|
101
|
-
edit the same profile. Import loads a harness from a file or zip
|
|
102
|
-
|
|
106
|
+
edit the same profile. Import loads a harness from a file or zip. Press Esc on the opening screen to
|
|
107
|
+
open chat, even before completing setup. Ctrl+C exits during initial setup. Use `/export` in chat to save the agent
|
|
108
|
+
as a TypeScript or Python project.
|
|
103
109
|
|
|
104
110
|
In interactive chat, the agent can also inspect and change its own configuration with `strands_config`.
|
|
105
111
|
For example: “Use high reasoning, disable shell and delegation, and keep responses concise.”
|
|
@@ -107,6 +113,8 @@ Changes are validated and applied after the turn; the conversation is retained.
|
|
|
107
113
|
and TypeScript/Python exports use the updated profile. A failed rebuild restores the previous profile.
|
|
108
114
|
For TypeScript agents loaded from source, the CLI edits the source definition and reloads it instead;
|
|
109
115
|
source exports retain that code.
|
|
116
|
+
Agent drafts and exports contain only the agent definition. CLI preferences, provider setup,
|
|
117
|
+
and Ask/Bypass permissions stay under your control in `/settings`, `/setup`, and `/permissions`.
|
|
110
118
|
|
|
111
119
|
## Run modes
|
|
112
120
|
|
|
@@ -116,8 +124,8 @@ The CLI chooses a mode from its flags and terminal streams:
|
|
|
116
124
|
| -------------- | -------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
|
117
125
|
| **Ink** | stdin and stdout are terminals | Full-screen interactive UI with panels, slash commands, mouse support, and streaming updates |
|
|
118
126
|
| **Plain** | stdin is a terminal but stdout is redirected | Readline chat with unstyled output; an initial request is answered before the prompt |
|
|
119
|
-
| **Print** | `--print` is set, or stdin is piped | One request, then exit; styling follows whether stdout is a terminal
|
|
120
|
-
| **ACP server** | `--acp-server` is set | Serve the agent over newline-delimited ACP on stdin/stdout
|
|
127
|
+
| **Print** | `--print` is set, or stdin is piped | One request, then exit; styling follows whether stdout is a terminal |
|
|
128
|
+
| **ACP server** | `--acp-server` is set | Serve the agent over newline-delimited ACP on stdin/stdout |
|
|
121
129
|
|
|
122
130
|
Examples:
|
|
123
131
|
|
|
@@ -132,48 +140,53 @@ strands --acp-server # serve ACP on stdin/stdout
|
|
|
132
140
|
|
|
133
141
|
When stdin is piped, its complete contents become the request only when no positional request was
|
|
134
142
|
given. In plain mode, type `exit` or `quit`; in Ink, use `/exit`. Ctrl-D exits either interactive
|
|
135
|
-
mode. In Ink, Ctrl-C cancels an active turn or exits with status 130 when idle.
|
|
136
|
-
The composer stays editable during a turn: Enter queues a follow-up,
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
mode, except while editing a queued message. In Ink, Ctrl-C cancels an active turn or exits with status 130 when idle.
|
|
144
|
+
The composer stays editable during a turn: Enter queues a follow-up, and Escape interrupts without
|
|
145
|
+
discarding the current draft.
|
|
146
|
+
Use Alt+↑/↓ or click Edit to edit a queued message. Enter saves and Esc restores your draft.
|
|
147
|
+
Click Delete, or press Ctrl+D while editing, to remove it. Saving empty text deletes a message
|
|
148
|
+
unless it has attachments.
|
|
149
|
+
Tab and Shift+Tab focus the queue's Edit, Steer, Delete, and reorder buttons; Enter activates
|
|
150
|
+
the focused button and Esc returns to your draft. Steer redirects the running turn, or interrupts
|
|
151
|
+
it and runs that queued message next when live steering is unavailable.
|
|
139
152
|
Prefix an Ink input with `!` to run a shell command directly in the active workspace without
|
|
140
153
|
invoking the model, for example `!git status`. Each command runs once through the agent's shell
|
|
141
154
|
sandbox while the full-screen UI remains open, and its output is rendered inline without compact
|
|
142
155
|
summarization. Ctrl-C cancels the active command without exiting the CLI. Output past the inline safety
|
|
143
|
-
limit is
|
|
156
|
+
limit is saved to a file whose path is shown inline. Interactive shell sessions and prompts are not
|
|
144
157
|
supported.
|
|
145
158
|
|
|
146
159
|
## Options
|
|
147
160
|
|
|
148
161
|
Run `strands --help` for the parser's current list.
|
|
149
162
|
|
|
150
|
-
| Flag
|
|
151
|
-
|
|
|
152
|
-
| `-p`, `--print`
|
|
153
|
-
| `--prompt <text>`
|
|
154
|
-
| `--acp-server`
|
|
155
|
-
| `--setup`
|
|
156
|
-
| `--agent <path>`
|
|
157
|
-
| `--env-file <path>`
|
|
158
|
-
| `--set <field=value>`
|
|
159
|
-
| `--name <name>`
|
|
160
|
-
| `--description <text>`
|
|
161
|
-
| `--model <model>`
|
|
162
|
-
| `--effort <level>`
|
|
163
|
-
| `--instructions <text>`
|
|
164
|
-
| `--builtin-tools <tools>`
|
|
165
|
-
| `--builtin-plugins <plugins>`
|
|
166
|
-
| `--caching <mode>`
|
|
167
|
-
| `--context-manager <mode>`
|
|
168
|
-
| `--session <mode>`
|
|
169
|
-
| `--session-id <id>`
|
|
170
|
-
| `--skills <dirs>`
|
|
171
|
-
| `--memory <mode>`
|
|
172
|
-
| `--interventions <policy>`
|
|
173
|
-
| `--mcp-config <path>`
|
|
163
|
+
| Flag | Applies to | Description |
|
|
164
|
+
| ----------------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
165
|
+
| `-p`, `--print` | Print | Answer once and exit |
|
|
166
|
+
| `--prompt <text>` | All | Initial request; equivalent to the positional request |
|
|
167
|
+
| `--acp-server` | ACP server | Serve the agent over ACP; cannot be combined with a request, `--print`, or `--setup` |
|
|
168
|
+
| `--setup` | Ink | Open the provider and default-agent setup wizard |
|
|
169
|
+
| `--agent <path>` | All | Load an agent ZIP, project folder, or `agent.ts`/`agent.py` |
|
|
170
|
+
| `--env-file <path>` | All | Load an explicitly trusted env file; repeat for several files, later files win |
|
|
171
|
+
| `--set <field=value>` | Harness backend | Override any portable config field; repeatable and JSON-aware |
|
|
172
|
+
| `--name <name>` | Harness backend | Override the agent name for this invocation |
|
|
173
|
+
| `--description <text>` | Harness backend | Override the agent description for this invocation |
|
|
174
|
+
| `--model <model>` | Harness backend | A `provider/model` string or bare Amazon Bedrock model id |
|
|
175
|
+
| `--effort <level>` | Harness backend | Reasoning effort: `auto` (default), `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max` |
|
|
176
|
+
| `--instructions <text>` | Harness backend | Append domain instructions to the system prompt |
|
|
177
|
+
| `--builtin-tools <tools>` | Harness backend | Comma-separated built-ins, or `""` for none; defaults to `shell,read,write,edit,web_fetch,web_search,programmatic_tool_caller,subagent` |
|
|
178
|
+
| `--builtin-plugins <plugins>` | Harness backend | Comma-separated built-ins, or `""` for none; defaults to `todos,environment` |
|
|
179
|
+
| `--caching <mode>` | Harness backend | Prompt caching: `auto` (default) or `off` |
|
|
180
|
+
| `--context-manager <mode>` | Harness backend | `auto` (default), `agentic`, or `off`; object forms go through `--set` |
|
|
181
|
+
| `--session <mode>` | Harness backend | Conversation persistence: `on` (default) or `off` |
|
|
182
|
+
| `--session-id <id>` | Harness backend | Resume a conversation by id (defaults to a fresh one); writes `session.id` |
|
|
183
|
+
| `--skills <dirs>` | Harness backend | Comma-separated Agent Skills directories or URLs, or `off`; defaults to `./.agent/skills` |
|
|
184
|
+
| `--memory <mode>` | Harness backend | Long-term memory: `on` (default) or `off` |
|
|
185
|
+
| `--interventions <policy>` | Harness backend | Gate tool calls with `ask`, `smart`, a `.cedar` policy file, or a natural-language rule |
|
|
186
|
+
| `--mcp-config <path>` | All modes | Add an MCP configuration file; repeat for multiple files |
|
|
174
187
|
|
|
175
188
|
Explicit CLI values apply only to the current invocation. Dedicated flags override `--set`, which
|
|
176
|
-
overrides the saved profile
|
|
189
|
+
overrides the saved profile or authored agent configuration. Unspecified values keep the Harness defaults:
|
|
177
190
|
|
|
178
191
|
```bash
|
|
179
192
|
strands --agent ./reviewer --prompt "Review this change"
|
|
@@ -191,9 +204,8 @@ Run `strands` or `/setup` to configure:
|
|
|
191
204
|
- skills directories, context management, caching, and long-term memory,
|
|
192
205
|
- the default tool-approval mode.
|
|
193
206
|
|
|
194
|
-
Configuration is stored in `~/.strands/cli
|
|
195
|
-
profile. `/setup`
|
|
196
|
-
runtime.
|
|
207
|
+
Configuration is stored in `~/.strands/cli.toml`. Explicit CLI flags override the saved
|
|
208
|
+
profile. Applying `/setup` changes reloads the agent while preserving the conversation.
|
|
197
209
|
|
|
198
210
|
### Web search and Exa
|
|
199
211
|
|
|
@@ -210,12 +222,10 @@ models on `bedrock-mantle`, Anthropic). On a model without native search the Too
|
|
|
210
222
|
|
|
211
223
|
## Appearance
|
|
212
224
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
Choose **Theme** to
|
|
216
|
-
or
|
|
217
|
-
Custom supports separate light and dark colors, a base theme, and per-variant reset.
|
|
218
|
-
Saved Magma selections migrate to Classic.
|
|
225
|
+
The CLI observes the terminal's reported background color and automatically uses a matching
|
|
226
|
+
high-contrast palette, defaulting to a dark background when unavailable.
|
|
227
|
+
Choose **Theme** to switch between Classic, Minimal, Homeland, Merlin, Kikker, Oak, Spectre,
|
|
228
|
+
or Scarlet; arrow keys and clicks apply the theme immediately.
|
|
219
229
|
The welcome banner shrinks with the terminal, keeping the composer visible.
|
|
220
230
|
`/settings` also links to `/setup` for providers and the default agent.
|
|
221
231
|
|
|
@@ -227,8 +237,12 @@ The file exports `agent`, ready to import into another application, and each new
|
|
|
227
237
|
reads the latest edits. No separate JSON snapshot or chat runner is included. TypeScript
|
|
228
238
|
projects include `npm run build` for compiling code to import into another application.
|
|
229
239
|
|
|
230
|
-
|
|
231
|
-
|
|
240
|
+
In interactive mode, each TypeScript conversation runs in its own process. Reloading or
|
|
241
|
+
rebuilding its agent evaluates the source again, so module globals reset and are not shared
|
|
242
|
+
between conversations. Model changes and reloads keep the conversation; `/clear` starts fresh.
|
|
243
|
+
|
|
244
|
+
Run `strands --agent ./agent.zip` directly: the CLI extracts the project into its cache and
|
|
245
|
+
installs its declared dependencies on first launch.
|
|
232
246
|
For an existing source folder, install its dependencies (`npm install`, or create `.venv`
|
|
233
247
|
and install `requirements.txt` for Python), then launch with any of:
|
|
234
248
|
|
|
@@ -262,15 +276,15 @@ cross-language, lacks packageable source, or would embed an MCP secret. Credenti
|
|
|
262
276
|
sessions, memory contents, and running processes are runtime state and are intentionally not exported.
|
|
263
277
|
Machine-discovered MCP servers and skills are not part of the portable definition.
|
|
264
278
|
|
|
265
|
-
| Provider | Model prefix | Credential source
|
|
266
|
-
| -------------- | ----------------- |
|
|
267
|
-
| Amazon Bedrock | `bedrock/` | Standard AWS SDK credential chain
|
|
268
|
-
| Bedrock Mantle | `bedrock-mantle/` | Standard AWS SDK credential chain
|
|
269
|
-
| Anthropic | `anthropic/` | `ANTHROPIC_API_KEY`
|
|
270
|
-
| OpenAI | `openai/` | `OPENAI_API_KEY`
|
|
271
|
-
| Google Gemini | `google/` | `GEMINI_API_KEY`
|
|
272
|
-
| Ollama | `ollama/` | Auto-detected locally; `OLLAMA_HOST` only for a custom server
|
|
273
|
-
| LiteLLM proxy | `litellm/` | Auto-detected locally; `LITELLM_BASE_URL` for a custom proxy, optional key
|
|
279
|
+
| Provider | Model prefix | Credential source |
|
|
280
|
+
| -------------- | ----------------- | -------------------------------------------------------------------------- |
|
|
281
|
+
| Amazon Bedrock | `bedrock/` | Standard AWS SDK credential chain |
|
|
282
|
+
| Bedrock Mantle | `bedrock-mantle/` | Standard AWS SDK credential chain |
|
|
283
|
+
| Anthropic | `anthropic/` | `ANTHROPIC_API_KEY` |
|
|
284
|
+
| OpenAI | `openai/` | `OPENAI_API_KEY` |
|
|
285
|
+
| Google Gemini | `google/` | `GEMINI_API_KEY` |
|
|
286
|
+
| Ollama | `ollama/` | Auto-detected locally; `OLLAMA_HOST` only for a custom server |
|
|
287
|
+
| LiteLLM proxy | `litellm/` | Auto-detected locally; `LITELLM_BASE_URL` for a custom proxy, optional key |
|
|
274
288
|
|
|
275
289
|
The CLI does not store provider secrets. Setup detects credentials from the process environment,
|
|
276
290
|
explicitly selected env files, AWS profiles, and other credential sources supported by the
|
|
@@ -280,9 +294,11 @@ Workspace, saved-profile, and imported-project `.env` and `.env.local` files are
|
|
|
280
294
|
files explicitly, in precedence order: `strands --env-file .env --env-file .env.local`.
|
|
281
295
|
This also loads custom environment variables used by agent code or MCP configuration.
|
|
282
296
|
`AWS_CONFIG_FILE` and `AWS_SHARED_CREDENTIALS_FILE` in selected files also control setup discovery.
|
|
283
|
-
Existing shell values take precedence over saved provider settings, which take precedence over selected files
|
|
297
|
+
Existing shell values take precedence over saved provider settings, which take precedence over selected files,
|
|
298
|
+
except for an AWS profile chosen in setup or `/model`. That choice persists and overrides the shell profile
|
|
299
|
+
and Bedrock API token; choose the environment/default credential chain to restore automatic authentication.
|
|
284
300
|
For an imported agent, use `strands --agent ./project --env-file ./project/.env`.
|
|
285
|
-
In setup, **
|
|
301
|
+
In setup, **Refresh** reloads
|
|
286
302
|
those files and rechecks AWS credentials without restarting; new exports in another
|
|
287
303
|
shell require restarting the CLI. Amazon Bedrock API tokens also need `AWS_REGION` or
|
|
288
304
|
`AWS_DEFAULT_REGION` matching the region that issued the token.
|
|
@@ -315,6 +331,16 @@ unavailable without blocking startup. Malformed configuration in the CLI's own f
|
|
|
315
331
|
problem in another tool's file skips that server or file and is listed under `/mcp`. Stdio servers
|
|
316
332
|
run with their stderr discarded, so server diagnostics never print over the terminal UI.
|
|
317
333
|
|
|
334
|
+
In `/mcp`, select a server and press **→** for its full error, configuration source, and recovery
|
|
335
|
+
steps. **Enter** enables or disables it; the switch shows whether the server is enabled, while
|
|
336
|
+
the status shows whether it connected. Press **R** to retry a failed connection with the loaded
|
|
337
|
+
settings. Use **/** to search.
|
|
338
|
+
|
|
339
|
+
Retry does not reread configuration or environment files. After editing those files, open
|
|
340
|
+
`/setup` and save to rebuild the agent, or restart Strands. New environment variables exported
|
|
341
|
+
in another shell require a restart. Remote servers need credentials configured for Strands;
|
|
342
|
+
sign-in saved by another app is not shared, and the CLI has no MCP browser sign-in flow.
|
|
343
|
+
|
|
318
344
|
Configuration is merged by server name. Later files replace earlier definitions; a later
|
|
319
345
|
`"disabled": true` removes an earlier server.
|
|
320
346
|
|
|
@@ -329,7 +355,7 @@ When MCP discovery is enabled, user configuration is discovered in this order:
|
|
|
329
355
|
2. `~/.kiro/settings/mcp.json`
|
|
330
356
|
3. `~/.gemini/settings.json` (comments allowed; `httpUrl` is streamable HTTP, `url` is SSE)
|
|
331
357
|
4. `~/.codex/config.toml`
|
|
332
|
-
5. `~/.strands/
|
|
358
|
+
5. `~/.strands/mcp.json`
|
|
333
359
|
|
|
334
360
|
The CLI then applies trusted project configuration from `.mcp.json`, `.kiro/settings/mcp.json`,
|
|
335
361
|
`.gemini/settings.json`, `.codex/config.toml`, and `.strands/mcp.json`. Repeated `--mcp-config`
|
|
@@ -340,7 +366,7 @@ Project MCP files can run local commands, so the CLI asks before loading them in
|
|
|
340
366
|
plain mode. Print and ACP-server mode never prompt; they load project files only when their current
|
|
341
367
|
fingerprint was approved previously.
|
|
342
368
|
Approval is bound to the canonical workspace and a fingerprint of the exact project file paths and
|
|
343
|
-
contents,
|
|
369
|
+
contents, which the CLI remembers. Changing a project file requires
|
|
344
370
|
approval again, and a change between approval and loading aborts startup. Passing a project file
|
|
345
371
|
explicitly with `--mcp-config` is treated as an intentional opt-in and does not prompt.
|
|
346
372
|
|
|
@@ -350,7 +376,7 @@ supplied by the ACP client.
|
|
|
350
376
|
## Agent Skills
|
|
351
377
|
|
|
352
378
|
When skill discovery is enabled, the CLI discovers Agent Skills in `~/.agents/skills`, `~/.claude/skills`, `~/.codex/skills`, and
|
|
353
|
-
`~/.strands/
|
|
379
|
+
`~/.strands/skills`. It also scans each directory from the repository root down to the current
|
|
354
380
|
working directory for `.agents/skills`, `.claude/skills`, `.codex/skills`, `.agent/skills`, and
|
|
355
381
|
`.strands/skills`.
|
|
356
382
|
|
|
@@ -372,29 +398,28 @@ directories (`./.agent/skills` by default); `--skills off` disables skills entir
|
|
|
372
398
|
The Ink backend installs the Strands Harness SDK's Cedar intervention before constructing the agent
|
|
373
399
|
through `createHarness()`. Cedar automatically permits workspace-local `read` calls (after
|
|
374
400
|
canonical-path and symlink checks), `todo_write`, `retrieve_context`, and `retrieve_offloaded_content`. Every other built-in
|
|
375
|
-
or MCP tool call opens a permission panel with **Allow once**, **Always allow
|
|
376
|
-
Always
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}
|
|
388
|
-
}
|
|
401
|
+
or MCP tool call opens a permission panel with **Allow once**, **Always allow**, **Deny once**,
|
|
402
|
+
and **Always deny**. Saved choices let you select a specific action or the whole tool.
|
|
403
|
+
Saved allow and deny rules are written to `~/.strands/cli.toml` and apply across launches.
|
|
404
|
+
Shell scopes match command text; they do not sandbox what commands execute.
|
|
405
|
+
A denial is returned to the agent as a denied tool call.
|
|
406
|
+
|
|
407
|
+
The CLI reads user-level permission settings from `~/.strands/cli.toml`:
|
|
408
|
+
|
|
409
|
+
```toml
|
|
410
|
+
[permissions]
|
|
411
|
+
mode = "default"
|
|
412
|
+
allow = ["shell", "edit"]
|
|
389
413
|
```
|
|
390
414
|
|
|
391
|
-
`permissions.mode` accepts `"default"` or `"bypassPermissions"`. Bypass mode
|
|
392
|
-
|
|
415
|
+
`permissions.mode` accepts `"default"` or `"bypassPermissions"`. Bypass mode skips approval
|
|
416
|
+
prompts; saved deny rules still apply. It does not disable additional
|
|
393
417
|
interventions supplied by the caller or an operating-system sandbox. Permission configuration is
|
|
394
|
-
user-owned; the CLI does not load a project
|
|
418
|
+
user-owned; the CLI does not load a project config file that could silently enable bypass mode.
|
|
395
419
|
Use `/permissions` to inspect or change the mode and remove saved tool grants.
|
|
396
420
|
Use `/settings` to persist presentation preferences in the same file. Disabling animations also
|
|
397
|
-
skips the startup intro on later launches.
|
|
421
|
+
skips the startup intro on later launches. Unrecognized or invalid presentation settings use their
|
|
422
|
+
defaults without preventing startup; unknown settings keys are preserved when saving.
|
|
398
423
|
|
|
399
424
|
This approval layer is not an operating-system sandbox. Unless a caller supplies a Strands
|
|
400
425
|
`sandbox`, the harness's shell, file, MCP, delegate, and Background Task work runs in the host process with
|
|
@@ -411,32 +436,39 @@ than an operating-system sandbox.
|
|
|
411
436
|
|
|
412
437
|
These commands are local to the full-screen Ink UI:
|
|
413
438
|
|
|
414
|
-
| Command
|
|
415
|
-
|
|
|
416
|
-
| `/help`
|
|
417
|
-
| `/context`
|
|
418
|
-
| `/compact`
|
|
419
|
-
| `/clear`
|
|
420
|
-
| `/tasks`
|
|
421
|
-
| `/model [model-id]`
|
|
422
|
-
| `/effort [level]`
|
|
423
|
-
| `/fork [request]`
|
|
424
|
-
| `/agents`
|
|
425
|
-
| `/rename
|
|
426
|
-
| `/sessions`
|
|
427
|
-
| `/skills`
|
|
428
|
-
| `/
|
|
429
|
-
| `/
|
|
430
|
-
| `/
|
|
431
|
-
| `/
|
|
432
|
-
| `/
|
|
433
|
-
| `/
|
|
434
|
-
|
|
|
435
|
-
| `/
|
|
439
|
+
| Command | Action |
|
|
440
|
+
| ------------------------------ | ------------------------------------------------------------------ |
|
|
441
|
+
| `/help` | Browse controls, commands, and the current agent's available tools |
|
|
442
|
+
| `/context` | Show context usage and prompt-cache activity |
|
|
443
|
+
| `/compact` | Summarize older conversation context |
|
|
444
|
+
| `/clear` | Rebuild the agent with a fresh conversation |
|
|
445
|
+
| `/tasks` | Show task state and live subagent progress |
|
|
446
|
+
| `/model [model-id]` | Browse or change the active model |
|
|
447
|
+
| `/effort [level]` | Open the effort slider or set the reasoning effort directly |
|
|
448
|
+
| `/fork [request]` | Fork the current conversation into an independent agent |
|
|
449
|
+
| `/agents` | View conversations and live subagents |
|
|
450
|
+
| `/rename [name]` | Rename the active agent |
|
|
451
|
+
| `/sessions` | Browse and resume saved sessions |
|
|
452
|
+
| `/skills` | Browse available and active Agent Skills |
|
|
453
|
+
| `/file [clear\|<paths>...]` | Attach files to the next message |
|
|
454
|
+
| `/mcp` | Inspect MCP servers, read failure details, and retry connections |
|
|
455
|
+
| `/permissions` | Configure persistent tool approvals |
|
|
456
|
+
| `/voice [on\|off\|status]` | Open the bidirectional voice supervisor |
|
|
457
|
+
| `/settings` | Configure presentation and inspect the active runtime |
|
|
458
|
+
| `/config [typescript\|python]` | Preview generated code or view the active agent's source |
|
|
459
|
+
| `/setup` | Configure providers and the default agent |
|
|
460
|
+
| `/export` | Write the agent as a runnable TypeScript or Python project |
|
|
461
|
+
| `!<command>` | Run a shell command in the active agent's sandbox |
|
|
462
|
+
| `/exit` | Exit the CLI |
|
|
436
463
|
|
|
437
464
|
Slash commands provide inline signatures and argument completion. Press Tab or Enter
|
|
438
465
|
on a completion to replace the current argument token.
|
|
439
466
|
|
|
467
|
+
Use `/file` to open the native macOS or Windows file picker, or pass one or more quoted paths
|
|
468
|
+
directly. Dragging or pasting file paths into the composer attaches them too. Images, supported
|
|
469
|
+
documents, and UTF-8 text files are sent with the next message; `/file clear` removes the draft
|
|
470
|
+
attachments.
|
|
471
|
+
|
|
440
472
|
`/help` groups **Controls**, **Commands**, and **Available tools** in a searchable panel.
|
|
441
473
|
Select a control or tool for its full text, drag to copy, and press Esc to return.
|
|
442
474
|
Tool names and descriptions come from the active backend; unreported tools or origins are
|
|
@@ -447,21 +479,25 @@ An available Agent Skill can also be invoked directly with `/skill-name [prompt]
|
|
|
447
479
|
`$skill-name [prompt]`. The CLI activates it through the SDK's `skills` tool, then runs the trailing
|
|
448
480
|
prompt with that skill's instructions active.
|
|
449
481
|
|
|
450
|
-
`/voice` opens the experimental
|
|
451
|
-
start listening without opening the panel, or
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
482
|
+
`/voice` opens the experimental bidirectional voice control panel without starting audio. Use
|
|
483
|
+
`/voice on` to start listening without opening the panel, or select **On** in the panel. Choose Amazon
|
|
484
|
+
Nova Sonic or OpenAI Realtime as the conversational supervisor. It handles live audio, endpointing,
|
|
485
|
+
and spoken responses, answers ordinary conversation directly, and routes status, delegation, and
|
|
486
|
+
cancellation through the active harness conversation. The selected coding model still owns files,
|
|
487
|
+
tools, approvals, and execution.
|
|
488
|
+
|
|
489
|
+
The panel controls the provider, supported voices, and fast/balanced/patient end-of-turn detection.
|
|
490
|
+
While voice mode is on, the voice model speaks directly and turns completed harness responses into
|
|
491
|
+
short grounded updates. A themed frog hops into the bottom-right corner while voice is active and
|
|
492
|
+
moves its mouth during speech. Voice conversation continues while delegated work runs; only an
|
|
493
|
+
explicit cancel request stops that work.
|
|
494
|
+
|
|
495
|
+
With an empty composer, one Space tap toggles microphone mute, including while the voice panel is
|
|
496
|
+
open. Provider, voice, and endpointing changes restart an active sidecar; selections made while
|
|
497
|
+
voice is off apply on the next start. `/voice off` releases the audio devices. Missing credentials
|
|
498
|
+
appear as an error in the voice panel. Nova requires AWS credentials and model access; OpenAI
|
|
499
|
+
requires `OPENAI_API_KEY`. Both require `uv`, Python 3.13, and PortAudio. The published npm package
|
|
500
|
+
includes the Python sidecar; `uv` installs its Python dependencies on first use.
|
|
465
501
|
|
|
466
502
|
## ACP server
|
|
467
503
|
|
|
@@ -469,6 +505,22 @@ Python sidecar; `uv` installs its Python dependencies on first use.
|
|
|
469
505
|
stdin/stdout. It creates a harness agent for each ACP session, supports client-supplied MCP servers, and
|
|
470
506
|
supports loading saved sessions with transcript replay. Start a separate process for each workspace.
|
|
471
507
|
|
|
508
|
+
The built-in and TypeScript ACP server advertises background updates through
|
|
509
|
+
`_meta["strands/backgroundTasks"] = { "version": 1 }` in `initialize`. A client opts in on
|
|
510
|
+
`session/new` or `session/load` with `_meta: { "strands/backgroundTasks": { "waitForCompletion": false } }`.
|
|
511
|
+
For an opted-in session:
|
|
512
|
+
|
|
513
|
+
- Turns can finish while background tasks run. Explicitly disabled background tasks stay disabled.
|
|
514
|
+
- Task changes arrive as `tool_call_update` notifications for the original tool call, with
|
|
515
|
+
`_meta["strands/backgroundTask"] = { taskId, status }`. Final updates include the result or error.
|
|
516
|
+
- An empty `session/prompt` delivers ready results through the SDK. It makes no model call when
|
|
517
|
+
nothing is ready. Like other prompts, it gets a busy error while a turn is running.
|
|
518
|
+
- Restoring a session reports tasks the SDK recovered as failed; it does not restart their work.
|
|
519
|
+
|
|
520
|
+
Updates are checked between turns and before the SDK consumes results. Closing the connection stops
|
|
521
|
+
notifications and uses normal agent shutdown; it does not add a background-task cancellation policy.
|
|
522
|
+
Clients that do not opt in, and the Python ACP server, keep their existing behavior.
|
|
523
|
+
|
|
472
524
|
## Models, sessions, and background work
|
|
473
525
|
|
|
474
526
|
### Choosing a model
|
|
@@ -490,7 +542,7 @@ the next model call, while rebuilds wait for the active turn to finish.
|
|
|
490
542
|
|
|
491
543
|
### Remembering a conversation
|
|
492
544
|
|
|
493
|
-
Every run persists by default
|
|
545
|
+
Every run persists by default, minting a fresh session id when you don't
|
|
494
546
|
supply one, for interactive chats and one-shot `-p` runs alike. Use `/sessions` to browse and resume
|
|
495
547
|
them. Pass `--session-id` to choose a memorable id or pick up that exact conversation directly:
|
|
496
548
|
|
|
@@ -500,28 +552,54 @@ strands --session-id my-project "let's refactor the parser"
|
|
|
500
552
|
strands --session-id my-project "where did we leave off?"
|
|
501
553
|
```
|
|
502
554
|
|
|
503
|
-
Pass `--session off`
|
|
555
|
+
Pass `--session off` to disable conversation saving. Long-term memory is controlled separately by `--memory`.
|
|
556
|
+
|
|
557
|
+
For built-in profiles and TypeScript agents, resuming restores the saved conversation while keeping
|
|
558
|
+
the current agent's instructions and system prompt. Python agents follow the Python SDK: both resume
|
|
559
|
+
and startup with a saved session ID restore the saved system prompt along with the conversation,
|
|
560
|
+
replacing the current prompt.
|
|
561
|
+
Session files are trusted input: resume only sessions you created, not ones that came with a cloned repository.
|
|
504
562
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
563
|
+
Sessions use the Harness default, `./.agent/sessions`. Set `session.dir` to keep them somewhere else;
|
|
564
|
+
authored agents (`--agent`) keep their own session configuration. Relative paths resolve against
|
|
565
|
+
the profile's base directory, or the current workspace when no base directory is set.
|
|
566
|
+
For authored agents with sessions disabled or a custom session manager, `--session-id` is ignored;
|
|
567
|
+
the authored configuration controls session identity.
|
|
568
|
+
In Ink, `/sessions` lists sessions from registered workspaces and can resume them across worktrees.
|
|
569
|
+
The CLI keeps this catalog under `~/.strands/sessions/`; existing sessions there or under
|
|
570
|
+
`~/.strands/cli/sessions/` remain available without moving them.
|
|
571
|
+
|
|
572
|
+
`/sessions rename <name>` names the current saved session and updates the terminal
|
|
573
|
+
title. Saved names return when you reopen the session. Leave out the name to have the agent's
|
|
574
|
+
auxiliary model—or its active model when no auxiliary model is available—suggest a three-word name
|
|
575
|
+
in the background from a copy of the conversation; if that fails, the existing name stays.
|
|
508
576
|
|
|
509
577
|
### Background Tasks
|
|
510
578
|
|
|
511
579
|
`subagent` always runs in the background. Any other compatible tool may run there when the model
|
|
512
|
-
selects `_background_execution: true`. Ink
|
|
580
|
+
selects `_background_execution: true`. Ink uses detached mode so the composer remains
|
|
513
581
|
available; `/tasks` shows task state and live subagent progress, and a ready result automatically
|
|
514
|
-
starts a continuation turn.
|
|
515
|
-
blocking mode when a turn should stay open until all background results have been delivered.
|
|
582
|
+
starts a continuation turn.
|
|
516
583
|
|
|
517
584
|
Turn token totals include delegated work. When detached work finishes, its originating turn's
|
|
518
585
|
total updates; the context meter continues to measure the parent agent's prompt.
|
|
519
586
|
|
|
520
|
-
|
|
521
|
-
|
|
587
|
+
Background activity appears in one row below the input. Press Down from an empty input, or Tab
|
|
588
|
+
from a non-command draft, to focus it; Left/Right chooses a task and Enter opens its live activity.
|
|
589
|
+
Tab stays with slash-command completion. Esc returns to the input without losing the draft.
|
|
590
|
+
|
|
591
|
+
Live subagents also appear in `/agents` while they are available for peer messages. Select a card
|
|
592
|
+
and press Enter (or click it) to watch its activity; Esc returns to the cards. These views are
|
|
593
|
+
read-only, and the cards disappear when the delegated task finishes.
|
|
594
|
+
|
|
595
|
+
`/rename <name>` names the active agent in chat, `/agents`, and peer messages, independently of its
|
|
596
|
+
session title. Names are saved with file-backed sessions and restored when reopened. `/rename` without
|
|
597
|
+
a name opens the editor; in `/agents`, select a card and press `R` or click **Rename**. Enter saves and
|
|
598
|
+
Esc cancels.
|
|
522
599
|
|
|
523
|
-
Plain, print,
|
|
524
|
-
|
|
600
|
+
Plain, print, and direct library invocations use the normal wait-for-completion behavior, as do
|
|
601
|
+
ACP sessions unless the client opts in to [background updates](#acp-server).
|
|
602
|
+
Ink blocks model-family restarts and session replacement while
|
|
525
603
|
Background Tasks are running or waiting for delivery. Use the library's `backgroundTasks` option
|
|
526
604
|
for custom policy or to disable the feature.
|
|
527
605
|
|
|
@@ -542,7 +620,13 @@ Each time the interactive TUI starts with the built-in profile, `strands` sends
|
|
|
542
620
|
and plugins are actually in use. The whole payload is:
|
|
543
621
|
|
|
544
622
|
```json
|
|
545
|
-
{
|
|
623
|
+
{
|
|
624
|
+
"v": 1,
|
|
625
|
+
"cli_version": "0.1.0",
|
|
626
|
+
"provider": "bedrock",
|
|
627
|
+
"builtin_tools": ["shell", "read"],
|
|
628
|
+
"builtin_plugins": ["todos"]
|
|
629
|
+
}
|
|
546
630
|
```
|
|
547
631
|
|
|
548
632
|
`provider` is one of the shipped provider names and is omitted for a custom model module. The payload
|
|
@@ -552,7 +636,7 @@ ping is fire-and-forget: startup never waits on it and failures are silent. Noth
|
|
|
552
636
|
projects).
|
|
553
637
|
|
|
554
638
|
Turn it off with `STRANDS_CLI_TELEMETRY=off` (or `DO_NOT_TRACK=1`), the **Usage ping** toggle in `/settings`
|
|
555
|
-
(takes effect at the next launch), or `
|
|
639
|
+
(takes effect at the next launch), or `telemetry = false` under `[settings]` in `~/.strands/cli.toml`.
|
|
556
640
|
|
|
557
641
|
## Beyond the CLI
|
|
558
642
|
|
|
@@ -579,7 +663,7 @@ Contributions are welcome: bug reports, features, docs, or a well-scoped PR. See
|
|
|
579
663
|
development setup, how we work, and the pull-request flow. Please also review our
|
|
580
664
|
[Code of Conduct](https://github.com/strands-agents/harness-sdk/blob/main/CODE_OF_CONDUCT.md).
|
|
581
665
|
|
|
582
|
-
The cache patch in `src/
|
|
666
|
+
The cache patch in `src/terminal/ink.ts` bounds Ink 7.1.1's text-layout caches in memory during streaming.
|
|
583
667
|
Review this patch when upgrading Ink; it works with read-only installations without changing dependency files.
|
|
584
668
|
|
|
585
669
|
## Security
|
package/bin/strands.js
CHANGED
|
@@ -21,7 +21,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url'
|
|
|
21
21
|
import { spawnSync } from 'node:child_process'
|
|
22
22
|
|
|
23
23
|
const PACKAGE_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..')
|
|
24
|
-
const BUILD_INPUT_DIRECTORIES = ['strands-cli/src'
|
|
24
|
+
const BUILD_INPUT_DIRECTORIES = ['strands-cli/src']
|
|
25
25
|
const BUILD_INPUT_FILES = [
|
|
26
26
|
'package.json',
|
|
27
27
|
'package-lock.json',
|
|
@@ -30,10 +30,6 @@ const BUILD_INPUT_FILES = [
|
|
|
30
30
|
'strands-cli/scripts/setup-source.js',
|
|
31
31
|
'strands-cli/tsconfig.base.json',
|
|
32
32
|
'strands-cli/src/tsconfig.json',
|
|
33
|
-
'harness-py/pyproject.toml',
|
|
34
|
-
'harness-py/README.md',
|
|
35
|
-
'harness-py/LICENSE',
|
|
36
|
-
'harness-py/NOTICE',
|
|
37
33
|
]
|
|
38
34
|
const BUILD_LOCK_TIMEOUT_MS = 120_000
|
|
39
35
|
const BUILD_LOCK_STALE_MS = 300_000
|