@strands-agents/cli 0.2.3 → 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.
Files changed (453) hide show
  1. package/README.md +217 -133
  2. package/bin/strands.js +1 -5
  3. package/dist/src/{tui/strands-backend.js → agent/backend.js} +90 -28
  4. package/dist/src/agent/backend.js.map +1 -0
  5. package/dist/src/{tui/background/activity.js → agent/background.js} +173 -6
  6. package/dist/src/agent/background.js.map +1 -0
  7. package/dist/src/{tui/agent-configuration.js → agent/configuration.js} +62 -105
  8. package/dist/src/agent/configuration.js.map +1 -0
  9. package/dist/src/agent/context.js +112 -0
  10. package/dist/src/agent/context.js.map +1 -0
  11. package/dist/src/{tui/chat/sdk-projector.js → agent/events.js} +6 -5
  12. package/dist/src/agent/events.js.map +1 -0
  13. package/dist/src/{tui/permissions/file-change-preview.js → agent/file-changes.js} +10 -8
  14. package/dist/src/agent/file-changes.js.map +1 -0
  15. package/dist/src/agent/mcp.js +436 -0
  16. package/dist/src/agent/mcp.js.map +1 -0
  17. package/dist/src/agent/messaging.js +424 -0
  18. package/dist/src/agent/messaging.js.map +1 -0
  19. package/dist/src/agent/permission-rules.js +267 -0
  20. package/dist/src/agent/permission-rules.js.map +1 -0
  21. package/dist/src/agent/permissions.js +288 -0
  22. package/dist/src/agent/permissions.js.map +1 -0
  23. package/dist/src/agent/runtime.js +524 -0
  24. package/dist/src/agent/runtime.js.map +1 -0
  25. package/dist/src/{tui/workspace → agent}/sandbox.js +92 -25
  26. package/dist/src/agent/sandbox.js.map +1 -0
  27. package/dist/src/{tui/chat → agent}/shell.js +1 -1
  28. package/dist/src/agent/shell.js.map +1 -0
  29. package/dist/src/{tui → agent}/skills.js +37 -56
  30. package/dist/src/agent/skills.js.map +1 -0
  31. package/dist/src/{tui/builtin-tools.js → agent/tools.js} +2 -3
  32. package/dist/src/agent/tools.js.map +1 -0
  33. package/dist/src/agent/types.js.map +1 -0
  34. package/dist/src/{tui/voice/session.js → agent/voice.js} +221 -224
  35. package/dist/src/agent/voice.js.map +1 -0
  36. package/dist/src/{tui/acp/projection.js → cli/acp-events.js} +19 -4
  37. package/dist/src/cli/acp-events.js.map +1 -0
  38. package/dist/src/{tui/project/acp.js → cli/acp-python.js} +41 -18
  39. package/dist/src/cli/acp-python.js.map +1 -0
  40. package/dist/src/{tui/acp/server.js → cli/acp.js} +149 -46
  41. package/dist/src/cli/acp.js.map +1 -0
  42. package/dist/src/cli/arguments.js +8 -3
  43. package/dist/src/cli/arguments.js.map +1 -1
  44. package/dist/src/{console.js → cli/console.js} +69 -4
  45. package/dist/src/cli/console.js.map +1 -0
  46. package/dist/src/cli/invocation.js +75 -44
  47. package/dist/src/cli/invocation.js.map +1 -1
  48. package/dist/src/cli/run.js +66 -38
  49. package/dist/src/cli/run.js.map +1 -1
  50. package/dist/src/{tui → cli}/telemetry.js +2 -2
  51. package/dist/src/{tui → cli}/telemetry.js.map +1 -1
  52. package/dist/src/cli/update.js +35 -7
  53. package/dist/src/cli/update.js.map +1 -1
  54. package/dist/src/{tui/mcp/config.js → config/mcp.js} +25 -35
  55. package/dist/src/config/mcp.js.map +1 -0
  56. package/dist/src/{tui → config}/settings.js +78 -130
  57. package/dist/src/config/settings.js.map +1 -0
  58. package/dist/src/config/source.js +87 -0
  59. package/dist/src/config/source.js.map +1 -0
  60. package/dist/src/{tui/config.js → config/store.js} +178 -49
  61. package/dist/src/config/store.js.map +1 -0
  62. package/dist/src/{tui/workspace → config}/trust.js +12 -16
  63. package/dist/src/config/trust.js.map +1 -0
  64. package/dist/src/logging.js +3 -4
  65. package/dist/src/logging.js.map +1 -1
  66. package/dist/src/{tui/provider → model}/aws-config.js +13 -4
  67. package/dist/src/model/aws-config.js.map +1 -0
  68. package/dist/src/{tui/provider/bedrock-catalog.js → model/bedrock.js} +70 -3
  69. package/dist/src/model/bedrock.js.map +1 -0
  70. package/dist/src/{tui/provider → model}/discovery.js +11 -10
  71. package/dist/src/model/discovery.js.map +1 -0
  72. package/dist/src/{tui/provider → model}/environment.js +19 -16
  73. package/dist/src/model/environment.js.map +1 -0
  74. package/dist/src/{tui/model/display.js → model/metadata.js} +6 -1
  75. package/dist/src/model/metadata.js.map +1 -0
  76. package/dist/src/model/packages.js.map +1 -0
  77. package/dist/src/{tui/model → model}/runtime.js +31 -62
  78. package/dist/src/model/runtime.js.map +1 -0
  79. package/dist/src/{tui/model → model}/selection.js +9 -15
  80. package/dist/src/model/selection.js.map +1 -0
  81. package/dist/src/{tui/package-version.js → package-version.js} +6 -0
  82. package/dist/src/package-version.js.map +1 -0
  83. package/dist/src/paths.js +23 -0
  84. package/dist/src/paths.js.map +1 -0
  85. package/dist/src/project/archive.js +461 -0
  86. package/dist/src/project/archive.js.map +1 -0
  87. package/dist/src/{tui/project → project}/export.js +249 -72
  88. package/dist/src/project/export.js.map +1 -0
  89. package/dist/src/{tui/project → project}/import.js +58 -6
  90. package/dist/src/project/import.js.map +1 -0
  91. package/dist/src/{tui/project → project}/module-loader.js +1 -5
  92. package/dist/src/project/module-loader.js.map +1 -0
  93. package/dist/src/{tui/project → project}/packaging.js +25 -8
  94. package/dist/src/project/packaging.js.map +1 -0
  95. package/dist/src/project/portability.js +455 -0
  96. package/dist/src/project/portability.js.map +1 -0
  97. package/dist/src/{tui/project → project}/python.js +46 -31
  98. package/dist/src/project/python.js.map +1 -0
  99. package/dist/src/{tui/project → project}/source.js +45 -26
  100. package/dist/src/project/source.js.map +1 -0
  101. package/dist/src/project/typescript-backend.js +733 -0
  102. package/dist/src/project/typescript-backend.js.map +1 -0
  103. package/dist/src/project/typescript-worker.js +488 -0
  104. package/dist/src/project/typescript-worker.js.map +1 -0
  105. package/dist/src/{tui/project → project}/typescript.js +19 -7
  106. package/dist/src/project/typescript.js.map +1 -0
  107. package/dist/src/project/watch.js +33 -0
  108. package/dist/src/project/watch.js.map +1 -0
  109. package/dist/src/{tui/project → project}/worker.py +358 -106
  110. package/dist/src/session/agent-definition.js +35 -0
  111. package/dist/src/session/agent-definition.js.map +1 -0
  112. package/dist/src/session/catalog.js +156 -0
  113. package/dist/src/session/catalog.js.map +1 -0
  114. package/dist/src/{tui/session → session}/context.js +45 -5
  115. package/dist/src/session/context.js.map +1 -0
  116. package/dist/src/{tui/session → session}/desktop-profile.js +1 -0
  117. package/dist/src/session/desktop-profile.js.map +1 -0
  118. package/dist/src/{tui/session → session}/sessions.js +126 -27
  119. package/dist/src/session/sessions.js.map +1 -0
  120. package/dist/src/terminal/arguments.js +53 -0
  121. package/dist/src/terminal/arguments.js.map +1 -0
  122. package/dist/src/{tui/terminal → terminal}/composer.js +51 -24
  123. package/dist/src/terminal/composer.js.map +1 -0
  124. package/dist/src/terminal/directory-picker.js +182 -0
  125. package/dist/src/terminal/directory-picker.js.map +1 -0
  126. package/dist/src/terminal/ink.js.map +1 -0
  127. package/dist/src/terminal/mouse-input.js.map +1 -0
  128. package/dist/src/terminal/npm.js.map +1 -0
  129. package/dist/src/terminal/open-editor.js +40 -0
  130. package/dist/src/terminal/open-editor.js.map +1 -0
  131. package/dist/src/terminal/open-url.js +26 -0
  132. package/dist/src/terminal/open-url.js.map +1 -0
  133. package/dist/src/terminal/process-tree.js.map +1 -0
  134. package/dist/src/terminal/shell-output.js.map +1 -0
  135. package/dist/src/{tui/terminal → terminal}/terminal.js +40 -2
  136. package/dist/src/terminal/terminal.js.map +1 -0
  137. package/dist/src/{tui/terminal/sanitize.js → terminal/text.js} +40 -6
  138. package/dist/src/terminal/text.js.map +1 -0
  139. package/dist/src/terminal/theme-detection.js +197 -0
  140. package/dist/src/terminal/theme-detection.js.map +1 -0
  141. package/dist/src/{tui/view/fade-in.js → ui/animation.js} +26 -1
  142. package/dist/src/ui/animation.js.map +1 -0
  143. package/dist/src/ui/app.js +176 -0
  144. package/dist/src/ui/app.js.map +1 -0
  145. package/dist/src/ui/chat/attachments.js +135 -0
  146. package/dist/src/ui/chat/attachments.js.map +1 -0
  147. package/dist/src/{tui → ui}/chat/commands.js +55 -7
  148. package/dist/src/ui/chat/commands.js.map +1 -0
  149. package/dist/src/{tui → ui}/chat/controller.js +1176 -345
  150. package/dist/src/ui/chat/controller.js.map +1 -0
  151. package/dist/src/ui/chat/conversations.js +692 -0
  152. package/dist/src/ui/chat/conversations.js.map +1 -0
  153. package/dist/src/{tui → ui}/chat/help.js +11 -5
  154. package/dist/src/ui/chat/help.js.map +1 -0
  155. package/dist/src/ui/chat/panel-state.js +513 -0
  156. package/dist/src/ui/chat/panel-state.js.map +1 -0
  157. package/dist/src/{tui → ui}/chat/projector.js +93 -8
  158. package/dist/src/ui/chat/projector.js.map +1 -0
  159. package/dist/src/ui/chat/prompt.js +176 -0
  160. package/dist/src/ui/chat/prompt.js.map +1 -0
  161. package/dist/src/ui/chat/runtime.js +589 -0
  162. package/dist/src/ui/chat/runtime.js.map +1 -0
  163. package/dist/src/ui/chat/screen.js +1907 -0
  164. package/dist/src/ui/chat/screen.js.map +1 -0
  165. package/dist/src/{tui/chat/controller-helpers.js → ui/chat/state.js} +39 -3
  166. package/dist/src/ui/chat/state.js.map +1 -0
  167. package/dist/src/ui/chat/stream-presentation.js.map +1 -0
  168. package/dist/src/ui/chat/transcript-turn.js +189 -0
  169. package/dist/src/ui/chat/transcript-turn.js.map +1 -0
  170. package/dist/src/{tui/view → ui/chat}/transcript.js +66 -6
  171. package/dist/src/ui/chat/transcript.js.map +1 -0
  172. package/dist/src/ui/chat/types.js +2 -0
  173. package/dist/src/ui/chat/types.js.map +1 -0
  174. package/dist/src/ui/chat/view.js +249 -0
  175. package/dist/src/ui/chat/view.js.map +1 -0
  176. package/dist/src/ui/chat/voice.js +388 -0
  177. package/dist/src/ui/chat/voice.js.map +1 -0
  178. package/dist/src/ui/footer.js +110 -0
  179. package/dist/src/ui/footer.js.map +1 -0
  180. package/dist/src/{tui/view → ui}/frog-canvas.js +47 -50
  181. package/dist/src/ui/frog-canvas.js.map +1 -0
  182. package/dist/src/{tui/view → ui}/frog-drawing.js +36 -29
  183. package/dist/src/ui/frog-drawing.js.map +1 -0
  184. package/dist/src/{tui/view/frog-intro-renderer.js → ui/frog-renderer.js} +63 -46
  185. package/dist/src/ui/frog-renderer.js.map +1 -0
  186. package/dist/src/{tui/view/frog-easter-egg.js → ui/frog.js} +34 -6
  187. package/dist/src/ui/frog.js.map +1 -0
  188. package/dist/src/ui/interaction.js +525 -0
  189. package/dist/src/ui/interaction.js.map +1 -0
  190. package/dist/src/{tui/view → ui}/markdown.js +12 -9
  191. package/dist/src/ui/markdown.js.map +1 -0
  192. package/dist/src/ui/mcp-diagnostics.js +56 -0
  193. package/dist/src/ui/mcp-diagnostics.js.map +1 -0
  194. package/dist/src/ui/media.js +59 -0
  195. package/dist/src/ui/media.js.map +1 -0
  196. package/dist/src/ui/panels/agents.js +97 -0
  197. package/dist/src/ui/panels/agents.js.map +1 -0
  198. package/dist/src/ui/panels/configuration.js +201 -0
  199. package/dist/src/ui/panels/configuration.js.map +1 -0
  200. package/dist/src/ui/panels/context.js +102 -0
  201. package/dist/src/ui/panels/context.js.map +1 -0
  202. package/dist/src/ui/panels/export.js +17 -0
  203. package/dist/src/ui/panels/export.js.map +1 -0
  204. package/dist/src/ui/panels/help.js +22 -0
  205. package/dist/src/ui/panels/help.js.map +1 -0
  206. package/dist/src/ui/panels/models.js +180 -0
  207. package/dist/src/ui/panels/models.js.map +1 -0
  208. package/dist/src/ui/panels/panel.js +122 -0
  209. package/dist/src/ui/panels/panel.js.map +1 -0
  210. package/dist/src/ui/panels/permissions.js +90 -0
  211. package/dist/src/ui/panels/permissions.js.map +1 -0
  212. package/dist/src/ui/panels/sessions.js +54 -0
  213. package/dist/src/ui/panels/sessions.js.map +1 -0
  214. package/dist/src/ui/panels/settings.js +125 -0
  215. package/dist/src/ui/panels/settings.js.map +1 -0
  216. package/dist/src/ui/panels/shared.js +50 -0
  217. package/dist/src/ui/panels/shared.js.map +1 -0
  218. package/dist/src/ui/panels/tasks.js +15 -0
  219. package/dist/src/ui/panels/tasks.js.map +1 -0
  220. package/dist/src/ui/panels/voice.js +142 -0
  221. package/dist/src/ui/panels/voice.js.map +1 -0
  222. package/dist/src/{tui/permissions/settings.js → ui/permission-options.js} +13 -2
  223. package/dist/src/ui/permission-options.js.map +1 -0
  224. package/dist/src/{tui/view → ui}/presentation.js +170 -112
  225. package/dist/src/ui/presentation.js.map +1 -0
  226. package/dist/src/{tui → ui}/run.js +173 -36
  227. package/dist/src/ui/run.js.map +1 -0
  228. package/dist/src/{tui/view/setup-wizard/settings-panel.js → ui/setup/form.js} +6 -6
  229. package/dist/src/ui/setup/form.js.map +1 -0
  230. package/dist/src/ui/setup/menu.js +133 -0
  231. package/dist/src/ui/setup/menu.js.map +1 -0
  232. package/dist/src/{tui/view/setup-wizard → ui/setup}/providers.js +157 -20
  233. package/dist/src/ui/setup/providers.js.map +1 -0
  234. package/dist/src/{tui/view/setup-wizard → ui/setup}/steps.js +193 -147
  235. package/dist/src/ui/setup/steps.js.map +1 -0
  236. package/dist/src/ui/setup/wizard.js +2075 -0
  237. package/dist/src/ui/setup/wizard.js.map +1 -0
  238. package/dist/src/ui/startup.js +147 -0
  239. package/dist/src/ui/startup.js.map +1 -0
  240. package/dist/src/{tui/terminal/size.js → ui/terminal-size.js} +1 -1
  241. package/dist/src/ui/terminal-size.js.map +1 -0
  242. package/dist/src/ui/text-input.js +50 -0
  243. package/dist/src/ui/text-input.js.map +1 -0
  244. package/dist/src/{tui/view → ui}/theme.js +24 -31
  245. package/dist/src/ui/theme.js.map +1 -0
  246. package/dist/src/ui/update.js +126 -0
  247. package/dist/src/ui/update.js.map +1 -0
  248. package/dist/src/usage.js +0 -5
  249. package/dist/src/usage.js.map +1 -1
  250. package/dist/src/values.js +5 -0
  251. package/dist/src/values.js.map +1 -0
  252. package/package.json +16 -8
  253. package/src/agent/voice-sidecar.py +730 -0
  254. package/dist/src/console.js.map +0 -1
  255. package/dist/src/tui/acp/projection.js.map +0 -1
  256. package/dist/src/tui/acp/server.js.map +0 -1
  257. package/dist/src/tui/agent-configuration.js.map +0 -1
  258. package/dist/src/tui/background/activity.js.map +0 -1
  259. package/dist/src/tui/background/inbox.js +0 -120
  260. package/dist/src/tui/background/inbox.js.map +0 -1
  261. package/dist/src/tui/background/tasks.js +0 -98
  262. package/dist/src/tui/background/tasks.js.map +0 -1
  263. package/dist/src/tui/builtin-tools.js.map +0 -1
  264. package/dist/src/tui/chat/commands.js.map +0 -1
  265. package/dist/src/tui/chat/controller-helpers.js.map +0 -1
  266. package/dist/src/tui/chat/controller.js.map +0 -1
  267. package/dist/src/tui/chat/help.js.map +0 -1
  268. package/dist/src/tui/chat/panels.js +0 -407
  269. package/dist/src/tui/chat/panels.js.map +0 -1
  270. package/dist/src/tui/chat/projector.js.map +0 -1
  271. package/dist/src/tui/chat/sdk-projector.js.map +0 -1
  272. package/dist/src/tui/chat/shell.js.map +0 -1
  273. package/dist/src/tui/chat/types.js +0 -2
  274. package/dist/src/tui/chat/types.js.map +0 -1
  275. package/dist/src/tui/config.js.map +0 -1
  276. package/dist/src/tui/configuration-instructions.js +0 -14
  277. package/dist/src/tui/configuration-instructions.js.map +0 -1
  278. package/dist/src/tui/mcp/config.js.map +0 -1
  279. package/dist/src/tui/mcp.js +0 -98
  280. package/dist/src/tui/mcp.js.map +0 -1
  281. package/dist/src/tui/memory-options.js +0 -10
  282. package/dist/src/tui/memory-options.js.map +0 -1
  283. package/dist/src/tui/messaging.js +0 -193
  284. package/dist/src/tui/messaging.js.map +0 -1
  285. package/dist/src/tui/model/context.js +0 -69
  286. package/dist/src/tui/model/context.js.map +0 -1
  287. package/dist/src/tui/model/display.js.map +0 -1
  288. package/dist/src/tui/model/runtime.js.map +0 -1
  289. package/dist/src/tui/model/selection.js.map +0 -1
  290. package/dist/src/tui/npm.js.map +0 -1
  291. package/dist/src/tui/package-version.js.map +0 -1
  292. package/dist/src/tui/permissions/file-change-preview.js.map +0 -1
  293. package/dist/src/tui/permissions/policy.js +0 -222
  294. package/dist/src/tui/permissions/policy.js.map +0 -1
  295. package/dist/src/tui/permissions/settings.js.map +0 -1
  296. package/dist/src/tui/project/acp.js.map +0 -1
  297. package/dist/src/tui/project/archive.js +0 -241
  298. package/dist/src/tui/project/archive.js.map +0 -1
  299. package/dist/src/tui/project/configuration-secrets.js +0 -107
  300. package/dist/src/tui/project/configuration-secrets.js.map +0 -1
  301. package/dist/src/tui/project/configuration.js +0 -201
  302. package/dist/src/tui/project/configuration.js.map +0 -1
  303. package/dist/src/tui/project/export.js.map +0 -1
  304. package/dist/src/tui/project/import.js.map +0 -1
  305. package/dist/src/tui/project/module-loader.js.map +0 -1
  306. package/dist/src/tui/project/packaging.js.map +0 -1
  307. package/dist/src/tui/project/portable-dependencies.js +0 -34
  308. package/dist/src/tui/project/portable-dependencies.js.map +0 -1
  309. package/dist/src/tui/project/portable-mcp.js +0 -118
  310. package/dist/src/tui/project/portable-mcp.js.map +0 -1
  311. package/dist/src/tui/project/python.js.map +0 -1
  312. package/dist/src/tui/project/run.js +0 -116
  313. package/dist/src/tui/project/run.js.map +0 -1
  314. package/dist/src/tui/project/source.js.map +0 -1
  315. package/dist/src/tui/project/typescript.js.map +0 -1
  316. package/dist/src/tui/provider/aws-client.js +0 -67
  317. package/dist/src/tui/provider/aws-client.js.map +0 -1
  318. package/dist/src/tui/provider/aws-config.js.map +0 -1
  319. package/dist/src/tui/provider/bedrock-catalog.js.map +0 -1
  320. package/dist/src/tui/provider/discovery.js.map +0 -1
  321. package/dist/src/tui/provider/environment.js.map +0 -1
  322. package/dist/src/tui/provider/packages.js.map +0 -1
  323. package/dist/src/tui/run.js.map +0 -1
  324. package/dist/src/tui/runtime.js +0 -524
  325. package/dist/src/tui/runtime.js.map +0 -1
  326. package/dist/src/tui/session/agent-definition.js +0 -100
  327. package/dist/src/tui/session/agent-definition.js.map +0 -1
  328. package/dist/src/tui/session/catalog.js +0 -159
  329. package/dist/src/tui/session/catalog.js.map +0 -1
  330. package/dist/src/tui/session/context.js.map +0 -1
  331. package/dist/src/tui/session/conversation-helpers.js +0 -46
  332. package/dist/src/tui/session/conversation-helpers.js.map +0 -1
  333. package/dist/src/tui/session/conversations.js +0 -471
  334. package/dist/src/tui/session/conversations.js.map +0 -1
  335. package/dist/src/tui/session/desktop-profile.js.map +0 -1
  336. package/dist/src/tui/session/options.js +0 -44
  337. package/dist/src/tui/session/options.js.map +0 -1
  338. package/dist/src/tui/session/sessions.js.map +0 -1
  339. package/dist/src/tui/session/voice.js +0 -353
  340. package/dist/src/tui/session/voice.js.map +0 -1
  341. package/dist/src/tui/settings.js.map +0 -1
  342. package/dist/src/tui/skills.js.map +0 -1
  343. package/dist/src/tui/steering.js +0 -67
  344. package/dist/src/tui/steering.js.map +0 -1
  345. package/dist/src/tui/strands-backend.js.map +0 -1
  346. package/dist/src/tui/stream-presentation.js.map +0 -1
  347. package/dist/src/tui/terminal/composer.js.map +0 -1
  348. package/dist/src/tui/terminal/directory-picker.js +0 -76
  349. package/dist/src/tui/terminal/directory-picker.js.map +0 -1
  350. package/dist/src/tui/terminal/ink.js.map +0 -1
  351. package/dist/src/tui/terminal/mouse-input.js.map +0 -1
  352. package/dist/src/tui/terminal/open-url.js +0 -21
  353. package/dist/src/tui/terminal/open-url.js.map +0 -1
  354. package/dist/src/tui/terminal/process-tree.js.map +0 -1
  355. package/dist/src/tui/terminal/sanitize.js.map +0 -1
  356. package/dist/src/tui/terminal/shell-output.js.map +0 -1
  357. package/dist/src/tui/terminal/size.js.map +0 -1
  358. package/dist/src/tui/terminal/terminal.js.map +0 -1
  359. package/dist/src/tui/update-check.js +0 -37
  360. package/dist/src/tui/update-check.js.map +0 -1
  361. package/dist/src/tui/view/agents-panel.js +0 -21
  362. package/dist/src/tui/view/agents-panel.js.map +0 -1
  363. package/dist/src/tui/view/app.js +0 -1061
  364. package/dist/src/tui/view/app.js.map +0 -1
  365. package/dist/src/tui/view/chat-root.js +0 -49
  366. package/dist/src/tui/view/chat-root.js.map +0 -1
  367. package/dist/src/tui/view/chat-view.js +0 -145
  368. package/dist/src/tui/view/chat-view.js.map +0 -1
  369. package/dist/src/tui/view/command-palette.js +0 -15
  370. package/dist/src/tui/view/command-palette.js.map +0 -1
  371. package/dist/src/tui/view/custom-theme-editor.js +0 -301
  372. package/dist/src/tui/view/custom-theme-editor.js.map +0 -1
  373. package/dist/src/tui/view/effort-panel.js +0 -15
  374. package/dist/src/tui/view/effort-panel.js.map +0 -1
  375. package/dist/src/tui/view/export-panel.js +0 -14
  376. package/dist/src/tui/view/export-panel.js.map +0 -1
  377. package/dist/src/tui/view/fade-in.js.map +0 -1
  378. package/dist/src/tui/view/frog-canvas.js.map +0 -1
  379. package/dist/src/tui/view/frog-drawing.js.map +0 -1
  380. package/dist/src/tui/view/frog-easter-egg.js.map +0 -1
  381. package/dist/src/tui/view/frog-intro-renderer.js.map +0 -1
  382. package/dist/src/tui/view/help-footer.js +0 -48
  383. package/dist/src/tui/view/help-footer.js.map +0 -1
  384. package/dist/src/tui/view/interaction.js +0 -352
  385. package/dist/src/tui/view/interaction.js.map +0 -1
  386. package/dist/src/tui/view/markdown.js.map +0 -1
  387. package/dist/src/tui/view/mcp-trust-prompt.js +0 -17
  388. package/dist/src/tui/view/mcp-trust-prompt.js.map +0 -1
  389. package/dist/src/tui/view/media.js +0 -70
  390. package/dist/src/tui/view/media.js.map +0 -1
  391. package/dist/src/tui/view/model-panel.js +0 -77
  392. package/dist/src/tui/view/model-panel.js.map +0 -1
  393. package/dist/src/tui/view/panel-components.js +0 -17
  394. package/dist/src/tui/view/panel-components.js.map +0 -1
  395. package/dist/src/tui/view/panels.js +0 -139
  396. package/dist/src/tui/view/panels.js.map +0 -1
  397. package/dist/src/tui/view/presentation.js.map +0 -1
  398. package/dist/src/tui/view/prompt-editor.js +0 -82
  399. package/dist/src/tui/view/prompt-editor.js.map +0 -1
  400. package/dist/src/tui/view/provider-list.js +0 -14
  401. package/dist/src/tui/view/provider-list.js.map +0 -1
  402. package/dist/src/tui/view/rename-panel.js +0 -11
  403. package/dist/src/tui/view/rename-panel.js.map +0 -1
  404. package/dist/src/tui/view/sessions-panel.js +0 -15
  405. package/dist/src/tui/view/sessions-panel.js.map +0 -1
  406. package/dist/src/tui/view/settings-panel.js +0 -146
  407. package/dist/src/tui/view/settings-panel.js.map +0 -1
  408. package/dist/src/tui/view/setup-wizard/brand.js +0 -34
  409. package/dist/src/tui/view/setup-wizard/brand.js.map +0 -1
  410. package/dist/src/tui/view/setup-wizard/index.js +0 -1638
  411. package/dist/src/tui/view/setup-wizard/index.js.map +0 -1
  412. package/dist/src/tui/view/setup-wizard/opening-menu.js +0 -99
  413. package/dist/src/tui/view/setup-wizard/opening-menu.js.map +0 -1
  414. package/dist/src/tui/view/setup-wizard/path-completion.js +0 -53
  415. package/dist/src/tui/view/setup-wizard/path-completion.js.map +0 -1
  416. package/dist/src/tui/view/setup-wizard/profile-fields.js +0 -29
  417. package/dist/src/tui/view/setup-wizard/profile-fields.js.map +0 -1
  418. package/dist/src/tui/view/setup-wizard/progress.js +0 -43
  419. package/dist/src/tui/view/setup-wizard/progress.js.map +0 -1
  420. package/dist/src/tui/view/setup-wizard/providers.js.map +0 -1
  421. package/dist/src/tui/view/setup-wizard/settings-panel.js.map +0 -1
  422. package/dist/src/tui/view/setup-wizard/steps.js.map +0 -1
  423. package/dist/src/tui/view/setup-wizard/types.js.map +0 -1
  424. package/dist/src/tui/view/setup-wizard/use-provider-discovery.js +0 -143
  425. package/dist/src/tui/view/setup-wizard/use-provider-discovery.js.map +0 -1
  426. package/dist/src/tui/view/startup-view.js +0 -79
  427. package/dist/src/tui/view/startup-view.js.map +0 -1
  428. package/dist/src/tui/view/text-input.js +0 -33
  429. package/dist/src/tui/view/text-input.js.map +0 -1
  430. package/dist/src/tui/view/theme-detection.js +0 -45
  431. package/dist/src/tui/view/theme-detection.js.map +0 -1
  432. package/dist/src/tui/view/theme.js.map +0 -1
  433. package/dist/src/tui/view/transcript-layout.js +0 -60
  434. package/dist/src/tui/view/transcript-layout.js.map +0 -1
  435. package/dist/src/tui/view/transcript-turn.js +0 -135
  436. package/dist/src/tui/view/transcript-turn.js.map +0 -1
  437. package/dist/src/tui/view/transcript.js.map +0 -1
  438. package/dist/src/tui/view/use-party-frame.js +0 -15
  439. package/dist/src/tui/view/use-party-frame.js.map +0 -1
  440. package/dist/src/tui/view/use-spinner.js +0 -14
  441. package/dist/src/tui/view/use-spinner.js.map +0 -1
  442. package/dist/src/tui/voice/session.js.map +0 -1
  443. package/dist/src/tui/workspace/sandbox.js.map +0 -1
  444. package/dist/src/tui/workspace/trust.js.map +0 -1
  445. package/src/tui/voice/sidecar.py +0 -631
  446. /package/dist/src/{tui/view/setup-wizard → agent}/types.js +0 -0
  447. /package/dist/src/{tui/provider → model}/packages.js +0 -0
  448. /package/dist/src/{tui/terminal → terminal}/ink.js +0 -0
  449. /package/dist/src/{tui/terminal → terminal}/mouse-input.js +0 -0
  450. /package/dist/src/{tui → terminal}/npm.js +0 -0
  451. /package/dist/src/{tui/terminal → terminal}/process-tree.js +0 -0
  452. /package/dist/src/{tui/terminal → terminal}/shell-output.js +0 -0
  453. /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 providers and a model, then select tools, skills, MCP, and other capabilities before
