@mmmbuto/gemini-cli-termux 0.30.3-termux → 0.30.5-termux

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 (400) hide show
  1. package/README.md +42 -193
  2. package/bundle/docs/cli/settings.md +8 -9
  3. package/bundle/docs/extensions/reference.md +14 -38
  4. package/bundle/docs/hooks/reference.md +0 -8
  5. package/bundle/docs/reference/configuration.md +0 -8
  6. package/bundle/gemini.js +10730 -11704
  7. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  8. package/bundle/package.json +2 -1
  9. package/package.json +67 -5
  10. package/packages/cli/dist/index.js +0 -0
  11. package/packages/cli/dist/package.json +2 -2
  12. package/packages/cli/dist/src/commands/extensions/examples/custom-commands/gemini-extension.json +2 -2
  13. package/packages/cli/dist/src/commands/extensions/examples/exclude-tools/gemini-extension.json +3 -3
  14. package/packages/cli/dist/src/commands/extensions/examples/hooks/gemini-extension.json +2 -2
  15. package/packages/cli/dist/src/commands/extensions/examples/hooks/hooks/hooks.json +11 -11
  16. package/packages/cli/dist/src/commands/extensions/examples/mcp-server/example.js +1 -1
  17. package/packages/cli/dist/src/commands/extensions/examples/mcp-server/gemini-extension.json +8 -8
  18. package/packages/cli/dist/src/commands/extensions/examples/mcp-server/package.json +9 -9
  19. package/packages/cli/dist/src/commands/extensions/examples/skills/gemini-extension.json +2 -2
  20. package/packages/cli/dist/src/commands/extensions/examples/themes-example/README.md +8 -5
  21. package/packages/cli/dist/src/commands/extensions/examples/themes-example/gemini-extension.json +27 -27
  22. package/packages/cli/dist/src/config/config.js +4 -65
  23. package/packages/cli/dist/src/config/config.js.map +1 -1
  24. package/packages/cli/dist/src/config/settingsSchema.d.ts +1 -235
  25. package/packages/cli/dist/src/config/settingsSchema.js +1 -235
  26. package/packages/cli/dist/src/config/settingsSchema.js.map +1 -1
  27. package/packages/cli/dist/src/gemini.js +0 -2
  28. package/packages/cli/dist/src/gemini.js.map +1 -1
  29. package/packages/cli/dist/src/generated/git-commit.d.ts +2 -2
  30. package/packages/cli/dist/src/generated/git-commit.js +2 -2
  31. package/packages/cli/dist/src/patches/empty-module.d.ts +2 -0
  32. package/packages/cli/dist/src/patches/empty-module.js +2 -0
  33. package/packages/cli/dist/src/patches/empty-module.js.map +1 -0
  34. package/packages/cli/dist/src/services/McpPromptLoader.js +3 -6
  35. package/packages/cli/dist/src/services/McpPromptLoader.js.map +1 -1
  36. package/packages/cli/dist/src/ui/components/AgentConfigDialog.js +19 -5
  37. package/packages/cli/dist/src/ui/components/AgentConfigDialog.js.map +1 -1
  38. package/packages/cli/dist/src/ui/components/AgentConfigDialog.test.js +41 -19
  39. package/packages/cli/dist/src/ui/components/AgentConfigDialog.test.js.map +1 -1
  40. package/packages/cli/dist/src/ui/components/DialogManager.d.ts +1 -1
  41. package/packages/cli/dist/src/ui/components/DialogManager.js +34 -7
  42. package/packages/cli/dist/src/ui/components/DialogManager.js.map +1 -1
  43. package/packages/cli/dist/src/ui/components/InputPrompt.d.ts +9 -0
  44. package/packages/cli/dist/src/ui/components/InputPrompt.js +350 -125
  45. package/packages/cli/dist/src/ui/components/InputPrompt.js.map +1 -1
  46. package/packages/cli/dist/src/ui/components/InputPrompt.test.js +788 -35
  47. package/packages/cli/dist/src/ui/components/InputPrompt.test.js.map +1 -1
  48. package/packages/cli/dist/src/ui/components/messages/ShellToolMessage.js +2 -2
  49. package/packages/cli/dist/src/ui/components/messages/ShellToolMessage.js.map +1 -1
  50. package/packages/cli/dist/src/ui/components/messages/ToolConfirmationMessage.js +4 -77
  51. package/packages/cli/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
  52. package/packages/cli/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -51
  53. package/packages/cli/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -1
  54. package/packages/cli/dist/src/ui/components/messages/ToolMessage.js +2 -2
  55. package/packages/cli/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
  56. package/packages/cli/dist/src/ui/components/messages/ToolShared.d.ts +0 -1
  57. package/packages/cli/dist/src/ui/components/messages/ToolShared.js +2 -2
  58. package/packages/cli/dist/src/ui/components/messages/ToolShared.js.map +1 -1
  59. package/packages/cli/dist/src/ui/components/shared/BaseSettingsDialog.js +4 -1
  60. package/packages/cli/dist/src/ui/components/shared/BaseSettingsDialog.js.map +1 -1
  61. package/packages/cli/dist/src/ui/components/shared/BaseSettingsDialog.test.js +139 -40
  62. package/packages/cli/dist/src/ui/components/shared/BaseSettingsDialog.test.js.map +1 -1
  63. package/packages/cli/dist/src/ui/components/shared/TextInput.js +2 -1
  64. package/packages/cli/dist/src/ui/components/shared/TextInput.js.map +1 -1
  65. package/packages/cli/dist/src/ui/hooks/toolMapping.js +0 -1
  66. package/packages/cli/dist/src/ui/hooks/toolMapping.js.map +1 -1
  67. package/packages/cli/dist/src/ui/hooks/toolMapping.test.js +0 -13
  68. package/packages/cli/dist/src/ui/hooks/toolMapping.test.js.map +1 -1
  69. package/packages/cli/dist/src/ui/hooks/useToolScheduler.js +2 -18
  70. package/packages/cli/dist/src/ui/hooks/useToolScheduler.js.map +1 -1
  71. package/packages/cli/dist/src/ui/hooks/useToolScheduler.test.js +0 -44
  72. package/packages/cli/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
  73. package/packages/cli/dist/src/ui/keyMatchers.test.js.map +1 -1
  74. package/packages/cli/dist/src/ui/types.d.ts +0 -1
  75. package/packages/cli/dist/src/ui/types.js.map +1 -1
  76. package/packages/cli/dist/src/ui/utils/commandUtils.js +4 -1
  77. package/packages/cli/dist/src/ui/utils/commandUtils.js.map +1 -1
  78. package/packages/cli/dist/src/utils/activityLogger.js +23 -94
  79. package/packages/cli/dist/src/utils/activityLogger.js.map +1 -1
  80. package/packages/cli/dist/src/utils/handleAutoUpdate.d.ts +1 -1
  81. package/packages/cli/dist/src/utils/handleAutoUpdate.js +1 -1
  82. package/packages/cli/dist/src/utils/handleAutoUpdate.js.map +1 -1
  83. package/packages/cli/dist/src/utils/handleAutoUpdate.test.js +11 -11
  84. package/packages/cli/dist/src/utils/handleAutoUpdate.test.js.map +1 -1
  85. package/{bundle/sandbox-macos-restrictive-closed.sb → packages/cli/dist/src/utils/sandbox-macos-strict-open.sb} +42 -4
  86. package/packages/cli/dist/src/utils/{sandbox-macos-restrictive-closed.sb → sandbox-macos-strict-proxied.sb} +44 -4
  87. package/packages/cli/dist/tsconfig.tsbuildinfo +1 -1
  88. package/packages/core/dist/docs/admin/enterprise-controls.md +115 -0
  89. package/packages/core/dist/docs/changelogs/index.md +57 -1
  90. package/packages/core/dist/docs/changelogs/latest.md +357 -314
  91. package/packages/core/dist/docs/changelogs/preview.md +288 -411
  92. package/packages/core/dist/docs/cli/checkpointing.md +2 -3
  93. package/packages/core/dist/docs/cli/cli-reference.md +42 -28
  94. package/packages/core/dist/docs/cli/custom-commands.md +3 -0
  95. package/packages/core/dist/docs/cli/enterprise.md +28 -8
  96. package/packages/core/dist/docs/cli/gemini-md.md +21 -13
  97. package/packages/core/dist/docs/cli/headless.md +34 -372
  98. package/packages/core/dist/docs/cli/model.md +1 -1
  99. package/packages/core/dist/docs/cli/plan-mode.md +245 -0
  100. package/packages/core/dist/docs/cli/rewind.md +11 -11
  101. package/packages/core/dist/docs/cli/sandbox.md +6 -5
  102. package/packages/core/dist/docs/cli/session-management.md +61 -44
  103. package/packages/core/dist/docs/cli/settings.md +64 -49
  104. package/packages/core/dist/docs/cli/skills.md +29 -7
  105. package/packages/core/dist/docs/cli/telemetry.md +41 -5
  106. package/packages/core/dist/docs/cli/themes.md +88 -54
  107. package/packages/core/dist/docs/cli/trusted-folders.md +31 -0
  108. package/packages/core/dist/docs/cli/tutorials/automation.md +187 -0
  109. package/packages/core/dist/docs/cli/tutorials/file-management.md +142 -0
  110. package/packages/core/dist/docs/cli/tutorials/mcp-setup.md +105 -0
  111. package/packages/core/dist/docs/cli/tutorials/memory-management.md +126 -0
  112. package/packages/core/dist/docs/cli/tutorials/session-management.md +105 -0
  113. package/packages/core/dist/docs/cli/tutorials/shell-commands.md +107 -0
  114. package/packages/core/dist/docs/cli/tutorials/skills-getting-started.md +36 -31
  115. package/packages/core/dist/docs/cli/tutorials/task-planning.md +93 -0
  116. package/packages/core/dist/docs/cli/tutorials/web-tools.md +78 -0
  117. package/packages/core/dist/docs/core/index.md +7 -7
  118. package/packages/core/dist/docs/core/subagents.md +40 -40
  119. package/packages/core/dist/docs/extensions/best-practices.md +102 -53
  120. package/packages/core/dist/docs/extensions/index.md +37 -21
  121. package/packages/core/dist/docs/extensions/reference.md +148 -219
  122. package/packages/core/dist/docs/extensions/releasing.md +93 -122
  123. package/packages/core/dist/docs/extensions/writing-extensions.md +87 -76
  124. package/packages/core/dist/docs/get-started/authentication.md +4 -4
  125. package/packages/core/dist/docs/get-started/examples.md +39 -119
  126. package/packages/core/dist/docs/get-started/gemini-3.md +17 -3
  127. package/packages/core/dist/docs/get-started/index.md +16 -5
  128. package/packages/core/dist/docs/get-started/installation.md +110 -77
  129. package/packages/core/dist/docs/hooks/best-practices.md +1 -1
  130. package/packages/core/dist/docs/hooks/reference.md +2 -2
  131. package/packages/core/dist/docs/index.md +142 -149
  132. package/packages/core/dist/docs/redirects.json +19 -0
  133. package/packages/core/dist/docs/reference/commands.md +523 -0
  134. package/{bundle/docs/get-started → packages/core/dist/docs/reference}/configuration.md +180 -71
  135. package/packages/core/dist/docs/{cli → reference}/keyboard-shortcuts.md +49 -35
  136. package/packages/core/dist/docs/{core → reference}/policy-engine.md +76 -32
  137. package/packages/core/dist/docs/releases.md +2 -2
  138. package/{bundle/docs → packages/core/dist/docs/resources}/faq.md +1 -1
  139. package/packages/core/dist/docs/{quota-and-pricing.md → resources/quota-and-pricing.md} +12 -5
  140. package/{bundle/docs → packages/core/dist/docs/resources}/tos-privacy.md +3 -3
  141. package/packages/core/dist/docs/{troubleshooting.md → resources/troubleshooting.md} +1 -1
  142. package/packages/core/dist/docs/sidebar.json +194 -113
  143. package/packages/core/dist/docs/tools/activate-skill.md +43 -0
  144. package/packages/core/dist/docs/tools/ask-user.md +95 -0
  145. package/packages/core/dist/docs/tools/file-system.md +55 -143
  146. package/packages/core/dist/docs/tools/index.md +97 -93
  147. package/packages/core/dist/docs/tools/internal-docs.md +46 -0
  148. package/packages/core/dist/docs/tools/mcp-server.md +65 -16
  149. package/packages/core/dist/docs/tools/memory.md +21 -40
  150. package/packages/core/dist/docs/tools/planning.md +57 -0
  151. package/packages/core/dist/docs/tools/shell.md +44 -88
  152. package/packages/core/dist/docs/tools/todos.md +22 -44
  153. package/packages/core/dist/docs/tools/web-fetch.md +22 -46
  154. package/packages/core/dist/docs/tools/web-search.md +19 -29
  155. package/packages/core/dist/src/code_assist/types.d.ts +14 -14
  156. package/packages/core/dist/src/config/config.d.ts +1 -13
  157. package/packages/core/dist/src/config/config.js +6 -39
  158. package/packages/core/dist/src/config/config.js.map +1 -1
  159. package/packages/core/dist/src/confirmation-bus/types.d.ts +0 -3
  160. package/packages/core/dist/src/confirmation-bus/types.js.map +1 -1
  161. package/packages/core/dist/src/core/coreToolHookTriggers.d.ts +1 -1
  162. package/packages/core/dist/src/core/coreToolHookTriggers.js +3 -8
  163. package/packages/core/dist/src/core/coreToolHookTriggers.js.map +1 -1
  164. package/packages/core/dist/src/generated/git-commit.d.ts +2 -2
  165. package/packages/core/dist/src/generated/git-commit.js +2 -2
  166. package/packages/core/dist/src/hooks/hookEventHandler.d.ts +2 -2
  167. package/packages/core/dist/src/hooks/hookEventHandler.js +2 -8
  168. package/packages/core/dist/src/hooks/hookEventHandler.js.map +1 -1
  169. package/packages/core/dist/src/hooks/hookSystem.d.ts +2 -2
  170. package/packages/core/dist/src/hooks/hookSystem.js +4 -4
  171. package/packages/core/dist/src/hooks/hookSystem.js.map +1 -1
  172. package/packages/core/dist/src/hooks/types.d.ts +0 -18
  173. package/packages/core/dist/src/hooks/types.js +0 -17
  174. package/packages/core/dist/src/hooks/types.js.map +1 -1
  175. package/packages/core/dist/src/ide/ide-client.js +1 -1
  176. package/packages/core/dist/src/ide/ide-client.js.map +1 -1
  177. package/packages/core/dist/src/ide/types.d.ts +8 -8
  178. package/packages/core/dist/src/index.d.ts +2 -0
  179. package/packages/core/dist/src/index.js +2 -0
  180. package/packages/core/dist/src/index.js.map +1 -1
  181. package/packages/core/dist/src/policy/policies/plan.toml +29 -43
  182. package/packages/core/dist/src/policy/policies/read-only.toml +12 -11
  183. package/packages/core/dist/src/policy/policies/write.toml +11 -10
  184. package/packages/core/dist/src/policy/policies/yolo.toml +24 -12
  185. package/packages/core/dist/src/policy/policy-engine.js +1 -5
  186. package/packages/core/dist/src/policy/policy-engine.js.map +1 -1
  187. package/packages/core/dist/src/policy/types.d.ts +1 -2
  188. package/packages/core/dist/src/policy/types.js +0 -1
  189. package/packages/core/dist/src/policy/types.js.map +1 -1
  190. package/packages/core/dist/src/safety/context-builder.d.ts +3 -3
  191. package/packages/core/dist/src/safety/context-builder.js +4 -60
  192. package/packages/core/dist/src/safety/context-builder.js.map +1 -1
  193. package/packages/core/dist/src/safety/context-builder.test.js +18 -98
  194. package/packages/core/dist/src/safety/context-builder.test.js.map +1 -1
  195. package/packages/core/dist/src/safety/protocol.d.ts +0 -4
  196. package/packages/core/dist/src/safety/registry.d.ts +1 -2
  197. package/packages/core/dist/src/safety/registry.js +4 -14
  198. package/packages/core/dist/src/safety/registry.js.map +1 -1
  199. package/packages/core/dist/src/safety/registry.test.js +2 -5
  200. package/packages/core/dist/src/safety/registry.test.js.map +1 -1
  201. package/packages/core/dist/src/scheduler/scheduler.d.ts +1 -1
  202. package/packages/core/dist/src/scheduler/scheduler.js +4 -49
  203. package/packages/core/dist/src/scheduler/scheduler.js.map +1 -1
  204. package/packages/core/dist/src/scheduler/scheduler.test.js +0 -91
  205. package/packages/core/dist/src/scheduler/scheduler.test.js.map +1 -1
  206. package/packages/core/dist/src/scheduler/state-manager.d.ts +0 -6
  207. package/packages/core/dist/src/scheduler/state-manager.js +0 -12
  208. package/packages/core/dist/src/scheduler/state-manager.js.map +1 -1
  209. package/packages/core/dist/src/scheduler/tool-executor.js +7 -9
  210. package/packages/core/dist/src/scheduler/tool-executor.js.map +1 -1
  211. package/packages/core/dist/src/scheduler/tool-executor.test.js +1 -1
  212. package/packages/core/dist/src/scheduler/tool-executor.test.js.map +1 -1
  213. package/packages/core/dist/src/scheduler/types.d.ts +0 -13
  214. package/packages/core/dist/src/services/shellExecutionService.d.ts +1 -1
  215. package/packages/core/dist/src/services/shellExecutionService.js +7 -8
  216. package/packages/core/dist/src/services/shellExecutionService.js.map +1 -1
  217. package/packages/core/dist/src/services/shellExecutionService.test.js +5 -5
  218. package/packages/core/dist/src/services/shellExecutionService.test.js.map +1 -1
  219. package/packages/core/dist/src/services/test-data/resolved-aliases-retry.golden.json +251 -251
  220. package/packages/core/dist/src/services/test-data/resolved-aliases.golden.json +251 -251
  221. package/packages/core/dist/src/skills/builtin/skill-creator/scripts/init_skill.cjs +5 -1
  222. package/packages/core/dist/src/skills/builtin/skill-creator/scripts/package_skill.cjs +5 -1
  223. package/packages/core/dist/src/skills/builtin/skill-creator/scripts/validate_skill.cjs +5 -1
  224. package/packages/core/dist/src/telemetry/clearcut-logger/clearcut-logger.d.ts +1 -3
  225. package/packages/core/dist/src/telemetry/clearcut-logger/clearcut-logger.js +0 -2
  226. package/packages/core/dist/src/telemetry/clearcut-logger/clearcut-logger.js.map +1 -1
  227. package/packages/core/dist/src/telemetry/clearcut-logger/event-metadata-key.d.ts +1 -9
  228. package/packages/core/dist/src/telemetry/clearcut-logger/event-metadata-key.js +1 -19
  229. package/packages/core/dist/src/telemetry/clearcut-logger/event-metadata-key.js.map +1 -1
  230. package/packages/core/dist/src/telemetry/index.d.ts +1 -2
  231. package/packages/core/dist/src/telemetry/index.js +1 -2
  232. package/packages/core/dist/src/telemetry/index.js.map +1 -1
  233. package/packages/core/dist/src/telemetry/loggers.js +0 -4
  234. package/packages/core/dist/src/telemetry/loggers.js.map +1 -1
  235. package/packages/core/dist/src/telemetry/trace.js.map +1 -1
  236. package/packages/core/dist/src/telemetry/types.d.ts +0 -26
  237. package/packages/core/dist/src/telemetry/types.js +2 -76
  238. package/packages/core/dist/src/telemetry/types.js.map +1 -1
  239. package/packages/core/dist/src/tools/diffOptions.d.ts +2 -2
  240. package/packages/core/dist/src/tools/diffOptions.js.map +1 -1
  241. package/packages/core/dist/src/tools/mcp-client.test.js.map +1 -1
  242. package/packages/core/dist/src/tools/mcp-tool.d.ts +1 -3
  243. package/packages/core/dist/src/tools/mcp-tool.js +2 -9
  244. package/packages/core/dist/src/tools/mcp-tool.js.map +1 -1
  245. package/packages/core/dist/src/tools/memoryTool.d.ts +0 -10
  246. package/packages/core/dist/src/tools/memoryTool.js +30 -25
  247. package/packages/core/dist/src/tools/memoryTool.js.map +1 -1
  248. package/packages/core/dist/src/tools/tool-names.d.ts +6 -0
  249. package/packages/core/dist/src/tools/tool-names.js +16 -1
  250. package/packages/core/dist/src/tools/tool-names.js.map +1 -1
  251. package/packages/core/dist/src/tools/tools.d.ts +0 -11
  252. package/packages/core/dist/src/tools/tools.js.map +1 -1
  253. package/packages/core/dist/src/utils/getPty.d.ts +14 -1
  254. package/packages/core/dist/src/utils/getPty.js +67 -2
  255. package/packages/core/dist/src/utils/getPty.js.map +1 -1
  256. package/packages/core/dist/src/utils/memoryDiscovery.d.ts +11 -3
  257. package/packages/core/dist/src/utils/memoryDiscovery.js +56 -21
  258. package/packages/core/dist/src/utils/memoryDiscovery.js.map +1 -1
  259. package/packages/core/dist/src/utils/secure-browser-launcher.js +40 -29
  260. package/packages/core/dist/src/utils/secure-browser-launcher.js.map +1 -1
  261. package/packages/core/dist/src/utils/textUtils.d.ts +0 -9
  262. package/packages/core/dist/src/utils/textUtils.js +0 -15
  263. package/packages/core/dist/src/utils/textUtils.js.map +1 -1
  264. package/packages/core/dist/src/utils/textUtils.test.js +1 -42
  265. package/packages/core/dist/src/utils/textUtils.test.js.map +1 -1
  266. package/packages/core/dist/tsconfig.tsbuildinfo +1 -1
  267. package/packages/test-utils/dist/tsconfig.tsbuildinfo +1 -1
  268. package/bundle/docs/ROADMAP.md +0 -113
  269. package/bundle/docs/TERMUX.md +0 -95
  270. package/bundle/docs/architecture.md +0 -80
  271. package/bundle/docs/assets/hero.png +0 -0
  272. package/bundle/docs/cli/authentication.md +0 -3
  273. package/bundle/docs/cli/commands.md +0 -430
  274. package/bundle/docs/cli/context-memory.md +0 -69
  275. package/bundle/docs/cli/index.md +0 -65
  276. package/bundle/docs/cli/keyboard-shortcuts.md +0 -140
  277. package/bundle/docs/cli/tutorials.md +0 -87
  278. package/bundle/docs/core/policy-engine.md +0 -305
  279. package/bundle/docs/get-started/configuration-v1.md +0 -888
  280. package/bundle/docs/patches/README.md +0 -74
  281. package/bundle/docs/patches/mcp-sdk-typings-shim.md +0 -27
  282. package/bundle/docs/quota-and-pricing.md +0 -158
  283. package/bundle/docs/termux-api/COMMANDS.md +0 -592
  284. package/bundle/docs/termux-api/DISCOVERY_SETUP.md +0 -670
  285. package/bundle/docs/termux-api/EXECUTION_PLAN.md +0 -532
  286. package/bundle/docs/termux-api/MERGE_STRATEGY.md +0 -365
  287. package/bundle/docs/termux-api/PATCHES.md +0 -480
  288. package/bundle/docs/termux-api/README.md +0 -416
  289. package/bundle/docs/troubleshooting.md +0 -173
  290. package/bundle/policies/conseca.toml +0 -6
  291. package/bundle/sandbox-macos-permissive-closed.sb +0 -32
  292. package/packages/cli/README.md +0 -173
  293. package/packages/cli/dist/src/commands/extensions/examples/mcp-server/example.d.ts +0 -6
  294. package/packages/cli/dist/src/commands/extensions/examples/mcp-server/example.js.map +0 -1
  295. package/packages/cli/dist/src/commands/extensions/examples/mcp-server/example.test.d.ts +0 -6
  296. package/packages/cli/dist/src/commands/extensions/examples/mcp-server/example.test.js +0 -111
  297. package/packages/cli/dist/src/commands/extensions/examples/mcp-server/example.test.js.map +0 -1
  298. package/packages/cli/dist/src/ui/components/messages/ToolConfirmationMessageOverflow.test.d.ts +0 -6
  299. package/packages/cli/dist/src/ui/components/messages/ToolConfirmationMessageOverflow.test.js +0 -93
  300. package/packages/cli/dist/src/ui/components/messages/ToolConfirmationMessageOverflow.test.js.map +0 -1
  301. package/packages/cli/dist/src/ui/hooks/useReactToolScheduler.d.ts +0 -42
  302. package/packages/cli/dist/src/ui/hooks/useReactToolScheduler.js +0 -105
  303. package/packages/cli/dist/src/ui/hooks/useReactToolScheduler.js.map +0 -1
  304. package/packages/cli/dist/src/ui/hooks/useReactToolScheduler.test.d.ts +0 -6
  305. package/packages/cli/dist/src/ui/hooks/useReactToolScheduler.test.js +0 -58
  306. package/packages/cli/dist/src/ui/hooks/useReactToolScheduler.test.js.map +0 -1
  307. package/packages/cli/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +0 -6
  308. package/packages/cli/dist/src/ui/hooks/useRefreshMemoryCommand.js +0 -7
  309. package/packages/cli/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +0 -1
  310. package/packages/cli/dist/src/ui/hooks/useShowMemoryCommand.d.ts +0 -9
  311. package/packages/cli/dist/src/ui/hooks/useShowMemoryCommand.js +0 -59
  312. package/packages/cli/dist/src/ui/hooks/useShowMemoryCommand.js.map +0 -1
  313. package/packages/cli/dist/src/ui/hooks/useToolExecutionScheduler.d.ts +0 -30
  314. package/packages/cli/dist/src/ui/hooks/useToolExecutionScheduler.js +0 -149
  315. package/packages/cli/dist/src/ui/hooks/useToolExecutionScheduler.js.map +0 -1
  316. package/packages/cli/dist/src/ui/hooks/useToolExecutionScheduler.test.d.ts +0 -6
  317. package/packages/cli/dist/src/ui/hooks/useToolExecutionScheduler.test.js +0 -376
  318. package/packages/cli/dist/src/ui/hooks/useToolExecutionScheduler.test.js.map +0 -1
  319. package/packages/cli/dist/src/ui/hooks/useToolSchedulerFacade.test.d.ts +0 -6
  320. package/packages/cli/dist/src/ui/hooks/useToolSchedulerFacade.test.js +0 -45
  321. package/packages/cli/dist/src/ui/hooks/useToolSchedulerFacade.test.js.map +0 -1
  322. package/packages/cli/dist/src/ui/utils/InlineMarkdownRenderer.test.d.ts +0 -6
  323. package/packages/cli/dist/src/ui/utils/InlineMarkdownRenderer.test.js +0 -21
  324. package/packages/cli/dist/src/ui/utils/InlineMarkdownRenderer.test.js.map +0 -1
  325. package/packages/cli/dist/src/ui/utils/terminalUtils.test.d.ts +0 -6
  326. package/packages/cli/dist/src/ui/utils/terminalUtils.test.js +0 -40
  327. package/packages/cli/dist/src/ui/utils/terminalUtils.test.js.map +0 -1
  328. package/packages/cli/dist/src/utils/checks.d.ts +0 -19
  329. package/packages/cli/dist/src/utils/checks.js +0 -24
  330. package/packages/cli/dist/src/utils/checks.js.map +0 -1
  331. package/packages/cli/dist/src/utils/checks.test.d.ts +0 -6
  332. package/packages/cli/dist/src/utils/checks.test.js +0 -29
  333. package/packages/cli/dist/src/utils/checks.test.js.map +0 -1
  334. package/packages/cli/dist/src/utils/sandbox-macos-permissive-closed.sb +0 -32
  335. package/packages/cli/index.js +0 -2
  336. package/packages/core/dist/docs/TERMUX.md +0 -95
  337. package/packages/core/dist/docs/architecture.md +0 -80
  338. package/packages/core/dist/docs/assets/hero.png +0 -0
  339. package/packages/core/dist/docs/cli/authentication.md +0 -3
  340. package/packages/core/dist/docs/cli/commands.md +0 -430
  341. package/packages/core/dist/docs/cli/context-memory.md +0 -69
  342. package/packages/core/dist/docs/cli/index.md +0 -65
  343. package/packages/core/dist/docs/cli/tutorials.md +0 -87
  344. package/packages/core/dist/docs/cli/uninstall.md +0 -65
  345. package/packages/core/dist/docs/core/memport.md +0 -246
  346. package/packages/core/dist/docs/core/tools-api.md +0 -131
  347. package/packages/core/dist/docs/faq.md +0 -154
  348. package/packages/core/dist/docs/get-started/configuration-v1.md +0 -888
  349. package/packages/core/dist/docs/get-started/configuration.md +0 -1585
  350. package/packages/core/dist/docs/patches/README.md +0 -74
  351. package/packages/core/dist/docs/patches/mcp-sdk-typings-shim.md +0 -27
  352. package/packages/core/dist/docs/termux-api/COMMANDS.md +0 -592
  353. package/packages/core/dist/docs/termux-api/DISCOVERY_SETUP.md +0 -670
  354. package/packages/core/dist/docs/termux-api/EXECUTION_PLAN.md +0 -532
  355. package/packages/core/dist/docs/termux-api/MERGE_STRATEGY.md +0 -365
  356. package/packages/core/dist/docs/termux-api/PATCHES.md +0 -480
  357. package/packages/core/dist/docs/termux-api/README.md +0 -416
  358. package/packages/core/dist/docs/tos-privacy.md +0 -96
  359. package/packages/core/dist/src/safety/conseca/conseca.d.ts +0 -31
  360. package/packages/core/dist/src/safety/conseca/conseca.js +0 -105
  361. package/packages/core/dist/src/safety/conseca/conseca.js.map +0 -1
  362. package/packages/core/dist/src/safety/conseca/conseca.test.d.ts +0 -6
  363. package/packages/core/dist/src/safety/conseca/conseca.test.js +0 -226
  364. package/packages/core/dist/src/safety/conseca/conseca.test.js.map +0 -1
  365. package/packages/core/dist/src/safety/conseca/integration.test.d.ts +0 -6
  366. package/packages/core/dist/src/safety/conseca/integration.test.js +0 -19
  367. package/packages/core/dist/src/safety/conseca/integration.test.js.map +0 -1
  368. package/packages/core/dist/src/safety/conseca/policy-enforcer.d.ts +0 -13
  369. package/packages/core/dist/src/safety/conseca/policy-enforcer.js +0 -135
  370. package/packages/core/dist/src/safety/conseca/policy-enforcer.js.map +0 -1
  371. package/packages/core/dist/src/safety/conseca/policy-enforcer.test.d.ts +0 -6
  372. package/packages/core/dist/src/safety/conseca/policy-enforcer.test.js +0 -141
  373. package/packages/core/dist/src/safety/conseca/policy-enforcer.test.js.map +0 -1
  374. package/packages/core/dist/src/safety/conseca/policy-generator.d.ts +0 -15
  375. package/packages/core/dist/src/safety/conseca/policy-generator.js +0 -144
  376. package/packages/core/dist/src/safety/conseca/policy-generator.js.map +0 -1
  377. package/packages/core/dist/src/safety/conseca/policy-generator.test.d.ts +0 -6
  378. package/packages/core/dist/src/safety/conseca/policy-generator.test.js +0 -84
  379. package/packages/core/dist/src/safety/conseca/policy-generator.test.js.map +0 -1
  380. package/packages/core/dist/src/safety/conseca/types.d.ts +0 -15
  381. package/packages/core/dist/src/safety/conseca/types.js +0 -7
  382. package/packages/core/dist/src/safety/conseca/types.js.map +0 -1
  383. package/packages/core/dist/src/telemetry/conseca-logger.d.ts +0 -9
  384. package/packages/core/dist/src/telemetry/conseca-logger.js +0 -91
  385. package/packages/core/dist/src/telemetry/conseca-logger.js.map +0 -1
  386. package/packages/core/dist/src/telemetry/conseca-logger.test.d.ts +0 -6
  387. package/packages/core/dist/src/telemetry/conseca-logger.test.js +0 -89
  388. package/packages/core/dist/src/telemetry/conseca-logger.test.js.map +0 -1
  389. package/packages/core/dist/src/tools/mcpImportTool.d.ts +0 -31
  390. package/packages/core/dist/src/tools/mcpImportTool.js +0 -143
  391. package/packages/core/dist/src/tools/mcpImportTool.js.map +0 -1
  392. package/packages/core/dist/src/utils/contextMemory.d.ts +0 -67
  393. package/packages/core/dist/src/utils/contextMemory.js +0 -493
  394. package/packages/core/dist/src/utils/contextMemory.js.map +0 -1
  395. package/packages/core/dist/src/utils/contextMemory.test.d.ts +0 -6
  396. package/packages/core/dist/src/utils/contextMemory.test.js +0 -183
  397. package/packages/core/dist/src/utils/contextMemory.test.js.map +0 -1
  398. /package/{bundle/docs/core → packages/core/dist/docs/reference}/memport.md +0 -0
  399. /package/{bundle/docs/core → packages/core/dist/docs/reference}/tools-api.md +0 -0
  400. /package/{bundle/docs/cli → packages/core/dist/docs/resources}/uninstall.md +0 -0
