@strands-agents/cli 0.1.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 (275) hide show
  1. package/LICENSE +175 -0
  2. package/NOTICE +1 -0
  3. package/README.md +576 -0
  4. package/bin/strands.js +256 -0
  5. package/dist/src/cli/arguments.js +198 -0
  6. package/dist/src/cli/arguments.js.map +1 -0
  7. package/dist/src/cli/invocation.js +124 -0
  8. package/dist/src/cli/invocation.js.map +1 -0
  9. package/dist/src/cli/run.js +252 -0
  10. package/dist/src/cli/run.js.map +1 -0
  11. package/dist/src/console.js +235 -0
  12. package/dist/src/console.js.map +1 -0
  13. package/dist/src/logging.js +103 -0
  14. package/dist/src/logging.js.map +1 -0
  15. package/dist/src/main.js +7 -0
  16. package/dist/src/main.js.map +1 -0
  17. package/dist/src/tui/acp/projection.js +276 -0
  18. package/dist/src/tui/acp/projection.js.map +1 -0
  19. package/dist/src/tui/acp/server.js +263 -0
  20. package/dist/src/tui/acp/server.js.map +1 -0
  21. package/dist/src/tui/agent-configuration.js +335 -0
  22. package/dist/src/tui/agent-configuration.js.map +1 -0
  23. package/dist/src/tui/agent-setup.js +80 -0
  24. package/dist/src/tui/agent-setup.js.map +1 -0
  25. package/dist/src/tui/background/activity.js +273 -0
  26. package/dist/src/tui/background/activity.js.map +1 -0
  27. package/dist/src/tui/background/inbox.js +120 -0
  28. package/dist/src/tui/background/inbox.js.map +1 -0
  29. package/dist/src/tui/background/tasks.js +98 -0
  30. package/dist/src/tui/background/tasks.js.map +1 -0
  31. package/dist/src/tui/builtin-tools.js +65 -0
  32. package/dist/src/tui/builtin-tools.js.map +1 -0
  33. package/dist/src/tui/chat/commands.js +98 -0
  34. package/dist/src/tui/chat/commands.js.map +1 -0
  35. package/dist/src/tui/chat/controller-helpers.js +62 -0
  36. package/dist/src/tui/chat/controller-helpers.js.map +1 -0
  37. package/dist/src/tui/chat/controller.js +1913 -0
  38. package/dist/src/tui/chat/controller.js.map +1 -0
  39. package/dist/src/tui/chat/help.js +94 -0
  40. package/dist/src/tui/chat/help.js.map +1 -0
  41. package/dist/src/tui/chat/panels.js +418 -0
  42. package/dist/src/tui/chat/panels.js.map +1 -0
  43. package/dist/src/tui/chat/projector.js +443 -0
  44. package/dist/src/tui/chat/projector.js.map +1 -0
  45. package/dist/src/tui/chat/sdk-projector.js +194 -0
  46. package/dist/src/tui/chat/sdk-projector.js.map +1 -0
  47. package/dist/src/tui/chat/shell.js +263 -0
  48. package/dist/src/tui/chat/shell.js.map +1 -0
  49. package/dist/src/tui/chat/types.js +2 -0
  50. package/dist/src/tui/chat/types.js.map +1 -0
  51. package/dist/src/tui/config.js +497 -0
  52. package/dist/src/tui/config.js.map +1 -0
  53. package/dist/src/tui/configuration-instructions.js +14 -0
  54. package/dist/src/tui/configuration-instructions.js.map +1 -0
  55. package/dist/src/tui/mcp/config.js +370 -0
  56. package/dist/src/tui/mcp/config.js.map +1 -0
  57. package/dist/src/tui/mcp.js +98 -0
  58. package/dist/src/tui/mcp.js.map +1 -0
  59. package/dist/src/tui/memory-options.js +10 -0
  60. package/dist/src/tui/memory-options.js.map +1 -0
  61. package/dist/src/tui/messaging.js +193 -0
  62. package/dist/src/tui/messaging.js.map +1 -0
  63. package/dist/src/tui/model/context.js +13 -0
  64. package/dist/src/tui/model/context.js.map +1 -0
  65. package/dist/src/tui/model/display.js +59 -0
  66. package/dist/src/tui/model/display.js.map +1 -0
  67. package/dist/src/tui/model/runtime.js +365 -0
  68. package/dist/src/tui/model/runtime.js.map +1 -0
  69. package/dist/src/tui/model/selection.js +160 -0
  70. package/dist/src/tui/model/selection.js.map +1 -0
  71. package/dist/src/tui/package-version.js +47 -0
  72. package/dist/src/tui/package-version.js.map +1 -0
  73. package/dist/src/tui/permissions/file-change-preview.js +182 -0
  74. package/dist/src/tui/permissions/file-change-preview.js.map +1 -0
  75. package/dist/src/tui/permissions/policy.js +223 -0
  76. package/dist/src/tui/permissions/policy.js.map +1 -0
  77. package/dist/src/tui/permissions/settings.js +21 -0
  78. package/dist/src/tui/permissions/settings.js.map +1 -0
  79. package/dist/src/tui/project/acp.js +93 -0
  80. package/dist/src/tui/project/acp.js.map +1 -0
  81. package/dist/src/tui/project/archive.js +239 -0
  82. package/dist/src/tui/project/archive.js.map +1 -0
  83. package/dist/src/tui/project/configuration-secrets.js +107 -0
  84. package/dist/src/tui/project/configuration-secrets.js.map +1 -0
  85. package/dist/src/tui/project/configuration.js +201 -0
  86. package/dist/src/tui/project/configuration.js.map +1 -0
  87. package/dist/src/tui/project/export.js +560 -0
  88. package/dist/src/tui/project/export.js.map +1 -0
  89. package/dist/src/tui/project/import.js +75 -0
  90. package/dist/src/tui/project/import.js.map +1 -0
  91. package/dist/src/tui/project/module-loader.js +157 -0
  92. package/dist/src/tui/project/module-loader.js.map +1 -0
  93. package/dist/src/tui/project/packaging.js +53 -0
  94. package/dist/src/tui/project/packaging.js.map +1 -0
  95. package/dist/src/tui/project/portable-dependencies.js +34 -0
  96. package/dist/src/tui/project/portable-dependencies.js.map +1 -0
  97. package/dist/src/tui/project/portable-mcp.js +118 -0
  98. package/dist/src/tui/project/portable-mcp.js.map +1 -0
  99. package/dist/src/tui/project/python.js +414 -0
  100. package/dist/src/tui/project/python.js.map +1 -0
  101. package/dist/src/tui/project/run.js +118 -0
  102. package/dist/src/tui/project/run.js.map +1 -0
  103. package/dist/src/tui/project/source.js +307 -0
  104. package/dist/src/tui/project/source.js.map +1 -0
  105. package/dist/src/tui/project/typescript.js +135 -0
  106. package/dist/src/tui/project/typescript.js.map +1 -0
  107. package/dist/src/tui/project/worker.py +731 -0
  108. package/dist/src/tui/provider/aws-client.js +67 -0
  109. package/dist/src/tui/provider/aws-client.js.map +1 -0
  110. package/dist/src/tui/provider/aws-config.js +66 -0
  111. package/dist/src/tui/provider/aws-config.js.map +1 -0
  112. package/dist/src/tui/provider/bedrock-catalog.js +87 -0
  113. package/dist/src/tui/provider/bedrock-catalog.js.map +1 -0
  114. package/dist/src/tui/provider/discovery.js +323 -0
  115. package/dist/src/tui/provider/discovery.js.map +1 -0
  116. package/dist/src/tui/provider/environment.js +138 -0
  117. package/dist/src/tui/provider/environment.js.map +1 -0
  118. package/dist/src/tui/provider/packages.js +42 -0
  119. package/dist/src/tui/provider/packages.js.map +1 -0
  120. package/dist/src/tui/run.js +257 -0
  121. package/dist/src/tui/run.js.map +1 -0
  122. package/dist/src/tui/runtime.js +520 -0
  123. package/dist/src/tui/runtime.js.map +1 -0
  124. package/dist/src/tui/session/agent-definition.js +100 -0
  125. package/dist/src/tui/session/agent-definition.js.map +1 -0
  126. package/dist/src/tui/session/catalog.js +159 -0
  127. package/dist/src/tui/session/catalog.js.map +1 -0
  128. package/dist/src/tui/session/context.js +118 -0
  129. package/dist/src/tui/session/context.js.map +1 -0
  130. package/dist/src/tui/session/conversation-helpers.js +46 -0
  131. package/dist/src/tui/session/conversation-helpers.js.map +1 -0
  132. package/dist/src/tui/session/conversations.js +456 -0
  133. package/dist/src/tui/session/conversations.js.map +1 -0
  134. package/dist/src/tui/session/desktop-profile.js +80 -0
  135. package/dist/src/tui/session/desktop-profile.js.map +1 -0
  136. package/dist/src/tui/session/options.js +44 -0
  137. package/dist/src/tui/session/options.js.map +1 -0
  138. package/dist/src/tui/session/sessions.js +251 -0
  139. package/dist/src/tui/session/sessions.js.map +1 -0
  140. package/dist/src/tui/session/voice.js +353 -0
  141. package/dist/src/tui/session/voice.js.map +1 -0
  142. package/dist/src/tui/settings.js +362 -0
  143. package/dist/src/tui/settings.js.map +1 -0
  144. package/dist/src/tui/setup/questions.js +277 -0
  145. package/dist/src/tui/setup/questions.js.map +1 -0
  146. package/dist/src/tui/skills.js +135 -0
  147. package/dist/src/tui/skills.js.map +1 -0
  148. package/dist/src/tui/steering.js +67 -0
  149. package/dist/src/tui/steering.js.map +1 -0
  150. package/dist/src/tui/strands-backend.js +368 -0
  151. package/dist/src/tui/strands-backend.js.map +1 -0
  152. package/dist/src/tui/stream-presentation.js +138 -0
  153. package/dist/src/tui/stream-presentation.js.map +1 -0
  154. package/dist/src/tui/telemetry.js +46 -0
  155. package/dist/src/tui/telemetry.js.map +1 -0
  156. package/dist/src/tui/terminal/composer.js +237 -0
  157. package/dist/src/tui/terminal/composer.js.map +1 -0
  158. package/dist/src/tui/terminal/directory-picker.js +76 -0
  159. package/dist/src/tui/terminal/directory-picker.js.map +1 -0
  160. package/dist/src/tui/terminal/ink.js +94 -0
  161. package/dist/src/tui/terminal/ink.js.map +1 -0
  162. package/dist/src/tui/terminal/mouse-input.js +83 -0
  163. package/dist/src/tui/terminal/mouse-input.js.map +1 -0
  164. package/dist/src/tui/terminal/open-url.js +21 -0
  165. package/dist/src/tui/terminal/open-url.js.map +1 -0
  166. package/dist/src/tui/terminal/process-tree.js +132 -0
  167. package/dist/src/tui/terminal/process-tree.js.map +1 -0
  168. package/dist/src/tui/terminal/sanitize.js +71 -0
  169. package/dist/src/tui/terminal/sanitize.js.map +1 -0
  170. package/dist/src/tui/terminal/shell-output.js +43 -0
  171. package/dist/src/tui/terminal/shell-output.js.map +1 -0
  172. package/dist/src/tui/terminal/terminal.js +39 -0
  173. package/dist/src/tui/terminal/terminal.js.map +1 -0
  174. package/dist/src/tui/view/agents-panel.js +21 -0
  175. package/dist/src/tui/view/agents-panel.js.map +1 -0
  176. package/dist/src/tui/view/app.js +1068 -0
  177. package/dist/src/tui/view/app.js.map +1 -0
  178. package/dist/src/tui/view/chat-root.js +88 -0
  179. package/dist/src/tui/view/chat-root.js.map +1 -0
  180. package/dist/src/tui/view/chat-view.js +185 -0
  181. package/dist/src/tui/view/chat-view.js.map +1 -0
  182. package/dist/src/tui/view/command-palette.js +18 -0
  183. package/dist/src/tui/view/command-palette.js.map +1 -0
  184. package/dist/src/tui/view/custom-theme-editor.js +301 -0
  185. package/dist/src/tui/view/custom-theme-editor.js.map +1 -0
  186. package/dist/src/tui/view/export-panel.js +14 -0
  187. package/dist/src/tui/view/export-panel.js.map +1 -0
  188. package/dist/src/tui/view/fade-in.js +106 -0
  189. package/dist/src/tui/view/fade-in.js.map +1 -0
  190. package/dist/src/tui/view/frog-canvas.js +375 -0
  191. package/dist/src/tui/view/frog-canvas.js.map +1 -0
  192. package/dist/src/tui/view/frog-drawing.js +415 -0
  193. package/dist/src/tui/view/frog-drawing.js.map +1 -0
  194. package/dist/src/tui/view/frog-easter-egg.js +53 -0
  195. package/dist/src/tui/view/frog-easter-egg.js.map +1 -0
  196. package/dist/src/tui/view/frog-intro-renderer.js +634 -0
  197. package/dist/src/tui/view/frog-intro-renderer.js.map +1 -0
  198. package/dist/src/tui/view/help-footer.js +36 -0
  199. package/dist/src/tui/view/help-footer.js.map +1 -0
  200. package/dist/src/tui/view/interaction.js +349 -0
  201. package/dist/src/tui/view/interaction.js.map +1 -0
  202. package/dist/src/tui/view/intro.js +35 -0
  203. package/dist/src/tui/view/intro.js.map +1 -0
  204. package/dist/src/tui/view/markdown.js +99 -0
  205. package/dist/src/tui/view/markdown.js.map +1 -0
  206. package/dist/src/tui/view/media.js +70 -0
  207. package/dist/src/tui/view/media.js.map +1 -0
  208. package/dist/src/tui/view/model-panel.js +65 -0
  209. package/dist/src/tui/view/model-panel.js.map +1 -0
  210. package/dist/src/tui/view/panel-components.js +17 -0
  211. package/dist/src/tui/view/panel-components.js.map +1 -0
  212. package/dist/src/tui/view/panels.js +129 -0
  213. package/dist/src/tui/view/panels.js.map +1 -0
  214. package/dist/src/tui/view/presentation.js +382 -0
  215. package/dist/src/tui/view/presentation.js.map +1 -0
  216. package/dist/src/tui/view/prompt-editor.js +74 -0
  217. package/dist/src/tui/view/prompt-editor.js.map +1 -0
  218. package/dist/src/tui/view/provider-list.js +14 -0
  219. package/dist/src/tui/view/provider-list.js.map +1 -0
  220. package/dist/src/tui/view/sessions-panel.js +15 -0
  221. package/dist/src/tui/view/sessions-panel.js.map +1 -0
  222. package/dist/src/tui/view/settings-panel.js +146 -0
  223. package/dist/src/tui/view/settings-panel.js.map +1 -0
  224. package/dist/src/tui/view/setup-question.js +90 -0
  225. package/dist/src/tui/view/setup-question.js.map +1 -0
  226. package/dist/src/tui/view/setup-wizard/brand.js +18 -0
  227. package/dist/src/tui/view/setup-wizard/brand.js.map +1 -0
  228. package/dist/src/tui/view/setup-wizard/index.js +1557 -0
  229. package/dist/src/tui/view/setup-wizard/index.js.map +1 -0
  230. package/dist/src/tui/view/setup-wizard/opening-menu.js +88 -0
  231. package/dist/src/tui/view/setup-wizard/opening-menu.js.map +1 -0
  232. package/dist/src/tui/view/setup-wizard/path-completion.js +53 -0
  233. package/dist/src/tui/view/setup-wizard/path-completion.js.map +1 -0
  234. package/dist/src/tui/view/setup-wizard/profile-fields.js +29 -0
  235. package/dist/src/tui/view/setup-wizard/profile-fields.js.map +1 -0
  236. package/dist/src/tui/view/setup-wizard/progress.js +42 -0
  237. package/dist/src/tui/view/setup-wizard/progress.js.map +1 -0
  238. package/dist/src/tui/view/setup-wizard/providers.js +344 -0
  239. package/dist/src/tui/view/setup-wizard/providers.js.map +1 -0
  240. package/dist/src/tui/view/setup-wizard/settings-panel.js +74 -0
  241. package/dist/src/tui/view/setup-wizard/settings-panel.js.map +1 -0
  242. package/dist/src/tui/view/setup-wizard/steps.js +544 -0
  243. package/dist/src/tui/view/setup-wizard/steps.js.map +1 -0
  244. package/dist/src/tui/view/setup-wizard/types.js +2 -0
  245. package/dist/src/tui/view/setup-wizard/types.js.map +1 -0
  246. package/dist/src/tui/view/setup-wizard/use-provider-discovery.js +145 -0
  247. package/dist/src/tui/view/setup-wizard/use-provider-discovery.js.map +1 -0
  248. package/dist/src/tui/view/startup-view.js +42 -0
  249. package/dist/src/tui/view/startup-view.js.map +1 -0
  250. package/dist/src/tui/view/text-input.js +33 -0
  251. package/dist/src/tui/view/text-input.js.map +1 -0
  252. package/dist/src/tui/view/theme-detection.js +45 -0
  253. package/dist/src/tui/view/theme-detection.js.map +1 -0
  254. package/dist/src/tui/view/theme.js +127 -0
  255. package/dist/src/tui/view/theme.js.map +1 -0
  256. package/dist/src/tui/view/transcript-layout.js +60 -0
  257. package/dist/src/tui/view/transcript-layout.js.map +1 -0
  258. package/dist/src/tui/view/transcript-turn.js +135 -0
  259. package/dist/src/tui/view/transcript-turn.js.map +1 -0
  260. package/dist/src/tui/view/transcript.js +138 -0
  261. package/dist/src/tui/view/transcript.js.map +1 -0
  262. package/dist/src/tui/view/use-party-frame.js +15 -0
  263. package/dist/src/tui/view/use-party-frame.js.map +1 -0
  264. package/dist/src/tui/view/use-spinner.js +14 -0
  265. package/dist/src/tui/view/use-spinner.js.map +1 -0
  266. package/dist/src/tui/voice/session.js +515 -0
  267. package/dist/src/tui/voice/session.js.map +1 -0
  268. package/dist/src/tui/workspace/sandbox.js +156 -0
  269. package/dist/src/tui/workspace/sandbox.js.map +1 -0
  270. package/dist/src/tui/workspace/trust.js +147 -0
  271. package/dist/src/tui/workspace/trust.js.map +1 -0
  272. package/dist/src/usage.js +187 -0
  273. package/dist/src/usage.js.map +1 -0
  274. package/package.json +97 -0
  275. package/src/tui/voice/sidecar.py +606 -0