70
- launching. Select or deselect all, or toggle individual capabilities. Customize setup also
71
- exposes the agent instructions, data paths, and approval controls. The CLI detects standard credential
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, and Resume returns to the configured
102
- harness. Use `/export` in chat to save the agent as a TypeScript or Python project.
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, Alt/Option+Enter interrupts
137
- and steers the agent at the next model-loop boundary (Ctrl+Enter also works in terminals that report it
138
- distinctly), and Escape interrupts without discarding the current draft.
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 written to a file under `~/.strands/cli/tool-results/`. Interactive shell sessions and prompts are not
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 | Applies to | Description |
151
- | --------------------------------- | ------------ | ------------------------------------------------------------------------------------------ |
152
- | `-p`, `--print` | Print | Answer once and exit |
153
- | `--prompt <text>` | All | Initial request; equivalent to the positional request |
154
- | `--acp-server` | ACP server | Serve the agent over ACP; cannot be combined with a request, `--print`, or `--setup` |
155
- | `--setup` | Ink | Open the provider and default-agent setup wizard |
156
- | `--agent <path>` | All | Load an agent ZIP, project folder, or `agent.ts`/`agent.py` |
157
- | `--env-file <path>` | All | Load an explicitly trusted env file; repeat for several files, later files win |
158
- | `--set <field=value>` | Harness backend | Override any portable config field; repeatable and JSON-aware |
159
- | `--name <name>` | Harness backend | Override the agent name for this invocation |
160
- | `--description <text>` | Harness backend | Override the agent description for this invocation |
161
- | `--model <model>` | Harness backend | A `provider/model` string or bare Amazon Bedrock model id |
162
- | `--effort <level>` | Harness backend | Reasoning effort: `auto` (default), `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max` |
163
- | `--instructions <text>` | Harness backend | Append domain instructions to the system prompt |
164
- | `--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` |
165
- | `--builtin-plugins <plugins>` | Harness backend | Comma-separated built-ins, or `""` for none; defaults to `todos,environment` |
166
- | `--caching <mode>` | Harness backend | Prompt caching: `auto` (default) or `off` |
167
- | `--context-manager <mode>` | Harness backend | `auto` (default), `agentic`, or `off`; object forms go through `--set` |
168
- | `--session <mode>` | Harness backend | Conversation persistence: `on` (default) or `off` |
169
- | `--session-id <id>` | Harness backend | Resume a conversation by id (defaults to a fresh one); writes `session.id` |
170
- | `--skills <dirs>` | Harness backend | Comma-separated Agent Skills directories or URLs, or `off`; defaults to `./.agent/skills` |
171
- | `--memory <mode>` | Harness backend | Long-term memory: `on` (default) or `off` |
172
- | `--interventions <policy>` | Harness backend | Gate tool calls with `ask`, `smart`, a `.cedar` policy file, or a natural-language rule |
173
- | `--mcp-config <path>` | All modes | Add an MCP configuration file; repeat for multiple files |
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; imported agents take their configuration from their code:
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/config.json`. Explicit CLI flags override the saved
195
- profile. `/setup` saves changes for the next launch so the active conversation keeps a stable
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
- `/settings` offers **Auto**, **Light**, and **Dark** color modes. Auto uses the terminal's
214
- `COLORFGBG` background hint when available and otherwise defaults to dark.
215
- Choose **Theme** to preview Classic, Minimal, Homeland, Merlin, Kikker, Cyborg, Spectre,
216
- or Custom. Arrow keys and clicks preview; Enter applies; Esc cancels.
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
- Run `strands --agent ./agent.zip` directly: the CLI extracts the project into
231
- `~/.strands/cli/cache/agents/` and installs its declared dependencies on first launch.
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, **Recheck configuration** reloads
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/cli/mcp.json`
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, stored in `~/.strands/cli/trusted-workspaces.json`. Changing a project file requires
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/cli/skills`. It also scans each directory from the repository root down to the current
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 tool**, and **Deny**.
376
- Always-allowed tools are written to `~/.strands/cli/config.json` and apply by exact tool name across
377
- launches. A denial is returned
378
- to the agent as a denied tool call.
379
-
380
- The CLI reads user-level permission settings from `~/.strands/cli/config.json`:
381
-
382
- ```json
383
- {
384
- "permissions": {
385
- "mode": "default",
386
- "allow": ["shell", "edit"]
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 allows every built-in
392
- and MCP tool call without opening the Cedar approval panel. It does not disable additional
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 `config.json` that could silently enable bypass mode.
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 | Action |
415
- | ---------------------------- | ------------------------------------------------------------------ |
416
- | `/help` | Browse controls, commands, and the current agent's available tools |
417
- | `/context` | Show context usage and prompt-cache activity |
418
- | `/compact` | Summarize older conversation context |
419
- | `/clear` | Rebuild the agent with a fresh conversation |
420
- | `/tasks` | Show tasks and configure background completion behavior |
421
- | `/model [model-id]` | Browse or change the active model |
422
- | `/effort [level]` | Open the effort slider or set the reasoning effort directly |
423
- | `/fork [request]` | Fork the current conversation into an independent agent |
424
- | `/agents` | View conversations and live subagents |
425
- | `/rename <name>` | Rename the currently viewed agent |
426
- | `/sessions` | Browse and resume saved sessions |
427
- | `/skills` | Browse available and active Agent Skills |
428
- | `/mcp` | Connect to configured MCP servers and show their tools and state |
429
- | `/permissions` | Configure persistent tool approvals |
430
- | `/voice [on\|off\|status]` | Open bidirectional voice controls |
431
- | `/settings` | Configure presentation and inspect the active runtime |
432
- | `/setup` | Configure providers and the default agent |
433
- | `/export` | Write the agent as a runnable TypeScript or Python project |
434
- | `!<command>` | Run a shell command in the active agent's sandbox |
435
- | `/exit` | Exit the CLI |
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 Nova Sonic control panel without starting audio. Use `/voice on` to
451
- start listening without opening the panel, or use the panel's start action. Nova Sonic handles live
452
- audio, endpointing, transcription, and spoken playback; finalized utterances steer the active agent
453
- conversation. The selected coding model still owns reasoning, tools, and the response itself.
454
-
455
- The panel controls microphone mute, spoken replies, Nova Sonic's supported voice IDs, and
456
- fast/balanced/patient end-of-turn detection. Spoken replies are off by default. When enabled,
457
- sentence-sized pieces of the coding response are queued for speech as its text streams instead of
458
- waiting for the entire response. With an empty composer, one Space tap toggles microphone mute,
459
- including while the voice panel is open. Voice changes restart an active sidecar; selections made
460
- while voice is off apply on the next start. `/voice off` releases the audio devices. The sidecar
461
- enables the Harness SDK's WebRTC-based echo cancellation so speaker playback is removed from
462
- microphone input while real user barge-in remains available. This currently requires `uv`, Python
463
- 3.13, PortAudio, AWS credentials, and Nova Sonic access. The published npm package includes the
464
- Python sidecar; `uv` installs its Python dependencies on first use.
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 under `./.agent/sessions`, minting a fresh session id when you don't
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` for a throwaway run that persists nothing.
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
- In Ink, `/sessions` combines saved sessions from workspaces previously seen on the machine and
506
- can resume any of them, including from another worktree. Session data stays in each workspace's
507
- configured `session.dir`; the user-level catalog stores only those roots.
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 starts in detached mode so the composer remains
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. The panel's **Wait for completion** switch rebuilds the agent with the SDK's
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
- Live subagents also appear in `/agents` while they are available for peer messages. They are
521
- status rows rather than switchable conversations and disappear when the delegated task finishes.
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, ACP-server, and direct library invocations use the normal wait-for-completion
524
- behavior. Ink blocks model-family restarts, session replacement, and wait-mode changes while
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
- { "v": 1, "cli_version": "0.1.0", "provider": "bedrock", "builtin_tools": ["shell", "read"], "builtin_plugins": ["todos"] }
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 `"settings": { "telemetry": false }` in `~/.strands/cli/config.json`.
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/tui/terminal/ink.ts` bounds Ink 7.1.1's text-layout caches in memory during streaming.
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', 'harness-py/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