@@ -0,0 +1,523 @@
1
+ # CLI commands
2
+
3
+ Gemini CLI supports several built-in commands to help you manage your session,
4
+ customize the interface, and control its behavior. These commands are prefixed
5
+ with a forward slash (`/`), an at symbol (`@`), or an exclamation mark (`!`).
6
+
7
+ ## Slash commands (`/`)
8
+
9
+ Slash commands provide meta-level control over the CLI itself.
10
+
11
+ ### Built-in Commands
12
+
13
+ ### `/about`
14
+
15
+ - **Description:** Show version info. Share this information when filing issues.
16
+
17
+ ### `/auth`
18
+
19
+ - **Description:** Open a dialog that lets you change the authentication method.
20
+
21
+ ### `/bug`
22
+
23
+ - **Description:** File an issue about Gemini CLI. By default, the issue is
24
+ filed within the GitHub repository for Gemini CLI. The string you enter after
25
+ `/bug` will become the headline for the bug being filed. The default `/bug`
26
+ behavior can be modified using the `advanced.bugCommand` setting in your
27
+ `.gemini/settings.json` files.
28
+
29
+ ### `/chat`
30
+
31
+ - **Description:** Save and resume conversation history for branching
32
+ conversation state interactively, or resuming a previous state from a later
33
+ session.
34
+ - **Sub-commands:**
35
+ - **`debug`**
36
+ - **Description:** Export the most recent API request as a JSON payload.
37
+ - **`delete <tag>`**
38
+ - **Description:** Deletes a saved conversation checkpoint.
39
+ - **`list`**
40
+ - **Description:** Lists available tags for chat state resumption.
41
+ - **Note:** This command only lists chats saved within the current project.
42
+ Because chat history is project-scoped, chats saved in other project
43
+ directories will not be displayed.
44
+ - **`resume <tag>`**
45
+ - **Description:** Resumes a conversation from a previous save.
46
+ - **Note:** You can only resume chats that were saved within the current
47
+ project. To resume a chat from a different project, you must run the
48
+ Gemini CLI from that project's directory.
49
+ - **`save <tag>`**
50
+ - **Description:** Saves the current conversation history. You must add a
51
+ `<tag>` for identifying the conversation state.
52
+ - **Details on checkpoint location:** The default locations for saved chat
53
+ checkpoints are:
54
+ - Linux/macOS: `~/.gemini/tmp/<project_hash>/`
55
+ - Windows: `C:\Users\<YourUsername>\.gemini\tmp\<project_hash>\`
56
+ - **Behavior:** Chats are saved into a project-specific directory,
57
+ determined by where you run the CLI. Consequently, saved chats are only
58
+ accessible when working within that same project.
59
+ - **Note:** These checkpoints are for manually saving and resuming
60
+ conversation states. For automatic checkpoints created before file
61
+ modifications, see the
62
+ [Checkpointing documentation](../cli/checkpointing.md).
63
+ - **`share [filename]`**
64
+ - **Description** Writes the current conversation to a provided Markdown or
65
+ JSON file. If no filename is provided, then the CLI will generate one.
66
+ - **Usage** `/chat share file.md` or `/chat share file.json`.
67
+
68
+ ### `/clear`
69
+
70
+ - **Description:** Clear the terminal screen, including the visible session
71
+ history and scrollback within the CLI. The underlying session data (for
72
+ history recall) might be preserved depending on the exact implementation, but
73
+ the visual display is cleared.
74
+ - **Keyboard shortcut:** Press **Ctrl+L** at any time to perform a clear action.
75
+
76
+ ### `/commands`
77
+
78
+ - **Description:** Manage custom slash commands loaded from `.toml` files.
79
+ - **Sub-commands:**
80
+ - **`reload`**:
81
+ - **Description:** Reload custom command definitions from all sources
82
+ (user-level `~/.gemini/commands/`, project-level
83
+ `<project>/.gemini/commands/`, MCP prompts, and extensions). Use this to
84
+ pick up new or modified `.toml` files without restarting the CLI.
85
+ - **Usage:** `/commands reload`
86
+
87
+ ### `/compress`
88
+
89
+ - **Description:** Replace the entire chat context with a summary. This saves on
90
+ tokens used for future tasks while retaining a high level summary of what has
91
+ happened.
92
+
93
+ ### `/copy`
94
+
95
+ - **Description:** Copies the last output produced by Gemini CLI to your
96
+ clipboard, for easy sharing or reuse.
97
+ - **Behavior:**
98
+ - Local sessions use system clipboard tools (pbcopy/xclip/clip).
99
+ - Remote sessions (SSH/WSL) use OSC 52 and require terminal support.
100
+ - **Note:** This command requires platform-specific clipboard tools to be
101
+ installed.
102
+ - On Linux, it requires `xclip` or `xsel`. You can typically install them
103
+ using your system's package manager.
104
+ - On macOS, it requires `pbcopy`, and on Windows, it requires `clip`. These
105
+ tools are typically pre-installed on their respective systems.
106
+
107
+ ### `/directory` (or `/dir`)
108
+
109
+ - **Description:** Manage workspace directories for multi-directory support.
110
+ - **Sub-commands:**
111
+ - **`add`**:
112
+ - **Description:** Add a directory to the workspace. The path can be
113
+ absolute or relative to the current working directory. Moreover, the
114
+ reference from home directory is supported as well.
115
+ - **Usage:** `/directory add <path1>,<path2>`
116
+ - **Note:** Disabled in restrictive sandbox profiles. If you're using that,
117
+ use `--include-directories` when starting the session instead.
118
+ - **`show`**:
119
+ - **Description:** Display all directories added by `/directory add` and
120
+ `--include-directories`.
121
+ - **Usage:** `/directory show`
122
+
123
+ ### `/docs`
124
+
125
+ - **Description:** Open the Gemini CLI documentation in your browser.
126
+
127
+ ### `/editor`
128
+
129
+ - **Description:** Open a dialog for selecting supported editors.
130
+
131
+ ### `/extensions`
132
+
133
+ - **Description:** Manage extensions. See
134
+ [Gemini CLI Extensions](../extensions/index.md).
135
+ - **Sub-commands:**
136
+ - **`config`**:
137
+ - **Description:** Configure extension settings.
138
+ - **`disable`**:
139
+ - **Description:** Disable an extension.
140
+ - **`enable`**:
141
+ - **Description:** Enable an extension.
142
+ - **`explore`**:
143
+ - **Description:** Open extensions page in your browser.
144
+ - **`install`**:
145
+ - **Description:** Install an extension from a git repo or local path.
146
+ - **`link`**:
147
+ - **Description:** Link an extension from a local path.
148
+ - **`list`**:
149
+ - **Description:** List active extensions.
150
+ - **`restart`**:
151
+ - **Description:** Restart all extensions.
152
+ - **`uninstall`**:
153
+ - **Description:** Uninstall an extension.
154
+ - **`update`**:
155
+ - **Description:** Update extensions. Usage: update <extension-names>|--all
156
+
157
+ ### `/help` (or `/?`)
158
+
159
+ - **Description:** Display help information about Gemini CLI, including
160
+ available commands and their usage.
161
+
162
+ ### `/hooks`
163
+
164
+ - **Description:** Manage hooks, which allow you to intercept and customize
165
+ Gemini CLI behavior at specific lifecycle events.
166
+ - **Sub-commands:**
167
+ - **`disable-all`**:
168
+ - **Description:** Disable all enabled hooks.
169
+ - **`disable <hook-name>`**:
170
+ - **Description:** Disable a hook by name.
171
+ - **`enable-all`**:
172
+ - **Description:** Enable all disabled hooks.
173
+ - **`enable <hook-name>`**:
174
+ - **Description:** Enable a hook by name.
175
+ - **`list`** (or `show`, `panel`):
176
+ - **Description:** Display all registered hooks with their status.
177
+
178
+ ### `/ide`
179
+
180
+ - **Description:** Manage IDE integration.
181
+ - **Sub-commands:**
182
+ - **`disable`**:
183
+ - **Description:** Disable IDE integration.
184
+ - **`enable`**:
185
+ - **Description:** Enable IDE integration.
186
+ - **`install`**:
187
+ - **Description:** Install required IDE companion.
188
+ - **`status`**:
189
+ - **Description:** Check status of IDE integration.
190
+
191
+ ### `/init`
192
+
193
+ - **Description:** To help users easily create a `GEMINI.md` file, this command
194
+ analyzes the current directory and generates a tailored context file, making
195
+ it simpler for them to provide project-specific instructions to the Gemini
196
+ agent.
197
+
198
+ ### `/mcp`
199
+
200
+ - **Description:** Manage configured Model Context Protocol (MCP) servers.
201
+ - **Sub-commands:**
202
+ - **`auth`**:
203
+ - **Description:** Authenticate with an OAuth-enabled MCP server.
204
+ - **Usage:** `/mcp auth <server-name>`
205
+ - **Details:** If `<server-name>` is provided, it initiates the OAuth flow
206
+ for that server. If no server name is provided, it lists all configured
207
+ servers that support OAuth authentication.
208
+ - **`desc`**
209
+ - **Description:** List configured MCP servers and tools with descriptions.
210
+ - **`disable`**
211
+ - **Description:** Disable an MCP server.
212
+ - **`enable`**
213
+ - **Description:** Enable a disabled MCP server.
214
+ - **`list`** or **`ls`**:
215
+ - **Description:** List configured MCP servers and tools. This is the
216
+ default action if no subcommand is specified.
217
+ - **`refresh`**:
218
+ - **Description:** Restarts all MCP servers and re-discovers their available
219
+ tools.
220
+ - **`schema`**:
221
+ - **Description:** List configured MCP servers and tools with descriptions
222
+ and schemas.
223
+
224
+ ### `/memory`
225
+
226
+ - **Description:** Manage the AI's instructional context (hierarchical memory
227
+ loaded from `GEMINI.md` files).
228
+ - **Sub-commands:**
229
+ - **`add`**:
230
+ - **Description:** Adds the following text to the AI's memory. Usage:
231
+ `/memory add <text to remember>`
232
+ - **`list`**:
233
+ - **Description:** Lists the paths of the GEMINI.md files in use for
234
+ hierarchical memory.
235
+ - **`refresh`**:
236
+ - **Description:** Reload the hierarchical instructional memory from all
237
+ `GEMINI.md` files found in the configured locations (global,
238
+ project/ancestors, and sub-directories). This command updates the model
239
+ with the latest `GEMINI.md` content.
240
+ - **`show`**:
241
+ - **Description:** Display the full, concatenated content of the current
242
+ hierarchical memory that has been loaded from all `GEMINI.md` files. This
243
+ lets you inspect the instructional context being provided to the Gemini
244
+ model.
245
+ - **Note:** For more details on how `GEMINI.md` files contribute to
246
+ hierarchical memory, see the
247
+ [CLI Configuration documentation](./configuration.md).
248
+
249
+ ### `/model`
250
+
251
+ - **Description:** Manage model configuration.
252
+ - **Sub-commands:**
253
+ - **`manage`**:
254
+ - **Description:** Opens a dialog to configure the model.
255
+ - **`set`**:
256
+ - **Description:** Set the model to use.
257
+ - **Usage:** `/model set <model-name> [--persist]`
258
+
259
+ ### `/permissions`
260
+
261
+ - **Description:** Manage folder trust settings and other permissions.
262
+ - **Sub-commands:**
263
+ - **`trust`**:
264
+ - **Description:** Manage folder trust settings.
265
+ - **Usage:** `/permissions trust [<directory-path>]`
266
+
267
+ ### `/plan`
268
+
269
+ - **Description:** Switch to Plan Mode (read-only) and view the current plan if
270
+ one has been generated.
271
+ - **Note:** This feature requires the `experimental.plan` setting to be
272
+ enabled in your configuration.
273
+
274
+ ### `/policies`
275
+
276
+ - **Description:** Manage policies.
277
+ - **Sub-commands:**
278
+ - **`list`**:
279
+ - **Description:** List all active policies grouped by mode.
280
+
281
+ ### `/privacy`
282
+
283
+ - **Description:** Display the Privacy Notice and allow users to select whether
284
+ they consent to the collection of their data for service improvement purposes.
285
+
286
+ ### `/quit` (or `/exit`)
287
+
288
+ - **Description:** Exit Gemini CLI.
289
+
290
+ ### `/restore`
291
+
292
+ - **Description:** Restores the project files to the state they were in just
293
+ before a tool was executed. This is particularly useful for undoing file edits
294
+ made by a tool. If run without a tool call ID, it will list available
295
+ checkpoints to restore from.
296
+ - **Usage:** `/restore [tool_call_id]`
297
+ - **Note:** Only available if checkpointing is configured via
298
+ [settings](./configuration.md). See
299
+ [Checkpointing documentation](../cli/checkpointing.md) for more details.
300
+
301
+ ### `/rewind`
302
+
303
+ - **Description:** Navigates backward through the conversation history, letting
304
+ you review past interactions and potentially revert both chat state and file
305
+ changes.
306
+ - **Usage:** Press **Esc** twice as a shortcut.
307
+ - **Features:**
308
+ - **Select Interaction:** Preview user prompts and file changes.
309
+ - **Action Selection:** Choose to rewind history only, revert code changes
310
+ only, or both.
311
+
312
+ ### `/resume`
313
+
314
+ - **Description:** Browse and resume previous conversation sessions. Opens an
315
+ interactive session browser where you can search, filter, and select from
316
+ automatically saved conversations.
317
+ - **Features:**
318
+ - **Management:** Delete unwanted sessions directly from the browser
319
+ - **Resume:** Select any session to resume and continue the conversation
320
+ - **Search:** Use `/` to search through conversation content across all
321
+ sessions
322
+ - **Session Browser:** Interactive interface showing all saved sessions with
323
+ timestamps, message counts, and first user message for context
324
+ - **Sorting:** Sort sessions by date or message count
325
+ - **Note:** All conversations are automatically saved as you chat - no manual
326
+ saving required. See [Session Management](../cli/session-management.md) for
327
+ complete details.
328
+
329
+ ### `/settings`
330
+
331
+ - **Description:** Open the settings editor to view and modify Gemini CLI
332
+ settings.
333
+ - **Details:** This command provides a user-friendly interface for changing
334
+ settings that control the behavior and appearance of Gemini CLI. It is
335
+ equivalent to manually editing the `.gemini/settings.json` file, but with
336
+ validation and guidance to prevent errors. See the
337
+ [settings documentation](../cli/settings.md) for a full list of available
338
+ settings.
339
+ - **Usage:** Simply run `/settings` and the editor will open. You can then
340
+ browse or search for specific settings, view their current values, and modify
341
+ them as desired. Changes to some settings are applied immediately, while
342
+ others require a restart.
343
+
344
+ ### `/shells` (or `/bashes`)
345
+
346
+ - **Description:** Toggle the background shells view. This allows you to view
347
+ and manage long-running processes that you've sent to the background.
348
+
349
+ ### `/setup-github`
350
+
351
+ - **Description:** Set up GitHub Actions to triage issues and review PRs with
352
+ Gemini.
353
+
354
+ ### `/skills`
355
+
356
+ - **Description:** Manage Agent Skills, which provide on-demand expertise and
357
+ specialized workflows.
358
+ - **Sub-commands:**
359
+ - **`disable <name>`**:
360
+ - **Description:** Disable a specific skill by name.
361
+ - **Usage:** `/skills disable <name>`
362
+ - **`enable <name>`**:
363
+ - **Description:** Enable a specific skill by name.
364
+ - **Usage:** `/skills enable <name>`
365
+ - **`list`**:
366
+ - **Description:** List all discovered skills and their current status
367
+ (enabled/disabled).
368
+ - **`reload`**:
369
+ - **Description:** Refresh the list of discovered skills from all tiers
370
+ (workspace, user, and extensions).
371
+
372
+ ### `/stats`
373
+
374
+ - **Description:** Display detailed statistics for the current Gemini CLI
375
+ session.
376
+ - **Sub-commands:**
377
+ - **`session`**:
378
+ - **Description:** Show session-specific usage statistics, including
379
+ duration, tool calls, and performance metrics. This is the default view.
380
+ - **`model`**:
381
+ - **Description:** Show model-specific usage statistics, including token
382
+ counts and quota information.
383
+ - **`tools`**:
384
+ - **Description:** Show tool-specific usage statistics.
385
+
386
+ ### `/terminal-setup`
387
+
388
+ - **Description:** Configure terminal keybindings for multiline input (VS Code,
389
+ Cursor, Windsurf).
390
+
391
+ ### `/theme`
392
+
393
+ - **Description:** Open a dialog that lets you change the visual theme of Gemini
394
+ CLI.
395
+
396
+ ### `/tools`
397
+
398
+ - **Description:** Display a list of tools that are currently available within
399
+ Gemini CLI.
400
+ - **Usage:** `/tools [desc]`
401
+ - **Sub-commands:**
402
+ - **`desc`** or **`descriptions`**:
403
+ - **Description:** Show detailed descriptions of each tool, including each
404
+ tool's name with its full description as provided to the model.
405
+ - **`nodesc`** or **`nodescriptions`**:
406
+ - **Description:** Hide tool descriptions, showing only the tool names.
407
+
408
+ ### `/vim`
409
+
410
+ - **Description:** Toggle vim mode on or off. When vim mode is enabled, the
411
+ input area supports vim-style navigation and editing commands in both NORMAL
412
+ and INSERT modes.
413
+ - **Features:**
414
+ - **Count support:** Prefix commands with numbers (e.g., `3h`, `5w`, `10G`)
415
+ - **Editing commands:** Delete with `x`, change with `c`, insert with `i`,
416
+ `a`, `o`, `O`; complex operations like `dd`, `cc`, `dw`, `cw`
417
+ - **INSERT mode:** Standard text input with escape to return to NORMAL mode
418
+ - **NORMAL mode:** Navigate with `h`, `j`, `k`, `l`; jump by words with `w`,
419
+ `b`, `e`; go to line start/end with `0`, `$`, `^`; go to specific lines with
420
+ `G` (or `gg` for first line)
421
+ - **Persistent setting:** Vim mode preference is saved to
422
+ `~/.gemini/settings.json` and restored between sessions
423
+ - **Repeat last command:** Use `.` to repeat the last editing operation
424
+ - **Status indicator:** When enabled, shows `[NORMAL]` or `[INSERT]` in the
425
+ footer
426
+
427
+ ### Custom commands
428
+
429
+ Custom commands allow you to create personalized shortcuts for your most-used
430
+ prompts. For detailed instructions on how to create, manage, and use them,
431
+ please see the dedicated
432
+ [Custom Commands documentation](../cli/custom-commands.md).
433
+
434
+ ## Input prompt shortcuts
435
+
436
+ These shortcuts apply directly to the input prompt for text manipulation.
437
+
438
+ - **Undo:**
439
+ - **Keyboard shortcut:** Press **Alt+z** or **Cmd+z** to undo the last action
440
+ in the input prompt.
441
+
442
+ - **Redo:**
443
+ - **Keyboard shortcut:** Press **Shift+Alt+Z** or **Shift+Cmd+Z** to redo the
444
+ last undone action in the input prompt.
445
+
446
+ ## At commands (`@`)
447
+
448
+ At commands are used to include the content of files or directories as part of
449
+ your prompt to Gemini. These commands include git-aware filtering.
450
+
451
+ - **`@<path_to_file_or_directory>`**
452
+ - **Description:** Inject the content of the specified file or files into your
453
+ current prompt. This is useful for asking questions about specific code,
454
+ text, or collections of files.
455
+ - **Examples:**
456
+ - `@path/to/your/file.txt Explain this text.`
457
+ - `@src/my_project/ Summarize the code in this directory.`
458
+ - `What is this file about? @README.md`
459
+ - **Details:**
460
+ - If a path to a single file is provided, the content of that file is read.
461
+ - If a path to a directory is provided, the command attempts to read the
462
+ content of files within that directory and any subdirectories.
463
+ - Spaces in paths should be escaped with a backslash (e.g.,
464
+ `@My\ Documents/file.txt`).
465
+ - The command uses the `read_many_files` tool internally. The content is
466
+ fetched and then inserted into your query before being sent to the Gemini
467
+ model.
468
+ - **Git-aware filtering:** By default, git-ignored files (like
469
+ `node_modules/`, `dist/`, `.env`, `.git/`) are excluded. This behavior can
470
+ be changed via the `context.fileFiltering` settings.
471
+ - **File types:** The command is intended for text-based files. While it
472
+ might attempt to read any file, binary files or very large files might be
473
+ skipped or truncated by the underlying `read_many_files` tool to ensure
474
+ performance and relevance. The tool indicates if files were skipped.
475
+ - **Output:** The CLI will show a tool call message indicating that
476
+ `read_many_files` was used, along with a message detailing the status and
477
+ the path(s) that were processed.
478
+
479
+ - **`@` (Lone at symbol)**
480
+ - **Description:** If you type a lone `@` symbol without a path, the query is
481
+ passed as-is to the Gemini model. This might be useful if you are
482
+ specifically talking _about_ the `@` symbol in your prompt.
483
+
484
+ ### Error handling for `@` commands
485
+
486
+ - If the path specified after `@` is not found or is invalid, an error message
487
+ will be displayed, and the query might not be sent to the Gemini model, or it
488
+ will be sent without the file content.
489
+ - If the `read_many_files` tool encounters an error (e.g., permission issues),
490
+ this will also be reported.
491
+
492
+ ## Shell mode and passthrough commands (`!`)
493
+
494
+ The `!` prefix lets you interact with your system's shell directly from within
495
+ Gemini CLI.
496
+
497
+ - **`!<shell_command>`**
498
+ - **Description:** Execute the given `<shell_command>` using `bash` on
499
+ Linux/macOS or `powershell.exe -NoProfile -Command` on Windows (unless you
500
+ override `ComSpec`). Any output or errors from the command are displayed in
501
+ the terminal.
502
+ - **Examples:**
503
+ - `!ls -la` (executes `ls -la` and returns to Gemini CLI)
504
+ - `!git status` (executes `git status` and returns to Gemini CLI)
505
+
506
+ - **`!` (Toggle shell mode)**
507
+ - **Description:** Typing `!` on its own toggles shell mode.
508
+ - **Entering shell mode:**
509
+ - When active, shell mode uses a different coloring and a "Shell Mode
510
+ Indicator".
511
+ - While in shell mode, text you type is interpreted directly as a shell
512
+ command.
513
+ - **Exiting shell mode:**
514
+ - When exited, the UI reverts to its standard appearance and normal Gemini
515
+ CLI behavior resumes.
516
+
517
+ - **Caution for all `!` usage:** Commands you execute in shell mode have the
518
+ same permissions and impact as if you ran them directly in your terminal.
519
+
520
+ - **Environment variable:** When a command is executed via `!` or in shell mode,
521
+ the `GEMINI_CLI=1` environment variable is set in the subprocess's
522
+ environment. This allows scripts or tools to detect if they are being run from
523
+ within the Gemini CLI.