package/README.md ADDED
@@ -0,0 +1,576 @@
1
+ <div align="center">
2
+ <div>
3
+ <a href="https://strandsagents.com">
4
+ <img src="https://strandsagents.com/latest/assets/logo-github.svg" alt="Strands Agents" width="55px" height="105px">
5
+ </a>
6
+ </div>
7
+
8
+ <h1>
9
+ Strands CLI
10
+ </h1>
11
+
12
+ <h2>
13
+ Chat with a batteries-included agent from your terminal.
14
+ </h2>
15
+
16
+ <div align="center">
17
+ <a href="https://github.com/strands-agents/harness-sdk/blob/main/LICENSE.APACHE"><img alt="License" src="https://img.shields.io/github/license/strands-agents/harness-sdk"/></a>
18
+ <a href="https://www.npmjs.com/package/@strands-agents/cli"><img alt="npm version" src="https://img.shields.io/npm/v/%40strands-agents%2Fcli"/></a>
19
+ <a href="https://discord.gg/strands"><img alt="Strands Discord" src="https://img.shields.io/badge/Discord-Strands-5865F2?logo=discord&logoColor=white"/></a>
20
+ </div>
21
+
22
+ <p>
23
+ <a href="https://github.com/strands-agents/harness-sdk/tree/main/harness-ts">Strands harness</a>
24
+ ◆ <a href="https://github.com/strands-agents/harness-sdk">Strands Harness SDK</a>
25
+ ◆ <a href="https://strandsagents.com/">Documentation</a>
26
+ ◆ <a href="https://discord.gg/strands">Discord</a>
27
+ </p>
28
+ </div>
29
+
30
+ `strands` is a terminal chat command for the [Strands harness](https://github.com/strands-agents/harness-sdk/tree/main/harness-ts),
31
+ a batteries-included agent built on the Strands Harness SDK. It's the fastest way to try the
32
+ Strands harness: no code, with an interactive setup for model providers and agent defaults.
33
+
34
+ ```bash
35
+ npm install -g @strands-agents/cli # gives you the `strands` command
36
+ strands "summarize what this repo does"
37
+ ```
38
+
39
+ By default you get Claude Opus 4.8 on Amazon Bedrock, with reasoning, shell and file tools, web
40
+ access, caching, todos, environment context, a `subagent` delegate, Agent Skills, resumable
41
+ sessions, long-term memory, and automatic context management. The full-screen terminal keeps
42
+ background delegates non-blocking and automatically continues the agent when their results arrive.
43
+
44
+ ## Installation
45
+
46
+ Install it globally to get the `strands` command:
47
+
48
+ ```bash
49
+ npm install -g @strands-agents/cli
50
+ strands
51
+ ```
52
+
53
+ Or run it on demand without installing, using `npx`:
54
+
55
+ ```bash
56
+ npx @strands-agents/cli
57
+ ```
58
+
59
+ On the first interactive launch, the intro animation plays before the setup panel opens. Quickstart
60
+ lets you choose providers and a model, then select tools, skills, MCP, and other capabilities before
61
+ launching. Select or deselect all, or toggle individual capabilities. Manual setup also
62
+ exposes the agent instructions, data paths, and approval controls. The CLI detects standard credential
63
+ sources but never writes API keys to its config.
64
+
65
+ ## Using it
66
+
67
+ Run from the repository root with:
68
+
69
+ ```bash
70
+ npm run setup
71
+ strands
72
+ ```
73
+
74
+ `npm run setup` installs the workspace and links the `strands` command to this checkout. The linked
75
+ launcher fingerprints `harness-ts` and `strands-cli`, so switching branches or editing source causes one
76
+ silent rebuild before the CLI starts:
77
+
78
+ ```bash
79
+ git switch main
80
+ strands
81
+
82
+ git switch another-branch
83
+ strands
84
+ ```
85
+
86
+ If a branch changes dependencies, run `npm run setup` again. A packaged npm installation contains
87
+ compiled output and skips all source-build behavior.
88
+
89
+ ## Customize the agent
90
+
91
+ Run `strands` or use `/setup` in chat to reopen the saved configuration. Quickstart and Manual
92
+ edit the same profile. Agent Q&A first asks which model should guide the setup conversation, then
93
+ opens the regular chat UI. This assistant model is independent of the model chosen for your custom
94
+ agent. Setup Assistant first asks whether to start from scratch or use the detected configuration, then
95
+ asks for your agent's name and goals. It recommends settings and keeps a draft until you agree to apply
96
+ it. After choosing appearance preferences, your custom agent opens in a fresh chat.
97
+
98
+ In interactive chat, the agent can also inspect and change its own configuration with `strands_config`.
99
+ For example: “Use high reasoning, disable shell and delegation, and keep responses concise.”
100
+ Changes are validated and applied after the turn; the conversation is retained. Quickstart, Manual,
101
+ and TypeScript/Python exports use the updated profile. A failed rebuild restores the previous profile.
102
+ For TypeScript agents loaded from source, the CLI edits the source definition and reloads it instead;
103
+ source exports retain that code.
104
+
105
+ ## Run modes
106
+
107
+ The CLI chooses a mode from its flags and terminal streams:
108
+
109
+ | Mode | Selected when | Behavior |
110
+ | -------------- | -------------------------------------------- | -------------------------------------------------------------------------------------------- |
111
+ | **Ink** | stdin and stdout are terminals | Full-screen interactive UI with panels, slash commands, mouse support, and streaming updates |
112
+ | **Plain** | stdin is a terminal but stdout is redirected | Readline chat with unstyled output; an initial request is answered before the prompt |
113
+ | **Print** | `--print` is set, or stdin is piped | One request, then exit; styling follows whether stdout is a terminal |
114
+ | **ACP server** | `--acp-server` is set | Serve the agent over newline-delimited ACP on stdin/stdout |
115
+
116
+ Examples:
117
+
118
+ ```bash
119
+ strands # Ink chat in a terminal
120
+ strands "summarize this repo" # answer first, then keep chatting
121
+ strands "summarize this repo" > transcript # plain interactive chat
122
+ strands -p "list the top-level modules" # one answer and exit
123
+ printf 'summarize README.md' | strands # read the request from stdin and exit
124
+ strands --acp-server # serve ACP on stdin/stdout
125
+ ```
126
+
127
+ When stdin is piped, its complete contents become the request only when no positional request was
128
+ given. In plain mode, type `exit` or `quit`; in Ink, use `/exit`. Ctrl-D exits either interactive
129
+ mode. In Ink, Ctrl-C cancels an active turn or exits with status 130 when idle.
130
+ The composer stays editable during a turn: Enter queues a follow-up, Alt/Option+Enter interrupts
131
+ and steers the agent at the next model-loop boundary (Ctrl+Enter also works in terminals that report it
132
+ distinctly), and Escape interrupts without discarding the current draft.
133
+ Prefix an Ink input with `!` to run a shell command directly in the active workspace without
134
+ invoking the model, for example `!git status`. Each command runs once through the agent's shell
135
+ sandbox while the full-screen UI remains open, and its output is rendered inline without compact
136
+ summarization. Ctrl-C cancels the active command without exiting the CLI. Output past the inline safety
137
+ limit is written to a file under `~/.strands/cli/tool-results/`. Interactive shell sessions and prompts are not
138
+ supported.
139
+
140
+ ## Options
141
+
142
+ Run `strands --help` for the parser's current list.
143
+
144
+ | Flag | Applies to | Description |
145
+ | --------------------------------- | ------------ | ------------------------------------------------------------------------------------------ |
146
+ | `-p`, `--print` | Print | Answer once and exit |
147
+ | `--prompt <text>` | All | Initial request; equivalent to the positional request |
148
+ | `--acp-server` | ACP server | Serve the agent over ACP; cannot be combined with a request, `--print`, or `--setup` |
149
+ | `--setup` | Ink | Open the provider and default-agent setup wizard |
150
+ | `--agent <path>` | All | Load an agent ZIP, project folder, or `agent.ts`/`agent.py` |
151
+ | `--env-file <path>` | All | Load an explicitly trusted env file; repeat for several files, later files win |
152
+ | `--set <field=value>` | Harness backend | Override any portable config field; repeatable and JSON-aware |
153
+ | `--name <name>` | Harness backend | Override the agent name for this invocation |
154
+ | `--description <text>` | Harness backend | Override the agent description for this invocation |
155
+ | `--model <model>` | Harness backend | A `provider/model` string or bare Amazon Bedrock model id |
156
+ | `--effort <level>` | Harness backend | Reasoning effort: `auto` (default), `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max` |
157
+ | `--instructions <text>` | Harness backend | Append domain instructions to the system prompt |
158
+ | `--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` |
159
+ | `--builtin-plugins <plugins>` | Harness backend | Comma-separated built-ins, or `""` for none; defaults to `todos,environment` |
160
+ | `--caching <mode>` | Harness backend | Prompt caching: `auto` (default) or `off` |
161
+ | `--context-manager <mode>` | Harness backend | `auto` (default), `agentic`, or `off`; object forms go through `--set` |
162
+ | `--session <mode>` | Harness backend | Conversation persistence: `on` (default) or `off` |
163
+ | `--session-id <id>` | Harness backend | Resume a conversation by id (defaults to a fresh one); writes `session.id` |
164
+ | `--skills <dirs>` | Harness backend | Comma-separated Agent Skills directories or URLs, or `off`; defaults to `./.agent/skills` |
165
+ | `--memory <mode>` | Harness backend | Long-term memory: `on` (default) or `off` |
166
+ | `--interventions <policy>` | Harness backend | Gate tool calls with `ask`, `smart`, a `.cedar` policy file, or a natural-language rule |
167
+ | `--mcp-config <path>` | All modes | Add an MCP configuration file; repeat for multiple files |
168
+
169
+ Explicit CLI values apply only to the current invocation. Dedicated flags override `--set`, which
170
+ overrides the saved profile; imported agents take their configuration from their code:
171
+
172
+ ```bash
173
+ strands --agent ./reviewer --prompt "Review this change"
174
+ strands --set 'builtinTools=["read","web_search"]' --set agentConfig.maxParallelTools=2
175
+ strands --set 'builtinTools.web_fetch.model="openai/gpt-5-mini"' --set 'session.dir="./.agent/sessions"'
176
+ ```
177
+
178
+ ## Setup and providers
179
+
180
+ Run `strands` or `/setup` to configure:
181
+
182
+ - enabled providers and the default model,
183
+ - the agent name and additional instructions,
184
+ - built-in tools, plugins, and the generalist delegate,
185
+ - skills directories, context management, caching, and long-term memory,
186
+ - the default tool-approval mode.
187
+
188
+ Configuration is stored in `~/.strands/cli/config.json`. Explicit CLI flags override the saved
189
+ profile. `/setup` saves changes for the next launch so the active conversation keeps a stable
190
+ runtime.
191
+
192
+ ### Web search and Exa
193
+
194
+ `web_search` uses the model provider's own search where it has one (OpenAI, Google, GPT-5/GPT-6
195
+ models on `bedrock-mantle`, Anthropic). On a model without native search the Tools step offers
196
+ `web_search` through [Exa](https://exa.ai) instead, unchecked; ticking it writes
197
+ `"web_search": "exa"` to the profile.
198
+
199
+ > [!WARNING]
200
+ > Web search through Exa sends every search query the model writes to Exa (exa.ai), a third-party
201
+ > service. Queries leave your environment and are subject to
202
+ > [Exa's privacy policy](https://exa.ai/privacy-policy). The wizard shows this warning while the
203
+ > option is on; leaving it unchecked (or `"web_search": false`) keeps it off.
204
+
205
+ ## Appearance
206
+
207
+ `/settings` offers **Auto**, **Light**, and **Dark** color modes. Auto uses the terminal's
208
+ `COLORFGBG` background hint when available and otherwise defaults to dark.
209
+ Choose **Theme** to preview Classic, Minimal, Homeland, Merlin, Kikker, Cyborg, Spectre,
210
+ or Custom. Arrow keys and clicks preview; Enter applies; Esc cancels.
211
+ Custom supports separate light and dark colors, a base theme, and per-variant reset.
212
+ Saved Magma selections migrate to Classic.
213
+ The welcome banner shrinks with the terminal, keeping the composer visible.
214
+ `/settings` also links to `/setup` for providers and the default agent.
215
+
216
+ ## Import and export
217
+
218
+ The setup wizard imports an agent from `agent.ts` or `agent.py`, and `/export` writes a
219
+ TypeScript or Python project with options directly inside `createHarness(...)` / `create_harness(...)`.
220
+ The file exports `agent`, ready to import into another application, and each new CLI launch
221
+ reads the latest edits. No separate JSON snapshot or chat runner is included. TypeScript
222
+ projects include `npm run build` for compiling code to import into another application.
223
+
224
+ Run `strands --agent ./agent.zip` directly: the CLI extracts the project into
225
+ `~/.strands/cli/cache/agents/` and installs its declared dependencies on first launch.
226
+ For an existing source folder, install its dependencies (`npm install`, or create `.venv`
227
+ and install `requirements.txt` for Python), then launch with any of:
228
+
229
+ ```bash
230
+ strands --agent ./project/agent.ts
231
+ strands --agent ./project/agent.py
232
+ strands --agent ./project
233
+ strands --agent ./agent.zip
234
+ ```
235
+
236
+ Select a trusted environment file with `--env-file ./project/.env`; existing shell values take
237
+ precedence. Python agents run with their project `.venv` interpreter when present, otherwise
238
+ `python3`. Both exports include the matching harness library and provider dependencies.
239
+
240
+ Declare `agent` directly with the harness factory, after imports and supporting definitions.
241
+ The CLI reads that construction to create independent sessions and apply CLI overrides; no wrapper
242
+ function or separate config object is required in your code.
243
+ Imported projects re-export in their authored language, preserving their source files;
244
+ arbitrary Python tools and dependencies cannot be translated to TypeScript automatically.
245
+
246
+ Imported agents run in their own language and use the directory where you launched `strands`
247
+ as their workspace. Bundled skills, MCP configuration, and policy files resolve relative to
248
+ the imported agent's folder. To use it in another application, import its exported `agent`
249
+ and invoke it through the usual harness library API.
250
+
251
+ Skills, module-referenced tools, subagents, plugins, models, intervention handlers, sandboxes,
252
+ memory backends, and other executable `AgentConfig` values are bundled with their declared source
253
+ files and dependencies, including file-based Cedar policies. Python modules with neighboring helper
254
+ files should include `__init__.py` and use package-relative imports. Export fails when a value is
255
+ cross-language, lacks packageable source, or would embed an MCP secret. Credentials, conversation
256
+ sessions, memory contents, and running processes are runtime state and are intentionally not exported.
257
+ Machine-discovered MCP servers and skills are not part of the portable definition.
258
+
259
+ | Provider | Model prefix | Credential source |
260
+ | -------------- | ----------------- | -------------------------------------------------------------------------------- |
261
+ | Amazon Bedrock | `bedrock/` | Standard AWS SDK credential chain |
262
+ | Bedrock Mantle | `bedrock-mantle/` | Standard AWS SDK credential chain |
263
+ | Anthropic | `anthropic/` | `ANTHROPIC_API_KEY` |
264
+ | OpenAI | `openai/` | `OPENAI_API_KEY` |
265
+ | Google Gemini | `google/` | `GEMINI_API_KEY` |
266
+ | Ollama | `ollama/` | Auto-detected locally; `OLLAMA_HOST` only for a custom server |
267
+ | LiteLLM proxy | `litellm/` | Auto-detected locally; `LITELLM_BASE_URL` for a custom proxy, optional key |
268
+
269
+ The CLI does not store provider secrets. Setup detects credentials from the process environment,
270
+ explicitly selected env files, AWS profiles, and other credential sources supported by the
271
+ provider SDK.
272
+
273
+ Workspace, saved-profile, and imported-project `.env` and `.env.local` files are not loaded automatically. Select trusted
274
+ files explicitly, in precedence order: `strands --env-file .env --env-file .env.local`.
275
+ This also loads custom environment variables used by agent code or MCP configuration.
276
+ `AWS_CONFIG_FILE` and `AWS_SHARED_CREDENTIALS_FILE` in selected files also control setup discovery.
277
+ Existing shell values take precedence over saved provider settings, which take precedence over selected files.
278
+ For an imported agent, use `strands --agent ./project --env-file ./project/.env`.
279
+ In setup, **Recheck configuration** reloads
280
+ those files and rechecks AWS credentials without restarting; new exports in another
281
+ shell require restarting the CLI. Amazon Bedrock API tokens also need `AWS_REGION` or
282
+ `AWS_DEFAULT_REGION` matching the region that issued the token.
283
+
284
+ ## MCP configuration
285
+
286
+ The CLI accepts either `{ "mcpServers": { ... } }` or a direct JSON server map:
287
+
288
+ ```json
289
+ {
290
+ "mcpServers": {
291
+ "local": {
292
+ "command": "node",
293
+ "args": ["server.js"],
294
+ "env": { "TOKEN": "${MCP_TOKEN}" }
295
+ },
296
+ "remote": {
297
+ "url": "https://example.com/mcp",
298
+ "transport": "streamable-http",
299
+ "headers": { "Authorization": "Bearer ${env:MCP_TOKEN}" }
300
+ }
301
+ }
302
+ }
303
+ ```
304
+
305
+ `${NAME}` and `${env:NAME}` interpolate environment variables. Servers can also set `cwd`,
306
+ `disabled`, `continueOnError`, and `tasksConfig`. Discovered servers default to
307
+ `continueOnError: true`, so a connection or missing-credential failure leaves that server
308
+ unavailable without blocking startup. Malformed configuration in the CLI's own files stops startup; a
309
+ problem in another tool's file skips that server or file and is listed under `/mcp`. Stdio servers
310
+ run with their stderr discarded, so server diagnostics never print over the terminal UI.
311
+
312
+ Configuration is merged by server name. Later files replace earlier definitions; a later
313
+ `"disabled": true` removes an earlier server.
314
+
315
+ Tool names are only unique within one server, so the harness exposes each tool as `<server>_<tool>`, using
316
+ the server's config key as the prefix (a `slack` server's `search` becomes `slack_search`; characters
317
+ outside `[A-Za-z0-9_-]` in the key become `_`). Set `prefix` on a server to choose the namespace, or
318
+ `""` to expose its tools under their original names.
319
+
320
+ When MCP discovery is enabled, user configuration is discovered in this order:
321
+
322
+ 1. `~/.claude.json` (user servers, plus the current workspace's local servers and opt-outs)
323
+ 2. `~/.kiro/settings/mcp.json`
324
+ 3. `~/.gemini/settings.json` (comments allowed; `httpUrl` is streamable HTTP, `url` is SSE)
325
+ 4. `~/.codex/config.toml`
326
+ 5. `~/.strands/cli/mcp.json`
327
+
328
+ The CLI then applies trusted project configuration from `.mcp.json`, `.kiro/settings/mcp.json`,
329
+ `.gemini/settings.json`, `.codex/config.toml`, and `.strands/mcp.json`. Repeated `--mcp-config`
330
+ paths are applied last. Codex TOML uses its native `[mcp_servers.<name>]` tables; JSON sources use
331
+ their native `mcpServers` container. Set `STRANDS_CLI_MCP_DISCOVERY=off` to load only `--mcp-config` paths.
332
+
333
+ Project MCP files can run local commands, so the CLI asks before loading them in interactive Ink or
334
+ plain mode. Print and ACP-server mode never prompt; they load project files only when their current
335
+ fingerprint was approved previously.
336
+ Approval is bound to the canonical workspace and a fingerprint of the exact project file paths and
337
+ contents, stored in `~/.strands/cli/trusted-workspaces.json`. Changing a project file requires
338
+ approval again, and a change between approval and loading aborts startup. Passing a project file
339
+ explicitly with `--mcp-config` is treated as an intentional opt-in and does not prompt.
340
+
341
+ The merged servers are available to the agent. In ACP server mode, they are combined with servers
342
+ supplied by the ACP client.
343
+
344
+ ## Agent Skills
345
+
346
+ When skill discovery is enabled, the CLI discovers Agent Skills in `~/.agents/skills`, `~/.claude/skills`, `~/.codex/skills`, and
347
+ `~/.strands/cli/skills`. It also scans each directory from the repository root down to the current
348
+ working directory for `.agents/skills`, `.claude/skills`, `.codex/skills`, `.agent/skills`, and
349
+ `.strands/skills`.
350
+
351
+ Sources are applied from general to specific, so a later project skill replaces an earlier
352
+ same-named user skill. Missing directories are skipped. The profile's skills directories (default
353
+ `./.agent/skills`, or `--skills`) are always applied last, even when discovery would also find
354
+ them, so a configured skill wins over a same-named discovered one. `--skills off` disables
355
+ skills.
356
+
357
+ Both kinds of discovery are off by default. Enable them with the `/settings` panel's **MCP discovery** and
358
+ **skill discovery** toggles (they apply at the next launch). `STRANDS_CLI_MCP_DISCOVERY=off` or
359
+ `STRANDS_CLI_SKILL_DISCOVERY=off` disables either for a single run. These switches control automatic
360
+ source discovery, not whether MCP or skills are enabled. With MCP discovery off, the CLI loads only
361
+ explicit `--mcp-config` paths. With skill discovery off, the CLI loads only the configured skills
362
+ directories (`./.agent/skills` by default); `--skills off` disables skills entirely.
363
+
364
+ ## Tool approval and host execution
365
+
366
+ The Ink backend installs the Strands Harness SDK's Cedar intervention before constructing the agent
367
+ through `createHarness()`. Cedar automatically permits workspace-local `read` calls (after
368
+ canonical-path and symlink checks), `todo_write`, and `retrieve_offloaded_content`. Every other built-in
369
+ or MCP tool call opens a permission panel with **Allow once**, **Always allow tool**, and **Deny**.
370
+ Always-allowed tools are written to `~/.strands/cli/config.json` and apply by exact tool name across
371
+ launches. A denial is returned
372
+ to the agent as a denied tool call.
373
+
374
+ The CLI reads user-level permission settings from `~/.strands/cli/config.json`:
375
+
376
+ ```json
377
+ {
378
+ "permissions": {
379
+ "mode": "default",
380
+ "allow": ["shell", "edit"]
381
+ }
382
+ }
383
+ ```
384
+
385
+ `permissions.mode` accepts `"default"` or `"bypassPermissions"`. Bypass mode allows every built-in
386
+ and MCP tool call without opening the Cedar approval panel. It does not disable additional
387
+ interventions supplied by the caller or an operating-system sandbox. Permission configuration is
388
+ user-owned; the CLI does not load a project `config.json` that could silently enable bypass mode.
389
+ Use `/permissions` to inspect or change the mode and remove saved tool grants.
390
+ Use `/settings` to persist presentation preferences in the same file. Disabling animations also
391
+ skips the startup intro on later launches.
392
+
393
+ This approval layer is not an operating-system sandbox. Unless a caller supplies a Strands
394
+ `sandbox`, the harness's shell, file, MCP, delegate, and Background Task work runs in the host process with
395
+ the user's permissions. Plain, print, and ACP server modes have no permission UI and therefore use
396
+ stock harness tool behavior; library consumers can pass their own `interventions` and `sandbox` options
397
+ to `createHarness()`.
398
+
399
+ An Ink `!<command>` shell escape is an explicit user action, so it does not pass through the agent's
400
+ tool-approval intervention. It executes through the same `agent.sandbox` used by the harness's tools and
401
+ inherits that sandbox's isolation. With the SDK default, that environment is the local host rather
402
+ than an operating-system sandbox.
403
+
404
+ ## Ink commands
405
+
406
+ These commands are local to the full-screen Ink UI:
407
+
408
+ | Command | Action |
409
+ | ---------------------------- | ------------------------------------------------------------------ |
410
+ | `/help` | Browse controls, commands, and the current agent's available tools |
411
+ | `/context` | Show context usage and prompt-cache activity |
412
+ | `/compact` | Summarize older conversation context |
413
+ | `/clear` | Rebuild the agent with a fresh conversation |
414
+ | `/tasks` | Show tasks and configure background completion behavior |
415
+ | `/model [model-id]` | Browse or change the active model |
416
+ | `/effort [level]` | Open the effort slider or set the reasoning effort directly |
417
+ | `/fork [request]` | Fork the current conversation into an independent agent |
418
+ | `/agents` | View conversations and live subagents |
419
+ | `/rename <name>` | Rename the currently viewed agent |
420
+ | `/sessions` | Browse and resume saved sessions |
421
+ | `/skills` | Browse available and active Agent Skills |
422
+ | `/mcp` | Connect to configured MCP servers and show their tools and state |
423
+ | `/permissions` | Configure persistent tool approvals |
424
+ | `/voice [on\|off\|status]` | Open bidirectional voice controls |
425
+ | `/settings` | Configure presentation and inspect the active runtime |
426
+ | `/setup` | Configure providers and the default agent |
427
+ | `/export` | Write the agent as a runnable TypeScript or Python project |
428
+ | `!<command>` | Run a shell command in the active agent's sandbox |
429
+ | `/exit` | Exit the CLI |
430
+
431
+ Slash commands provide inline signatures and argument completion. Press Tab or Enter
432
+ on a completion to replace the current argument token.
433
+
434
+ `/help` groups **Controls**, **Commands**, and **Available tools** in a searchable panel.
435
+ Select a control or tool for its full text, drag to copy, and press Esc to return.
436
+ Tool names and descriptions come from the active backend; unreported tools or origins are
437
+ marked as unknown rather than inferred from defaults. Command support follows the connection's
438
+ capabilities, including Python and ACP backends.
439
+
440
+ An available Agent Skill can also be invoked directly with `/skill-name [prompt]` or
441
+ `$skill-name [prompt]`. The CLI activates it through the SDK's `skills` tool, then runs the trailing
442
+ prompt with that skill's instructions active.
443
+
444
+ `/voice` opens the experimental Nova Sonic control panel without starting audio. Use `/voice on` to
445
+ start listening without opening the panel, or use the panel's start action. Nova Sonic handles live
446
+ audio, endpointing, transcription, and spoken playback; finalized utterances steer the active agent
447
+ conversation. The selected coding model still owns reasoning, tools, and the response itself.
448
+
449
+ The panel controls microphone mute, spoken replies, Nova Sonic's supported voice IDs, and
450
+ fast/balanced/patient end-of-turn detection. Spoken replies are off by default. When enabled,
451
+ sentence-sized pieces of the coding response are queued for speech as its text streams instead of
452
+ waiting for the entire response. With an empty composer, one Space tap toggles microphone mute,
453
+ including while the voice panel is open. Voice changes restart an active sidecar; selections made
454
+ while voice is off apply on the next start. `/voice off` releases the audio devices. The sidecar
455
+ enables the Harness SDK's WebRTC-based echo cancellation so speaker playback is removed from
456
+ microphone input while real user barge-in remains available. This currently requires `uv`, Python
457
+ 3.13, PortAudio, AWS credentials, and Nova Sonic access. The published npm package includes the
458
+ Python sidecar; `uv` installs its Python dependencies on first use.
459
+
460
+ ## ACP server
461
+
462
+ `strands --acp-server` exposes the agent to an ACP client over
463
+ stdin/stdout. It creates a harness agent for each ACP session, supports client-supplied MCP servers, and
464
+ supports loading saved sessions with transcript replay. Start a separate process for each workspace.
465
+
466
+ ## Models, sessions, and background work
467
+
468
+ ### Choosing a model
469
+
470
+ Pass a `bedrock/<id>` string or a bare Amazon Bedrock model id:
471
+
472
+ ```bash
473
+ strands --model bedrock/global.anthropic.claude-sonnet-5 --effort high "explain this error"
474
+ strands --model global.anthropic.claude-opus-4-8 "review my auth flow"
475
+ ```
476
+
477
+ To use a preconfigured SDK `Model` instance, use the library directly (see
478
+ [Beyond the CLI](#beyond-the-cli)).
479
+
480
+ In Ink, `/model` discovers available Amazon Bedrock models. A compatible Bedrock-family change is applied
481
+ live; changing model family rebuilds the agent immediately while preserving the conversation. The model
482
+ and context items in the status strip remain interactive during a turn; live model changes affect
483
+ the next model call, while rebuilds wait for the active turn to finish.
484
+
485
+ ### Remembering a conversation
486
+
487
+ Every run persists by default under `./.agent/sessions`, minting a fresh session id when you don't
488
+ supply one, for interactive chats and one-shot `-p` runs alike. Use `/sessions` to browse and resume
489
+ them. Pass `--session-id` to choose a memorable id or pick up that exact conversation directly:
490
+
491
+ ```bash
492
+ strands --session-id my-project "let's refactor the parser"
493
+ # ...later...
494
+ strands --session-id my-project "where did we leave off?"
495
+ ```
496
+
497
+ Pass `--session off` for a throwaway run that persists nothing.
498
+
499
+ In Ink, `/sessions` combines saved sessions from workspaces previously seen on the machine and
500
+ can resume any of them, including from another worktree. Session data stays in each workspace's
501
+ configured `session.dir`; the user-level catalog stores only those roots.
502
+
503
+ ### Background Tasks
504
+
505
+ `subagent` always runs in the background. Any other compatible tool may run there when the model
506
+ selects `_background_execution: true`. Ink starts in detached mode so the composer remains
507
+ available; `/tasks` shows task state and live subagent progress, and a ready result automatically
508
+ starts a continuation turn. The panel's **Wait for completion** switch rebuilds the agent with the SDK's
509
+ blocking mode when a turn should stay open until all background results have been delivered.
510
+
511
+ Turn token totals include delegated work. When detached work finishes, its originating turn's
512
+ total updates; the context meter continues to measure the parent agent's prompt.
513
+
514
+ Live subagents also appear in `/agents` while they are available for peer messages. They are
515
+ status rows rather than switchable conversations and disappear when the delegated task finishes.
516
+
517
+ Plain, print, ACP-server, and direct library invocations use the normal wait-for-completion
518
+ behavior. Ink blocks model-family restarts, session replacement, and wait-mode changes while
519
+ Background Tasks are running or waiting for delivery. Use the library's `backgroundTasks` option
520
+ for custom policy or to disable the feature.
521
+
522
+ ## Debug logging
523
+
524
+ The interactive TUI has no console, so it can capture harness and SDK logs to a file instead. It is off
525
+ by default because the log contains your prompts and tool output. Turn it on for one run with
526
+ `STRANDS_CLI_LOG=1` (or a level name such as `STRANDS_CLI_LOG=warn`); the log lands in
527
+ `<tmpdir>/strands/cli.log`, readable by your user only. `STRANDS_CLI_LOG_FILE` changes the path and
528
+ `STRANDS_CLI_LOG_LEVEL` the level (`debug` | `info` | `warn` | `error`, default `debug`); neither turns
529
+ logging on. Earlier builds wrote this log on every launch, so you may want to delete a leftover
530
+ `<tmpdir>/strands/cli.log`.
531
+
532
+ ## Telemetry
533
+
534
+ Each time the interactive TUI starts with the built-in profile, `strands` sends one anonymous ping to
535
+ `https://telemetry.strandsagents.com/ping` so we can see which versions, providers, built-in tools,
536
+ and plugins are actually in use. The whole payload is:
537
+
538
+ ```json
539
+ { "v": 1, "cli_version": "0.1.0", "provider": "bedrock", "builtin_tools": ["shell", "read"], "builtin_plugins": ["todos"] }
540
+ ```
541
+
542
+ `provider` is one of the shipped provider names and is omitted for a custom model module. The payload
543
+ carries no identifiers of any kind and no prompts, model ids, paths, or environment details, and the
544
+ ping is fire-and-forget: startup never waits on it and failures are silent. Nothing is sent from
545
+ `--print`, piped, plain, or `--acp-server` runs, or when running an authored agent (`--agent`, imported
546
+ projects).
547
+
548
+ Turn it off with `STRANDS_CLI_TELEMETRY=off` (or `DO_NOT_TRACK=1`), the **Usage ping** toggle in `/settings`
549
+ (takes effect at the next launch), or `"settings": { "telemetry": false }` in `~/.strands/cli/config.json`.
550
+
551
+ ## Beyond the CLI
552
+
553
+ For anything past these flags (custom tools, plugins, specialist subagents, interventions, a
554
+ bring-your-own model instance), use the library directly:
555
+
556
+ - **TypeScript:** [`@strands-agents/harness`](https://www.npmjs.com/package/@strands-agents/harness)
557
+ - **Python:** [`strands-harness`](https://pypi.org/project/strands-harness/)
558
+
559
+ ## Contributing ❤️
560
+
561
+ Contributions are welcome: bug reports, features, docs, or a well-scoped PR. See the
562
+ [Contributing Guide](https://github.com/strands-agents/harness-sdk/blob/main/CONTRIBUTING.md) for
563
+ development setup, how we work, and the pull-request flow. Please also review our
564
+ [Code of Conduct](https://github.com/strands-agents/harness-sdk/blob/main/CODE_OF_CONDUCT.md).
565
+
566
+ The cache patch in `src/tui/terminal/ink.ts` bounds Ink 7.1.1's text-layout caches in memory during streaming.
567
+ Review this patch when upgrading Ink; it works with read-only installations without changing dependency files.
568
+
569
+ ## Security
570
+
571
+ See [SECURITY.md](https://github.com/strands-agents/harness-sdk/blob/main/SECURITY.md) for how to
572
+ report a vulnerability. Please do not open a public issue for security concerns.
573
+
574
+ ## License
575
+
576
+ Apache-2.0. See [LICENSE](https://github.com/strands-agents/harness-sdk/blob/main/strands-cli/LICENSE).