@openadapter/koda 1.0.0-beta.3

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 (357) hide show
  1. package/CHANGELOG.md +4448 -0
  2. package/README.md +665 -0
  3. package/dist/bun/cli.d.ts +2 -0
  4. package/dist/bun/cli.js +2 -0
  5. package/dist/bun/register-bedrock.d.ts +1 -0
  6. package/dist/bun/register-bedrock.js +1 -0
  7. package/dist/bun/restore-sandbox-env.d.ts +12 -0
  8. package/dist/bun/restore-sandbox-env.js +1 -0
  9. package/dist/cli/args.d.ts +55 -0
  10. package/dist/cli/args.js +167 -0
  11. package/dist/cli/config-selector.d.ts +13 -0
  12. package/dist/cli/config-selector.js +1 -0
  13. package/dist/cli/file-processor.d.ts +14 -0
  14. package/dist/cli/file-processor.js +7 -0
  15. package/dist/cli/import-sessions.d.ts +34 -0
  16. package/dist/cli/import-sessions.js +6 -0
  17. package/dist/cli/initial-message.d.ts +17 -0
  18. package/dist/cli/initial-message.js +1 -0
  19. package/dist/cli/list-models.d.ts +8 -0
  20. package/dist/cli/list-models.js +2 -0
  21. package/dist/cli/openadapter-setup.d.ts +29 -0
  22. package/dist/cli/openadapter-setup.js +3 -0
  23. package/dist/cli/session-picker.d.ts +8 -0
  24. package/dist/cli/session-picker.js +1 -0
  25. package/dist/cli.d.ts +2 -0
  26. package/dist/cli.js +2 -0
  27. package/dist/config.d.ts +92 -0
  28. package/dist/config.js +1 -0
  29. package/dist/core/agent-session-runtime.d.ts +116 -0
  30. package/dist/core/agent-session-runtime.js +1 -0
  31. package/dist/core/agent-session-services.d.ts +86 -0
  32. package/dist/core/agent-session-services.js +1 -0
  33. package/dist/core/agent-session.d.ts +747 -0
  34. package/dist/core/agent-session.js +32 -0
  35. package/dist/core/auth-guidance.d.ts +4 -0
  36. package/dist/core/auth-guidance.js +8 -0
  37. package/dist/core/auth-storage.d.ts +140 -0
  38. package/dist/core/auth-storage.js +1 -0
  39. package/dist/core/bash-executor.d.ts +31 -0
  40. package/dist/core/bash-executor.js +1 -0
  41. package/dist/core/compaction/branch-summarization.d.ts +89 -0
  42. package/dist/core/compaction/branch-summarization.js +38 -0
  43. package/dist/core/compaction/compaction.d.ts +120 -0
  44. package/dist/core/compaction/compaction.js +104 -0
  45. package/dist/core/compaction/index.d.ts +6 -0
  46. package/dist/core/compaction/index.js +1 -0
  47. package/dist/core/compaction/utils.d.ts +37 -0
  48. package/dist/core/compaction/utils.js +19 -0
  49. package/dist/core/defaults.d.ts +2 -0
  50. package/dist/core/defaults.js +1 -0
  51. package/dist/core/diagnostics.d.ts +14 -0
  52. package/dist/core/diagnostics.js +0 -0
  53. package/dist/core/event-bus.d.ts +8 -0
  54. package/dist/core/event-bus.js +1 -0
  55. package/dist/core/exec.d.ts +28 -0
  56. package/dist/core/exec.js +1 -0
  57. package/dist/core/export-html/ansi-to-html.d.ts +21 -0
  58. package/dist/core/export-html/ansi-to-html.js +1 -0
  59. package/dist/core/export-html/index.d.ts +36 -0
  60. package/dist/core/export-html/index.js +2 -0
  61. package/dist/core/export-html/template.css +1066 -0
  62. package/dist/core/export-html/template.html +55 -0
  63. package/dist/core/export-html/template.js +72 -0
  64. package/dist/core/export-html/tool-renderer.d.ts +33 -0
  65. package/dist/core/export-html/tool-renderer.js +1 -0
  66. package/dist/core/export-html/vendor/highlight.min.js +8 -0
  67. package/dist/core/export-html/vendor/marked.min.js +56 -0
  68. package/dist/core/extensions/index.d.ts +11 -0
  69. package/dist/core/extensions/index.js +1 -0
  70. package/dist/core/extensions/loader.d.ts +23 -0
  71. package/dist/core/extensions/loader.js +1 -0
  72. package/dist/core/extensions/runner.d.ts +160 -0
  73. package/dist/core/extensions/runner.js +1 -0
  74. package/dist/core/extensions/types.d.ts +1180 -0
  75. package/dist/core/extensions/types.js +1 -0
  76. package/dist/core/extensions/wrapper.d.ts +19 -0
  77. package/dist/core/extensions/wrapper.js +1 -0
  78. package/dist/core/footer-data-provider.d.ts +53 -0
  79. package/dist/core/footer-data-provider.js +1 -0
  80. package/dist/core/http-dispatcher.d.ts +20 -0
  81. package/dist/core/http-dispatcher.js +1 -0
  82. package/dist/core/index.d.ts +11 -0
  83. package/dist/core/index.js +1 -0
  84. package/dist/core/keybindings.d.ts +352 -0
  85. package/dist/core/keybindings.js +1 -0
  86. package/dist/core/messages.d.ts +76 -0
  87. package/dist/core/messages.js +17 -0
  88. package/dist/core/model-registry.d.ts +149 -0
  89. package/dist/core/model-registry.js +9 -0
  90. package/dist/core/model-resolver.d.ts +109 -0
  91. package/dist/core/model-resolver.js +1 -0
  92. package/dist/core/output-guard.d.ts +6 -0
  93. package/dist/core/output-guard.js +1 -0
  94. package/dist/core/package-manager.d.ts +203 -0
  95. package/dist/core/package-manager.js +3 -0
  96. package/dist/core/prompt-templates.d.ts +51 -0
  97. package/dist/core/prompt-templates.js +2 -0
  98. package/dist/core/provider-attribution.d.ts +3 -0
  99. package/dist/core/provider-attribution.js +1 -0
  100. package/dist/core/provider-display-names.d.ts +1 -0
  101. package/dist/core/provider-display-names.js +1 -0
  102. package/dist/core/resolve-config-value.d.ts +30 -0
  103. package/dist/core/resolve-config-value.js +1 -0
  104. package/dist/core/resource-loader.d.ts +193 -0
  105. package/dist/core/resource-loader.js +1 -0
  106. package/dist/core/sdk.d.ts +108 -0
  107. package/dist/core/sdk.js +1 -0
  108. package/dist/core/session-cwd.d.ts +18 -0
  109. package/dist/core/session-cwd.js +7 -0
  110. package/dist/core/session-manager.d.ts +331 -0
  111. package/dist/core/session-manager.js +11 -0
  112. package/dist/core/settings-manager.d.ts +265 -0
  113. package/dist/core/settings-manager.js +1 -0
  114. package/dist/core/skills.d.ts +59 -0
  115. package/dist/core/skills.js +4 -0
  116. package/dist/core/slash-commands.d.ts +13 -0
  117. package/dist/core/slash-commands.js +1 -0
  118. package/dist/core/source-info.d.ts +17 -0
  119. package/dist/core/source-info.js +1 -0
  120. package/dist/core/system-prompt.d.ts +27 -0
  121. package/dist/core/system-prompt.js +52 -0
  122. package/dist/core/telemetry.d.ts +2 -0
  123. package/dist/core/telemetry.js +1 -0
  124. package/dist/core/timings.d.ts +7 -0
  125. package/dist/core/timings.js +3 -0
  126. package/dist/core/tools/bash.d.ts +67 -0
  127. package/dist/core/tools/bash.js +18 -0
  128. package/dist/core/tools/edit-diff.d.ts +86 -0
  129. package/dist/core/tools/edit-diff.js +16 -0
  130. package/dist/core/tools/edit.d.ts +50 -0
  131. package/dist/core/tools/edit.js +2 -0
  132. package/dist/core/tools/file-mutation-queue.d.ts +5 -0
  133. package/dist/core/tools/file-mutation-queue.js +1 -0
  134. package/dist/core/tools/find.d.ts +34 -0
  135. package/dist/core/tools/find.js +13 -0
  136. package/dist/core/tools/grep.d.ts +36 -0
  137. package/dist/core/tools/grep.js +13 -0
  138. package/dist/core/tools/index.d.ts +39 -0
  139. package/dist/core/tools/index.js +1 -0
  140. package/dist/core/tools/ls.d.ts +36 -0
  141. package/dist/core/tools/ls.js +9 -0
  142. package/dist/core/tools/output-accumulator.d.ts +51 -0
  143. package/dist/core/tools/output-accumulator.js +4 -0
  144. package/dist/core/tools/path-utils.d.ts +9 -0
  145. package/dist/core/tools/path-utils.js +1 -0
  146. package/dist/core/tools/read.d.ts +34 -0
  147. package/dist/core/tools/read.js +22 -0
  148. package/dist/core/tools/render-utils.d.ts +23 -0
  149. package/dist/core/tools/render-utils.js +4 -0
  150. package/dist/core/tools/tool-definition-wrapper.d.ts +13 -0
  151. package/dist/core/tools/tool-definition-wrapper.js +1 -0
  152. package/dist/core/tools/truncate.d.ts +69 -0
  153. package/dist/core/tools/truncate.js +5 -0
  154. package/dist/core/tools/write.d.ts +25 -0
  155. package/dist/core/tools/write.js +13 -0
  156. package/dist/index.d.ts +30 -0
  157. package/dist/index.js +1 -0
  158. package/dist/main.d.ts +11 -0
  159. package/dist/main.js +1 -0
  160. package/dist/migrations.d.ts +32 -0
  161. package/dist/migrations.js +8 -0
  162. package/dist/modes/index.d.ts +8 -0
  163. package/dist/modes/index.js +1 -0
  164. package/dist/modes/interactive/assets/clankolas.png +0 -0
  165. package/dist/modes/interactive/components/armin.d.ts +33 -0
  166. package/dist/modes/interactive/components/armin.js +1 -0
  167. package/dist/modes/interactive/components/assistant-message.d.ts +19 -0
  168. package/dist/modes/interactive/components/assistant-message.js +1 -0
  169. package/dist/modes/interactive/components/bash-execution.d.ts +33 -0
  170. package/dist/modes/interactive/components/bash-execution.js +13 -0
  171. package/dist/modes/interactive/components/bordered-loader.d.ts +15 -0
  172. package/dist/modes/interactive/components/bordered-loader.js +1 -0
  173. package/dist/modes/interactive/components/branch-summary-message.d.ts +15 -0
  174. package/dist/modes/interactive/components/branch-summary-message.js +3 -0
  175. package/dist/modes/interactive/components/compaction-summary-message.d.ts +15 -0
  176. package/dist/modes/interactive/components/compaction-summary-message.js +3 -0
  177. package/dist/modes/interactive/components/config-selector.d.ts +70 -0
  178. package/dist/modes/interactive/components/config-selector.js +1 -0
  179. package/dist/modes/interactive/components/countdown-timer.d.ts +13 -0
  180. package/dist/modes/interactive/components/countdown-timer.js +1 -0
  181. package/dist/modes/interactive/components/custom-editor.d.ts +20 -0
  182. package/dist/modes/interactive/components/custom-editor.js +1 -0
  183. package/dist/modes/interactive/components/custom-message.d.ts +19 -0
  184. package/dist/modes/interactive/components/custom-message.js +2 -0
  185. package/dist/modes/interactive/components/daxnuts.d.ts +22 -0
  186. package/dist/modes/interactive/components/daxnuts.js +1 -0
  187. package/dist/modes/interactive/components/diff.d.ts +11 -0
  188. package/dist/modes/interactive/components/diff.js +3 -0
  189. package/dist/modes/interactive/components/dynamic-border.d.ts +14 -0
  190. package/dist/modes/interactive/components/dynamic-border.js +1 -0
  191. package/dist/modes/interactive/components/earendil-announcement.d.ts +4 -0
  192. package/dist/modes/interactive/components/earendil-announcement.js +1 -0
  193. package/dist/modes/interactive/components/extension-editor.d.ts +19 -0
  194. package/dist/modes/interactive/components/extension-editor.js +3 -0
  195. package/dist/modes/interactive/components/extension-input.d.ts +22 -0
  196. package/dist/modes/interactive/components/extension-input.js +2 -0
  197. package/dist/modes/interactive/components/extension-selector.d.ts +25 -0
  198. package/dist/modes/interactive/components/extension-selector.js +2 -0
  199. package/dist/modes/interactive/components/footer.d.ts +27 -0
  200. package/dist/modes/interactive/components/footer.js +1 -0
  201. package/dist/modes/interactive/components/index.d.ts +31 -0
  202. package/dist/modes/interactive/components/index.js +1 -0
  203. package/dist/modes/interactive/components/keybinding-hints.d.ts +12 -0
  204. package/dist/modes/interactive/components/keybinding-hints.js +1 -0
  205. package/dist/modes/interactive/components/login-dialog.d.ts +51 -0
  206. package/dist/modes/interactive/components/login-dialog.js +1 -0
  207. package/dist/modes/interactive/components/model-selector.d.ts +46 -0
  208. package/dist/modes/interactive/components/model-selector.js +2 -0
  209. package/dist/modes/interactive/components/oauth-selector.d.ts +30 -0
  210. package/dist/modes/interactive/components/oauth-selector.js +1 -0
  211. package/dist/modes/interactive/components/scoped-models-selector.d.ts +41 -0
  212. package/dist/modes/interactive/components/scoped-models-selector.js +1 -0
  213. package/dist/modes/interactive/components/session-selector-search.d.ts +22 -0
  214. package/dist/modes/interactive/components/session-selector-search.js +1 -0
  215. package/dist/modes/interactive/components/session-selector.d.ts +95 -0
  216. package/dist/modes/interactive/components/session-selector.js +2 -0
  217. package/dist/modes/interactive/components/settings-selector.d.ts +68 -0
  218. package/dist/modes/interactive/components/settings-selector.js +1 -0
  219. package/dist/modes/interactive/components/show-images-selector.d.ts +9 -0
  220. package/dist/modes/interactive/components/show-images-selector.js +1 -0
  221. package/dist/modes/interactive/components/skill-invocation-message.d.ts +16 -0
  222. package/dist/modes/interactive/components/skill-invocation-message.js +3 -0
  223. package/dist/modes/interactive/components/theme-selector.d.ts +10 -0
  224. package/dist/modes/interactive/components/theme-selector.js +1 -0
  225. package/dist/modes/interactive/components/thinking-selector.d.ts +10 -0
  226. package/dist/modes/interactive/components/thinking-selector.js +1 -0
  227. package/dist/modes/interactive/components/tool-execution.d.ts +62 -0
  228. package/dist/modes/interactive/components/tool-execution.js +4 -0
  229. package/dist/modes/interactive/components/tree-selector.d.ts +88 -0
  230. package/dist/modes/interactive/components/tree-selector.js +1 -0
  231. package/dist/modes/interactive/components/user-message-selector.d.ts +29 -0
  232. package/dist/modes/interactive/components/user-message-selector.js +1 -0
  233. package/dist/modes/interactive/components/user-message.d.ts +9 -0
  234. package/dist/modes/interactive/components/user-message.js +1 -0
  235. package/dist/modes/interactive/components/visual-truncate.d.ts +23 -0
  236. package/dist/modes/interactive/components/visual-truncate.js +1 -0
  237. package/dist/modes/interactive/interactive-mode.d.ts +417 -0
  238. package/dist/modes/interactive/interactive-mode.js +116 -0
  239. package/dist/modes/interactive/theme/dark.json +86 -0
  240. package/dist/modes/interactive/theme/light.json +85 -0
  241. package/dist/modes/interactive/theme/theme-schema.json +335 -0
  242. package/dist/modes/interactive/theme/theme.d.ts +101 -0
  243. package/dist/modes/interactive/theme/theme.js +18 -0
  244. package/dist/modes/print-mode.d.ts +27 -0
  245. package/dist/modes/print-mode.js +4 -0
  246. package/dist/modes/rpc/jsonl.d.ts +16 -0
  247. package/dist/modes/rpc/jsonl.js +3 -0
  248. package/dist/modes/rpc/rpc-client.d.ts +226 -0
  249. package/dist/modes/rpc/rpc-client.js +1 -0
  250. package/dist/modes/rpc/rpc-mode.d.ts +19 -0
  251. package/dist/modes/rpc/rpc-mode.js +1 -0
  252. package/dist/modes/rpc/rpc-types.d.ts +419 -0
  253. package/dist/modes/rpc/rpc-types.js +0 -0
  254. package/dist/package-manager-cli.d.ts +3 -0
  255. package/dist/package-manager-cli.js +49 -0
  256. package/dist/utils/ansi.d.ts +1 -0
  257. package/dist/utils/ansi.js +1 -0
  258. package/dist/utils/auto-update.d.ts +13 -0
  259. package/dist/utils/auto-update.js +1 -0
  260. package/dist/utils/changelog.d.ts +20 -0
  261. package/dist/utils/changelog.js +4 -0
  262. package/dist/utils/child-process.d.ts +14 -0
  263. package/dist/utils/child-process.js +1 -0
  264. package/dist/utils/clipboard-image.d.ts +10 -0
  265. package/dist/utils/clipboard-image.js +1 -0
  266. package/dist/utils/clipboard-native.d.ts +9 -0
  267. package/dist/utils/clipboard-native.js +1 -0
  268. package/dist/utils/clipboard.d.ts +1 -0
  269. package/dist/utils/clipboard.js +1 -0
  270. package/dist/utils/deprecation.d.ts +3 -0
  271. package/dist/utils/deprecation.js +1 -0
  272. package/dist/utils/exif-orientation.d.ts +4 -0
  273. package/dist/utils/exif-orientation.js +1 -0
  274. package/dist/utils/frontmatter.d.ts +7 -0
  275. package/dist/utils/frontmatter.js +4 -0
  276. package/dist/utils/fs-watch.d.ts +4 -0
  277. package/dist/utils/fs-watch.js +1 -0
  278. package/dist/utils/git.d.ts +25 -0
  279. package/dist/utils/git.js +1 -0
  280. package/dist/utils/html.d.ts +6 -0
  281. package/dist/utils/html.js +1 -0
  282. package/dist/utils/image-convert.d.ts +8 -0
  283. package/dist/utils/image-convert.js +1 -0
  284. package/dist/utils/image-resize-core.d.ts +29 -0
  285. package/dist/utils/image-resize-core.js +1 -0
  286. package/dist/utils/image-resize-worker.d.ts +1 -0
  287. package/dist/utils/image-resize-worker.js +1 -0
  288. package/dist/utils/image-resize.d.ts +15 -0
  289. package/dist/utils/image-resize.js +1 -0
  290. package/dist/utils/json.d.ts +2 -0
  291. package/dist/utils/json.js +1 -0
  292. package/dist/utils/koda-user-agent.d.ts +1 -0
  293. package/dist/utils/koda-user-agent.js +1 -0
  294. package/dist/utils/mime.d.ts +2 -0
  295. package/dist/utils/mime.js +1 -0
  296. package/dist/utils/paths.d.ts +30 -0
  297. package/dist/utils/paths.js +1 -0
  298. package/dist/utils/photon.d.ts +20 -0
  299. package/dist/utils/photon.js +1 -0
  300. package/dist/utils/shell.d.ts +29 -0
  301. package/dist/utils/shell.js +8 -0
  302. package/dist/utils/sleep.d.ts +4 -0
  303. package/dist/utils/sleep.js +1 -0
  304. package/dist/utils/syntax-highlight.d.ts +11 -0
  305. package/dist/utils/syntax-highlight.js +2 -0
  306. package/dist/utils/tools-manager.d.ts +2 -0
  307. package/dist/utils/tools-manager.js +1 -0
  308. package/dist/utils/version-check.d.ts +14 -0
  309. package/dist/utils/version-check.js +1 -0
  310. package/dist/utils/windows-self-update.d.ts +2 -0
  311. package/dist/utils/windows-self-update.js +1 -0
  312. package/docs/compaction.md +394 -0
  313. package/docs/custom-provider.md +736 -0
  314. package/docs/development.md +71 -0
  315. package/docs/docs.json +148 -0
  316. package/docs/extensions.md +2626 -0
  317. package/docs/images/doom-extension.png +0 -0
  318. package/docs/images/exy.png +0 -0
  319. package/docs/images/interactive-mode.png +0 -0
  320. package/docs/images/tree-view.png +0 -0
  321. package/docs/index.md +80 -0
  322. package/docs/json.md +82 -0
  323. package/docs/keybindings.md +197 -0
  324. package/docs/models.md +493 -0
  325. package/docs/packages.md +226 -0
  326. package/docs/prompt-templates.md +88 -0
  327. package/docs/providers.md +253 -0
  328. package/docs/quickstart.md +165 -0
  329. package/docs/rpc.md +1408 -0
  330. package/docs/sdk.md +1137 -0
  331. package/docs/session-format.md +412 -0
  332. package/docs/sessions.md +145 -0
  333. package/docs/settings.md +281 -0
  334. package/docs/shell-aliases.md +13 -0
  335. package/docs/skills.md +231 -0
  336. package/docs/terminal-setup.md +114 -0
  337. package/docs/termux.md +127 -0
  338. package/docs/themes.md +295 -0
  339. package/docs/tmux.md +61 -0
  340. package/docs/tui.md +927 -0
  341. package/docs/usage.md +288 -0
  342. package/docs/windows.md +17 -0
  343. package/npm-shrinkwrap.json +1792 -0
  344. package/openadapter/extensions/koda-ask.js +12 -0
  345. package/openadapter/extensions/koda-bg.js +14 -0
  346. package/openadapter/extensions/koda-commands.mjs +15 -0
  347. package/openadapter/extensions/koda-help.js +8 -0
  348. package/openadapter/extensions/koda-memory.js +16 -0
  349. package/openadapter/extensions/koda-status.js +1 -0
  350. package/openadapter/extensions/koda-todo.js +4 -0
  351. package/openadapter/extensions/koda-vision.js +4 -0
  352. package/openadapter/extensions/koda-web.js +7 -0
  353. package/openadapter/setup.mjs +173 -0
  354. package/openadapter/skills/code-review/SKILL.md +22 -0
  355. package/openadapter/skills/debugging/SKILL.md +28 -0
  356. package/openadapter/skills/frontend/SKILL.md +38 -0
  357. package/package.json +108 -0
