@machina.ai/cell-cli-core 1.22.5-rc1 → 1.25.0-rc2

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 (732) hide show
  1. package/dist/docs/AFTER_MERGE_PROMPT.md +26 -0
  2. package/dist/docs/CHANGES.md +124 -0
  3. package/dist/docs/api-proxy.md +27 -0
  4. package/dist/docs/architecture.md +80 -0
  5. package/dist/docs/assets/connected_devtools.png +0 -0
  6. package/dist/docs/assets/gemini-screenshot.png +0 -0
  7. package/dist/docs/assets/monitoring-dashboard-logs.png +0 -0
  8. package/dist/docs/assets/monitoring-dashboard-metrics.png +0 -0
  9. package/dist/docs/assets/monitoring-dashboard-overview.png +0 -0
  10. package/dist/docs/assets/release_patch.png +0 -0
  11. package/dist/docs/assets/theme-ansi-light.png +0 -0
  12. package/dist/docs/assets/theme-ansi.png +0 -0
  13. package/dist/docs/assets/theme-atom-one.png +0 -0
  14. package/dist/docs/assets/theme-ayu-light.png +0 -0
  15. package/dist/docs/assets/theme-ayu.png +0 -0
  16. package/dist/docs/assets/theme-custom.png +0 -0
  17. package/dist/docs/assets/theme-default-light.png +0 -0
  18. package/dist/docs/assets/theme-default.png +0 -0
  19. package/dist/docs/assets/theme-dracula.png +0 -0
  20. package/dist/docs/assets/theme-github-light.png +0 -0
  21. package/dist/docs/assets/theme-github.png +0 -0
  22. package/dist/docs/assets/theme-google-light.png +0 -0
  23. package/dist/docs/assets/theme-xcode-light.png +0 -0
  24. package/dist/docs/changelogs/index.md +612 -0
  25. package/dist/docs/changelogs/latest.md +153 -0
  26. package/dist/docs/changelogs/preview.md +131 -0
  27. package/dist/docs/changelogs/releases.md +1162 -0
  28. package/dist/docs/cli/authentication.md +3 -0
  29. package/dist/docs/cli/checkpointing.md +94 -0
  30. package/dist/docs/cli/commands.md +357 -0
  31. package/dist/docs/cli/custom-commands.md +315 -0
  32. package/dist/docs/cli/enterprise.md +564 -0
  33. package/dist/docs/cli/gemini-ignore.md +71 -0
  34. package/dist/docs/cli/gemini-md.md +109 -0
  35. package/dist/docs/cli/generation-settings.md +210 -0
  36. package/dist/docs/cli/headless.md +388 -0
  37. package/dist/docs/cli/index.md +63 -0
  38. package/dist/docs/cli/keyboard-shortcuts.md +136 -0
  39. package/dist/docs/cli/model-routing.md +37 -0
  40. package/dist/docs/cli/model.md +62 -0
  41. package/dist/docs/cli/sandbox.md +171 -0
  42. package/dist/docs/cli/session-management.md +158 -0
  43. package/dist/docs/cli/settings.md +148 -0
  44. package/dist/docs/cli/skills.md +188 -0
  45. package/dist/docs/cli/system-prompt.md +94 -0
  46. package/dist/docs/cli/telemetry.md +813 -0
  47. package/dist/docs/cli/themes.md +237 -0
  48. package/dist/docs/cli/token-caching.md +20 -0
  49. package/dist/docs/cli/trusted-folders.md +95 -0
  50. package/dist/docs/cli/tutorials/skills-getting-started.md +124 -0
  51. package/dist/docs/cli/tutorials.md +87 -0
  52. package/dist/docs/cli/uninstall.md +47 -0
  53. package/dist/docs/core/index.md +101 -0
  54. package/dist/docs/core/memport.md +246 -0
  55. package/dist/docs/core/policy-engine.md +268 -0
  56. package/dist/docs/core/tools-api.md +131 -0
  57. package/dist/docs/examples/proxy-script.md +83 -0
  58. package/dist/docs/extensions/extension-releasing.md +183 -0
  59. package/dist/docs/extensions/getting-started-extensions.md +244 -0
  60. package/dist/docs/extensions/index.md +343 -0
  61. package/dist/docs/faq.md +153 -0
  62. package/dist/docs/get-started/authentication.md +321 -0
  63. package/dist/docs/get-started/configuration-v1.md +890 -0
  64. package/dist/docs/get-started/configuration.md +1643 -0
  65. package/dist/docs/get-started/examples.md +218 -0
  66. package/dist/docs/get-started/gemini-3.md +101 -0
  67. package/dist/docs/get-started/index.md +71 -0
  68. package/dist/docs/get-started/installation.md +141 -0
  69. package/dist/docs/hooks/best-practices.md +856 -0
  70. package/dist/docs/hooks/index.md +723 -0
  71. package/dist/docs/hooks/reference.md +178 -0
  72. package/dist/docs/hooks/writing-hooks.md +1044 -0
  73. package/dist/docs/ide-integration/ide-companion-spec.md +267 -0
  74. package/dist/docs/ide-integration/index.md +201 -0
  75. package/dist/docs/index.md +147 -0
  76. package/dist/docs/integration-tests.md +211 -0
  77. package/dist/docs/issue-and-pr-automation.md +134 -0
  78. package/dist/docs/local-development.md +128 -0
  79. package/dist/docs/mcp_integration.md +160 -0
  80. package/dist/docs/mermaid/context.mmd +103 -0
  81. package/dist/docs/mermaid/render-path.mmd +64 -0
  82. package/dist/docs/npm.md +62 -0
  83. package/dist/docs/quota-and-pricing.md +158 -0
  84. package/dist/docs/release-confidence.md +164 -0
  85. package/dist/docs/releases.md +540 -0
  86. package/dist/docs/sidebar.json +301 -0
  87. package/dist/docs/tools/file-system.md +217 -0
  88. package/dist/docs/tools/index.md +95 -0
  89. package/dist/docs/tools/mcp-server.md +1045 -0
  90. package/dist/docs/tools/memory.md +54 -0
  91. package/dist/docs/tools/shell.md +260 -0
  92. package/dist/docs/tools/todos.md +56 -0
  93. package/dist/docs/tools/web-fetch.md +59 -0
  94. package/dist/docs/tools/web-search.md +42 -0
  95. package/dist/docs/tos-privacy.md +96 -0
  96. package/dist/docs/troubleshooting.md +162 -0
  97. package/dist/package.json +7 -4
  98. package/dist/src/agents/a2a-client-manager.d.ts +82 -0
  99. package/dist/src/agents/a2a-client-manager.js +295 -0
  100. package/dist/src/agents/a2a-client-manager.js.map +1 -0
  101. package/dist/src/agents/a2a-client-manager.test.js +281 -0
  102. package/dist/src/agents/a2a-client-manager.test.js.map +1 -0
  103. package/dist/src/agents/a2aUtils.d.ts +29 -0
  104. package/dist/src/agents/a2aUtils.js +113 -0
  105. package/dist/src/agents/a2aUtils.js.map +1 -0
  106. package/dist/src/agents/a2aUtils.test.js +147 -0
  107. package/dist/src/agents/a2aUtils.test.js.map +1 -0
  108. package/dist/src/agents/agentLoader.d.ts +68 -0
  109. package/dist/src/agents/agentLoader.js +255 -0
  110. package/dist/src/agents/agentLoader.js.map +1 -0
  111. package/dist/src/agents/agentLoader.test.js +307 -0
  112. package/dist/src/agents/agentLoader.test.js.map +1 -0
  113. package/dist/src/agents/cli-help-agent.d.ts +24 -0
  114. package/dist/src/agents/cli-help-agent.js +85 -0
  115. package/dist/src/agents/cli-help-agent.js.map +1 -0
  116. package/dist/src/agents/cli-help-agent.test.js +65 -0
  117. package/dist/src/agents/cli-help-agent.test.js.map +1 -0
  118. package/dist/src/agents/codebase-investigator.d.ts +2 -2
  119. package/dist/src/agents/codebase-investigator.js +14 -8
  120. package/dist/src/agents/codebase-investigator.js.map +1 -1
  121. package/dist/src/agents/delegate-to-agent-tool.d.ts +2 -2
  122. package/dist/src/agents/delegate-to-agent-tool.js +25 -14
  123. package/dist/src/agents/delegate-to-agent-tool.js.map +1 -1
  124. package/dist/src/agents/delegate-to-agent-tool.test.js +101 -21
  125. package/dist/src/agents/delegate-to-agent-tool.test.js.map +1 -1
  126. package/dist/src/agents/{executor.d.ts → local-executor.d.ts} +5 -11
  127. package/dist/src/agents/{executor.js → local-executor.js} +123 -62
  128. package/dist/src/agents/local-executor.js.map +1 -0
  129. package/dist/src/agents/local-executor.test.d.ts +6 -0
  130. package/dist/src/agents/{executor.test.js → local-executor.test.js} +136 -58
  131. package/dist/src/agents/local-executor.test.js.map +1 -0
  132. package/dist/src/agents/{invocation.d.ts → local-invocation.d.ts} +6 -7
  133. package/dist/src/agents/{invocation.js → local-invocation.js} +9 -10
  134. package/dist/src/agents/local-invocation.js.map +1 -0
  135. package/dist/src/agents/local-invocation.test.d.ts +6 -0
  136. package/dist/src/agents/{invocation.test.js → local-invocation.test.js} +29 -20
  137. package/dist/src/agents/local-invocation.test.js.map +1 -0
  138. package/dist/src/agents/registry.d.ts +22 -1
  139. package/dist/src/agents/registry.js +192 -35
  140. package/dist/src/agents/registry.js.map +1 -1
  141. package/dist/src/agents/registry.test.js +407 -33
  142. package/dist/src/agents/registry.test.js.map +1 -1
  143. package/dist/src/agents/remote-invocation.d.ts +35 -0
  144. package/dist/src/agents/remote-invocation.js +126 -0
  145. package/dist/src/agents/remote-invocation.js.map +1 -0
  146. package/dist/src/agents/remote-invocation.test.d.ts +6 -0
  147. package/dist/src/agents/remote-invocation.test.js +201 -0
  148. package/dist/src/agents/remote-invocation.test.js.map +1 -0
  149. package/dist/src/agents/subagent-tool-wrapper.d.ts +2 -2
  150. package/dist/src/agents/subagent-tool-wrapper.js +11 -6
  151. package/dist/src/agents/subagent-tool-wrapper.js.map +1 -1
  152. package/dist/src/agents/subagent-tool-wrapper.test.js +33 -19
  153. package/dist/src/agents/subagent-tool-wrapper.test.js.map +1 -1
  154. package/dist/src/agents/types.d.ts +21 -15
  155. package/dist/src/agents/types.js.map +1 -1
  156. package/dist/src/availability/fallbackIntegration.test.d.ts +6 -0
  157. package/dist/src/availability/fallbackIntegration.test.js +58 -0
  158. package/dist/src/availability/fallbackIntegration.test.js.map +1 -0
  159. package/dist/src/availability/modelAvailabilityService.d.ts +2 -1
  160. package/dist/src/availability/policyHelpers.d.ts +4 -3
  161. package/dist/src/availability/policyHelpers.js +13 -22
  162. package/dist/src/availability/policyHelpers.js.map +1 -1
  163. package/dist/src/availability/policyHelpers.test.js +28 -18
  164. package/dist/src/availability/policyHelpers.test.js.map +1 -1
  165. package/dist/src/code_assist/experiments/experiments.d.ts +1 -1
  166. package/dist/src/code_assist/experiments/experiments.js +21 -0
  167. package/dist/src/code_assist/experiments/experiments.js.map +1 -1
  168. package/dist/src/code_assist/experiments/experiments_local.test.d.ts +6 -0
  169. package/dist/src/code_assist/experiments/experiments_local.test.js +110 -0
  170. package/dist/src/code_assist/experiments/experiments_local.test.js.map +1 -0
  171. package/dist/src/code_assist/oauth-credential-storage.js +3 -4
  172. package/dist/src/code_assist/oauth-credential-storage.js.map +1 -1
  173. package/dist/src/code_assist/oauth2.js +32 -2
  174. package/dist/src/code_assist/oauth2.js.map +1 -1
  175. package/dist/src/code_assist/oauth2.test.js +111 -16
  176. package/dist/src/code_assist/oauth2.test.js.map +1 -1
  177. package/dist/src/code_assist/server.d.ts +9 -1
  178. package/dist/src/code_assist/server.js +74 -11
  179. package/dist/src/code_assist/server.js.map +1 -1
  180. package/dist/src/code_assist/server.test.js +199 -27
  181. package/dist/src/code_assist/server.test.js.map +1 -1
  182. package/dist/src/code_assist/setup.js +6 -4
  183. package/dist/src/code_assist/setup.js.map +1 -1
  184. package/dist/src/code_assist/setup.test.js +63 -0
  185. package/dist/src/code_assist/setup.test.js.map +1 -1
  186. package/dist/src/code_assist/telemetry.d.ts +14 -0
  187. package/dist/src/code_assist/telemetry.js +157 -0
  188. package/dist/src/code_assist/telemetry.js.map +1 -0
  189. package/dist/src/code_assist/telemetry.test.d.ts +6 -0
  190. package/dist/src/code_assist/telemetry.test.js +301 -0
  191. package/dist/src/code_assist/telemetry.test.js.map +1 -0
  192. package/dist/src/code_assist/types.d.ts +77 -1
  193. package/dist/src/code_assist/types.js +28 -0
  194. package/dist/src/code_assist/types.js.map +1 -1
  195. package/dist/src/commands/memory.d.ts +11 -0
  196. package/dist/src/commands/memory.js +80 -0
  197. package/dist/src/commands/memory.js.map +1 -0
  198. package/dist/src/commands/memory.test.d.ts +6 -0
  199. package/dist/src/commands/memory.test.js +155 -0
  200. package/dist/src/commands/memory.test.js.map +1 -0
  201. package/dist/src/config/config.d.ts +120 -26
  202. package/dist/src/config/config.js +241 -120
  203. package/dist/src/config/config.js.map +1 -1
  204. package/dist/src/config/config.test.js +215 -43
  205. package/dist/src/config/config.test.js.map +1 -1
  206. package/dist/src/config/flashFallback.test.js +11 -35
  207. package/dist/src/config/flashFallback.test.js.map +1 -1
  208. package/dist/src/config/models.d.ts +8 -9
  209. package/dist/src/config/models.js +18 -15
  210. package/dist/src/config/models.js.map +1 -1
  211. package/dist/src/config/models.test.js +52 -16
  212. package/dist/src/config/models.test.js.map +1 -1
  213. package/dist/src/config/storage.d.ts +5 -0
  214. package/dist/src/config/storage.js +17 -2
  215. package/dist/src/config/storage.js.map +1 -1
  216. package/dist/src/config/storage.test.js +16 -0
  217. package/dist/src/config/storage.test.js.map +1 -1
  218. package/dist/src/confirmation-bus/message-bus.js +2 -1
  219. package/dist/src/confirmation-bus/message-bus.js.map +1 -1
  220. package/dist/src/core/baseLlmClient.js +44 -43
  221. package/dist/src/core/baseLlmClient.js.map +1 -1
  222. package/dist/src/core/baseLlmClient.test.js +12 -19
  223. package/dist/src/core/baseLlmClient.test.js.map +1 -1
  224. package/dist/src/core/client.d.ts +7 -1
  225. package/dist/src/core/client.js +245 -114
  226. package/dist/src/core/client.js.map +1 -1
  227. package/dist/src/core/client.test.js +277 -74
  228. package/dist/src/core/client.test.js.map +1 -1
  229. package/dist/src/core/clientHookTriggers.js +2 -2
  230. package/dist/src/core/clientHookTriggers.js.map +1 -1
  231. package/dist/src/core/contentGenerator.js +3 -3
  232. package/dist/src/core/contentGenerator.js.map +1 -1
  233. package/dist/src/core/contentGenerator.test.js +1 -7
  234. package/dist/src/core/contentGenerator.test.js.map +1 -1
  235. package/dist/src/core/coreToolHookTriggers.d.ts +9 -5
  236. package/dist/src/core/coreToolHookTriggers.js +119 -21
  237. package/dist/src/core/coreToolHookTriggers.js.map +1 -1
  238. package/dist/src/core/coreToolHookTriggers.test.d.ts +6 -0
  239. package/dist/src/core/coreToolHookTriggers.test.js +191 -0
  240. package/dist/src/core/coreToolHookTriggers.test.js.map +1 -0
  241. package/dist/src/core/coreToolScheduler.d.ts +7 -93
  242. package/dist/src/core/coreToolScheduler.js +133 -369
  243. package/dist/src/core/coreToolScheduler.js.map +1 -1
  244. package/dist/src/core/coreToolScheduler.test.js +252 -394
  245. package/dist/src/core/coreToolScheduler.test.js.map +1 -1
  246. package/dist/src/core/geminiChat.d.ts +26 -1
  247. package/dist/src/core/geminiChat.js +112 -79
  248. package/dist/src/core/geminiChat.js.map +1 -1
  249. package/dist/src/core/geminiChat.test.js +125 -92
  250. package/dist/src/core/geminiChat.test.js.map +1 -1
  251. package/dist/src/core/geminiChatHookTriggers.d.ts +8 -4
  252. package/dist/src/core/geminiChatHookTriggers.js +34 -12
  253. package/dist/src/core/geminiChatHookTriggers.js.map +1 -1
  254. package/dist/src/core/geminiChatHookTriggers.test.d.ts +6 -0
  255. package/dist/src/core/geminiChatHookTriggers.test.js +153 -0
  256. package/dist/src/core/geminiChatHookTriggers.test.js.map +1 -0
  257. package/dist/src/core/geminiChat_network_retry.test.js +4 -6
  258. package/dist/src/core/geminiChat_network_retry.test.js.map +1 -1
  259. package/dist/src/core/loggingContentGenerator.js +19 -2
  260. package/dist/src/core/loggingContentGenerator.js.map +1 -1
  261. package/dist/src/core/loggingContentGenerator.test.js +30 -0
  262. package/dist/src/core/loggingContentGenerator.test.js.map +1 -1
  263. package/dist/src/core/nonInteractiveToolExecutor.test.js +4 -4
  264. package/dist/src/core/nonInteractiveToolExecutor.test.js.map +1 -1
  265. package/dist/src/core/prompts.js +37 -13
  266. package/dist/src/core/prompts.js.map +1 -1
  267. package/dist/src/core/prompts.test.js +47 -3
  268. package/dist/src/core/prompts.test.js.map +1 -1
  269. package/dist/src/core/tokenLimits.js +6 -12
  270. package/dist/src/core/tokenLimits.js.map +1 -1
  271. package/dist/src/core/tokenLimits.test.js +8 -4
  272. package/dist/src/core/tokenLimits.test.js.map +1 -1
  273. package/dist/src/core/turn.d.ts +21 -22
  274. package/dist/src/core/turn.js +31 -21
  275. package/dist/src/core/turn.js.map +1 -1
  276. package/dist/src/core/turn.test.js +79 -5
  277. package/dist/src/core/turn.test.js.map +1 -1
  278. package/dist/src/fallback/handler.js +1 -7
  279. package/dist/src/fallback/handler.js.map +1 -1
  280. package/dist/src/fallback/handler.test.js +10 -29
  281. package/dist/src/fallback/handler.test.js.map +1 -1
  282. package/dist/src/generated/git-commit.d.ts +3 -3
  283. package/dist/src/generated/git-commit.js +3 -3
  284. package/dist/src/hooks/hookAggregator.js +7 -0
  285. package/dist/src/hooks/hookAggregator.js.map +1 -1
  286. package/dist/src/hooks/hookEventHandler.d.ts +9 -5
  287. package/dist/src/hooks/hookEventHandler.js +61 -15
  288. package/dist/src/hooks/hookEventHandler.js.map +1 -1
  289. package/dist/src/hooks/hookEventHandler.test.js +223 -8
  290. package/dist/src/hooks/hookEventHandler.test.js.map +1 -1
  291. package/dist/src/hooks/hookPlanner.d.ts +1 -5
  292. package/dist/src/hooks/hookPlanner.js +2 -7
  293. package/dist/src/hooks/hookPlanner.js.map +1 -1
  294. package/dist/src/hooks/hookPlanner.test.js +62 -2
  295. package/dist/src/hooks/hookPlanner.test.js.map +1 -1
  296. package/dist/src/hooks/hookRegistry.d.ts +6 -11
  297. package/dist/src/hooks/hookRegistry.js +41 -14
  298. package/dist/src/hooks/hookRegistry.js.map +1 -1
  299. package/dist/src/hooks/hookRegistry.test.js +166 -2
  300. package/dist/src/hooks/hookRegistry.test.js.map +1 -1
  301. package/dist/src/hooks/hookRunner.d.ts +5 -3
  302. package/dist/src/hooks/hookRunner.js +57 -17
  303. package/dist/src/hooks/hookRunner.js.map +1 -1
  304. package/dist/src/hooks/hookRunner.test.js +172 -35
  305. package/dist/src/hooks/hookRunner.test.js.map +1 -1
  306. package/dist/src/hooks/hookSystem.d.ts +12 -0
  307. package/dist/src/hooks/hookSystem.js +39 -1
  308. package/dist/src/hooks/hookSystem.js.map +1 -1
  309. package/dist/src/hooks/hookTranslator.js +2 -1
  310. package/dist/src/hooks/hookTranslator.js.map +1 -1
  311. package/dist/src/hooks/index.d.ts +1 -2
  312. package/dist/src/hooks/index.js +1 -3
  313. package/dist/src/hooks/index.js.map +1 -1
  314. package/dist/src/hooks/trustedHooks.d.ts +28 -0
  315. package/dist/src/hooks/trustedHooks.js +90 -0
  316. package/dist/src/hooks/trustedHooks.js.map +1 -0
  317. package/dist/src/hooks/trustedHooks.test.d.ts +6 -0
  318. package/dist/src/hooks/trustedHooks.test.js +154 -0
  319. package/dist/src/hooks/trustedHooks.test.js.map +1 -0
  320. package/dist/src/hooks/types.d.ts +41 -9
  321. package/dist/src/hooks/types.js +31 -41
  322. package/dist/src/hooks/types.js.map +1 -1
  323. package/dist/src/hooks/types.test.js +9 -52
  324. package/dist/src/hooks/types.test.js.map +1 -1
  325. package/dist/src/ide/detect-ide.d.ts +4 -0
  326. package/dist/src/ide/detect-ide.js +7 -2
  327. package/dist/src/ide/detect-ide.js.map +1 -1
  328. package/dist/src/ide/detect-ide.test.js +10 -0
  329. package/dist/src/ide/detect-ide.test.js.map +1 -1
  330. package/dist/src/ide/ide-client.js +4 -1
  331. package/dist/src/ide/ide-client.js.map +1 -1
  332. package/dist/src/ide/ide-installer.js +2 -2
  333. package/dist/src/ide/ide-installer.js.map +1 -1
  334. package/dist/src/ide/ide-installer.test.js +11 -2
  335. package/dist/src/ide/ide-installer.test.js.map +1 -1
  336. package/dist/src/index.d.ts +16 -2
  337. package/dist/src/index.js +18 -3
  338. package/dist/src/index.js.map +1 -1
  339. package/dist/src/mcp/oauth-provider.js +7 -3
  340. package/dist/src/mcp/oauth-provider.js.map +1 -1
  341. package/dist/src/mcp/oauth-provider.test.js +4 -1
  342. package/dist/src/mcp/oauth-provider.test.js.map +1 -1
  343. package/dist/src/mcp/oauth-utils.d.ts +8 -1
  344. package/dist/src/mcp/oauth-utils.js +31 -2
  345. package/dist/src/mcp/oauth-utils.js.map +1 -1
  346. package/dist/src/mcp/oauth-utils.test.js +42 -0
  347. package/dist/src/mcp/oauth-utils.test.js.map +1 -1
  348. package/dist/src/mcp/token-storage/file-token-storage.js +2 -2
  349. package/dist/src/mcp/token-storage/file-token-storage.js.map +1 -1
  350. package/dist/src/mcp/token-storage/keychain-token-storage.js +1 -1
  351. package/dist/src/mcp/token-storage/keychain-token-storage.js.map +1 -1
  352. package/dist/src/policy/config.js +62 -23
  353. package/dist/src/policy/config.js.map +1 -1
  354. package/dist/src/policy/config.test.js +24 -2
  355. package/dist/src/policy/config.test.js.map +1 -1
  356. package/dist/src/policy/persistence.test.js +1 -1
  357. package/dist/src/policy/persistence.test.js.map +1 -1
  358. package/dist/src/policy/policies/agent.toml +1 -1
  359. package/dist/src/policy/policies/write.toml +5 -0
  360. package/dist/src/policy/policies/yolo.toml +1 -0
  361. package/dist/src/policy/policy-engine.d.ts +4 -0
  362. package/dist/src/policy/policy-engine.js +137 -53
  363. package/dist/src/policy/policy-engine.js.map +1 -1
  364. package/dist/src/policy/policy-engine.test.js +289 -1
  365. package/dist/src/policy/policy-engine.test.js.map +1 -1
  366. package/dist/src/policy/policy-updater.test.js +5 -5
  367. package/dist/src/policy/policy-updater.test.js.map +1 -1
  368. package/dist/src/policy/shell-safety.test.js +371 -8
  369. package/dist/src/policy/shell-safety.test.js.map +1 -1
  370. package/dist/src/policy/toml-loader.d.ts +0 -8
  371. package/dist/src/policy/toml-loader.js +13 -45
  372. package/dist/src/policy/toml-loader.js.map +1 -1
  373. package/dist/src/policy/toml-loader.test.js +13 -0
  374. package/dist/src/policy/toml-loader.test.js.map +1 -1
  375. package/dist/src/policy/types.d.ts +10 -0
  376. package/dist/src/policy/utils.d.ts +21 -0
  377. package/dist/src/policy/utils.js +45 -0
  378. package/dist/src/policy/utils.js.map +1 -0
  379. package/dist/src/policy/utils.test.d.ts +6 -0
  380. package/dist/src/policy/utils.test.js +92 -0
  381. package/dist/src/policy/utils.test.js.map +1 -0
  382. package/dist/src/routing/routingStrategy.d.ts +2 -0
  383. package/dist/src/routing/strategies/classifierStrategy.js +1 -1
  384. package/dist/src/routing/strategies/classifierStrategy.js.map +1 -1
  385. package/dist/src/routing/strategies/classifierStrategy.test.js +16 -0
  386. package/dist/src/routing/strategies/classifierStrategy.test.js.map +1 -1
  387. package/dist/src/routing/strategies/compositeStrategy.js +4 -2
  388. package/dist/src/routing/strategies/compositeStrategy.js.map +1 -1
  389. package/dist/src/routing/strategies/compositeStrategy.test.js +11 -10
  390. package/dist/src/routing/strategies/compositeStrategy.test.js.map +1 -1
  391. package/dist/src/routing/strategies/fallbackStrategy.d.ts +1 -1
  392. package/dist/src/routing/strategies/fallbackStrategy.js +2 -5
  393. package/dist/src/routing/strategies/fallbackStrategy.js.map +1 -1
  394. package/dist/src/routing/strategies/fallbackStrategy.test.js +13 -6
  395. package/dist/src/routing/strategies/fallbackStrategy.test.js.map +1 -1
  396. package/dist/src/routing/strategies/overrideStrategy.d.ts +1 -1
  397. package/dist/src/routing/strategies/overrideStrategy.js +6 -6
  398. package/dist/src/routing/strategies/overrideStrategy.js.map +1 -1
  399. package/dist/src/routing/strategies/overrideStrategy.test.js +14 -0
  400. package/dist/src/routing/strategies/overrideStrategy.test.js.map +1 -1
  401. package/dist/src/scheduler/tool-executor.d.ts +22 -0
  402. package/dist/src/scheduler/tool-executor.js +198 -0
  403. package/dist/src/scheduler/tool-executor.js.map +1 -0
  404. package/dist/src/scheduler/tool-executor.test.d.ts +6 -0
  405. package/dist/src/scheduler/tool-executor.test.js +231 -0
  406. package/dist/src/scheduler/tool-executor.test.js.map +1 -0
  407. package/dist/src/scheduler/tool-modifier.d.ts +23 -0
  408. package/dist/src/scheduler/tool-modifier.js +50 -0
  409. package/dist/src/scheduler/tool-modifier.js.map +1 -0
  410. package/dist/src/scheduler/tool-modifier.test.d.ts +6 -0
  411. package/dist/src/scheduler/tool-modifier.test.js +159 -0
  412. package/dist/src/scheduler/tool-modifier.test.js.map +1 -0
  413. package/dist/src/scheduler/types.d.ts +95 -0
  414. package/dist/src/scheduler/types.js +7 -0
  415. package/dist/src/scheduler/types.js.map +1 -0
  416. package/dist/src/services/chatCompressionService.js +3 -10
  417. package/dist/src/services/chatCompressionService.js.map +1 -1
  418. package/dist/src/services/chatCompressionService.test.js +1 -0
  419. package/dist/src/services/chatCompressionService.test.js.map +1 -1
  420. package/dist/src/services/chatRecordingService.d.ts +7 -1
  421. package/dist/src/services/chatRecordingService.js +20 -2
  422. package/dist/src/services/chatRecordingService.js.map +1 -1
  423. package/dist/src/services/chatRecordingService.test.js +43 -0
  424. package/dist/src/services/chatRecordingService.test.js.map +1 -1
  425. package/dist/src/services/contextManager.d.ts +5 -11
  426. package/dist/src/services/contextManager.js +20 -17
  427. package/dist/src/services/contextManager.js.map +1 -1
  428. package/dist/src/services/contextManager.test.js +40 -41
  429. package/dist/src/services/contextManager.test.js.map +1 -1
  430. package/dist/src/services/environmentSanitization.d.ts +15 -0
  431. package/dist/src/services/environmentSanitization.js +142 -0
  432. package/dist/src/services/environmentSanitization.js.map +1 -0
  433. package/dist/src/services/environmentSanitization.test.d.ts +6 -0
  434. package/dist/src/services/environmentSanitization.test.js +284 -0
  435. package/dist/src/services/environmentSanitization.test.js.map +1 -0
  436. package/dist/src/services/gitService.js +10 -1
  437. package/dist/src/services/gitService.js.map +1 -1
  438. package/dist/src/services/gitService.test.js +28 -2
  439. package/dist/src/services/gitService.test.js.map +1 -1
  440. package/dist/src/services/loopDetectionService.js +2 -1
  441. package/dist/src/services/loopDetectionService.js.map +1 -1
  442. package/dist/src/services/loopDetectionService.test.js +14 -8
  443. package/dist/src/services/loopDetectionService.test.js.map +1 -1
  444. package/dist/src/services/modelConfig.integration.test.js +3 -3
  445. package/dist/src/services/modelConfig.integration.test.js.map +1 -1
  446. package/dist/src/services/modelConfigService.d.ts +38 -4
  447. package/dist/src/services/modelConfigService.js +135 -76
  448. package/dist/src/services/modelConfigService.js.map +1 -1
  449. package/dist/src/services/modelConfigService.test.js +116 -0
  450. package/dist/src/services/modelConfigService.test.js.map +1 -1
  451. package/dist/src/services/shellExecutionService.d.ts +2 -0
  452. package/dist/src/services/shellExecutionService.js +6 -50
  453. package/dist/src/services/shellExecutionService.js.map +1 -1
  454. package/dist/src/services/shellExecutionService.test.js +68 -4
  455. package/dist/src/services/shellExecutionService.test.js.map +1 -1
  456. package/dist/src/skills/skillLoader.d.ts +31 -0
  457. package/dist/src/skills/skillLoader.js +77 -0
  458. package/dist/src/skills/skillLoader.js.map +1 -0
  459. package/dist/src/skills/skillLoader.test.d.ts +6 -0
  460. package/dist/src/skills/skillLoader.test.js +75 -0
  461. package/dist/src/skills/skillLoader.test.js.map +1 -0
  462. package/dist/src/skills/skillManager.d.ts +69 -0
  463. package/dist/src/skills/skillManager.js +127 -0
  464. package/dist/src/skills/skillManager.js.map +1 -0
  465. package/dist/src/skills/skillManager.test.d.ts +6 -0
  466. package/dist/src/skills/skillManager.test.js +210 -0
  467. package/dist/src/skills/skillManager.test.js.map +1 -0
  468. package/dist/src/telemetry/clearcut-logger/clearcut-logger.d.ts +18 -9
  469. package/dist/src/telemetry/clearcut-logger/clearcut-logger.js +234 -160
  470. package/dist/src/telemetry/clearcut-logger/clearcut-logger.js.map +1 -1
  471. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js +162 -32
  472. package/dist/src/telemetry/clearcut-logger/clearcut-logger.test.js.map +1 -1
  473. package/dist/src/telemetry/clearcut-logger/event-metadata-key.d.ts +11 -3
  474. package/dist/src/telemetry/clearcut-logger/event-metadata-key.js +24 -5
  475. package/dist/src/telemetry/clearcut-logger/event-metadata-key.js.map +1 -1
  476. package/dist/src/telemetry/loggers.d.ts +3 -3
  477. package/dist/src/telemetry/loggers.js +6 -5
  478. package/dist/src/telemetry/loggers.js.map +1 -1
  479. package/dist/src/telemetry/loggers.test.circular.js +1 -0
  480. package/dist/src/telemetry/loggers.test.circular.js.map +1 -1
  481. package/dist/src/telemetry/loggers.test.js +51 -10
  482. package/dist/src/telemetry/loggers.test.js.map +1 -1
  483. package/dist/src/telemetry/sdk.js +5 -6
  484. package/dist/src/telemetry/sdk.js.map +1 -1
  485. package/dist/src/telemetry/types.d.ts +7 -7
  486. package/dist/src/telemetry/types.js +14 -12
  487. package/dist/src/telemetry/types.js.map +1 -1
  488. package/dist/src/test-utils/mock-message-bus.d.ts +1 -0
  489. package/dist/src/test-utils/mock-message-bus.js +29 -0
  490. package/dist/src/test-utils/mock-message-bus.js.map +1 -1
  491. package/dist/src/test-utils/mock-tool.d.ts +5 -3
  492. package/dist/src/test-utils/mock-tool.js +11 -10
  493. package/dist/src/test-utils/mock-tool.js.map +1 -1
  494. package/dist/src/tools/activate-skill.d.ts +27 -0
  495. package/dist/src/tools/activate-skill.js +133 -0
  496. package/dist/src/tools/activate-skill.js.map +1 -0
  497. package/dist/src/tools/activate-skill.test.d.ts +6 -0
  498. package/dist/src/tools/activate-skill.test.js +113 -0
  499. package/dist/src/tools/activate-skill.test.js.map +1 -0
  500. package/dist/src/tools/confirmation-policy.test.js +3 -12
  501. package/dist/src/tools/confirmation-policy.test.js.map +1 -1
  502. package/dist/src/tools/edit.d.ts +27 -5
  503. package/dist/src/tools/edit.js +455 -136
  504. package/dist/src/tools/edit.js.map +1 -1
  505. package/dist/src/tools/edit.test.js +292 -526
  506. package/dist/src/tools/edit.test.js.map +1 -1
  507. package/dist/src/tools/get-internal-docs.d.ts +27 -0
  508. package/dist/src/tools/get-internal-docs.js +122 -0
  509. package/dist/src/tools/get-internal-docs.js.map +1 -0
  510. package/dist/src/tools/get-internal-docs.test.d.ts +6 -0
  511. package/dist/src/tools/get-internal-docs.test.js +57 -0
  512. package/dist/src/tools/get-internal-docs.test.js.map +1 -0
  513. package/dist/src/tools/glob.d.ts +2 -2
  514. package/dist/src/tools/glob.js +1 -1
  515. package/dist/src/tools/glob.js.map +1 -1
  516. package/dist/src/tools/glob.test.js +2 -1
  517. package/dist/src/tools/glob.test.js.map +1 -1
  518. package/dist/src/tools/grep.d.ts +2 -2
  519. package/dist/src/tools/grep.js +1 -1
  520. package/dist/src/tools/grep.js.map +1 -1
  521. package/dist/src/tools/grep.test.js +5 -4
  522. package/dist/src/tools/grep.test.js.map +1 -1
  523. package/dist/src/tools/ls.d.ts +2 -2
  524. package/dist/src/tools/ls.js +2 -2
  525. package/dist/src/tools/ls.js.map +1 -1
  526. package/dist/src/tools/ls.test.js +2 -1
  527. package/dist/src/tools/ls.test.js.map +1 -1
  528. package/dist/src/tools/mcp-client-manager.js +14 -7
  529. package/dist/src/tools/mcp-client-manager.js.map +1 -1
  530. package/dist/src/tools/mcp-client-manager.test.js +28 -0
  531. package/dist/src/tools/mcp-client-manager.test.js.map +1 -1
  532. package/dist/src/tools/mcp-client.d.ts +5 -4
  533. package/dist/src/tools/mcp-client.js +10 -8
  534. package/dist/src/tools/mcp-client.js.map +1 -1
  535. package/dist/src/tools/mcp-client.test.js +47 -42
  536. package/dist/src/tools/mcp-client.test.js.map +1 -1
  537. package/dist/src/tools/mcp-tool.d.ts +20 -5
  538. package/dist/src/tools/mcp-tool.js +8 -8
  539. package/dist/src/tools/mcp-tool.js.map +1 -1
  540. package/dist/src/tools/mcp-tool.test.js +11 -6
  541. package/dist/src/tools/mcp-tool.test.js.map +1 -1
  542. package/dist/src/tools/memoryTool.d.ts +3 -3
  543. package/dist/src/tools/memoryTool.js +2 -4
  544. package/dist/src/tools/memoryTool.js.map +1 -1
  545. package/dist/src/tools/memoryTool.test.js +5 -2
  546. package/dist/src/tools/memoryTool.test.js.map +1 -1
  547. package/dist/src/tools/message-bus-integration.test.js +10 -37
  548. package/dist/src/tools/message-bus-integration.test.js.map +1 -1
  549. package/dist/src/tools/read-file.d.ts +2 -2
  550. package/dist/src/tools/read-file.js +1 -1
  551. package/dist/src/tools/read-file.js.map +1 -1
  552. package/dist/src/tools/read-file.test.js +3 -2
  553. package/dist/src/tools/read-file.test.js.map +1 -1
  554. package/dist/src/tools/read-many-files.d.ts +2 -2
  555. package/dist/src/tools/read-many-files.js +2 -3
  556. package/dist/src/tools/read-many-files.js.map +1 -1
  557. package/dist/src/tools/read-many-files.test.js +3 -2
  558. package/dist/src/tools/read-many-files.test.js.map +1 -1
  559. package/dist/src/tools/ripGrep.d.ts +3 -2
  560. package/dist/src/tools/ripGrep.js +18 -7
  561. package/dist/src/tools/ripGrep.js.map +1 -1
  562. package/dist/src/tools/ripGrep.test.js +60 -4
  563. package/dist/src/tools/ripGrep.test.js.map +1 -1
  564. package/dist/src/tools/shell.d.ts +3 -6
  565. package/dist/src/tools/shell.js +21 -49
  566. package/dist/src/tools/shell.js.map +1 -1
  567. package/dist/src/tools/shell.test.js +35 -59
  568. package/dist/src/tools/shell.test.js.map +1 -1
  569. package/dist/src/tools/tool-error.d.ts +6 -1
  570. package/dist/src/tools/tool-error.js +6 -0
  571. package/dist/src/tools/tool-error.js.map +1 -1
  572. package/dist/src/tools/tool-names.d.ts +15 -0
  573. package/dist/src/tools/tool-names.js +57 -0
  574. package/dist/src/tools/tool-names.js.map +1 -1
  575. package/dist/src/tools/tool-names.test.d.ts +6 -0
  576. package/dist/src/tools/tool-names.test.js +43 -0
  577. package/dist/src/tools/tool-names.test.js.map +1 -0
  578. package/dist/src/tools/tool-registry.d.ts +11 -7
  579. package/dist/src/tools/tool-registry.js +15 -10
  580. package/dist/src/tools/tool-registry.js.map +1 -1
  581. package/dist/src/tools/tool-registry.test.js +16 -11
  582. package/dist/src/tools/tool-registry.test.js.map +1 -1
  583. package/dist/src/tools/tools.d.ts +8 -6
  584. package/dist/src/tools/tools.js +16 -18
  585. package/dist/src/tools/tools.js.map +1 -1
  586. package/dist/src/tools/tools.test.js +3 -1
  587. package/dist/src/tools/tools.test.js.map +1 -1
  588. package/dist/src/tools/web-fetch.d.ts +2 -2
  589. package/dist/src/tools/web-fetch.js +4 -4
  590. package/dist/src/tools/web-fetch.js.map +1 -1
  591. package/dist/src/tools/web-fetch.test.js +17 -19
  592. package/dist/src/tools/web-fetch.test.js.map +1 -1
  593. package/dist/src/tools/web-search.d.ts +2 -2
  594. package/dist/src/tools/web-search.js +5 -5
  595. package/dist/src/tools/web-search.js.map +1 -1
  596. package/dist/src/tools/web-search.test.js +2 -1
  597. package/dist/src/tools/web-search.test.js.map +1 -1
  598. package/dist/src/tools/write-file.d.ts +2 -2
  599. package/dist/src/tools/write-file.js +9 -6
  600. package/dist/src/tools/write-file.js.map +1 -1
  601. package/dist/src/tools/write-file.test.js +49 -7
  602. package/dist/src/tools/write-file.test.js.map +1 -1
  603. package/dist/src/tools/write-todos.d.ts +2 -2
  604. package/dist/src/tools/write-todos.js +5 -4
  605. package/dist/src/tools/write-todos.js.map +1 -1
  606. package/dist/src/tools/write-todos.test.js +2 -1
  607. package/dist/src/tools/write-todos.test.js.map +1 -1
  608. package/dist/src/utils/apiConversionUtils.d.ts +12 -0
  609. package/dist/src/utils/apiConversionUtils.js +46 -0
  610. package/dist/src/utils/apiConversionUtils.js.map +1 -0
  611. package/dist/src/utils/apiConversionUtils.test.d.ts +6 -0
  612. package/dist/src/utils/apiConversionUtils.test.js +150 -0
  613. package/dist/src/utils/apiConversionUtils.test.js.map +1 -0
  614. package/dist/src/utils/checkpointUtils.d.ts +1 -1
  615. package/dist/src/utils/checkpointUtils.js +1 -1
  616. package/dist/src/utils/checkpointUtils.js.map +1 -1
  617. package/dist/src/utils/checkpointUtils.test.js +1 -1
  618. package/dist/src/utils/checkpointUtils.test.js.map +1 -1
  619. package/dist/src/utils/debugLogger.js +1 -0
  620. package/dist/src/utils/debugLogger.js.map +1 -1
  621. package/dist/src/utils/editCorrector.d.ts +3 -3
  622. package/dist/src/utils/editCorrector.js +27 -10
  623. package/dist/src/utils/editCorrector.js.map +1 -1
  624. package/dist/src/utils/editCorrector.test.js +23 -23
  625. package/dist/src/utils/editCorrector.test.js.map +1 -1
  626. package/dist/src/utils/editor.d.ts +3 -2
  627. package/dist/src/utils/editor.js +26 -6
  628. package/dist/src/utils/editor.js.map +1 -1
  629. package/dist/src/utils/editor.test.js +27 -4
  630. package/dist/src/utils/editor.test.js.map +1 -1
  631. package/dist/src/utils/environmentContext.d.ts +1 -0
  632. package/dist/src/utils/environmentContext.js +4 -0
  633. package/dist/src/utils/environmentContext.js.map +1 -1
  634. package/dist/src/utils/environmentContext.test.js +2 -0
  635. package/dist/src/utils/environmentContext.test.js.map +1 -1
  636. package/dist/src/utils/errorReporting.d.ts +1 -1
  637. package/dist/src/utils/errorReporting.js +13 -12
  638. package/dist/src/utils/errorReporting.js.map +1 -1
  639. package/dist/src/utils/errorReporting.test.js +17 -14
  640. package/dist/src/utils/errorReporting.test.js.map +1 -1
  641. package/dist/src/utils/events.d.ts +71 -19
  642. package/dist/src/utils/events.js +35 -9
  643. package/dist/src/utils/events.js.map +1 -1
  644. package/dist/src/utils/events.test.js +25 -0
  645. package/dist/src/utils/events.test.js.map +1 -1
  646. package/dist/src/utils/fileDiffUtils.d.ts +18 -0
  647. package/dist/src/utils/fileDiffUtils.js +37 -0
  648. package/dist/src/utils/fileDiffUtils.js.map +1 -0
  649. package/dist/src/utils/fileDiffUtils.test.d.ts +6 -0
  650. package/dist/src/utils/fileDiffUtils.test.js +84 -0
  651. package/dist/src/utils/fileDiffUtils.test.js.map +1 -0
  652. package/dist/src/utils/fileUtils.d.ts +4 -0
  653. package/dist/src/utils/fileUtils.js +53 -0
  654. package/dist/src/utils/fileUtils.js.map +1 -1
  655. package/dist/src/utils/fileUtils.test.js +112 -1
  656. package/dist/src/utils/fileUtils.test.js.map +1 -1
  657. package/dist/src/utils/geminiIgnoreParser.d.ts +11 -0
  658. package/dist/src/utils/geminiIgnoreParser.js +20 -0
  659. package/dist/src/utils/geminiIgnoreParser.js.map +1 -1
  660. package/dist/src/utils/geminiIgnoreParser.test.js +48 -0
  661. package/dist/src/utils/geminiIgnoreParser.test.js.map +1 -1
  662. package/dist/src/utils/generateContentResponseUtilities.d.ts +3 -1
  663. package/dist/src/utils/generateContentResponseUtilities.js +106 -0
  664. package/dist/src/utils/generateContentResponseUtilities.js.map +1 -1
  665. package/dist/src/utils/generateContentResponseUtilities.test.js +279 -2
  666. package/dist/src/utils/generateContentResponseUtilities.test.js.map +1 -1
  667. package/dist/src/utils/getFolderStructure.js +7 -2
  668. package/dist/src/utils/getFolderStructure.js.map +1 -1
  669. package/dist/src/utils/gitIgnoreParser.js +9 -10
  670. package/dist/src/utils/gitIgnoreParser.js.map +1 -1
  671. package/dist/src/utils/installationManager.test.js +11 -3
  672. package/dist/src/utils/installationManager.test.js.map +1 -1
  673. package/dist/src/utils/memoryDiscovery.js +3 -4
  674. package/dist/src/utils/memoryDiscovery.js.map +1 -1
  675. package/dist/src/utils/memoryDiscovery.test.js +12 -1
  676. package/dist/src/utils/memoryDiscovery.test.js.map +1 -1
  677. package/dist/src/utils/partUtils.js +1 -1
  678. package/dist/src/utils/partUtils.js.map +1 -1
  679. package/dist/src/utils/paths.d.ts +10 -0
  680. package/dist/src/utils/paths.js +20 -1
  681. package/dist/src/utils/paths.js.map +1 -1
  682. package/dist/src/utils/retry.d.ts +1 -0
  683. package/dist/src/utils/retry.js +17 -5
  684. package/dist/src/utils/retry.js.map +1 -1
  685. package/dist/src/utils/retry.test.js +11 -11
  686. package/dist/src/utils/retry.test.js.map +1 -1
  687. package/dist/src/utils/shell-utils.d.ts +6 -0
  688. package/dist/src/utils/shell-utils.js +97 -12
  689. package/dist/src/utils/shell-utils.js.map +1 -1
  690. package/dist/src/utils/shell-utils.test.js +99 -1
  691. package/dist/src/utils/shell-utils.test.js.map +1 -1
  692. package/dist/src/utils/summarizer.test.js +3 -2
  693. package/dist/src/utils/summarizer.test.js.map +1 -1
  694. package/dist/src/utils/terminal.d.ts +4 -0
  695. package/dist/src/utils/terminal.js +12 -0
  696. package/dist/src/utils/terminal.js.map +1 -1
  697. package/dist/src/utils/tokenCalculation.js +20 -5
  698. package/dist/src/utils/tokenCalculation.js.map +1 -1
  699. package/dist/src/utils/tokenCalculation.test.js +11 -2
  700. package/dist/src/utils/tokenCalculation.test.js.map +1 -1
  701. package/dist/src/utils/tool-utils.d.ts +9 -0
  702. package/dist/src/utils/tool-utils.js +29 -0
  703. package/dist/src/utils/tool-utils.js.map +1 -1
  704. package/dist/src/utils/tool-utils.test.js +17 -2
  705. package/dist/src/utils/tool-utils.test.js.map +1 -1
  706. package/dist/src/utils/userAccountManager.test.js +5 -5
  707. package/dist/src/utils/userAccountManager.test.js.map +1 -1
  708. package/dist/src/utils/workspaceContext.test.js +1 -1
  709. package/dist/src/utils/workspaceContext.test.js.map +1 -1
  710. package/dist/tsconfig.tsbuildinfo +1 -1
  711. package/package.json +8 -6
  712. package/dist/src/agents/executor.js.map +0 -1
  713. package/dist/src/agents/executor.test.js.map +0 -1
  714. package/dist/src/agents/invocation.js.map +0 -1
  715. package/dist/src/agents/invocation.test.js.map +0 -1
  716. package/dist/src/core/sessionHookTriggers.d.ts +0 -28
  717. package/dist/src/core/sessionHookTriggers.js +0 -68
  718. package/dist/src/core/sessionHookTriggers.js.map +0 -1
  719. package/dist/src/tools/smart-edit.d.ts +0 -78
  720. package/dist/src/tools/smart-edit.js +0 -722
  721. package/dist/src/tools/smart-edit.js.map +0 -1
  722. package/dist/src/tools/smart-edit.test.js +0 -592
  723. package/dist/src/tools/smart-edit.test.js.map +0 -1
  724. package/dist/src/utils/shell-permissions.d.ts +0 -52
  725. package/dist/src/utils/shell-permissions.js +0 -188
  726. package/dist/src/utils/shell-permissions.js.map +0 -1
  727. package/dist/src/utils/shell-permissions.test.js +0 -347
  728. package/dist/src/utils/shell-permissions.test.js.map +0 -1
  729. /package/dist/src/agents/{executor.test.d.ts → a2a-client-manager.test.d.ts} +0 -0
  730. /package/dist/src/agents/{invocation.test.d.ts → a2aUtils.test.d.ts} +0 -0
  731. /package/dist/src/{tools/smart-edit.test.d.ts → agents/agentLoader.test.d.ts} +0 -0
  732. /package/dist/src/{utils/shell-permissions.test.d.ts → agents/cli-help-agent.test.d.ts} +0 -0