@@ -0,0 +1,281 @@
1
+ # Settings
2
+
3
+ Pi uses JSON settings files with project settings overriding global settings.
4
+
5
+ | Location | Scope |
6
+ |----------|-------|
7
+ | `~/.pi/agent/settings.json` | Global (all projects) |
8
+ | `.pi/settings.json` | Project (current directory) |
9
+
10
+ Edit directly or use `/settings` for common options.
11
+
12
+ ## All Settings
13
+
14
+ ### Model & Thinking
15
+
16
+ | Setting | Type | Default | Description |
17
+ |---------|------|---------|-------------|
18
+ | `defaultProvider` | string | - | Default provider (e.g., `"anthropic"`, `"openai"`) |
19
+ | `defaultModel` | string | - | Default model ID |
20
+ | `defaultThinkingLevel` | string | - | `"off"`, `"minimal"`, `"low"`, `"medium"`, `"high"`, `"xhigh"` |
21
+ | `hideThinkingBlock` | boolean | `false` | Hide thinking blocks in output |
22
+ | `thinkingBudgets` | object | - | Custom token budgets per thinking level |
23
+
24
+ #### thinkingBudgets
25
+
26
+ ```json
27
+ {
28
+ "thinkingBudgets": {
29
+ "minimal": 1024,
30
+ "low": 4096,
31
+ "medium": 10240,
32
+ "high": 32768
33
+ }
34
+ }
35
+ ```
36
+
37
+ ### UI & Display
38
+
39
+ | Setting | Type | Default | Description |
40
+ |---------|------|---------|-------------|
41
+ | `theme` | string | `"dark"` | Theme name (`"dark"`, `"light"`, or custom) |
42
+ | `quietStartup` | boolean | `false` | Hide startup header |
43
+ | `collapseChangelog` | boolean | `false` | Show condensed changelog after updates |
44
+ | `enableInstallTelemetry` | boolean | `true` | Send an anonymous install/update version ping after first install or changelog-detected updates. This does not control update checks |
45
+ | `doubleEscapeAction` | string | `"tree"` | Action for double-escape: `"tree"`, `"fork"`, or `"none"` |
46
+ | `treeFilterMode` | string | `"default"` | Default filter for `/tree`: `"default"`, `"no-tools"`, `"user-only"`, `"labeled-only"`, `"all"` |
47
+ | `editorPaddingX` | number | `0` | Horizontal padding for input editor (0-3) |
48
+ | `autocompleteMaxVisible` | number | `5` | Max visible items in autocomplete dropdown (3-20) |
49
+ | `showHardwareCursor` | boolean | `false` | Show the terminal cursor while TUI positions it for IME support |
50
+
51
+ ### Telemetry and update checks
52
+
53
+ `enableInstallTelemetry` only controls the anonymous install/update ping to `https://pi.dev/api/report-install`. Opting out of telemetry does not disable update checks; Pi can still fetch `https://pi.dev/api/latest-version` to look for the latest version.
54
+
55
+ Set `PI_SKIP_VERSION_CHECK=1` to disable the Pi version update check. Use `--offline` or `PI_OFFLINE=1` to disable all startup network operations described here, including update checks, package update checks, and install/update telemetry.
56
+
57
+ ### Warnings
58
+
59
+ | Setting | Type | Default | Description |
60
+ |---------|------|---------|-------------|
61
+ | `warnings.anthropicExtraUsage` | boolean | `true` | Show a warning when Anthropic subscription auth may use paid extra usage |
62
+
63
+ ```json
64
+ {
65
+ "warnings": {
66
+ "anthropicExtraUsage": false
67
+ }
68
+ }
69
+ ```
70
+
71
+ ### Compaction
72
+
73
+ | Setting | Type | Default | Description |
74
+ |---------|------|---------|-------------|
75
+ | `compaction.enabled` | boolean | `true` | Enable auto-compaction |
76
+ | `compaction.reserveTokens` | number | `16384` | Tokens reserved for LLM response |
77
+ | `compaction.keepRecentTokens` | number | `20000` | Recent tokens to keep (not summarized) |
78
+
79
+ ```json
80
+ {
81
+ "compaction": {
82
+ "enabled": true,
83
+ "reserveTokens": 16384,
84
+ "keepRecentTokens": 20000
85
+ }
86
+ }
87
+ ```
88
+
89
+ ### Branch Summary
90
+
91
+ | Setting | Type | Default | Description |
92
+ |---------|------|---------|-------------|
93
+ | `branchSummary.reserveTokens` | number | `16384` | Tokens reserved for branch summarization |
94
+ | `branchSummary.skipPrompt` | boolean | `false` | Skip "Summarize branch?" prompt on `/tree` navigation (defaults to no summary) |
95
+
96
+ ### Retry
97
+
98
+ | Setting | Type | Default | Description |
99
+ |---------|------|---------|-------------|
100
+ | `retry.enabled` | boolean | `true` | Enable automatic agent-level retry on transient errors |
101
+ | `retry.maxRetries` | number | `3` | Maximum agent-level retry attempts |
102
+ | `retry.baseDelayMs` | number | `2000` | Base delay for agent-level exponential backoff (2s, 4s, 8s) |
103
+ | `retry.provider.timeoutMs` | number | SDK default | Provider/SDK request timeout in milliseconds |
104
+ | `retry.provider.maxRetries` | number | `0` | Provider/SDK retry attempts |
105
+ | `retry.provider.maxRetryDelayMs` | number | `60000` | Max server-requested delay before failing (60s) |
106
+
107
+ When a provider requests a retry delay longer than `retry.provider.maxRetryDelayMs` (e.g., Google's "quota will reset after 5h"), the request fails immediately with an informative error instead of waiting silently. Set to `0` to disable the cap.
108
+
109
+ Keep `retry.provider.maxRetries` at `0` unless provider-level retries are explicitly needed. Setting it above `0` can make SDK/provider retries handle out-of-usage-limit errors before Pi sees them, which may block the agent until the provider quota resets in some circumstances.
110
+
111
+ ```json
112
+ {
113
+ "retry": {
114
+ "enabled": true,
115
+ "maxRetries": 3,
116
+ "baseDelayMs": 2000,
117
+ "provider": {
118
+ "timeoutMs": 3600000,
119
+ "maxRetries": 0,
120
+ "maxRetryDelayMs": 60000
121
+ }
122
+ }
123
+ }
124
+ ```
125
+
126
+ ### Message Delivery
127
+
128
+ | Setting | Type | Default | Description |
129
+ |---------|------|---------|-------------|
130
+ | `steeringMode` | string | `"one-at-a-time"` | How steering messages are sent: `"all"` or `"one-at-a-time"` |
131
+ | `followUpMode` | string | `"one-at-a-time"` | How follow-up messages are sent: `"all"` or `"one-at-a-time"` |
132
+ | `transport` | string | `"auto"` | Preferred transport for providers that support multiple transports: `"sse"`, `"websocket"`, `"websocket-cached"`, or `"auto"` |
133
+ | `httpIdleTimeoutMs` | number | `300000` | HTTP header/body idle timeout in milliseconds, also used by providers with explicit stream idle timeouts. Set to `0` to disable. |
134
+ | `websocketConnectTimeoutMs` | number | `15000` | WebSocket connect/open handshake timeout in milliseconds for providers that support WebSocket transports. Set to `0` to disable. |
135
+
136
+ ### Terminal & Images
137
+
138
+ | Setting | Type | Default | Description |
139
+ |---------|------|---------|-------------|
140
+ | `terminal.showImages` | boolean | `true` | Show images in terminal (if supported) |
141
+ | `terminal.imageWidthCells` | number | `60` | Preferred inline image width in terminal cells |
142
+ | `terminal.clearOnShrink` | boolean | `false` | Clear empty rows when content shrinks (can cause flicker) |
143
+ | `images.autoResize` | boolean | `true` | Resize images to 2000x2000 max |
144
+ | `images.blockImages` | boolean | `false` | Block all images from being sent to LLM |
145
+
146
+ ### Shell
147
+
148
+ | Setting | Type | Default | Description |
149
+ |---------|------|---------|-------------|
150
+ | `shellPath` | string | - | Custom shell path (e.g., for Cygwin on Windows) |
151
+ | `shellCommandPrefix` | string | - | Prefix for every bash command (e.g., `"shopt -s expand_aliases"`) |
152
+ | `npmCommand` | string[] | - | Command argv used for npm package lookup/install operations (e.g., `["mise", "exec", "node@20", "--", "npm"]`) |
153
+
154
+ ```json
155
+ {
156
+ "npmCommand": ["mise", "exec", "node@20", "--", "npm"]
157
+ }
158
+ ```
159
+
160
+ `npmCommand` is used for all npm package-manager operations, including installs, uninstalls, and dependency installs inside git packages. User-scoped npm packages install under `~/.pi/agent/npm/`; project-scoped npm packages install under `.pi/npm/`. Use argv-style entries exactly as the process should be launched. When `npmCommand` is configured, git package dependency installs use plain `install` to avoid npm-specific flags in wrappers or alternate package managers.
161
+
162
+ ### Sessions
163
+
164
+ | Setting | Type | Default | Description |
165
+ |---------|------|---------|-------------|
166
+ | `sessionDir` | string | - | Directory where session files are stored. Accepts absolute or relative paths, plus `~`. |
167
+
168
+ ```json
169
+ { "sessionDir": ".pi/sessions" }
170
+ ```
171
+
172
+ When multiple sources specify a session directory, precedence is `--session-dir`, `PI_CODING_AGENT_SESSION_DIR`, then `sessionDir` in settings.json.
173
+
174
+ ### Model Cycling
175
+
176
+ | Setting | Type | Default | Description |
177
+ |---------|------|---------|-------------|
178
+ | `enabledModels` | string[] | - | Model patterns for Ctrl+P cycling (same format as `--models` CLI flag) |
179
+
180
+ ```json
181
+ {
182
+ "enabledModels": ["claude-*", "gpt-4o", "gemini-2*"]
183
+ }
184
+ ```
185
+
186
+ ### Markdown
187
+
188
+ | Setting | Type | Default | Description |
189
+ |---------|------|---------|-------------|
190
+ | `markdown.codeBlockIndent` | string | `" "` | Indentation for code blocks |
191
+
192
+ ### Resources
193
+
194
+ These settings define where to load extensions, skills, prompts, and themes from.
195
+
196
+ Paths in `~/.pi/agent/settings.json` resolve relative to `~/.pi/agent`. Paths in `.pi/settings.json` resolve relative to `.pi`. Absolute paths and `~` are supported.
197
+
198
+ | Setting | Type | Default | Description |
199
+ |---------|------|---------|-------------|
200
+ | `packages` | array | `[]` | npm/git packages to load resources from |
201
+ | `extensions` | string[] | `[]` | Local extension file paths or directories |
202
+ | `skills` | string[] | `[]` | Local skill file paths or directories |
203
+ | `prompts` | string[] | `[]` | Local prompt template paths or directories |
204
+ | `themes` | string[] | `[]` | Local theme file paths or directories |
205
+ | `enableSkillCommands` | boolean | `true` | Register skills as `/skill:name` commands |
206
+
207
+ Arrays support glob patterns and exclusions. Use `!pattern` to exclude. Use `+path` to force-include an exact path and `-path` to force-exclude an exact path.
208
+
209
+ #### packages
210
+
211
+ String form loads all resources from a package:
212
+
213
+ ```json
214
+ {
215
+ "packages": ["pi-skills", "@org/my-extension"]
216
+ }
217
+ ```
218
+
219
+ Object form filters which resources to load:
220
+
221
+ ```json
222
+ {
223
+ "packages": [
224
+ {
225
+ "source": "pi-skills",
226
+ "skills": ["brave-search", "transcribe"],
227
+ "extensions": []
228
+ }
229
+ ]
230
+ }
231
+ ```
232
+
233
+ See [packages.md](packages.md) for package management details.
234
+
235
+ ## Example
236
+
237
+ ```json
238
+ {
239
+ "defaultProvider": "anthropic",
240
+ "defaultModel": "claude-sonnet-4-20250514",
241
+ "defaultThinkingLevel": "medium",
242
+ "theme": "dark",
243
+ "compaction": {
244
+ "enabled": true,
245
+ "reserveTokens": 16384,
246
+ "keepRecentTokens": 20000
247
+ },
248
+ "retry": {
249
+ "enabled": true,
250
+ "maxRetries": 3
251
+ },
252
+ "enabledModels": ["claude-*", "gpt-4o"],
253
+ "warnings": {
254
+ "anthropicExtraUsage": true
255
+ },
256
+ "packages": ["pi-skills"]
257
+ }
258
+ ```
259
+
260
+ ## Project Overrides
261
+
262
+ Project settings (`.pi/settings.json`) override global settings. Nested objects are merged:
263
+
264
+ ```json
265
+ // ~/.pi/agent/settings.json (global)
266
+ {
267
+ "theme": "dark",
268
+ "compaction": { "enabled": true, "reserveTokens": 16384 }
269
+ }
270
+
271
+ // .pi/settings.json (project)
272
+ {
273
+ "compaction": { "reserveTokens": 8192 }
274
+ }
275
+
276
+ // Result
277
+ {
278
+ "theme": "dark",
279
+ "compaction": { "enabled": true, "reserveTokens": 8192 }
280
+ }
281
+ ```
@@ -0,0 +1,13 @@
1
+ # Shell Aliases
2
+
3
+ Pi runs bash in non-interactive mode (`bash -c`), which doesn't expand aliases by default.
4
+
5
+ To enable your shell aliases, add to `~/.pi/agent/settings.json`:
6
+
7
+ ```json
8
+ {
9
+ "shellCommandPrefix": "shopt -s expand_aliases\neval \"$(grep '^alias ' ~/.zshrc)\""
10
+ }
11
+ ```
12
+
13
+ Adjust the path (`~/.zshrc`, `~/.bashrc`, etc.) to match your shell config.
package/docs/skills.md ADDED
@@ -0,0 +1,231 @@
1
+ > pi can create skills. Ask it to build one for your use case.
2
+
3
+ # Skills
4
+
5
+ Skills are self-contained capability packages that the agent loads on-demand. A skill provides specialized workflows, setup instructions, helper scripts, and reference documentation for specific tasks.
6
+
7
+ Pi implements the [Agent Skills standard](https://agentskills.io/specification), warning about most violations but remaining lenient. Pi allows skill names to differ from their parent directory even though the standard disallows it; that rule is suboptimal for shared skill directories used across multiple agent harnesses.
8
+
9
+ ## Table of Contents
10
+
11
+ - [Locations](#locations)
12
+ - [How Skills Work](#how-skills-work)
13
+ - [Skill Commands](#skill-commands)
14
+ - [Skill Structure](#skill-structure)
15
+ - [Frontmatter](#frontmatter)
16
+ - [Validation](#validation)
17
+ - [Example](#example)
18
+ - [Skill Repositories](#skill-repositories)
19
+
20
+ ## Locations
21
+
22
+ > **Security:** Skills can instruct the model to perform any action and may include executable code the model invokes. Review skill content before use.
23
+
24
+ Pi loads skills from:
25
+
26
+ - Global:
27
+ - `~/.pi/agent/skills/`
28
+ - `~/.agents/skills/`
29
+ - Project:
30
+ - `.pi/skills/`
31
+ - `.agents/skills/` in `cwd` and ancestor directories (up to git repo root, or filesystem root when not in a repo)
32
+ - Packages: `skills/` directories or `pi.skills` entries in `package.json`
33
+ - Settings: `skills` array with files or directories
34
+ - CLI: `--skill <path>` (repeatable, additive even with `--no-skills`)
35
+
36
+ Discovery rules:
37
+ - In `~/.pi/agent/skills/` and `.pi/skills/`, direct root `.md` files are discovered as individual skills
38
+ - In all skill locations, directories containing `SKILL.md` are discovered recursively
39
+ - In `~/.agents/skills/` and project `.agents/skills/`, root `.md` files are ignored
40
+
41
+ Disable discovery with `--no-skills` (explicit `--skill` paths still load).
42
+
43
+ ### Using Skills from Other Harnesses
44
+
45
+ To use skills from Claude Code or OpenAI Codex, add their directories to settings:
46
+
47
+ ```json
48
+ {
49
+ "skills": [
50
+ "~/.claude/skills",
51
+ "~/.codex/skills"
52
+ ]
53
+ }
54
+ ```
55
+
56
+ For project-level Claude Code skills, add to `.pi/settings.json`:
57
+
58
+ ```json
59
+ {
60
+ "skills": ["../.claude/skills"]
61
+ }
62
+ ```
63
+
64
+ ## How Skills Work
65
+
66
+ 1. At startup, pi scans skill locations and extracts names and descriptions
67
+ 2. The system prompt includes available skills in XML format per the [specification](https://agentskills.io/integrate-skills)
68
+ 3. When a task matches, the agent uses `read` to load the full SKILL.md (models don't always do this; use prompting or `/skill:name` to force it)
69
+ 4. The agent follows the instructions, using relative paths to reference scripts and assets
70
+
71
+ This is progressive disclosure: only descriptions are always in context, full instructions load on-demand.
72
+
73
+ ## Skill Commands
74
+
75
+ Skills register as `/skill:name` commands:
76
+
77
+ ```bash
78
+ /skill:brave-search # Load and execute the skill
79
+ /skill:pdf-tools extract # Load skill with arguments
80
+ ```
81
+
82
+ Arguments after the command are appended to the skill content as `User: <args>`.
83
+
84
+ Toggle skill commands via `/settings` in interactive mode or in `settings.json`:
85
+
86
+ ```json
87
+ {
88
+ "enableSkillCommands": true
89
+ }
90
+ ```
91
+
92
+ ## Skill Structure
93
+
94
+ A skill is a directory with a `SKILL.md` file. Everything else is freeform.
95
+
96
+ ```
97
+ my-skill/
98
+ ├── SKILL.md # Required: frontmatter + instructions
99
+ ├── scripts/ # Helper scripts
100
+ │ └── process.sh
101
+ ├── references/ # Detailed docs loaded on-demand
102
+ │ └── api-reference.md
103
+ └── assets/
104
+ └── template.json
105
+ ```
106
+
107
+ ### SKILL.md Format
108
+
109
+ ````markdown
110
+ ---
111
+ name: my-skill
112
+ description: What this skill does and when to use it. Be specific.
113
+ ---
114
+
115
+ # My Skill
116
+
117
+ ## Setup
118
+
119
+ Run once before first use:
120
+ ```bash
121
+ cd /path/to/skill && npm install
122
+ ```
123
+
124
+ ## Usage
125
+
126
+ ```bash
127
+ ./scripts/process.sh <input>
128
+ ```
129
+ ````
130
+
131
+ Use relative paths from the skill directory:
132
+
133
+ ```markdown
134
+ See [the reference guide](references/REFERENCE.md) for details.
135
+ ```
136
+
137
+ ## Frontmatter
138
+
139
+ Per the [Agent Skills specification](https://agentskills.io/specification#frontmatter-required):
140
+
141
+ | Field | Required | Description |
142
+ |-------|----------|-------------|
143
+ | `name` | Yes | Max 64 chars. Lowercase a-z, 0-9, hyphens. Unlike the standard, Pi does not require this to match the parent directory because that standard requirement is suboptimal for shared skill directories. |
144
+ | `description` | Yes | Max 1024 chars. What the skill does and when to use it. |
145
+ | `license` | No | License name or reference to bundled file. |
146
+ | `compatibility` | No | Max 500 chars. Environment requirements. |
147
+ | `metadata` | No | Arbitrary key-value mapping. |
148
+ | `allowed-tools` | No | Space-delimited list of pre-approved tools (experimental). |
149
+ | `disable-model-invocation` | No | When `true`, skill is hidden from system prompt. Users must use `/skill:name`. |
150
+
151
+ ### Name Rules
152
+
153
+ - 1-64 characters
154
+ - Lowercase letters, numbers, hyphens only
155
+ - No leading/trailing hyphens
156
+ - No consecutive hyphens
157
+ Pi does not require the name to match the parent directory. The Agent Skills standard does, but that requirement is suboptimal for shared skill directories used by multiple tools.
158
+
159
+ Valid: `pdf-processing`, `data-analysis`, `code-review`
160
+ Invalid: `PDF-Processing`, `-pdf`, `pdf--processing`
161
+
162
+ ### Description Best Practices
163
+
164
+ The description determines when the agent loads the skill. Be specific.
165
+
166
+ Good:
167
+ ```yaml
168
+ description: Extracts text and tables from PDF files, fills PDF forms, and merges multiple PDFs. Use when working with PDF documents.
169
+ ```
170
+
171
+ Poor:
172
+ ```yaml
173
+ description: Helps with PDFs.
174
+ ```
175
+
176
+ ## Validation
177
+
178
+ Pi validates skills against the Agent Skills standard. Most issues produce warnings but still load the skill:
179
+
180
+ - Name exceeds 64 characters or contains invalid characters
181
+ - Name starts/ends with hyphen or has consecutive hyphens
182
+ - Description exceeds 1024 characters
183
+
184
+ Unknown frontmatter fields are ignored.
185
+
186
+ **Exception:** Skills with missing description are not loaded.
187
+
188
+ Name collisions (same name from different locations) warn and keep the first skill found.
189
+
190
+ ## Example
191
+
192
+ ```
193
+ brave-search/
194
+ ├── SKILL.md
195
+ ├── search.js
196
+ └── content.js
197
+ ```
198
+
199
+ **SKILL.md:**
200
+ ````markdown
201
+ ---
202
+ name: brave-search
203
+ description: Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content.
204
+ ---
205
+
206
+ # Brave Search
207
+
208
+ ## Setup
209
+
210
+ ```bash
211
+ cd /path/to/brave-search && npm install
212
+ ```
213
+
214
+ ## Search
215
+
216
+ ```bash
217
+ ./search.js "query" # Basic search
218
+ ./search.js "query" --content # Include page content
219
+ ```
220
+
221
+ ## Extract Page Content
222
+
223
+ ```bash
224
+ ./content.js https://example.com
225
+ ```
226
+ ````
227
+
228
+ ## Skill Repositories
229
+
230
+ - [Anthropic Skills](https://github.com/anthropics/skills) - Document processing (docx, pdf, pptx, xlsx), web development
231
+ - [Pi Skills](https://github.com/badlogic/pi-skills) - Web search, browser automation, Google APIs, transcription
@@ -0,0 +1,114 @@
1
+ # Terminal Setup
2
+
3
+ Pi uses the [Kitty keyboard protocol](https://sw.kovidgoyal.net/kitty/keyboard-protocol/) for reliable modifier key detection. Most modern terminals support this protocol, but some require configuration.
4
+
5
+ ## Kitty, iTerm2
6
+
7
+ Work out of the box.
8
+
9
+ ## Apple Terminal
10
+
11
+ Pi enables enhanced key reporting when available. If Terminal.app still sends plain Return for `Shift+Enter`, pi uses a local macOS modifier fallback to treat that Return as `Shift+Enter`.
12
+
13
+ This fallback only works when pi runs on the same Mac as Terminal.app. It cannot detect the local keyboard over remote SSH.
14
+
15
+ ## Ghostty
16
+
17
+ Add to your Ghostty config (`~/Library/Application Support/com.mitchellh.ghostty/config` on macOS, `~/.config/ghostty/config` on Linux):
18
+
19
+ ```
20
+ keybind = alt+backspace=text:\x1b\x7f
21
+ ```
22
+
23
+ Older Claude Code versions may have added this Ghostty mapping:
24
+
25
+ ```
26
+ keybind = shift+enter=text:\n
27
+ ```
28
+
29
+ That mapping sends a raw linefeed byte. Inside pi, that is indistinguishable from `Ctrl+J`, so tmux and pi no longer see a real `shift+enter` key event.
30
+
31
+ If Claude Code 2.x or newer is the only reason you added that mapping, you can remove it, unless you want to use Claude Code in tmux, where it still requires that Ghostty mapping.
32
+
33
+ If you want `Shift+Enter` to keep working in tmux via that remap, add `ctrl+j` to your pi `newLine` keybinding in `~/.pi/agent/keybindings.json`:
34
+
35
+ ```json
36
+ {
37
+ "newLine": ["shift+enter", "ctrl+j"]
38
+ }
39
+ ```
40
+
41
+ ## WezTerm
42
+
43
+ Create `~/.wezterm.lua`:
44
+
45
+ ```lua
46
+ local wezterm = require 'wezterm'
47
+ local config = wezterm.config_builder()
48
+ config.enable_kitty_keyboard = true
49
+ return config
50
+ ```
51
+
52
+ On WSL, WezTerm may require a visible hardware cursor for IME candidate window positioning. If CJK IME candidates do not follow the text cursor, set `PI_HARDWARE_CURSOR=1` before running pi or set `showHardwareCursor` to `true` in settings.
53
+
54
+ ## VS Code (Integrated Terminal)
55
+
56
+ `keybindings.json` locations:
57
+ - macOS: `~/Library/Application Support/Code/User/keybindings.json`
58
+ - Linux: `~/.config/Code/User/keybindings.json`
59
+ - Windows: `%APPDATA%\\Code\\User\\keybindings.json`
60
+
61
+ Add to `keybindings.json` to enable `Shift+Enter` for multi-line input:
62
+
63
+ ```json
64
+ {
65
+ "key": "shift+enter",
66
+ "command": "workbench.action.terminal.sendSequence",
67
+ "args": { "text": "\u001b[13;2u" },
68
+ "when": "terminalFocus"
69
+ }
70
+ ```
71
+
72
+ ## Windows Terminal
73
+
74
+ Add to `settings.json` (Ctrl+Shift+, or Settings → Open JSON file) to forward the modified Enter keys pi uses:
75
+
76
+ ```json
77
+ {
78
+ "actions": [
79
+ {
80
+ "command": { "action": "sendInput", "input": "\u001b[13;2u" },
81
+ "keys": "shift+enter"
82
+ },
83
+ {
84
+ "command": { "action": "sendInput", "input": "\u001b[13;3u" },
85
+ "keys": "alt+enter"
86
+ }
87
+ ]
88
+ }
89
+ ```
90
+
91
+ - `Shift+Enter` inserts a new line.
92
+ - Windows Terminal binds `Alt+Enter` to fullscreen by default. That prevents pi from receiving `Alt+Enter` for follow-up queueing.
93
+ - Remapping `Alt+Enter` to `sendInput` forwards the real key chord to pi instead.
94
+
95
+ If you already have an `actions` array, add the objects to it. If the old fullscreen behavior persists, fully close and reopen Windows Terminal.
96
+
97
+ ## xfce4-terminal, terminator
98
+
99
+ These terminals have limited escape sequence support. Modified Enter keys like `Ctrl+Enter` and `Shift+Enter` cannot be distinguished from plain `Enter`, preventing custom keybindings such as `submit: ["ctrl+enter"]` from working.
100
+
101
+ For the best experience, use a terminal that supports the Kitty keyboard protocol:
102
+ - [Kitty](https://sw.kovidgoyal.net/kitty/)
103
+ - [Ghostty](https://ghostty.org/)
104
+ - [WezTerm](https://wezfurlong.org/wezterm/)
105
+ - [iTerm2](https://iterm2.com/)
106
+ - [Alacritty](https://github.com/alacritty/alacritty) (requires compilation with Kitty protocol support)
107
+
108
+ ## IntelliJ IDEA (Integrated Terminal)
109
+
110
+ The built-in terminal has limited escape sequence support. Shift+Enter cannot be distinguished from Enter in IntelliJ's terminal.
111
+
112
+ If you want the hardware cursor visible, set `PI_HARDWARE_CURSOR=1` before running pi (disabled by default for compatibility).
113
+
114
+ Consider using a dedicated terminal emulator for the best experience.