@@ -0,0 +1,1643 @@
1
+ # Cell CLI configuration
2
+
3
+ > **Note on configuration format, 9/17/25:** The format of the `settings.json`
4
+ > file has been updated to a new, more organized structure.
5
+ >
6
+ > - The new format will be supported in the stable release starting
7
+ > **[09/10/25]**.
8
+ > - Automatic migration from the old format to the new format will begin on
9
+ > **[09/17/25]**.
10
+ >
11
+ > For details on the previous format, please see the
12
+ > [v1 Configuration documentation](./configuration-v1.md).
13
+
14
+ Cell CLI offers several ways to configure its behavior, including environment
15
+ variables, command-line arguments, and settings files. This document outlines
16
+ the different configuration methods and available settings.
17
+
18
+ ## Configuration layers
19
+
20
+ Configuration is applied in the following order of precedence (lower numbers are
21
+ overridden by higher numbers):
22
+
23
+ 1. **Default values:** Hardcoded defaults within the application.
24
+ 2. **System defaults file:** System-wide default settings that can be
25
+ overridden by other settings files.
26
+ 3. **User settings file:** Global settings for the current user.
27
+ 4. **Project settings file:** Project-specific settings.
28
+ 5. **System settings file:** System-wide settings that override all other
29
+ settings files.
30
+ 6. **Environment variables:** System-wide or session-specific variables,
31
+ potentially loaded from `.env` files.
32
+ 7. **Command-line arguments:** Values passed when launching the CLI.
33
+
34
+ ## Settings files
35
+
36
+ Cell CLI uses JSON settings files for persistent configuration. There are four
37
+ locations for these files:
38
+
39
+ > **Tip:** JSON-aware editors can use autocomplete and validation by pointing to
40
+ > the generated schema at `schemas/settings.schema.json` in this repository.
41
+ > When working outside the repo, reference the hosted schema at
42
+ > `https://raw.githubusercontent.com/google-gemini/gemini-cli/main/schemas/settings.schema.json`.
43
+
44
+ - **System defaults file:**
45
+ - **Location:** `/etc/gemini-cli/system-defaults.json` (Linux),
46
+ `C:\ProgramData\gemini-cli\system-defaults.json` (Windows) or
47
+ `/Library/Application Support/GeminiCli/system-defaults.json` (macOS). The
48
+ path can be overridden using the `CELL_CLI_SYSTEM_DEFAULTS_PATH` environment
49
+ variable.
50
+ - **Scope:** Provides a base layer of system-wide default settings. These
51
+ settings have the lowest precedence and are intended to be overridden by
52
+ user, project, or system override settings.
53
+ - **User settings file:**
54
+ - **Location:** `~/.cell-cli/settings.json` (where `~` is your home
55
+ directory).
56
+ - **Scope:** Applies to all Cell CLI sessions for the current user. User
57
+ settings override system defaults.
58
+ - **Project settings file:**
59
+ - **Location:** `.cell-cli/settings.json` within your project's root
60
+ directory.
61
+ - **Scope:** Applies only when running Cell CLI from that specific project.
62
+ Project settings override user settings and system defaults.
63
+ - **System settings file:**
64
+ - **Location:** `/etc/gemini-cli/settings.json` (Linux),
65
+ `C:\ProgramData\gemini-cli\settings.json` (Windows) or
66
+ `/Library/Application Support/GeminiCli/settings.json` (macOS). The path can
67
+ be overridden using the `CELL_CLI_SYSTEM_SETTINGS_PATH` environment
68
+ variable.
69
+ - **Scope:** Applies to all Cell CLI sessions on the system, for all users.
70
+ System settings act as overrides, taking precedence over all other settings
71
+ files. May be useful for system administrators at enterprises to have
72
+ controls over users' Cell CLI setups.
73
+
74
+ **Note on environment variables in settings:** String values within your
75
+ `settings.json` and `gemini-extension.json` files can reference environment
76
+ variables using either `$VAR_NAME` or `${VAR_NAME}` syntax. These variables will
77
+ be automatically resolved when the settings are loaded. For example, if you have
78
+ an environment variable `MY_API_TOKEN`, you could use it in `settings.json` like
79
+ this: `"apiKey": "$MY_API_TOKEN"`. Additionally, each extension can have its own
80
+ `.env` file in its directory, which will be loaded automatically.
81
+
82
+ > **Note for Enterprise Users:** For guidance on deploying and managing Gemini
83
+ > CLI in a corporate environment, please see the
84
+ > [Enterprise Configuration](../cli/enterprise.md) documentation.
85
+
86
+ ### The `.cell-cli` directory in your project
87
+
88
+ In addition to a project settings file, a project's `.cell-cli` directory can
89
+ contain other project-specific files related to Cell CLI's operation, such as:
90
+
91
+ - [Custom sandbox profiles](#sandboxing) (e.g.,
92
+ `.cell-cli/sandbox-macos-custom.sb`, `.cell-cli/sandbox.Dockerfile`).
93
+
94
+ ### Available settings in `settings.json`
95
+
96
+ Settings are organized into categories. All settings should be placed within
97
+ their corresponding top-level category object in your `settings.json` file.
98
+
99
+ <!-- SETTINGS-AUTOGEN:START -->
100
+
101
+ #### `backupSettings`
102
+
103
+ - **`backupSettings`** (object):
104
+ - **Description:** Internal backup of settings for migration and fallback.
105
+ - **Default:** `{}`
106
+
107
+ #### `general`
108
+
109
+ - **`general.previewFeatures`** (boolean):
110
+ - **Description:** Enable preview features (e.g., preview models).
111
+ - **Default:** `false`
112
+
113
+ - **`general.preferredEditor`** (string):
114
+ - **Description:** The preferred editor to open files in.
115
+ - **Default:** `undefined`
116
+
117
+ - **`general.vimMode`** (boolean):
118
+ - **Description:** Enable Vim keybindings
119
+ - **Default:** `false`
120
+
121
+ - **`general.disableAutoUpdate`** (boolean):
122
+ - **Description:** Disable automatic updates
123
+ - **Default:** `false`
124
+
125
+ - **`general.disableUpdateNag`** (boolean):
126
+ - **Description:** Disable update notification prompts.
127
+ - **Default:** `false`
128
+
129
+ - **`general.checkpointing.enabled`** (boolean):
130
+ - **Description:** Enable session checkpointing for recovery
131
+ - **Default:** `false`
132
+ - **Requires restart:** Yes
133
+
134
+ - **`general.enablePromptCompletion`** (boolean):
135
+ - **Description:** Enable AI-powered prompt completion suggestions while
136
+ typing.
137
+ - **Default:** `false`
138
+ - **Requires restart:** Yes
139
+
140
+ - **`general.retryFetchErrors`** (boolean):
141
+ - **Description:** Retry on "exception TypeError: fetch failed sending
142
+ request" errors.
143
+ - **Default:** `false`
144
+
145
+ - **`general.debugKeystrokeLogging`** (boolean):
146
+ - **Description:** Enable debug logging of keystrokes to the console.
147
+ - **Default:** `false`
148
+
149
+ - **`general.sessionRetention.enabled`** (boolean):
150
+ - **Description:** Enable automatic session cleanup
151
+ - **Default:** `false`
152
+
153
+ - **`general.sessionRetention.maxAge`** (string):
154
+ - **Description:** Maximum age of sessions to keep (e.g., "30d", "7d", "24h",
155
+ "1w")
156
+ - **Default:** `undefined`
157
+
158
+ - **`general.sessionRetention.maxCount`** (number):
159
+ - **Description:** Alternative: Maximum number of sessions to keep (most
160
+ recent)
161
+ - **Default:** `undefined`
162
+
163
+ - **`general.sessionRetention.minRetention`** (string):
164
+ - **Description:** Minimum retention period (safety limit, defaults to "1d")
165
+ - **Default:** `"1d"`
166
+
167
+ #### `output`
168
+
169
+ - **`output.format`** (enum):
170
+ - **Description:** The format of the CLI output. Can be `text` or `json`.
171
+ - **Default:** `"text"`
172
+ - **Values:** `"text"`, `"json"`
173
+
174
+ #### `ui`
175
+
176
+ - **`ui.theme`** (string):
177
+ - **Description:** The color theme for the UI. See the CLI themes guide for
178
+ available options.
179
+ - **Default:** `undefined`
180
+
181
+ - **`ui.customThemes`** (object):
182
+ - **Description:** Custom theme definitions.
183
+ - **Default:** `{}`
184
+
185
+ - **`ui.hideWindowTitle`** (boolean):
186
+ - **Description:** Hide the window title bar
187
+ - **Default:** `false`
188
+ - **Requires restart:** Yes
189
+
190
+ - **`ui.showStatusInTitle`** (boolean):
191
+ - **Description:** Show Cell CLI model thoughts in the terminal window title
192
+ during the working phase
193
+ - **Default:** `false`
194
+
195
+ - **`ui.dynamicWindowTitle`** (boolean):
196
+ - **Description:** Update the terminal window title with current status icons
197
+ (Ready: ◇, Action Required: ✋, Working: ✦)
198
+ - **Default:** `true`
199
+
200
+ - **`ui.showHomeDirectoryWarning`** (boolean):
201
+ - **Description:** Show a warning when running Cell CLI in the home directory.
202
+ - **Default:** `true`
203
+ - **Requires restart:** Yes
204
+
205
+ - **`ui.hideTips`** (boolean):
206
+ - **Description:** Hide helpful tips in the UI
207
+ - **Default:** `false`
208
+
209
+ - **`ui.hideBanner`** (boolean):
210
+ - **Description:** Hide the application banner
211
+ - **Default:** `false`
212
+
213
+ - **`ui.hideContextSummary`** (boolean):
214
+ - **Description:** Hide the context summary (GEMINI.md, MCP servers) above the
215
+ input.
216
+ - **Default:** `false`
217
+
218
+ - **`ui.footer.hideCWD`** (boolean):
219
+ - **Description:** Hide the current working directory path in the footer.
220
+ - **Default:** `false`
221
+
222
+ - **`ui.footer.hideSandboxStatus`** (boolean):
223
+ - **Description:** Hide the sandbox status indicator in the footer.
224
+ - **Default:** `false`
225
+
226
+ - **`ui.footer.hideModelInfo`** (boolean):
227
+ - **Description:** Hide the model name and context usage in the footer.
228
+ - **Default:** `false`
229
+
230
+ - **`ui.footer.hideContextPercentage`** (boolean):
231
+ - **Description:** Hides the context window remaining percentage.
232
+ - **Default:** `true`
233
+
234
+ - **`ui.hideFooter`** (boolean):
235
+ - **Description:** Hide the footer from the UI
236
+ - **Default:** `false`
237
+
238
+ - **`ui.showMemoryUsage`** (boolean):
239
+ - **Description:** Display memory usage information in the UI
240
+ - **Default:** `false`
241
+
242
+ - **`ui.showLineNumbers`** (boolean):
243
+ - **Description:** Show line numbers in the chat.
244
+ - **Default:** `true`
245
+
246
+ - **`ui.showCitations`** (boolean):
247
+ - **Description:** Show citations for generated text in the chat.
248
+ - **Default:** `false`
249
+
250
+ - **`ui.showModelInfoInChat`** (boolean):
251
+ - **Description:** Show the model name in the chat for each model turn.
252
+ - **Default:** `false`
253
+
254
+ - **`ui.useFullWidth`** (boolean):
255
+ - **Description:** Use the entire width of the terminal for output.
256
+ - **Default:** `true`
257
+
258
+ - **`ui.useAlternateBuffer`** (boolean):
259
+ - **Description:** Use an alternate screen buffer for the UI, preserving shell
260
+ history.
261
+ - **Default:** `false`
262
+ - **Requires restart:** Yes
263
+
264
+ - **`ui.incrementalRendering`** (boolean):
265
+ - **Description:** Enable incremental rendering for the UI. This option will
266
+ reduce flickering but may cause rendering artifacts. Only supported when
267
+ useAlternateBuffer is enabled.
268
+ - **Default:** `true`
269
+ - **Requires restart:** Yes
270
+
271
+ - **`ui.customWittyPhrases`** (array):
272
+ - **Description:** Custom witty phrases to display during loading. When
273
+ provided, the CLI cycles through these instead of the defaults.
274
+ - **Default:** `[]`
275
+
276
+ - **`ui.accessibility.disableLoadingPhrases`** (boolean):
277
+ - **Description:** Disable loading phrases for accessibility
278
+ - **Default:** `false`
279
+ - **Requires restart:** Yes
280
+
281
+ - **`ui.accessibility.screenReader`** (boolean):
282
+ - **Description:** Render output in plain-text to be more screen reader
283
+ accessible
284
+ - **Default:** `false`
285
+ - **Requires restart:** Yes
286
+
287
+ #### `ide`
288
+
289
+ - **`ide.enabled`** (boolean):
290
+ - **Description:** Enable IDE integration mode.
291
+ - **Default:** `false`
292
+ - **Requires restart:** Yes
293
+
294
+ - **`ide.hasSeenNudge`** (boolean):
295
+ - **Description:** Whether the user has seen the IDE integration nudge.
296
+ - **Default:** `false`
297
+
298
+ #### `privacy`
299
+
300
+ - **`privacy.usageStatisticsEnabled`** (boolean):
301
+ - **Description:** Enable collection of usage statistics
302
+ - **Default:** `true`
303
+ - **Requires restart:** Yes
304
+
305
+ #### `model`
306
+
307
+ - **`model.name`** (string):
308
+ - **Description:** The Gemini model to use for conversations.
309
+ - **Default:** `undefined`
310
+
311
+ - **`model.maxSessionTurns`** (number):
312
+ - **Description:** Maximum number of user/model/tool turns to keep in a
313
+ session. -1 means unlimited.
314
+ - **Default:** `-1`
315
+
316
+ - **`model.summarizeToolOutput`** (object):
317
+ - **Description:** Enables or disables summarization of tool output. Configure
318
+ per-tool token budgets (for example {"run_shell_command": {"tokenBudget":
319
+ 2000}}). Currently only the run_shell_command tool supports summarization.
320
+ - **Default:** `undefined`
321
+
322
+ - **`model.compressionThreshold`** (number):
323
+ - **Description:** The fraction of context usage at which to trigger context
324
+ compression (e.g. 0.2, 0.3).
325
+ - **Default:** `0.5`
326
+ - **Requires restart:** Yes
327
+
328
+ - **`model.skipNextSpeakerCheck`** (boolean):
329
+ - **Description:** Skip the next speaker check.
330
+ - **Default:** `true`
331
+
332
+ #### `modelConfigs`
333
+
334
+ - **`modelConfigs.aliases`** (object):
335
+ - **Description:** Named presets for model configs. Can be used in place of a
336
+ model name and can inherit from other aliases using an `extends` property.
337
+ - **Default:**
338
+
339
+ ```json
340
+ {
341
+ "base": {
342
+ "modelConfig": {
343
+ "generateContentConfig": {
344
+ "temperature": 0,
345
+ "topP": 1
346
+ }
347
+ }
348
+ },
349
+ "chat-base": {
350
+ "extends": "base",
351
+ "modelConfig": {
352
+ "generateContentConfig": {
353
+ "thinkingConfig": {
354
+ "includeThoughts": true
355
+ },
356
+ "temperature": 1,
357
+ "topP": 0.95,
358
+ "topK": 64
359
+ }
360
+ }
361
+ },
362
+ "chat-base-2.5": {
363
+ "extends": "chat-base",
364
+ "modelConfig": {
365
+ "generateContentConfig": {
366
+ "thinkingConfig": {
367
+ "thinkingBudget": 8192
368
+ }
369
+ }
370
+ }
371
+ },
372
+ "chat-base-3": {
373
+ "extends": "chat-base",
374
+ "modelConfig": {
375
+ "generateContentConfig": {
376
+ "thinkingConfig": {
377
+ "thinkingLevel": "HIGH"
378
+ }
379
+ }
380
+ }
381
+ },
382
+ "gemini-3-pro-preview": {
383
+ "extends": "chat-base-3",
384
+ "modelConfig": {
385
+ "model": "gemini-3-pro-preview"
386
+ }
387
+ },
388
+ "gemini-3-flash-preview": {
389
+ "extends": "chat-base-3",
390
+ "modelConfig": {
391
+ "model": "gemini-3-flash-preview"
392
+ }
393
+ },
394
+ "gemini-2.5-pro": {
395
+ "extends": "chat-base-2.5",
396
+ "modelConfig": {
397
+ "model": "gemini-2.5-pro"
398
+ }
399
+ },
400
+ "gemini-2.5-flash": {
401
+ "extends": "chat-base-2.5",
402
+ "modelConfig": {
403
+ "model": "gemini-2.5-flash"
404
+ }
405
+ },
406
+ "gemini-2.5-flash-lite": {
407
+ "extends": "chat-base-2.5",
408
+ "modelConfig": {
409
+ "model": "gemini-2.5-flash-lite"
410
+ }
411
+ },
412
+ "gemini-2.5-flash-base": {
413
+ "extends": "base",
414
+ "modelConfig": {
415
+ "model": "gemini-2.5-flash"
416
+ }
417
+ },
418
+ "classifier": {
419
+ "extends": "base",
420
+ "modelConfig": {
421
+ "model": "gemini-2.5-flash-lite",
422
+ "generateContentConfig": {
423
+ "maxOutputTokens": 1024,
424
+ "thinkingConfig": {
425
+ "thinkingBudget": 512
426
+ }
427
+ }
428
+ }
429
+ },
430
+ "prompt-completion": {
431
+ "extends": "base",
432
+ "modelConfig": {
433
+ "model": "gemini-2.5-flash-lite",
434
+ "generateContentConfig": {
435
+ "temperature": 0.3,
436
+ "maxOutputTokens": 16000,
437
+ "thinkingConfig": {
438
+ "thinkingBudget": 0
439
+ }
440
+ }
441
+ }
442
+ },
443
+ "edit-corrector": {
444
+ "extends": "base",
445
+ "modelConfig": {
446
+ "model": "gemini-2.5-flash-lite",
447
+ "generateContentConfig": {
448
+ "thinkingConfig": {
449
+ "thinkingBudget": 0
450
+ }
451
+ }
452
+ }
453
+ },
454
+ "summarizer-default": {
455
+ "extends": "base",
456
+ "modelConfig": {
457
+ "model": "gemini-2.5-flash-lite",
458
+ "generateContentConfig": {
459
+ "maxOutputTokens": 2000
460
+ }
461
+ }
462
+ },
463
+ "summarizer-shell": {
464
+ "extends": "base",
465
+ "modelConfig": {
466
+ "model": "gemini-2.5-flash-lite",
467
+ "generateContentConfig": {
468
+ "maxOutputTokens": 2000
469
+ }
470
+ }
471
+ },
472
+ "web-search": {
473
+ "extends": "gemini-2.5-flash-base",
474
+ "modelConfig": {
475
+ "generateContentConfig": {
476
+ "tools": [
477
+ {
478
+ "googleSearch": {}
479
+ }
480
+ ]
481
+ }
482
+ }
483
+ },
484
+ "web-fetch": {
485
+ "extends": "gemini-2.5-flash-base",
486
+ "modelConfig": {
487
+ "generateContentConfig": {
488
+ "tools": [
489
+ {
490
+ "urlContext": {}
491
+ }
492
+ ]
493
+ }
494
+ }
495
+ },
496
+ "web-fetch-fallback": {
497
+ "extends": "gemini-2.5-flash-base",
498
+ "modelConfig": {}
499
+ },
500
+ "loop-detection": {
501
+ "extends": "gemini-2.5-flash-base",
502
+ "modelConfig": {}
503
+ },
504
+ "loop-detection-double-check": {
505
+ "extends": "base",
506
+ "modelConfig": {
507
+ "model": "gemini-2.5-pro"
508
+ }
509
+ },
510
+ "llm-edit-fixer": {
511
+ "extends": "gemini-2.5-flash-base",
512
+ "modelConfig": {}
513
+ },
514
+ "next-speaker-checker": {
515
+ "extends": "gemini-2.5-flash-base",
516
+ "modelConfig": {}
517
+ },
518
+ "chat-compression-3-pro": {
519
+ "modelConfig": {
520
+ "model": "gemini-3-pro-preview"
521
+ }
522
+ },
523
+ "chat-compression-3-flash": {
524
+ "modelConfig": {
525
+ "model": "gemini-3-flash-preview"
526
+ }
527
+ },
528
+ "chat-compression-2.5-pro": {
529
+ "modelConfig": {
530
+ "model": "gemini-2.5-pro"
531
+ }
532
+ },
533
+ "chat-compression-2.5-flash": {
534
+ "modelConfig": {
535
+ "model": "gemini-2.5-flash"
536
+ }
537
+ },
538
+ "chat-compression-2.5-flash-lite": {
539
+ "modelConfig": {
540
+ "model": "gemini-2.5-flash-lite"
541
+ }
542
+ },
543
+ "chat-compression-default": {
544
+ "modelConfig": {
545
+ "model": "gemini-2.5-pro"
546
+ }
547
+ }
548
+ }
549
+ ```
550
+
551
+ - **`modelConfigs.customAliases`** (object):
552
+ - **Description:** Custom named presets for model configs. These are merged
553
+ with (and override) the built-in aliases.
554
+ - **Default:** `{}`
555
+
556
+ - **`modelConfigs.customOverrides`** (array):
557
+ - **Description:** Custom model config overrides. These are merged with (and
558
+ added to) the built-in overrides.
559
+ - **Default:** `[]`
560
+
561
+ - **`modelConfigs.overrides`** (array):
562
+ - **Description:** Apply specific configuration overrides based on matches,
563
+ with a primary key of model (or alias). The most specific match will be
564
+ used.
565
+ - **Default:** `[]`
566
+
567
+ #### `agents`
568
+
569
+ - **`agents.overrides`** (object):
570
+ - **Description:** Override settings for specific agents, e.g. to disable the
571
+ agent, set a custom model config, or run config.
572
+ - **Default:** `{}`
573
+ - **Requires restart:** Yes
574
+
575
+ #### `context`
576
+
577
+ - **`context.fileName`** (string | string[]):
578
+ - **Description:** The name of the context file or files to load into memory.
579
+ Accepts either a single string or an array of strings.
580
+ - **Default:** `undefined`
581
+
582
+ - **`context.importFormat`** (string):
583
+ - **Description:** The format to use when importing memory.
584
+ - **Default:** `undefined`
585
+
586
+ - **`context.discoveryMaxDirs`** (number):
587
+ - **Description:** Maximum number of directories to search for memory.
588
+ - **Default:** `200`
589
+
590
+ - **`context.includeDirectories`** (array):
591
+ - **Description:** Additional directories to include in the workspace context.
592
+ Missing directories will be skipped with a warning.
593
+ - **Default:** `[]`
594
+
595
+ - **`context.loadMemoryFromIncludeDirectories`** (boolean):
596
+ - **Description:** Controls how /memory refresh loads GEMINI.md files. When
597
+ true, include directories are scanned; when false, only the current
598
+ directory is used.
599
+ - **Default:** `false`
600
+
601
+ - **`context.fileFiltering.respectGitIgnore`** (boolean):
602
+ - **Description:** Respect .gitignore files when searching.
603
+ - **Default:** `true`
604
+ - **Requires restart:** Yes
605
+
606
+ - **`context.fileFiltering.respectGeminiIgnore`** (boolean):
607
+ - **Description:** Respect .geminiignore files when searching.
608
+ - **Default:** `true`
609
+ - **Requires restart:** Yes
610
+
611
+ - **`context.fileFiltering.enableRecursiveFileSearch`** (boolean):
612
+ - **Description:** Enable recursive file search functionality when completing
613
+ @ references in the prompt.
614
+ - **Default:** `true`
615
+ - **Requires restart:** Yes
616
+
617
+ - **`context.fileFiltering.disableFuzzySearch`** (boolean):
618
+ - **Description:** Disable fuzzy search when searching for files.
619
+ - **Default:** `false`
620
+ - **Requires restart:** Yes
621
+
622
+ #### `tools`
623
+
624
+ - **`tools.sandbox`** (boolean | string):
625
+ - **Description:** Sandbox execution environment. Set to a boolean to enable
626
+ or disable the sandbox, or provide a string path to a sandbox profile.
627
+ - **Default:** `undefined`
628
+ - **Requires restart:** Yes
629
+
630
+ - **`tools.shell.enableInteractiveShell`** (boolean):
631
+ - **Description:** Use node-pty for an interactive shell experience. Fallback
632
+ to child_process still applies.
633
+ - **Default:** `true`
634
+ - **Requires restart:** Yes
635
+
636
+ - **`tools.shell.pager`** (string):
637
+ - **Description:** The pager command to use for shell output. Defaults to
638
+ `cat`.
639
+ - **Default:** `"cat"`
640
+
641
+ - **`tools.shell.showColor`** (boolean):
642
+ - **Description:** Show color in shell output.
643
+ - **Default:** `false`
644
+
645
+ - **`tools.shell.inactivityTimeout`** (number):
646
+ - **Description:** The maximum time in seconds allowed without output from the
647
+ shell command. Defaults to 5 minutes.
648
+ - **Default:** `300`
649
+
650
+ - **`tools.shell.enableShellOutputEfficiency`** (boolean):
651
+ - **Description:** Enable shell output efficiency optimizations for better
652
+ performance.
653
+ - **Default:** `true`
654
+
655
+ - **`tools.autoAccept`** (boolean):
656
+ - **Description:** Automatically accept and execute tool calls that are
657
+ considered safe (e.g., read-only operations).
658
+ - **Default:** `false`
659
+
660
+ - **`tools.core`** (array):
661
+ - **Description:** Restrict the set of built-in tools with an allowlist. Match
662
+ semantics mirror tools.allowed; see the built-in tools documentation for
663
+ available names.
664
+ - **Default:** `undefined`
665
+ - **Requires restart:** Yes
666
+
667
+ - **`tools.allowed`** (array):
668
+ - **Description:** Tool names that bypass the confirmation dialog. Useful for
669
+ trusted commands (for example ["run_shell_command(git)",
670
+ "run_shell_command(npm test)"]). See shell tool command restrictions for
671
+ matching details.
672
+ - **Default:** `undefined`
673
+ - **Requires restart:** Yes
674
+
675
+ - **`tools.exclude`** (array):
676
+ - **Description:** Tool names to exclude from discovery.
677
+ - **Default:** `undefined`
678
+ - **Requires restart:** Yes
679
+
680
+ - **`tools.discoveryCommand`** (string):
681
+ - **Description:** Command to run for tool discovery.
682
+ - **Default:** `undefined`
683
+ - **Requires restart:** Yes
684
+
685
+ - **`tools.callCommand`** (string):
686
+ - **Description:** Defines a custom shell command for invoking discovered
687
+ tools. The command must take the tool name as the first argument, read JSON
688
+ arguments from stdin, and emit JSON results on stdout.
689
+ - **Default:** `undefined`
690
+ - **Requires restart:** Yes
691
+
692
+ - **`tools.useRipgrep`** (boolean):
693
+ - **Description:** Use ripgrep for file content search instead of the fallback
694
+ implementation. Provides faster search performance.
695
+ - **Default:** `true`
696
+
697
+ - **`tools.enableToolOutputTruncation`** (boolean):
698
+ - **Description:** Enable truncation of large tool outputs.
699
+ - **Default:** `true`
700
+ - **Requires restart:** Yes
701
+
702
+ - **`tools.truncateToolOutputThreshold`** (number):
703
+ - **Description:** Truncate tool output if it is larger than this many
704
+ characters. Set to -1 to disable.
705
+ - **Default:** `4000000`
706
+ - **Requires restart:** Yes
707
+
708
+ - **`tools.truncateToolOutputLines`** (number):
709
+ - **Description:** The number of lines to keep when truncating tool output.
710
+ - **Default:** `1000`
711
+ - **Requires restart:** Yes
712
+
713
+ - **`tools.disableLLMCorrection`** (boolean):
714
+ - **Description:** Disable LLM-based error correction for edit tools. When
715
+ enabled, tools will fail immediately if exact string matches are not found,
716
+ instead of attempting to self-correct.
717
+ - **Default:** `false`
718
+ - **Requires restart:** Yes
719
+
720
+ - **`tools.enableHooks`** (boolean):
721
+ - **Description:** Enables the hooks system experiment. When disabled, the
722
+ hooks system is completely deactivated regardless of other settings.
723
+ - **Default:** `true`
724
+ - **Requires restart:** Yes
725
+
726
+ #### `mcp`
727
+
728
+ - **`mcp.serverCommand`** (string):
729
+ - **Description:** Command to start an MCP server.
730
+ - **Default:** `undefined`
731
+ - **Requires restart:** Yes
732
+
733
+ - **`mcp.allowed`** (array):
734
+ - **Description:** A list of MCP servers to allow.
735
+ - **Default:** `undefined`
736
+ - **Requires restart:** Yes
737
+
738
+ - **`mcp.excluded`** (array):
739
+ - **Description:** A list of MCP servers to exclude.
740
+ - **Default:** `undefined`
741
+ - **Requires restart:** Yes
742
+
743
+ #### `useWriteTodos`
744
+
745
+ - **`useWriteTodos`** (boolean):
746
+ - **Description:** Enable the write_todos tool.
747
+ - **Default:** `true`
748
+
749
+ #### `security`
750
+
751
+ - **`security.disableYoloMode`** (boolean):
752
+ - **Description:** Disable YOLO mode, even if enabled by a flag.
753
+ - **Default:** `false`
754
+ - **Requires restart:** Yes
755
+
756
+ - **`security.enablePermanentToolApproval`** (boolean):
757
+ - **Description:** Enable the "Allow for all future sessions" option in tool
758
+ confirmation dialogs.
759
+ - **Default:** `false`
760
+
761
+ - **`security.blockGitExtensions`** (boolean):
762
+ - **Description:** Blocks installing and loading extensions from Git.
763
+ - **Default:** `false`
764
+ - **Requires restart:** Yes
765
+
766
+ - **`security.folderTrust.enabled`** (boolean):
767
+ - **Description:** Setting to track whether Folder trust is enabled.
768
+ - **Default:** `false`
769
+ - **Requires restart:** Yes
770
+
771
+ - **`security.environmentVariableRedaction.allowed`** (array):
772
+ - **Description:** Environment variables to always allow (bypass redaction).
773
+ - **Default:** `[]`
774
+ - **Requires restart:** Yes
775
+
776
+ - **`security.environmentVariableRedaction.blocked`** (array):
777
+ - **Description:** Environment variables to always redact.
778
+ - **Default:** `[]`
779
+ - **Requires restart:** Yes
780
+
781
+ - **`security.environmentVariableRedaction.enabled`** (boolean):
782
+ - **Description:** Enable redaction of environment variables that may contain
783
+ secrets.
784
+ - **Default:** `false`
785
+ - **Requires restart:** Yes
786
+
787
+ - **`security.auth.selectedType`** (string):
788
+ - **Description:** The currently selected authentication type.
789
+ - **Default:** `undefined`
790
+ - **Requires restart:** Yes
791
+
792
+ - **`security.auth.enforcedType`** (string):
793
+ - **Description:** The required auth type. If this does not match the selected
794
+ auth type, the user will be prompted to re-authenticate.
795
+ - **Default:** `undefined`
796
+ - **Requires restart:** Yes
797
+
798
+ - **`security.auth.useExternal`** (boolean):
799
+ - **Description:** Whether to use an external authentication flow.
800
+ - **Default:** `undefined`
801
+ - **Requires restart:** Yes
802
+
803
+ #### `advanced`
804
+
805
+ - **`advanced.autoConfigureMemory`** (boolean):
806
+ - **Description:** Automatically configure Node.js memory limits
807
+ - **Default:** `false`
808
+ - **Requires restart:** Yes
809
+
810
+ - **`advanced.dnsResolutionOrder`** (string):
811
+ - **Description:** The DNS resolution order.
812
+ - **Default:** `undefined`
813
+ - **Requires restart:** Yes
814
+
815
+ - **`advanced.excludedEnvVars`** (array):
816
+ - **Description:** Environment variables to exclude from project context.
817
+ - **Default:**
818
+
819
+ ```json
820
+ ["DEBUG", "DEBUG_MODE"]
821
+ ```
822
+
823
+ - **`advanced.bugCommand`** (object):
824
+ - **Description:** Configuration for the bug report command.
825
+ - **Default:** `undefined`
826
+
827
+ #### `keycloakClientId`
828
+
829
+ - **`keycloakClientId`** (string):
830
+ - **Description:** The Keycloak client ID.
831
+ - **Default:** `undefined`
832
+ - **Requires restart:** Yes
833
+
834
+ #### `keycloakDeviceEndpoint`
835
+
836
+ - **`keycloakDeviceEndpoint`** (string):
837
+ - **Description:** The Keycloak device endpoint.
838
+ - **Default:** `undefined`
839
+ - **Requires restart:** Yes
840
+
841
+ #### `keycloakTokenEndpoint`
842
+
843
+ - **`keycloakTokenEndpoint`** (string):
844
+ - **Description:** The Keycloak token endpoint.
845
+ - **Default:** `undefined`
846
+ - **Requires restart:** Yes
847
+
848
+ #### `agentApiUrl`
849
+
850
+ - **`agentApiUrl`** (string):
851
+ - **Description:** The Agent API URL.
852
+ - **Default:** `undefined`
853
+ - **Requires restart:** Yes
854
+
855
+ #### `includeDirectories`
856
+
857
+ - **`includeDirectories`** (array):
858
+ - **Description:** Additional directories to include in the workspace context.
859
+ - **Default:** `[]`
860
+
861
+ #### `loadMemoryFromIncludeDirectories`
862
+
863
+ - **`loadMemoryFromIncludeDirectories`** (boolean):
864
+ - **Description:** Whether to load memory files from include directories.
865
+ - **Default:** `false`
866
+
867
+ #### `hasSeenIdeIntegrationNudge`
868
+
869
+ - **`hasSeenIdeIntegrationNudge`** (boolean):
870
+ - **Description:** Whether the user has seen the IDE integration nudge.
871
+ - **Default:** `false`
872
+
873
+ #### `folderTrustFeature`
874
+
875
+ - **`folderTrustFeature`** (boolean):
876
+ - **Description:** Enable folder trust feature for enhanced security.
877
+ - **Default:** `false`
878
+
879
+ #### `folderTrust`
880
+
881
+ - **`folderTrust`** (boolean):
882
+ - **Description:** Setting to track whether Folder trust is enabled.
883
+ - **Default:** `false`
884
+
885
+ #### `experimental`
886
+
887
+ - **`experimental.enableAgents`** (boolean):
888
+ - **Description:** Enable local and remote subagents. Warning: Experimental
889
+ feature, uses YOLO mode for subagents
890
+ - **Default:** `false`
891
+ - **Requires restart:** Yes
892
+
893
+ - **`experimental.extensionManagement`** (boolean):
894
+ - **Description:** Enable extension management features.
895
+ - **Default:** `true`
896
+ - **Requires restart:** Yes
897
+
898
+ - **`experimental.extensionConfig`** (boolean):
899
+ - **Description:** Enable requesting and fetching of extension settings.
900
+ - **Default:** `false`
901
+ - **Requires restart:** Yes
902
+
903
+ - **`experimental.extensionReloading`** (boolean):
904
+ - **Description:** Enables extension loading/unloading within the CLI session.
905
+ - **Default:** `false`
906
+ - **Requires restart:** Yes
907
+
908
+ - **`experimental.jitContext`** (boolean):
909
+ - **Description:** Enable Just-In-Time (JIT) context loading.
910
+ - **Default:** `false`
911
+ - **Requires restart:** Yes
912
+
913
+ - **`experimental.skills`** (boolean):
914
+ - **Description:** Enable Agent Skills (experimental).
915
+ - **Default:** `false`
916
+ - **Requires restart:** Yes
917
+
918
+ - **`experimental.codebaseInvestigatorSettings.enabled`** (boolean):
919
+ - **Description:** Enable the Codebase Investigator agent.
920
+ - **Default:** `true`
921
+ - **Requires restart:** Yes
922
+
923
+ - **`experimental.codebaseInvestigatorSettings.maxNumTurns`** (number):
924
+ - **Description:** Maximum number of turns for the Codebase Investigator
925
+ agent.
926
+ - **Default:** `10`
927
+ - **Requires restart:** Yes
928
+
929
+ - **`experimental.codebaseInvestigatorSettings.maxTimeMinutes`** (number):
930
+ - **Description:** Maximum time for the Codebase Investigator agent (in
931
+ minutes).
932
+ - **Default:** `3`
933
+ - **Requires restart:** Yes
934
+
935
+ - **`experimental.codebaseInvestigatorSettings.thinkingBudget`** (number):
936
+ - **Description:** The thinking budget for the Codebase Investigator agent.
937
+ - **Default:** `8192`
938
+ - **Requires restart:** Yes
939
+
940
+ - **`experimental.codebaseInvestigatorSettings.model`** (string):
941
+ - **Description:** The model to use for the Codebase Investigator agent.
942
+ - **Default:** `"auto"`
943
+ - **Requires restart:** Yes
944
+
945
+ - **`experimental.useOSC52Paste`** (boolean):
946
+ - **Description:** Use OSC 52 sequence for pasting instead of clipboardy
947
+ (useful for remote sessions).
948
+ - **Default:** `false`
949
+
950
+ - **`experimental.cliHelpAgentSettings.enabled`** (boolean):
951
+ - **Description:** Enable the CLI Help Agent.
952
+ - **Default:** `true`
953
+ - **Requires restart:** Yes
954
+
955
+ #### `skills`
956
+
957
+ - **`skills.disabled`** (array):
958
+ - **Description:** List of disabled skills.
959
+ - **Default:** `[]`
960
+ - **Requires restart:** Yes
961
+
962
+ #### `hooks`
963
+
964
+ - **`hooks.enabled`** (boolean):
965
+ - **Description:** Canonical toggle for the hooks system. When disabled, no
966
+ hooks will be executed.
967
+ - **Default:** `false`
968
+
969
+ - **`hooks.disabled`** (array):
970
+ - **Description:** List of hook names (commands) that should be disabled.
971
+ Hooks in this list will not execute even if configured.
972
+ - **Default:** `[]`
973
+
974
+ - **`hooks.notifications`** (boolean):
975
+ - **Description:** Show visual indicators when hooks are executing.
976
+ - **Default:** `true`
977
+
978
+ - **`hooks.BeforeTool`** (array):
979
+ - **Description:** Hooks that execute before tool execution. Can intercept,
980
+ validate, or modify tool calls.
981
+ - **Default:** `[]`
982
+
983
+ - **`hooks.AfterTool`** (array):
984
+ - **Description:** Hooks that execute after tool execution. Can process
985
+ results, log outputs, or trigger follow-up actions.
986
+ - **Default:** `[]`
987
+
988
+ - **`hooks.BeforeAgent`** (array):
989
+ - **Description:** Hooks that execute before agent loop starts. Can set up
990
+ context or initialize resources.
991
+ - **Default:** `[]`
992
+
993
+ - **`hooks.AfterAgent`** (array):
994
+ - **Description:** Hooks that execute after agent loop completes. Can perform
995
+ cleanup or summarize results.
996
+ - **Default:** `[]`
997
+
998
+ - **`hooks.Notification`** (array):
999
+ - **Description:** Hooks that execute on notification events (errors,
1000
+ warnings, info). Can log or alert on specific conditions.
1001
+ - **Default:** `[]`
1002
+
1003
+ - **`hooks.SessionStart`** (array):
1004
+ - **Description:** Hooks that execute when a session starts. Can initialize
1005
+ session-specific resources or state.
1006
+ - **Default:** `[]`
1007
+
1008
+ - **`hooks.SessionEnd`** (array):
1009
+ - **Description:** Hooks that execute when a session ends. Can perform cleanup
1010
+ or persist session data.
1011
+ - **Default:** `[]`
1012
+
1013
+ - **`hooks.PreCompress`** (array):
1014
+ - **Description:** Hooks that execute before chat history compression. Can
1015
+ back up or analyze conversation before compression.
1016
+ - **Default:** `[]`
1017
+
1018
+ - **`hooks.BeforeModel`** (array):
1019
+ - **Description:** Hooks that execute before LLM requests. Can modify prompts,
1020
+ inject context, or control model parameters.
1021
+ - **Default:** `[]`
1022
+
1023
+ - **`hooks.AfterModel`** (array):
1024
+ - **Description:** Hooks that execute after LLM responses. Can process
1025
+ outputs, extract information, or log interactions.
1026
+ - **Default:** `[]`
1027
+
1028
+ - **`hooks.BeforeToolSelection`** (array):
1029
+ - **Description:** Hooks that execute before tool selection. Can filter or
1030
+ prioritize available tools dynamically.
1031
+ - **Default:** `[]`
1032
+
1033
+ #### `admin`
1034
+
1035
+ - **`admin.secureModeEnabled`** (boolean):
1036
+ - **Description:** If true, disallows yolo mode from being used.
1037
+ - **Default:** `false`
1038
+
1039
+ - **`admin.extensions.enabled`** (boolean):
1040
+ - **Description:** If false, disallows extensions from being installed or
1041
+ used.
1042
+ - **Default:** `true`
1043
+
1044
+ - **`admin.mcp.enabled`** (boolean):
1045
+ - **Description:** If false, disallows MCP servers from being used.
1046
+ - **Default:** `true`
1047
+
1048
+ - **`admin.skills.enabled`** (boolean):
1049
+ - **Description:** If false, disallows agent skills from being used.
1050
+ - **Default:** `true`
1051
+ <!-- SETTINGS-AUTOGEN:END -->
1052
+
1053
+ #### `mcpServers`
1054
+
1055
+ Configures connections to one or more Model-Context Protocol (MCP) servers for
1056
+ discovering and using custom tools. Cell CLI attempts to connect to each
1057
+ configured MCP server to discover available tools. If multiple MCP servers
1058
+ expose a tool with the same name, the tool names will be prefixed with the
1059
+ server alias you defined in the configuration (e.g.,
1060
+ `serverAlias__actualToolName`) to avoid conflicts. Note that the system might
1061
+ strip certain schema properties from MCP tool definitions for compatibility. At
1062
+ least one of `command`, `url`, or `httpUrl` must be provided. If multiple are
1063
+ specified, the order of precedence is `httpUrl`, then `url`, then `command`.
1064
+
1065
+ - **`mcpServers.<SERVER_NAME>`** (object): The server parameters for the named
1066
+ server.
1067
+ - `command` (string, optional): The command to execute to start the MCP server
1068
+ via standard I/O.
1069
+ - `args` (array of strings, optional): Arguments to pass to the command.
1070
+ - `env` (object, optional): Environment variables to set for the server
1071
+ process.
1072
+ - `cwd` (string, optional): The working directory in which to start the
1073
+ server.
1074
+ - `url` (string, optional): The URL of an MCP server that uses Server-Sent
1075
+ Events (SSE) for communication.
1076
+ - `httpUrl` (string, optional): The URL of an MCP server that uses streamable
1077
+ HTTP for communication.
1078
+ - `headers` (object, optional): A map of HTTP headers to send with requests to
1079
+ `url` or `httpUrl`.
1080
+ - `timeout` (number, optional): Timeout in milliseconds for requests to this
1081
+ MCP server.
1082
+ - `trust` (boolean, optional): Trust this server and bypass all tool call
1083
+ confirmations.
1084
+ - `description` (string, optional): A brief description of the server, which
1085
+ may be used for display purposes.
1086
+ - `includeTools` (array of strings, optional): List of tool names to include
1087
+ from this MCP server. When specified, only the tools listed here will be
1088
+ available from this server (allowlist behavior). If not specified, all tools
1089
+ from the server are enabled by default.
1090
+ - `excludeTools` (array of strings, optional): List of tool names to exclude
1091
+ from this MCP server. Tools listed here will not be available to the model,
1092
+ even if they are exposed by the server. **Note:** `excludeTools` takes
1093
+ precedence over `includeTools` - if a tool is in both lists, it will be
1094
+ excluded.
1095
+
1096
+ - **`agentApiUrl`** (string):
1097
+ - **Description:** Base URL for the Cell agent API. Can also be set in
1098
+ `config.yaml` using `agent_api_url`.
1099
+ - **Default:** None
1100
+ - **Example:** `"agentApiUrl": "https://agent.example.com/"`
1101
+
1102
+ #### `telemetry`
1103
+
1104
+ Configures logging and metrics collection for Cell CLI. For more information,
1105
+ see [Telemetry](../cli/telemetry.md).
1106
+
1107
+ - **Properties:**
1108
+ - **`enabled`** (boolean): Whether or not telemetry is enabled.
1109
+ - **`target`** (string): The destination for collected telemetry. Supported
1110
+ values are `local` and `gcp`.
1111
+ - **`otlpEndpoint`** (string): The endpoint for the OTLP Exporter.
1112
+ - **`otlpProtocol`** (string): The protocol for the OTLP Exporter (`grpc` or
1113
+ `http`).
1114
+ - **`logPrompts`** (boolean): Whether or not to include the content of user
1115
+ prompts in the logs.
1116
+ - **`outfile`** (string): The file to write telemetry to when `target` is
1117
+ `local`.
1118
+ - **`useCollector`** (boolean): Whether to use an external OTLP collector.
1119
+
1120
+ ### Example `settings.json`
1121
+
1122
+ Here is an example of a `settings.json` file with the nested structure, new as
1123
+ of v0.3.0:
1124
+
1125
+ ```json
1126
+ {
1127
+ "general": {
1128
+ "vimMode": true,
1129
+ "preferredEditor": "code",
1130
+ "sessionRetention": {
1131
+ "enabled": true,
1132
+ "maxAge": "30d",
1133
+ "maxCount": 100
1134
+ }
1135
+ },
1136
+ "ui": {
1137
+ "theme": "GitHub",
1138
+ "hideBanner": true,
1139
+ "hideTips": false,
1140
+ "customWittyPhrases": [
1141
+ "You forget a thousand things every day. Make sure this is one of ’em",
1142
+ "Connecting to AGI"
1143
+ ]
1144
+ },
1145
+ "tools": {
1146
+ "sandbox": "docker",
1147
+ "discoveryCommand": "bin/get_tools",
1148
+ "callCommand": "bin/call_tool",
1149
+ "exclude": ["write_file"]
1150
+ },
1151
+ "mcpServers": {
1152
+ "mainServer": {
1153
+ "command": "bin/mcp_server.py"
1154
+ },
1155
+ "anotherServer": {
1156
+ "command": "node",
1157
+ "args": ["mcp_server.js", "--verbose"]
1158
+ }
1159
+ },
1160
+ "telemetry": {
1161
+ "enabled": true,
1162
+ "target": "local",
1163
+ "otlpEndpoint": "http://localhost:4317",
1164
+ "logPrompts": true
1165
+ },
1166
+ "privacy": {
1167
+ "usageStatisticsEnabled": true
1168
+ },
1169
+ "model": {
1170
+ "name": "gemini-1.5-pro-latest",
1171
+ "maxSessionTurns": 10,
1172
+ "summarizeToolOutput": {
1173
+ "run_shell_command": {
1174
+ "tokenBudget": 100
1175
+ }
1176
+ }
1177
+ },
1178
+ "context": {
1179
+ "fileName": ["CONTEXT.md", "GEMINI.md"],
1180
+ "includeDirectories": ["path/to/dir1", "~/path/to/dir2", "../path/to/dir3"],
1181
+ "loadFromIncludeDirectories": true,
1182
+ "fileFiltering": {
1183
+ "respectGitIgnore": false
1184
+ }
1185
+ },
1186
+ "advanced": {
1187
+ "excludedEnvVars": ["DEBUG", "DEBUG_MODE", "NODE_ENV"]
1188
+ }
1189
+ }
1190
+ ```
1191
+
1192
+ ## Shell history
1193
+
1194
+ The CLI keeps a history of shell commands you run. To avoid conflicts between
1195
+ different projects, this history is stored in a project-specific directory
1196
+ within your user's home folder.
1197
+
1198
+ - **Location:** `~/.cell-cli/tmp/<project_hash>/shell_history`
1199
+ - `<project_hash>` is a unique identifier generated from your project's root
1200
+ path.
1201
+ - The history is stored in a file named `shell_history`.
1202
+
1203
+ ## Environment variables and `.env` files
1204
+
1205
+ Environment variables are a common way to configure applications, especially for
1206
+ sensitive information like API keys or for settings that might change between
1207
+ environments. For authentication setup, see the
1208
+ [Authentication documentation](./authentication.md) which covers all available
1209
+ authentication methods.
1210
+
1211
+ The CLI automatically loads environment variables from an `.env` file. The
1212
+ loading order is:
1213
+
1214
+ 1. `.env` file in the current working directory.
1215
+ 2. If not found, it searches upwards in parent directories until it finds an
1216
+ `.env` file or reaches the project root (identified by a `.git` folder) or
1217
+ the home directory.
1218
+ 3. If still not found, it looks for `~/.env` (in the user's home directory).
1219
+
1220
+ **Environment variable exclusion:** Some environment variables (like `DEBUG` and
1221
+ `DEBUG_MODE`) are automatically excluded from being loaded from project `.env`
1222
+ files to prevent interference with gemini-cli behavior. Variables from
1223
+ `.cell-cli/.env` files are never excluded. You can customize this behavior using
1224
+ the `advanced.excludedEnvVars` setting in your `settings.json` file.
1225
+
1226
+ - **`GEMINI_API_KEY`**:
1227
+ - Your API key for the Gemini API.
1228
+ - One of several available [authentication methods](./authentication.md).
1229
+ - Set this in your shell profile (e.g., `~/.bashrc`, `~/.zshrc`) or an `.env`
1230
+ file.
1231
+ - **`GEMINI_MODEL`**:
1232
+ - Specifies the default Gemini model to use.
1233
+ - Overrides the hardcoded default
1234
+ - Example: `export GEMINI_MODEL="gemini-2.5-flash"`
1235
+ - **`GOOGLE_API_KEY`**:
1236
+ - Your Google Cloud API key.
1237
+ - Required for using Vertex AI in express mode.
1238
+ - Ensure you have the necessary permissions.
1239
+ - Example: `export GOOGLE_API_KEY="YOUR_GOOGLE_API_KEY"`.
1240
+ - **`GOOGLE_CLOUD_PROJECT`**:
1241
+ - Your Google Cloud Project ID.
1242
+ - Required for using Code Assist or Vertex AI.
1243
+ - If using Vertex AI, ensure you have the necessary permissions in this
1244
+ project.
1245
+ - **Cloud Shell note:** When running in a Cloud Shell environment, this
1246
+ variable defaults to a special project allocated for Cloud Shell users. If
1247
+ you have `GOOGLE_CLOUD_PROJECT` set in your global environment in Cloud
1248
+ Shell, it will be overridden by this default. To use a different project in
1249
+ Cloud Shell, you must define `GOOGLE_CLOUD_PROJECT` in a `.env` file.
1250
+ - Example: `export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"`.
1251
+ - **`GOOGLE_APPLICATION_CREDENTIALS`** (string):
1252
+ - **Description:** The path to your Google Application Credentials JSON file.
1253
+ - **Example:**
1254
+ `export GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/credentials.json"`
1255
+ - **`OTLP_GOOGLE_CLOUD_PROJECT`**:
1256
+ - Your Google Cloud Project ID for Telemetry in Google Cloud
1257
+ - Example: `export OTLP_GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"`.
1258
+ - **`CELL_TELEMETRY_ENABLED`**:
1259
+ - Set to `true` or `1` to enable telemetry. Any other value is treated as
1260
+ disabling it.
1261
+ - Overrides the `telemetry.enabled` setting.
1262
+ - **`CELL_TELEMETRY_TARGET`**:
1263
+ - Sets the telemetry target (`local` or `gcp`).
1264
+ - Overrides the `telemetry.target` setting.
1265
+ - **`CELL_TELEMETRY_OTLP_ENDPOINT`**:
1266
+ - Sets the OTLP endpoint for telemetry.
1267
+ - Overrides the `telemetry.otlpEndpoint` setting.
1268
+ - **`CELL_TELEMETRY_OTLP_PROTOCOL`**:
1269
+ - Sets the OTLP protocol (`grpc` or `http`).
1270
+ - Overrides the `telemetry.otlpProtocol` setting.
1271
+ - **`CELL_TELEMETRY_LOG_PROMPTS`**:
1272
+ - Set to `true` or `1` to enable or disable logging of user prompts. Any other
1273
+ value is treated as disabling it.
1274
+ - Overrides the `telemetry.logPrompts` setting.
1275
+ - **`CELL_TELEMETRY_OUTFILE`**:
1276
+ - Sets the file path to write telemetry to when the target is `local`.
1277
+ - Overrides the `telemetry.outfile` setting.
1278
+ - **`CELL_TELEMETRY_USE_COLLECTOR`**:
1279
+ - Set to `true` or `1` to enable or disable using an external OTLP collector.
1280
+ Any other value is treated as disabling it.
1281
+ - Overrides the `telemetry.useCollector` setting.
1282
+ - **`GOOGLE_CLOUD_LOCATION`**:
1283
+ - Your Google Cloud Project Location (e.g., us-central1).
1284
+ - Required for using Vertex AI in non-express mode.
1285
+ - Example: `export GOOGLE_CLOUD_LOCATION="YOUR_PROJECT_LOCATION"`.
1286
+ - **`GEMINI_SANDBOX`**:
1287
+ - Alternative to the `sandbox` setting in `settings.json`.
1288
+ - Accepts `true`, `false`, `docker`, `podman`, or a custom command string.
1289
+ - **`CELL_SYSTEM_MD`**:
1290
+ - Replaces the built‑in system prompt with content from a Markdown file.
1291
+ - `true`/`1`: Use project default path `./.cell-cli/system.md`.
1292
+ - Any other string: Treat as a path (relative/absolute supported, `~`
1293
+ expands).
1294
+ - `false`/`0` or unset: Use the built‑in prompt. See
1295
+ [System Prompt Override](../cli/system-prompt.md).
1296
+ - **`CELL_WRITE_SYSTEM_MD`**:
1297
+ - Writes the current built‑in system prompt to a file for review.
1298
+ - `true`/`1`: Write to `./.cell-cli/system.md`. Otherwise treat the value as a
1299
+ path.
1300
+ - Run the CLI once with this set to generate the file.
1301
+ - **`SEATBELT_PROFILE`** (macOS specific):
1302
+ - Switches the Seatbelt (`sandbox-exec`) profile on macOS.
1303
+ - `permissive-open`: (Default) Restricts writes to the project folder (and a
1304
+ few other folders, see
1305
+ `packages/cli/src/utils/sandbox-macos-permissive-open.sb`) but allows other
1306
+ operations.
1307
+ - `strict`: Uses a strict profile that declines operations by default.
1308
+ - `<profile_name>`: Uses a custom profile. To define a custom profile, create
1309
+ a file named `sandbox-macos-<profile_name>.sb` in your project's
1310
+ `.cell-cli/` directory (e.g.,
1311
+ `my-project/.cell-cli/sandbox-macos-custom.sb`).
1312
+ - **`DEBUG` or `DEBUG_MODE`** (often used by underlying libraries or the CLI
1313
+ itself):
1314
+ - Set to `true` or `1` to enable verbose debug logging, which can be helpful
1315
+ for troubleshooting.
1316
+ - **Note:** These variables are automatically excluded from project `.env`
1317
+ files by default to prevent interference with gemini-cli behavior. Use
1318
+ `.cell-cli/.env` files if you need to set these for gemini-cli specifically.
1319
+ - **`NO_COLOR`**:
1320
+ - Set to any value to disable all color output in the CLI.
1321
+ - **`CLI_TITLE`**:
1322
+ - Set to a string to customize the title of the CLI.
1323
+ - **`CODE_ASSIST_ENDPOINT`**:
1324
+ - Specifies the endpoint for the code assist server.
1325
+ - This is useful for development and testing.
1326
+
1327
+ ### Environment variable redaction
1328
+
1329
+ To prevent accidental leakage of sensitive information, Cell CLI automatically
1330
+ redacts potential secrets from environment variables when executing tools (such
1331
+ as shell commands). This "best effort" redaction applies to variables inherited
1332
+ from the system or loaded from `.env` files.
1333
+
1334
+ **Default Redaction Rules:**
1335
+
1336
+ - **By Name:** Variables are redacted if their names contain sensitive terms
1337
+ like `TOKEN`, `SECRET`, `PASSWORD`, `KEY`, `AUTH`, `CREDENTIAL`, `PRIVATE`, or
1338
+ `CERT`.
1339
+ - **By Value:** Variables are redacted if their values match known secret
1340
+ patterns, such as:
1341
+ - Private keys (RSA, OpenSSH, PGP, etc.)
1342
+ - Certificates
1343
+ - URLs containing credentials
1344
+ - API keys and tokens (GitHub, Google, AWS, Stripe, Slack, etc.)
1345
+ - **Specific Blocklist:** Certain variables like `CLIENT_ID`, `DB_URI`,
1346
+ `DATABASE_URL`, and `CONNECTION_STRING` are always redacted by default.
1347
+
1348
+ **Allowlist (Never Redacted):**
1349
+
1350
+ - Common system variables (e.g., `PATH`, `HOME`, `USER`, `SHELL`, `TERM`,
1351
+ `LANG`).
1352
+ - Variables starting with `CELL_CLI_`.
1353
+ - GitHub Action specific variables.
1354
+
1355
+ **Configuration:**
1356
+
1357
+ You can customize this behavior in your `settings.json` file:
1358
+
1359
+ - **`security.allowedEnvironmentVariables`**: A list of variable names to
1360
+ _never_ redact, even if they match sensitive patterns.
1361
+ - **`security.blockedEnvironmentVariables`**: A list of variable names to
1362
+ _always_ redact, even if they don't match sensitive patterns.
1363
+
1364
+ ```json
1365
+ {
1366
+ "security": {
1367
+ "allowedEnvironmentVariables": ["MY_PUBLIC_KEY", "NOT_A_SECRET_TOKEN"],
1368
+ "blockedEnvironmentVariables": ["INTERNAL_IP_ADDRESS"]
1369
+ }
1370
+ }
1371
+ ```
1372
+
1373
+ ## Command-line arguments
1374
+
1375
+ Arguments passed directly when running the CLI can override other configurations
1376
+ for that specific session.
1377
+
1378
+ - **`--model <model_name>`** (**`-m <model_name>`**):
1379
+ - Specifies the Gemini model to use for this session.
1380
+ - Example: `npm start -- --model gemini-1.5-pro-latest`
1381
+ - **`--prompt <your_prompt>`** (**`-p <your_prompt>`**):
1382
+ - Used to pass a prompt directly to the command. This invokes Cell CLI in a
1383
+ non-interactive mode.
1384
+ - For scripting examples, use the `--output-format json` flag to get
1385
+ structured output.
1386
+ - **`--prompt-interactive <your_prompt>`** (**`-i <your_prompt>`**):
1387
+ - Starts an interactive session with the provided prompt as the initial input.
1388
+ - The prompt is processed within the interactive session, not before it.
1389
+ - Cannot be used when piping input from stdin.
1390
+ - Example: `gemini -i "explain this code"`
1391
+ - **`--output-format <format>`**:
1392
+ - **Description:** Specifies the format of the CLI output for non-interactive
1393
+ mode.
1394
+ - **Values:**
1395
+ - `text`: (Default) The standard human-readable output.
1396
+ - `json`: A machine-readable JSON output.
1397
+ - `stream-json`: A streaming JSON output that emits real-time events.
1398
+ - **Note:** For structured output and scripting, use the
1399
+ `--output-format json` or `--output-format stream-json` flag.
1400
+ - **`--sandbox`** (**`-s`**):
1401
+ - Enables sandbox mode for this session.
1402
+ - **`--debug`** (**`-d`**):
1403
+ - Enables debug mode for this session, providing more verbose output.
1404
+
1405
+ - **`--help`** (or **`-h`**):
1406
+ - Displays help information about command-line arguments.
1407
+ - **`--yolo`**:
1408
+ - Enables YOLO mode, which automatically approves all tool calls.
1409
+ - **`--approval-mode <mode>`**:
1410
+ - Sets the approval mode for tool calls. Available modes:
1411
+ - `default`: Prompt for approval on each tool call (default behavior)
1412
+ - `auto_edit`: Automatically approve edit tools (replace, write_file) while
1413
+ prompting for others
1414
+ - `yolo`: Automatically approve all tool calls (equivalent to `--yolo`)
1415
+ - Cannot be used together with `--yolo`. Use `--approval-mode=yolo` instead of
1416
+ `--yolo` for the new unified approach.
1417
+ - Example: `gemini --approval-mode auto_edit`
1418
+ - **`--allowed-tools <tool1,tool2,...>`**:
1419
+ - A comma-separated list of tool names that will bypass the confirmation
1420
+ dialog.
1421
+ - Example: `gemini --allowed-tools "ShellTool(git status)"`
1422
+ - **`--extensions <extension_name ...>`** (**`-e <extension_name ...>`**):
1423
+ - Specifies a list of extensions to use for the session. If not provided, all
1424
+ available extensions are used.
1425
+ - Use the special term `gemini -e none` to disable all extensions.
1426
+ - Example: `gemini -e my-extension -e my-other-extension`
1427
+ - **`--list-extensions`** (**`-l`**):
1428
+ - Lists all available extensions and exits.
1429
+ - **`--resume [session_id]`** (**`-r [session_id]`**):
1430
+ - Resume a previous chat session. Use "latest" for the most recent session,
1431
+ provide a session index number, or provide a full session UUID.
1432
+ - If no session_id is provided, defaults to "latest".
1433
+ - Example: `gemini --resume 5` or `gemini --resume latest` or
1434
+ `gemini --resume a1b2c3d4-e5f6-7890-abcd-ef1234567890` or `gemini --resume`
1435
+ - See [Session Management](../cli/session-management.md) for more details.
1436
+ - **`--list-sessions`**:
1437
+ - List all available chat sessions for the current project and exit.
1438
+ - Shows session indices, dates, message counts, and preview of first user
1439
+ message.
1440
+ - Example: `gemini --list-sessions`
1441
+ - **`--delete-session <identifier>`**:
1442
+ - Delete a specific chat session by its index number or full session UUID.
1443
+ - Use `--list-sessions` first to see available sessions, their indices, and
1444
+ UUIDs.
1445
+ - Example: `gemini --delete-session 3` or
1446
+ `gemini --delete-session a1b2c3d4-e5f6-7890-abcd-ef1234567890`
1447
+ - **`--include-directories <dir1,dir2,...>`**:
1448
+ - Includes additional directories in the workspace for multi-directory
1449
+ support.
1450
+ - Can be specified multiple times or as comma-separated values.
1451
+ - 5 directories can be added at maximum.
1452
+ - Example: `--include-directories /path/to/project1,/path/to/project2` or
1453
+ `--include-directories /path/to/project1 --include-directories /path/to/project2`
1454
+ - **`--screen-reader`**:
1455
+ - Enables screen reader mode, which adjusts the TUI for better compatibility
1456
+ with screen readers.
1457
+ - **`--version`**:
1458
+ - Displays the version of the CLI.
1459
+ - **`--experimental-acp`**:
1460
+ - Starts the agent in ACP mode.
1461
+ - **`--allowed-mcp-server-names`**:
1462
+ - Allowed MCP server names.
1463
+ - **`--fake-responses`**:
1464
+ - Path to a file with fake model responses for testing.
1465
+ - **`--record-responses`**:
1466
+ - Path to a file to record model responses for testing.
1467
+
1468
+ ## Context files (hierarchical instructional context)
1469
+
1470
+ While not strictly configuration for the CLI's _behavior_, context files
1471
+ (defaulting to `GEMINI.md` but configurable via the `context.fileName` setting)
1472
+ are crucial for configuring the _instructional context_ (also referred to as
1473
+ "memory") provided to the Gemini model. This powerful feature allows you to give
1474
+ project-specific instructions, coding style guides, or any relevant background
1475
+ information to the AI, making its responses more tailored and accurate to your
1476
+ needs. The CLI includes UI elements, such as an indicator in the footer showing
1477
+ the number of loaded context files, to keep you informed about the active
1478
+ context.
1479
+
1480
+ - **Purpose:** These Markdown files contain instructions, guidelines, or context
1481
+ that you want the Gemini model to be aware of during your interactions. The
1482
+ system is designed to manage this instructional context hierarchically.
1483
+
1484
+ ### Example context file content (e.g., `GEMINI.md`)
1485
+
1486
+ Here's a conceptual example of what a context file at the root of a TypeScript
1487
+ project might contain:
1488
+
1489
+ ```markdown
1490
+ # Project: My Awesome TypeScript Library
1491
+
1492
+ ## General Instructions:
1493
+
1494
+ - When generating new TypeScript code, please follow the existing coding style.
1495
+ - Ensure all new functions and classes have JSDoc comments.
1496
+ - Prefer functional programming paradigms where appropriate.
1497
+ - All code should be compatible with TypeScript 5.0 and Node.js 20+.
1498
+
1499
+ ## Coding Style:
1500
+
1501
+ - Use 2 spaces for indentation.
1502
+ - Interface names should be prefixed with `I` (e.g., `IUserService`).
1503
+ - Private class members should be prefixed with an underscore (`_`).
1504
+ - Always use strict equality (`===` and `!==`).
1505
+
1506
+ ## Specific Component: `src/api/client.ts`
1507
+
1508
+ - This file handles all outbound API requests.
1509
+ - When adding new API call functions, ensure they include robust error handling
1510
+ and logging.
1511
+ - Use the existing `fetchWithRetry` utility for all GET requests.
1512
+
1513
+ ## Regarding Dependencies:
1514
+
1515
+ - Avoid introducing new external dependencies unless absolutely necessary.
1516
+ - If a new dependency is required, please state the reason.
1517
+ ```
1518
+
1519
+ This example demonstrates how you can provide general project context, specific
1520
+ coding conventions, and even notes about particular files or components. The
1521
+ more relevant and precise your context files are, the better the AI can assist
1522
+ you. Project-specific context files are highly encouraged to establish
1523
+ conventions and context.
1524
+
1525
+ - **Hierarchical loading and precedence:** The CLI implements a sophisticated
1526
+ hierarchical memory system by loading context files (e.g., `GEMINI.md`) from
1527
+ several locations. Content from files lower in this list (more specific)
1528
+ typically overrides or supplements content from files higher up (more
1529
+ general). The exact concatenation order and final context can be inspected
1530
+ using the `/memory show` command. The typical loading order is:
1531
+ 1. **Global context file:**
1532
+ - Location: `~/.cell-cli/<configured-context-filename>` (e.g.,
1533
+ `~/.cell-cli/GEMINI.md` in your user home directory).
1534
+ - Scope: Provides default instructions for all your projects.
1535
+ 2. **Project root and ancestors context files:**
1536
+ - Location: The CLI searches for the configured context file in the
1537
+ current working directory and then in each parent directory up to either
1538
+ the project root (identified by a `.git` folder) or your home directory.
1539
+ - Scope: Provides context relevant to the entire project or a significant
1540
+ portion of it.
1541
+ 3. **Sub-directory context files (contextual/local):**
1542
+ - Location: The CLI also scans for the configured context file in
1543
+ subdirectories _below_ the current working directory (respecting common
1544
+ ignore patterns like `node_modules`, `.git`, etc.). The breadth of this
1545
+ search is limited to 200 directories by default, but can be configured
1546
+ with the `context.discoveryMaxDirs` setting in your `settings.json`
1547
+ file.
1548
+ - Scope: Allows for highly specific instructions relevant to a particular
1549
+ component, module, or subsection of your project.
1550
+ - **Concatenation and UI indication:** The contents of all found context files
1551
+ are concatenated (with separators indicating their origin and path) and
1552
+ provided as part of the system prompt to the Gemini model. The CLI footer
1553
+ displays the count of loaded context files, giving you a quick visual cue
1554
+ about the active instructional context.
1555
+ - **Importing content:** You can modularize your context files by importing
1556
+ other Markdown files using the `@path/to/file.md` syntax. For more details,
1557
+ see the [Memory Import Processor documentation](../core/memport.md).
1558
+ - **Commands for memory management:**
1559
+ - Use `/memory refresh` to force a re-scan and reload of all context files
1560
+ from all configured locations. This updates the AI's instructional context.
1561
+ - Use `/memory show` to display the combined instructional context currently
1562
+ loaded, allowing you to verify the hierarchy and content being used by the
1563
+ AI.
1564
+ - See the [Commands documentation](../cli/commands.md#memory) for full details
1565
+ on the `/memory` command and its sub-commands (`show` and `refresh`).
1566
+
1567
+ By understanding and utilizing these configuration layers and the hierarchical
1568
+ nature of context files, you can effectively manage the AI's memory and tailor
1569
+ the Cell CLI's responses to your specific needs and projects.
1570
+
1571
+ ## Sandboxing
1572
+
1573
+ The Cell CLI can execute potentially unsafe operations (like shell commands and
1574
+ file modifications) within a sandboxed environment to protect your system.
1575
+
1576
+ Sandboxing is disabled by default, but you can enable it in a few ways:
1577
+
1578
+ - Using `--sandbox` or `-s` flag.
1579
+ - Setting `GEMINI_SANDBOX` environment variable.
1580
+ - Sandbox is enabled when using `--yolo` or `--approval-mode=yolo` by default.
1581
+
1582
+ By default, it uses a pre-built `gemini-cli-sandbox` Docker image.
1583
+
1584
+ For project-specific sandboxing needs, you can create a custom Dockerfile at
1585
+ `.cell-cli/sandbox.Dockerfile` in your project's root directory. This Dockerfile
1586
+ can be based on the base sandbox image:
1587
+
1588
+ ```dockerfile
1589
+ FROM gemini-cli-sandbox
1590
+
1591
+ # Add your custom dependencies or configurations here
1592
+ # For example:
1593
+ # RUN apt-get update && apt-get install -y some-package
1594
+ # COPY ./my-config /app/my-config
1595
+ ```
1596
+
1597
+ When `.cell-cli/sandbox.Dockerfile` exists, you can use `BUILD_SANDBOX`
1598
+ environment variable when running Cell CLI to automatically build the custom
1599
+ sandbox image:
1600
+
1601
+ ```bash
1602
+ BUILD_SANDBOX=1 gemini -s
1603
+ ```
1604
+
1605
+ ## Usage statistics
1606
+
1607
+ To help us improve the Cell CLI, we collect anonymized usage statistics. This
1608
+ data helps us understand how the CLI is used, identify common issues, and
1609
+ prioritize new features.
1610
+
1611
+ **What we collect:**
1612
+
1613
+ - **Tool calls:** We log the names of the tools that are called, whether they
1614
+ succeed or fail, and how long they take to execute. We do not collect the
1615
+ arguments passed to the tools or any data returned by them.
1616
+ - **API requests:** We log the Gemini model used for each request, the duration
1617
+ of the request, and whether it was successful. We do not collect the content
1618
+ of the prompts or responses.
1619
+ - **Session information:** We collect information about the configuration of the
1620
+ CLI, such as the enabled tools and the approval mode.
1621
+
1622
+ -**What we DON'T collect:**
1623
+
1624
+ - **Personally identifiable information (PII):** We do not collect any personal
1625
+ information, such as your name, email address, or API keys.
1626
+ - **Prompt and response content:** We do not log the content of your prompts or
1627
+ the responses from the Gemini model.
1628
+ - **File content:** We do not log the content of any files that are read or
1629
+ written by the CLI.
1630
+
1631
+ **How to opt out:**
1632
+
1633
+ You can opt out of usage statistics collection at any time by setting the
1634
+ `usageStatisticsEnabled` property to `false` under the `privacy` category in
1635
+ your `settings.json` file:
1636
+
1637
+ ```json
1638
+ {
1639
+ "privacy": {
1640
+ "usageStatisticsEnabled": false
1641
+ }
1642
+ }
1643
+ ```