@leanandmean/coding-agent 0.74.1-scramjet.6

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 (727) hide show
  1. package/CHANGELOG.md +4226 -0
  2. package/README.md +625 -0
  3. package/dist/bun/cli.d.ts +3 -0
  4. package/dist/bun/cli.d.ts.map +1 -0
  5. package/dist/bun/cli.js +9 -0
  6. package/dist/bun/cli.js.map +1 -0
  7. package/dist/bun/register-bedrock.d.ts +2 -0
  8. package/dist/bun/register-bedrock.d.ts.map +1 -0
  9. package/dist/bun/register-bedrock.js +4 -0
  10. package/dist/bun/register-bedrock.js.map +1 -0
  11. package/dist/bun/restore-sandbox-env.d.ts +13 -0
  12. package/dist/bun/restore-sandbox-env.d.ts.map +1 -0
  13. package/dist/bun/restore-sandbox-env.js +32 -0
  14. package/dist/bun/restore-sandbox-env.js.map +1 -0
  15. package/dist/cli/args.d.ts +59 -0
  16. package/dist/cli/args.d.ts.map +1 -0
  17. package/dist/cli/args.js +358 -0
  18. package/dist/cli/args.js.map +1 -0
  19. package/dist/cli/config-selector.d.ts +14 -0
  20. package/dist/cli/config-selector.d.ts.map +1 -0
  21. package/dist/cli/config-selector.js +31 -0
  22. package/dist/cli/config-selector.js.map +1 -0
  23. package/dist/cli/file-processor.d.ts +15 -0
  24. package/dist/cli/file-processor.d.ts.map +1 -0
  25. package/dist/cli/file-processor.js +83 -0
  26. package/dist/cli/file-processor.js.map +1 -0
  27. package/dist/cli/initial-message.d.ts +18 -0
  28. package/dist/cli/initial-message.d.ts.map +1 -0
  29. package/dist/cli/initial-message.js +22 -0
  30. package/dist/cli/initial-message.js.map +1 -0
  31. package/dist/cli/list-models.d.ts +9 -0
  32. package/dist/cli/list-models.d.ts.map +1 -0
  33. package/dist/cli/list-models.js +98 -0
  34. package/dist/cli/list-models.js.map +1 -0
  35. package/dist/cli/session-picker.d.ts +9 -0
  36. package/dist/cli/session-picker.d.ts.map +1 -0
  37. package/dist/cli/session-picker.js +35 -0
  38. package/dist/cli/session-picker.js.map +1 -0
  39. package/dist/cli.d.ts +3 -0
  40. package/dist/cli.d.ts.map +1 -0
  41. package/dist/cli.js +28 -0
  42. package/dist/cli.js.map +1 -0
  43. package/dist/config.d.ts +90 -0
  44. package/dist/config.d.ts.map +1 -0
  45. package/dist/config.js +403 -0
  46. package/dist/config.js.map +1 -0
  47. package/dist/core/agent-session-runtime.d.ts +117 -0
  48. package/dist/core/agent-session-runtime.d.ts.map +1 -0
  49. package/dist/core/agent-session-runtime.js +300 -0
  50. package/dist/core/agent-session-runtime.js.map +1 -0
  51. package/dist/core/agent-session-services.d.ts +87 -0
  52. package/dist/core/agent-session-services.d.ts.map +1 -0
  53. package/dist/core/agent-session-services.js +118 -0
  54. package/dist/core/agent-session-services.js.map +1 -0
  55. package/dist/core/agent-session.d.ts +614 -0
  56. package/dist/core/agent-session.d.ts.map +1 -0
  57. package/dist/core/agent-session.js +2559 -0
  58. package/dist/core/agent-session.js.map +1 -0
  59. package/dist/core/auth-guidance.d.ts +5 -0
  60. package/dist/core/auth-guidance.d.ts.map +1 -0
  61. package/dist/core/auth-guidance.js +21 -0
  62. package/dist/core/auth-guidance.js.map +1 -0
  63. package/dist/core/auth-storage.d.ts +141 -0
  64. package/dist/core/auth-storage.d.ts.map +1 -0
  65. package/dist/core/auth-storage.js +441 -0
  66. package/dist/core/auth-storage.js.map +1 -0
  67. package/dist/core/bash-executor.d.ts +32 -0
  68. package/dist/core/bash-executor.d.ts.map +1 -0
  69. package/dist/core/bash-executor.js +111 -0
  70. package/dist/core/bash-executor.js.map +1 -0
  71. package/dist/core/compaction/branch-summarization.d.ts +88 -0
  72. package/dist/core/compaction/branch-summarization.d.ts.map +1 -0
  73. package/dist/core/compaction/branch-summarization.js +243 -0
  74. package/dist/core/compaction/branch-summarization.js.map +1 -0
  75. package/dist/core/compaction/compaction.d.ts +121 -0
  76. package/dist/core/compaction/compaction.d.ts.map +1 -0
  77. package/dist/core/compaction/compaction.js +615 -0
  78. package/dist/core/compaction/compaction.js.map +1 -0
  79. package/dist/core/compaction/index.d.ts +7 -0
  80. package/dist/core/compaction/index.d.ts.map +1 -0
  81. package/dist/core/compaction/index.js +7 -0
  82. package/dist/core/compaction/index.js.map +1 -0
  83. package/dist/core/compaction/utils.d.ts +38 -0
  84. package/dist/core/compaction/utils.d.ts.map +1 -0
  85. package/dist/core/compaction/utils.js +153 -0
  86. package/dist/core/compaction/utils.js.map +1 -0
  87. package/dist/core/defaults.d.ts +3 -0
  88. package/dist/core/defaults.d.ts.map +1 -0
  89. package/dist/core/defaults.js +2 -0
  90. package/dist/core/defaults.js.map +1 -0
  91. package/dist/core/diagnostics.d.ts +15 -0
  92. package/dist/core/diagnostics.d.ts.map +1 -0
  93. package/dist/core/diagnostics.js +2 -0
  94. package/dist/core/diagnostics.js.map +1 -0
  95. package/dist/core/event-bus.d.ts +9 -0
  96. package/dist/core/event-bus.d.ts.map +1 -0
  97. package/dist/core/event-bus.js +25 -0
  98. package/dist/core/event-bus.js.map +1 -0
  99. package/dist/core/exec.d.ts +29 -0
  100. package/dist/core/exec.d.ts.map +1 -0
  101. package/dist/core/exec.js +75 -0
  102. package/dist/core/exec.js.map +1 -0
  103. package/dist/core/export-html/ansi-to-html.d.ts +22 -0
  104. package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
  105. package/dist/core/export-html/ansi-to-html.js +249 -0
  106. package/dist/core/export-html/ansi-to-html.js.map +1 -0
  107. package/dist/core/export-html/index.d.ts +37 -0
  108. package/dist/core/export-html/index.d.ts.map +1 -0
  109. package/dist/core/export-html/index.js +225 -0
  110. package/dist/core/export-html/index.js.map +1 -0
  111. package/dist/core/export-html/template.css +1066 -0
  112. package/dist/core/export-html/template.html +55 -0
  113. package/dist/core/export-html/template.js +1834 -0
  114. package/dist/core/export-html/tool-renderer.d.ts +34 -0
  115. package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
  116. package/dist/core/export-html/tool-renderer.js +108 -0
  117. package/dist/core/export-html/tool-renderer.js.map +1 -0
  118. package/dist/core/export-html/vendor/highlight.min.js +1213 -0
  119. package/dist/core/export-html/vendor/marked.min.js +6 -0
  120. package/dist/core/extensions/index.d.ts +12 -0
  121. package/dist/core/extensions/index.d.ts.map +1 -0
  122. package/dist/core/extensions/index.js +9 -0
  123. package/dist/core/extensions/index.js.map +1 -0
  124. package/dist/core/extensions/loader.d.ts +24 -0
  125. package/dist/core/extensions/loader.d.ts.map +1 -0
  126. package/dist/core/extensions/loader.js +499 -0
  127. package/dist/core/extensions/loader.js.map +1 -0
  128. package/dist/core/extensions/runner.d.ts +172 -0
  129. package/dist/core/extensions/runner.d.ts.map +1 -0
  130. package/dist/core/extensions/runner.js +927 -0
  131. package/dist/core/extensions/runner.js.map +1 -0
  132. package/dist/core/extensions/types.d.ts +1213 -0
  133. package/dist/core/extensions/types.d.ts.map +1 -0
  134. package/dist/core/extensions/types.js +45 -0
  135. package/dist/core/extensions/types.js.map +1 -0
  136. package/dist/core/extensions/wrapper.d.ts +20 -0
  137. package/dist/core/extensions/wrapper.d.ts.map +1 -0
  138. package/dist/core/extensions/wrapper.js +22 -0
  139. package/dist/core/extensions/wrapper.js.map +1 -0
  140. package/dist/core/footer-data-provider.d.ts +52 -0
  141. package/dist/core/footer-data-provider.d.ts.map +1 -0
  142. package/dist/core/footer-data-provider.js +310 -0
  143. package/dist/core/footer-data-provider.js.map +1 -0
  144. package/dist/core/index.d.ts +12 -0
  145. package/dist/core/index.d.ts.map +1 -0
  146. package/dist/core/index.js +12 -0
  147. package/dist/core/index.js.map +1 -0
  148. package/dist/core/keybindings.d.ts +353 -0
  149. package/dist/core/keybindings.d.ts.map +1 -0
  150. package/dist/core/keybindings.js +295 -0
  151. package/dist/core/keybindings.js.map +1 -0
  152. package/dist/core/messages.d.ts +77 -0
  153. package/dist/core/messages.d.ts.map +1 -0
  154. package/dist/core/messages.js +123 -0
  155. package/dist/core/messages.js.map +1 -0
  156. package/dist/core/model-registry.d.ts +151 -0
  157. package/dist/core/model-registry.d.ts.map +1 -0
  158. package/dist/core/model-registry.js +729 -0
  159. package/dist/core/model-registry.js.map +1 -0
  160. package/dist/core/model-resolver.d.ts +110 -0
  161. package/dist/core/model-resolver.d.ts.map +1 -0
  162. package/dist/core/model-resolver.js +495 -0
  163. package/dist/core/model-resolver.js.map +1 -0
  164. package/dist/core/output-guard.d.ts +6 -0
  165. package/dist/core/output-guard.d.ts.map +1 -0
  166. package/dist/core/output-guard.js +59 -0
  167. package/dist/core/output-guard.js.map +1 -0
  168. package/dist/core/package-manager.d.ts +199 -0
  169. package/dist/core/package-manager.d.ts.map +1 -0
  170. package/dist/core/package-manager.js +1997 -0
  171. package/dist/core/package-manager.js.map +1 -0
  172. package/dist/core/prompt-templates.d.ts +52 -0
  173. package/dist/core/prompt-templates.d.ts.map +1 -0
  174. package/dist/core/prompt-templates.js +252 -0
  175. package/dist/core/prompt-templates.js.map +1 -0
  176. package/dist/core/provider-display-names.d.ts +2 -0
  177. package/dist/core/provider-display-names.d.ts.map +1 -0
  178. package/dist/core/provider-display-names.js +33 -0
  179. package/dist/core/provider-display-names.js.map +1 -0
  180. package/dist/core/resolve-config-value.d.ts +23 -0
  181. package/dist/core/resolve-config-value.d.ts.map +1 -0
  182. package/dist/core/resolve-config-value.js +126 -0
  183. package/dist/core/resolve-config-value.js.map +1 -0
  184. package/dist/core/resource-loader.d.ts +196 -0
  185. package/dist/core/resource-loader.d.ts.map +1 -0
  186. package/dist/core/resource-loader.js +739 -0
  187. package/dist/core/resource-loader.js.map +1 -0
  188. package/dist/core/scramjet-command-parser.d.ts +8 -0
  189. package/dist/core/scramjet-command-parser.d.ts.map +1 -0
  190. package/dist/core/scramjet-command-parser.js +18 -0
  191. package/dist/core/scramjet-command-parser.js.map +1 -0
  192. package/dist/core/sdk.d.ts +114 -0
  193. package/dist/core/sdk.d.ts.map +1 -0
  194. package/dist/core/sdk.js +316 -0
  195. package/dist/core/sdk.js.map +1 -0
  196. package/dist/core/session-cwd.d.ts +19 -0
  197. package/dist/core/session-cwd.d.ts.map +1 -0
  198. package/dist/core/session-cwd.js +38 -0
  199. package/dist/core/session-cwd.js.map +1 -0
  200. package/dist/core/session-manager.d.ts +333 -0
  201. package/dist/core/session-manager.d.ts.map +1 -0
  202. package/dist/core/session-manager.js +1139 -0
  203. package/dist/core/session-manager.js.map +1 -0
  204. package/dist/core/settings-manager.d.ts +261 -0
  205. package/dist/core/settings-manager.d.ts.map +1 -0
  206. package/dist/core/settings-manager.js +782 -0
  207. package/dist/core/settings-manager.js.map +1 -0
  208. package/dist/core/skills.d.ts +60 -0
  209. package/dist/core/skills.d.ts.map +1 -0
  210. package/dist/core/skills.js +401 -0
  211. package/dist/core/skills.js.map +1 -0
  212. package/dist/core/slash-commands.d.ts +14 -0
  213. package/dist/core/slash-commands.d.ts.map +1 -0
  214. package/dist/core/slash-commands.js +25 -0
  215. package/dist/core/slash-commands.js.map +1 -0
  216. package/dist/core/source-info.d.ts +18 -0
  217. package/dist/core/source-info.d.ts.map +1 -0
  218. package/dist/core/source-info.js +19 -0
  219. package/dist/core/source-info.js.map +1 -0
  220. package/dist/core/system-prompt.d.ts +38 -0
  221. package/dist/core/system-prompt.d.ts.map +1 -0
  222. package/dist/core/system-prompt.js +120 -0
  223. package/dist/core/system-prompt.js.map +1 -0
  224. package/dist/core/telemetry.d.ts +3 -0
  225. package/dist/core/telemetry.d.ts.map +1 -0
  226. package/dist/core/telemetry.js +10 -0
  227. package/dist/core/telemetry.js.map +1 -0
  228. package/dist/core/timings.d.ts +8 -0
  229. package/dist/core/timings.d.ts.map +1 -0
  230. package/dist/core/timings.js +31 -0
  231. package/dist/core/timings.js.map +1 -0
  232. package/dist/core/tools/bash.d.ts +68 -0
  233. package/dist/core/tools/bash.d.ts.map +1 -0
  234. package/dist/core/tools/bash.js +335 -0
  235. package/dist/core/tools/bash.js.map +1 -0
  236. package/dist/core/tools/edit-diff.d.ts +85 -0
  237. package/dist/core/tools/edit-diff.d.ts.map +1 -0
  238. package/dist/core/tools/edit-diff.js +338 -0
  239. package/dist/core/tools/edit-diff.js.map +1 -0
  240. package/dist/core/tools/edit.d.ts +49 -0
  241. package/dist/core/tools/edit.d.ts.map +1 -0
  242. package/dist/core/tools/edit.js +324 -0
  243. package/dist/core/tools/edit.js.map +1 -0
  244. package/dist/core/tools/file-mutation-queue.d.ts +6 -0
  245. package/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
  246. package/dist/core/tools/file-mutation-queue.js +37 -0
  247. package/dist/core/tools/file-mutation-queue.js.map +1 -0
  248. package/dist/core/tools/find.d.ts +35 -0
  249. package/dist/core/tools/find.d.ts.map +1 -0
  250. package/dist/core/tools/find.js +298 -0
  251. package/dist/core/tools/find.js.map +1 -0
  252. package/dist/core/tools/grep.d.ts +37 -0
  253. package/dist/core/tools/grep.d.ts.map +1 -0
  254. package/dist/core/tools/grep.js +304 -0
  255. package/dist/core/tools/grep.js.map +1 -0
  256. package/dist/core/tools/index.d.ts +40 -0
  257. package/dist/core/tools/index.d.ts.map +1 -0
  258. package/dist/core/tools/index.js +112 -0
  259. package/dist/core/tools/index.js.map +1 -0
  260. package/dist/core/tools/ls.d.ts +37 -0
  261. package/dist/core/tools/ls.d.ts.map +1 -0
  262. package/dist/core/tools/ls.js +169 -0
  263. package/dist/core/tools/ls.js.map +1 -0
  264. package/dist/core/tools/output-accumulator.d.ts +50 -0
  265. package/dist/core/tools/output-accumulator.d.ts.map +1 -0
  266. package/dist/core/tools/output-accumulator.js +178 -0
  267. package/dist/core/tools/output-accumulator.js.map +1 -0
  268. package/dist/core/tools/path-utils.d.ts +8 -0
  269. package/dist/core/tools/path-utils.d.ts.map +1 -0
  270. package/dist/core/tools/path-utils.js +81 -0
  271. package/dist/core/tools/path-utils.js.map +1 -0
  272. package/dist/core/tools/read.d.ts +35 -0
  273. package/dist/core/tools/read.d.ts.map +1 -0
  274. package/dist/core/tools/read.js +289 -0
  275. package/dist/core/tools/read.js.map +1 -0
  276. package/dist/core/tools/render-utils.d.ts +21 -0
  277. package/dist/core/tools/render-utils.d.ts.map +1 -0
  278. package/dist/core/tools/render-utils.js +49 -0
  279. package/dist/core/tools/render-utils.js.map +1 -0
  280. package/dist/core/tools/tool-definition-wrapper.d.ts +14 -0
  281. package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
  282. package/dist/core/tools/tool-definition-wrapper.js +34 -0
  283. package/dist/core/tools/tool-definition-wrapper.js.map +1 -0
  284. package/dist/core/tools/truncate.d.ts +70 -0
  285. package/dist/core/tools/truncate.d.ts.map +1 -0
  286. package/dist/core/tools/truncate.js +205 -0
  287. package/dist/core/tools/truncate.js.map +1 -0
  288. package/dist/core/tools/write.d.ts +26 -0
  289. package/dist/core/tools/write.d.ts.map +1 -0
  290. package/dist/core/tools/write.js +213 -0
  291. package/dist/core/tools/write.js.map +1 -0
  292. package/dist/index.d.ts +28 -0
  293. package/dist/index.d.ts.map +1 -0
  294. package/dist/index.js +41 -0
  295. package/dist/index.js.map +1 -0
  296. package/dist/main.d.ts +13 -0
  297. package/dist/main.d.ts.map +1 -0
  298. package/dist/main.js +583 -0
  299. package/dist/main.js.map +1 -0
  300. package/dist/migrations.d.ts +33 -0
  301. package/dist/migrations.d.ts.map +1 -0
  302. package/dist/migrations.js +282 -0
  303. package/dist/migrations.js.map +1 -0
  304. package/dist/modes/index.d.ts +9 -0
  305. package/dist/modes/index.d.ts.map +1 -0
  306. package/dist/modes/index.js +8 -0
  307. package/dist/modes/index.js.map +1 -0
  308. package/dist/modes/interactive/assets/clankolas.png +0 -0
  309. package/dist/modes/interactive/components/armin.d.ts +34 -0
  310. package/dist/modes/interactive/components/armin.d.ts.map +1 -0
  311. package/dist/modes/interactive/components/armin.js +333 -0
  312. package/dist/modes/interactive/components/armin.js.map +1 -0
  313. package/dist/modes/interactive/components/assistant-message.d.ts +20 -0
  314. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
  315. package/dist/modes/interactive/components/assistant-message.js +121 -0
  316. package/dist/modes/interactive/components/assistant-message.js.map +1 -0
  317. package/dist/modes/interactive/components/bash-execution.d.ts +34 -0
  318. package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
  319. package/dist/modes/interactive/components/bash-execution.js +175 -0
  320. package/dist/modes/interactive/components/bash-execution.js.map +1 -0
  321. package/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
  322. package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
  323. package/dist/modes/interactive/components/bordered-loader.js +54 -0
  324. package/dist/modes/interactive/components/bordered-loader.js.map +1 -0
  325. package/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
  326. package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
  327. package/dist/modes/interactive/components/branch-summary-message.js +44 -0
  328. package/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
  329. package/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
  330. package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
  331. package/dist/modes/interactive/components/compaction-summary-message.js +45 -0
  332. package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
  333. package/dist/modes/interactive/components/config-selector.d.ts +71 -0
  334. package/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
  335. package/dist/modes/interactive/components/config-selector.js +503 -0
  336. package/dist/modes/interactive/components/config-selector.js.map +1 -0
  337. package/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
  338. package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
  339. package/dist/modes/interactive/components/countdown-timer.js +33 -0
  340. package/dist/modes/interactive/components/countdown-timer.js.map +1 -0
  341. package/dist/modes/interactive/components/custom-editor.d.ts +21 -0
  342. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
  343. package/dist/modes/interactive/components/custom-editor.js +70 -0
  344. package/dist/modes/interactive/components/custom-editor.js.map +1 -0
  345. package/dist/modes/interactive/components/custom-message.d.ts +20 -0
  346. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
  347. package/dist/modes/interactive/components/custom-message.js +79 -0
  348. package/dist/modes/interactive/components/custom-message.js.map +1 -0
  349. package/dist/modes/interactive/components/daxnuts.d.ts +23 -0
  350. package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
  351. package/dist/modes/interactive/components/daxnuts.js +140 -0
  352. package/dist/modes/interactive/components/daxnuts.js.map +1 -0
  353. package/dist/modes/interactive/components/diff.d.ts +12 -0
  354. package/dist/modes/interactive/components/diff.d.ts.map +1 -0
  355. package/dist/modes/interactive/components/diff.js +133 -0
  356. package/dist/modes/interactive/components/diff.js.map +1 -0
  357. package/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
  358. package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
  359. package/dist/modes/interactive/components/dynamic-border.js +21 -0
  360. package/dist/modes/interactive/components/dynamic-border.js.map +1 -0
  361. package/dist/modes/interactive/components/earendil-announcement.d.ts +5 -0
  362. package/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -0
  363. package/dist/modes/interactive/components/earendil-announcement.js +40 -0
  364. package/dist/modes/interactive/components/earendil-announcement.js.map +1 -0
  365. package/dist/modes/interactive/components/extension-editor.d.ts +20 -0
  366. package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
  367. package/dist/modes/interactive/components/extension-editor.js +111 -0
  368. package/dist/modes/interactive/components/extension-editor.js.map +1 -0
  369. package/dist/modes/interactive/components/extension-input.d.ts +23 -0
  370. package/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
  371. package/dist/modes/interactive/components/extension-input.js +61 -0
  372. package/dist/modes/interactive/components/extension-input.js.map +1 -0
  373. package/dist/modes/interactive/components/extension-selector.d.ts +26 -0
  374. package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
  375. package/dist/modes/interactive/components/extension-selector.js +83 -0
  376. package/dist/modes/interactive/components/extension-selector.js.map +1 -0
  377. package/dist/modes/interactive/components/footer.d.ts +27 -0
  378. package/dist/modes/interactive/components/footer.d.ts.map +1 -0
  379. package/dist/modes/interactive/components/footer.js +201 -0
  380. package/dist/modes/interactive/components/footer.js.map +1 -0
  381. package/dist/modes/interactive/components/index.d.ts +32 -0
  382. package/dist/modes/interactive/components/index.d.ts.map +1 -0
  383. package/dist/modes/interactive/components/index.js +33 -0
  384. package/dist/modes/interactive/components/index.js.map +1 -0
  385. package/dist/modes/interactive/components/keybinding-hints.d.ts +13 -0
  386. package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
  387. package/dist/modes/interactive/components/keybinding-hints.js +36 -0
  388. package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
  389. package/dist/modes/interactive/components/login-dialog.d.ts +46 -0
  390. package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
  391. package/dist/modes/interactive/components/login-dialog.js +160 -0
  392. package/dist/modes/interactive/components/login-dialog.js.map +1 -0
  393. package/dist/modes/interactive/components/model-selector.d.ts +47 -0
  394. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
  395. package/dist/modes/interactive/components/model-selector.js +278 -0
  396. package/dist/modes/interactive/components/model-selector.js.map +1 -0
  397. package/dist/modes/interactive/components/oauth-selector.d.ts +31 -0
  398. package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
  399. package/dist/modes/interactive/components/oauth-selector.js +165 -0
  400. package/dist/modes/interactive/components/oauth-selector.js.map +1 -0
  401. package/dist/modes/interactive/components/scoped-models-selector.d.ts +42 -0
  402. package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
  403. package/dist/modes/interactive/components/scoped-models-selector.js +290 -0
  404. package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
  405. package/dist/modes/interactive/components/scramjet-command-message.d.ts +12 -0
  406. package/dist/modes/interactive/components/scramjet-command-message.d.ts.map +1 -0
  407. package/dist/modes/interactive/components/scramjet-command-message.js +49 -0
  408. package/dist/modes/interactive/components/scramjet-command-message.js.map +1 -0
  409. package/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
  410. package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
  411. package/dist/modes/interactive/components/session-selector-search.js +155 -0
  412. package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
  413. package/dist/modes/interactive/components/session-selector.d.ts +96 -0
  414. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
  415. package/dist/modes/interactive/components/session-selector.js +861 -0
  416. package/dist/modes/interactive/components/session-selector.js.map +1 -0
  417. package/dist/modes/interactive/components/settings-selector.d.ts +67 -0
  418. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
  419. package/dist/modes/interactive/components/settings-selector.js +375 -0
  420. package/dist/modes/interactive/components/settings-selector.js.map +1 -0
  421. package/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
  422. package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
  423. package/dist/modes/interactive/components/show-images-selector.js +39 -0
  424. package/dist/modes/interactive/components/show-images-selector.js.map +1 -0
  425. package/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
  426. package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
  427. package/dist/modes/interactive/components/skill-invocation-message.js +47 -0
  428. package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
  429. package/dist/modes/interactive/components/theme-selector.d.ts +11 -0
  430. package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
  431. package/dist/modes/interactive/components/theme-selector.js +50 -0
  432. package/dist/modes/interactive/components/theme-selector.js.map +1 -0
  433. package/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
  434. package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
  435. package/dist/modes/interactive/components/thinking-selector.js +51 -0
  436. package/dist/modes/interactive/components/thinking-selector.js.map +1 -0
  437. package/dist/modes/interactive/components/tool-execution.d.ts +63 -0
  438. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
  439. package/dist/modes/interactive/components/tool-execution.js +295 -0
  440. package/dist/modes/interactive/components/tool-execution.js.map +1 -0
  441. package/dist/modes/interactive/components/tree-selector.d.ts +89 -0
  442. package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
  443. package/dist/modes/interactive/components/tree-selector.js +1093 -0
  444. package/dist/modes/interactive/components/tree-selector.js.map +1 -0
  445. package/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
  446. package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
  447. package/dist/modes/interactive/components/user-message-selector.js +114 -0
  448. package/dist/modes/interactive/components/user-message-selector.js.map +1 -0
  449. package/dist/modes/interactive/components/user-message.d.ts +10 -0
  450. package/dist/modes/interactive/components/user-message.d.ts.map +1 -0
  451. package/dist/modes/interactive/components/user-message.js +29 -0
  452. package/dist/modes/interactive/components/user-message.js.map +1 -0
  453. package/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
  454. package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
  455. package/dist/modes/interactive/components/visual-truncate.js +33 -0
  456. package/dist/modes/interactive/components/visual-truncate.js.map +1 -0
  457. package/dist/modes/interactive/interactive-mode.d.ts +367 -0
  458. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
  459. package/dist/modes/interactive/interactive-mode.js +4527 -0
  460. package/dist/modes/interactive/interactive-mode.js.map +1 -0
  461. package/dist/modes/interactive/theme/dark.json +85 -0
  462. package/dist/modes/interactive/theme/light.json +84 -0
  463. package/dist/modes/interactive/theme/theme-schema.json +335 -0
  464. package/dist/modes/interactive/theme/theme.d.ts +81 -0
  465. package/dist/modes/interactive/theme/theme.d.ts.map +1 -0
  466. package/dist/modes/interactive/theme/theme.js +973 -0
  467. package/dist/modes/interactive/theme/theme.js.map +1 -0
  468. package/dist/modes/print-mode.d.ts +28 -0
  469. package/dist/modes/print-mode.d.ts.map +1 -0
  470. package/dist/modes/print-mode.js +131 -0
  471. package/dist/modes/print-mode.js.map +1 -0
  472. package/dist/modes/rpc/jsonl.d.ts +17 -0
  473. package/dist/modes/rpc/jsonl.d.ts.map +1 -0
  474. package/dist/modes/rpc/jsonl.js +49 -0
  475. package/dist/modes/rpc/jsonl.js.map +1 -0
  476. package/dist/modes/rpc/rpc-client.d.ts +224 -0
  477. package/dist/modes/rpc/rpc-client.d.ts.map +1 -0
  478. package/dist/modes/rpc/rpc-client.js +410 -0
  479. package/dist/modes/rpc/rpc-client.js.map +1 -0
  480. package/dist/modes/rpc/rpc-mode.d.ts +20 -0
  481. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
  482. package/dist/modes/rpc/rpc-mode.js +601 -0
  483. package/dist/modes/rpc/rpc-mode.js.map +1 -0
  484. package/dist/modes/rpc/rpc-types.d.ts +419 -0
  485. package/dist/modes/rpc/rpc-types.d.ts.map +1 -0
  486. package/dist/modes/rpc/rpc-types.js +8 -0
  487. package/dist/modes/rpc/rpc-types.js.map +1 -0
  488. package/dist/package-manager-cli.d.ts +4 -0
  489. package/dist/package-manager-cli.d.ts.map +1 -0
  490. package/dist/package-manager-cli.js +460 -0
  491. package/dist/package-manager-cli.js.map +1 -0
  492. package/dist/utils/ansi.d.ts +2 -0
  493. package/dist/utils/ansi.d.ts.map +1 -0
  494. package/dist/utils/ansi.js +52 -0
  495. package/dist/utils/ansi.js.map +1 -0
  496. package/dist/utils/changelog.d.ts +21 -0
  497. package/dist/utils/changelog.d.ts.map +1 -0
  498. package/dist/utils/changelog.js +87 -0
  499. package/dist/utils/changelog.js.map +1 -0
  500. package/dist/utils/child-process.d.ts +12 -0
  501. package/dist/utils/child-process.d.ts.map +1 -0
  502. package/dist/utils/child-process.js +86 -0
  503. package/dist/utils/child-process.js.map +1 -0
  504. package/dist/utils/clipboard-image.d.ts +11 -0
  505. package/dist/utils/clipboard-image.d.ts.map +1 -0
  506. package/dist/utils/clipboard-image.js +245 -0
  507. package/dist/utils/clipboard-image.js.map +1 -0
  508. package/dist/utils/clipboard-native.d.ts +8 -0
  509. package/dist/utils/clipboard-native.d.ts.map +1 -0
  510. package/dist/utils/clipboard-native.js +14 -0
  511. package/dist/utils/clipboard-native.js.map +1 -0
  512. package/dist/utils/clipboard.d.ts +2 -0
  513. package/dist/utils/clipboard.d.ts.map +1 -0
  514. package/dist/utils/clipboard.js +117 -0
  515. package/dist/utils/clipboard.js.map +1 -0
  516. package/dist/utils/exif-orientation.d.ts +5 -0
  517. package/dist/utils/exif-orientation.d.ts.map +1 -0
  518. package/dist/utils/exif-orientation.js +158 -0
  519. package/dist/utils/exif-orientation.js.map +1 -0
  520. package/dist/utils/frontmatter.d.ts +8 -0
  521. package/dist/utils/frontmatter.d.ts.map +1 -0
  522. package/dist/utils/frontmatter.js +26 -0
  523. package/dist/utils/frontmatter.js.map +1 -0
  524. package/dist/utils/fs-watch.d.ts +5 -0
  525. package/dist/utils/fs-watch.d.ts.map +1 -0
  526. package/dist/utils/fs-watch.js +25 -0
  527. package/dist/utils/fs-watch.js.map +1 -0
  528. package/dist/utils/git.d.ts +26 -0
  529. package/dist/utils/git.d.ts.map +1 -0
  530. package/dist/utils/git.js +163 -0
  531. package/dist/utils/git.js.map +1 -0
  532. package/dist/utils/html.d.ts +7 -0
  533. package/dist/utils/html.d.ts.map +1 -0
  534. package/dist/utils/html.js +40 -0
  535. package/dist/utils/html.js.map +1 -0
  536. package/dist/utils/image-convert.d.ts +9 -0
  537. package/dist/utils/image-convert.d.ts.map +1 -0
  538. package/dist/utils/image-convert.js +39 -0
  539. package/dist/utils/image-convert.js.map +1 -0
  540. package/dist/utils/image-resize.d.ts +36 -0
  541. package/dist/utils/image-resize.d.ts.map +1 -0
  542. package/dist/utils/image-resize.js +137 -0
  543. package/dist/utils/image-resize.js.map +1 -0
  544. package/dist/utils/mime.d.ts +3 -0
  545. package/dist/utils/mime.d.ts.map +1 -0
  546. package/dist/utils/mime.js +69 -0
  547. package/dist/utils/mime.js.map +1 -0
  548. package/dist/utils/paths.d.ts +16 -0
  549. package/dist/utils/paths.d.ts.map +1 -0
  550. package/dist/utils/paths.js +50 -0
  551. package/dist/utils/paths.js.map +1 -0
  552. package/dist/utils/photon.d.ts +21 -0
  553. package/dist/utils/photon.d.ts.map +1 -0
  554. package/dist/utils/photon.js +121 -0
  555. package/dist/utils/photon.js.map +1 -0
  556. package/dist/utils/shell.d.ts +30 -0
  557. package/dist/utils/shell.d.ts.map +1 -0
  558. package/dist/utils/shell.js +190 -0
  559. package/dist/utils/shell.js.map +1 -0
  560. package/dist/utils/sleep.d.ts +5 -0
  561. package/dist/utils/sleep.d.ts.map +1 -0
  562. package/dist/utils/sleep.js +17 -0
  563. package/dist/utils/sleep.js.map +1 -0
  564. package/dist/utils/syntax-highlight.d.ts +12 -0
  565. package/dist/utils/syntax-highlight.d.ts.map +1 -0
  566. package/dist/utils/syntax-highlight.js +118 -0
  567. package/dist/utils/syntax-highlight.js.map +1 -0
  568. package/dist/utils/tools-manager.d.ts +3 -0
  569. package/dist/utils/tools-manager.d.ts.map +1 -0
  570. package/dist/utils/tools-manager.js +329 -0
  571. package/dist/utils/tools-manager.js.map +1 -0
  572. package/dist/utils/version-check.d.ts +9 -0
  573. package/dist/utils/version-check.d.ts.map +1 -0
  574. package/dist/utils/version-check.js +45 -0
  575. package/dist/utils/version-check.js.map +1 -0
  576. package/docs/compaction.md +394 -0
  577. package/docs/custom-provider.md +705 -0
  578. package/docs/development.md +71 -0
  579. package/docs/docs.json +148 -0
  580. package/docs/extensions.md +2636 -0
  581. package/docs/images/doom-extension.png +0 -0
  582. package/docs/images/exy.png +0 -0
  583. package/docs/images/interactive-mode.png +0 -0
  584. package/docs/images/tree-view.png +0 -0
  585. package/docs/index.md +64 -0
  586. package/docs/json.md +82 -0
  587. package/docs/keybindings.md +197 -0
  588. package/docs/models.md +474 -0
  589. package/docs/packages.md +223 -0
  590. package/docs/prompt-templates.md +88 -0
  591. package/docs/providers.md +243 -0
  592. package/docs/quickstart.md +142 -0
  593. package/docs/rpc.md +1407 -0
  594. package/docs/sdk.md +1163 -0
  595. package/docs/session-format.md +412 -0
  596. package/docs/sessions.md +137 -0
  597. package/docs/settings.md +279 -0
  598. package/docs/shell-aliases.md +13 -0
  599. package/docs/skills.md +231 -0
  600. package/docs/terminal-setup.md +106 -0
  601. package/docs/termux.md +127 -0
  602. package/docs/themes.md +295 -0
  603. package/docs/tmux.md +61 -0
  604. package/docs/tui.md +918 -0
  605. package/docs/usage.md +279 -0
  606. package/docs/windows.md +17 -0
  607. package/examples/README.md +25 -0
  608. package/examples/extensions/README.md +208 -0
  609. package/examples/extensions/auto-commit-on-exit.ts +49 -0
  610. package/examples/extensions/bash-spawn-hook.ts +30 -0
  611. package/examples/extensions/bookmark.ts +50 -0
  612. package/examples/extensions/border-status-editor.ts +150 -0
  613. package/examples/extensions/built-in-tool-renderer.ts +249 -0
  614. package/examples/extensions/claude-rules.ts +86 -0
  615. package/examples/extensions/commands.ts +72 -0
  616. package/examples/extensions/confirm-destructive.ts +59 -0
  617. package/examples/extensions/custom-compaction.ts +127 -0
  618. package/examples/extensions/custom-footer.ts +64 -0
  619. package/examples/extensions/custom-header.ts +73 -0
  620. package/examples/extensions/custom-provider-anthropic/index.ts +606 -0
  621. package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
  622. package/examples/extensions/custom-provider-anthropic/package.json +19 -0
  623. package/examples/extensions/custom-provider-gitlab-duo/index.ts +349 -0
  624. package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
  625. package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
  626. package/examples/extensions/dirty-repo-guard.ts +56 -0
  627. package/examples/extensions/doom-overlay/README.md +46 -0
  628. package/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
  629. package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
  630. package/examples/extensions/doom-overlay/doom/build.sh +152 -0
  631. package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
  632. package/examples/extensions/doom-overlay/doom-component.ts +132 -0
  633. package/examples/extensions/doom-overlay/doom-engine.ts +173 -0
  634. package/examples/extensions/doom-overlay/doom-keys.ts +104 -0
  635. package/examples/extensions/doom-overlay/index.ts +74 -0
  636. package/examples/extensions/doom-overlay/wad-finder.ts +51 -0
  637. package/examples/extensions/dynamic-resources/SKILL.md +8 -0
  638. package/examples/extensions/dynamic-resources/dynamic.json +79 -0
  639. package/examples/extensions/dynamic-resources/dynamic.md +5 -0
  640. package/examples/extensions/dynamic-resources/index.ts +15 -0
  641. package/examples/extensions/dynamic-tools.ts +74 -0
  642. package/examples/extensions/event-bus.ts +43 -0
  643. package/examples/extensions/file-trigger.ts +41 -0
  644. package/examples/extensions/git-checkpoint.ts +53 -0
  645. package/examples/extensions/github-issue-autocomplete.ts +185 -0
  646. package/examples/extensions/handoff.ts +191 -0
  647. package/examples/extensions/hello.ts +26 -0
  648. package/examples/extensions/hidden-thinking-label.ts +53 -0
  649. package/examples/extensions/inline-bash.ts +94 -0
  650. package/examples/extensions/input-transform.ts +43 -0
  651. package/examples/extensions/interactive-shell.ts +196 -0
  652. package/examples/extensions/mac-system-theme.ts +47 -0
  653. package/examples/extensions/message-renderer.ts +59 -0
  654. package/examples/extensions/minimal-mode.ts +426 -0
  655. package/examples/extensions/modal-editor.ts +85 -0
  656. package/examples/extensions/model-status.ts +31 -0
  657. package/examples/extensions/notify.ts +55 -0
  658. package/examples/extensions/overlay-qa-tests.ts +1348 -0
  659. package/examples/extensions/overlay-test.ts +150 -0
  660. package/examples/extensions/permission-gate.ts +34 -0
  661. package/examples/extensions/pirate.ts +47 -0
  662. package/examples/extensions/plan-mode/README.md +65 -0
  663. package/examples/extensions/plan-mode/index.ts +340 -0
  664. package/examples/extensions/plan-mode/utils.ts +168 -0
  665. package/examples/extensions/preset.ts +436 -0
  666. package/examples/extensions/prompt-customizer.ts +97 -0
  667. package/examples/extensions/protected-paths.ts +30 -0
  668. package/examples/extensions/provider-payload.ts +18 -0
  669. package/examples/extensions/qna.ts +122 -0
  670. package/examples/extensions/question.ts +264 -0
  671. package/examples/extensions/questionnaire.ts +427 -0
  672. package/examples/extensions/rainbow-editor.ts +88 -0
  673. package/examples/extensions/reload-runtime.ts +37 -0
  674. package/examples/extensions/rpc-demo.ts +118 -0
  675. package/examples/extensions/sandbox/index.ts +321 -0
  676. package/examples/extensions/sandbox/package-lock.json +92 -0
  677. package/examples/extensions/sandbox/package.json +19 -0
  678. package/examples/extensions/send-user-message.ts +97 -0
  679. package/examples/extensions/session-name.ts +27 -0
  680. package/examples/extensions/shutdown-command.ts +63 -0
  681. package/examples/extensions/snake.ts +343 -0
  682. package/examples/extensions/space-invaders.ts +560 -0
  683. package/examples/extensions/ssh.ts +220 -0
  684. package/examples/extensions/status-line.ts +32 -0
  685. package/examples/extensions/structured-output.ts +65 -0
  686. package/examples/extensions/subagent/README.md +174 -0
  687. package/examples/extensions/subagent/agents/planner.md +37 -0
  688. package/examples/extensions/subagent/agents/reviewer.md +35 -0
  689. package/examples/extensions/subagent/agents/scout.md +50 -0
  690. package/examples/extensions/subagent/agents/worker.md +24 -0
  691. package/examples/extensions/subagent/agents.ts +126 -0
  692. package/examples/extensions/subagent/index.ts +986 -0
  693. package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
  694. package/examples/extensions/subagent/prompts/implement.md +10 -0
  695. package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
  696. package/examples/extensions/summarize.ts +206 -0
  697. package/examples/extensions/system-prompt-header.ts +17 -0
  698. package/examples/extensions/tic-tac-toe.ts +1008 -0
  699. package/examples/extensions/timed-confirm.ts +70 -0
  700. package/examples/extensions/titlebar-spinner.ts +58 -0
  701. package/examples/extensions/todo.ts +297 -0
  702. package/examples/extensions/tool-override.ts +144 -0
  703. package/examples/extensions/tools.ts +141 -0
  704. package/examples/extensions/trigger-compact.ts +50 -0
  705. package/examples/extensions/truncated-tool.ts +195 -0
  706. package/examples/extensions/widget-placement.ts +9 -0
  707. package/examples/extensions/with-deps/index.ts +32 -0
  708. package/examples/extensions/with-deps/package-lock.json +31 -0
  709. package/examples/extensions/with-deps/package.json +22 -0
  710. package/examples/extensions/working-indicator.ts +123 -0
  711. package/examples/extensions/working-message-test.ts +25 -0
  712. package/examples/rpc-extension-ui.ts +632 -0
  713. package/examples/sdk/01-minimal.ts +26 -0
  714. package/examples/sdk/02-custom-model.ts +53 -0
  715. package/examples/sdk/03-custom-prompt.ts +70 -0
  716. package/examples/sdk/04-skills.ts +55 -0
  717. package/examples/sdk/05-tools.ts +48 -0
  718. package/examples/sdk/06-extensions.ts +94 -0
  719. package/examples/sdk/07-context-files.ts +42 -0
  720. package/examples/sdk/08-prompt-templates.ts +51 -0
  721. package/examples/sdk/09-api-keys-and-oauth.ts +52 -0
  722. package/examples/sdk/10-settings.ts +53 -0
  723. package/examples/sdk/11-sessions.ts +52 -0
  724. package/examples/sdk/12-full-control.ts +77 -0
  725. package/examples/sdk/13-session-runtime.ts +67 -0
  726. package/examples/sdk/README.md +147 -0
  727. package/package.json +60 -0
package/README.md ADDED
@@ -0,0 +1,625 @@
1
+ <p align="center">
2
+ <h1 align="center">Scramjet</h1>
3
+ <p align="center">A minimal terminal coding harness</p>
4
+ </p>
5
+ <p align="center">
6
+ <a href="https://github.com/LeanAndMean/scramjet"><img alt="GitHub" src="https://img.shields.io/badge/github-LeanAndMean%2Fscramjet-181717?style=flat-square&logo=github" /></a>
7
+ <a href="https://www.npmjs.com/package/@leanandmean/scramjet"><img alt="npm" src="https://img.shields.io/npm/v/@leanandmean/scramjet?style=flat-square" /></a>
8
+ </p>
9
+
10
+ > This is the `@leanandmean/coding-agent` runtime package. Most users should install [`@leanandmean/scramjet`](https://www.npmjs.com/package/@leanandmean/scramjet) instead.
11
+
12
+ ---
13
+
14
+ Scramjet is a minimal terminal coding harness. Adapt scramjet to your workflows, not the other way around, without having to fork and modify internals. Extend it with TypeScript [Extensions](#extensions), [Skills](#skills), [Prompt Templates](#prompt-templates), and [Themes](#themes). Put your extensions, skills, prompt templates, and themes in [Scramjet Packages](#scramjet-packages) and share them with others via npm or git.
15
+
16
+ Scramjet ships with powerful defaults but skips features like sub agents and plan mode. Instead, you can ask scramjet to build what you want or install a third party package that matches your workflow.
17
+
18
+ Scramjet runs in four modes: interactive, print or JSON, RPC for process integration, and an SDK for embedding in your own apps.
19
+
20
+ ## Table of Contents
21
+
22
+ - [Quick Start](#quick-start)
23
+ - [Providers & Models](#providers--models)
24
+ - [Interactive Mode](#interactive-mode)
25
+ - [Editor](#editor)
26
+ - [Commands](#commands)
27
+ - [Keyboard Shortcuts](#keyboard-shortcuts)
28
+ - [Message Queue](#message-queue)
29
+ - [Sessions](#sessions)
30
+ - [Branching](#branching)
31
+ - [Compaction](#compaction)
32
+ - [Settings](#settings)
33
+ - [Context Files](#context-files)
34
+ - [Customization](#customization)
35
+ - [Prompt Templates](#prompt-templates)
36
+ - [Skills](#skills)
37
+ - [Extensions](#extensions)
38
+ - [Themes](#themes)
39
+ - [Scramjet Packages](#scramjet-packages)
40
+ - [Programmatic Usage](#programmatic-usage)
41
+ - [Philosophy](#philosophy)
42
+ - [CLI Reference](#cli-reference)
43
+
44
+ ---
45
+
46
+ ## Quick Start
47
+
48
+ ```bash
49
+ npm install -g @leanandmean/scramjet
50
+ ```
51
+
52
+ Authenticate with an API key:
53
+
54
+ ```bash
55
+ export ANTHROPIC_API_KEY=sk-ant-...
56
+ scramjet
57
+ ```
58
+
59
+ Or use your existing subscription:
60
+
61
+ ```bash
62
+ scramjet
63
+ /login # Then select provider
64
+ ```
65
+
66
+ Then just talk to scramjet. By default, scramjet gives the model four tools: `read`, `write`, `edit`, and `bash`. The model uses these to fulfill your requests. Add capabilities via [skills](#skills), [prompt templates](#prompt-templates), [extensions](#extensions), or [scramjet packages](#scramjet-packages).
67
+
68
+ **Platform notes:** [Windows](docs/windows.md) | [Termux (Android)](docs/termux.md) | [tmux](docs/tmux.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)
69
+
70
+ ---
71
+
72
+ ## Providers & Models
73
+
74
+ For each built-in provider, scramjet maintains a list of tool-capable models, updated with every release. Authenticate via subscription (`/login`) or API key, then select any model from that provider via `/model` (or Ctrl+L).
75
+
76
+ **Subscriptions:**
77
+ - Anthropic Claude Pro/Max
78
+ - OpenAI ChatGPT Plus/Pro (Codex)
79
+ - GitHub Copilot
80
+
81
+ **API keys:**
82
+ - Anthropic
83
+ - OpenAI
84
+ - Azure OpenAI
85
+ - DeepSeek
86
+ - Google Gemini
87
+ - Google Vertex
88
+ - Amazon Bedrock
89
+ - Mistral
90
+ - Groq
91
+ - Cerebras
92
+ - Cloudflare AI Gateway
93
+ - Cloudflare Workers AI
94
+ - xAI
95
+ - OpenRouter
96
+ - Vercel AI Gateway
97
+ - ZAI
98
+ - OpenCode Zen
99
+ - OpenCode Go
100
+ - Hugging Face
101
+ - Fireworks
102
+ - Together AI
103
+ - Kimi For Coding
104
+ - MiniMax
105
+ - Xiaomi MiMo
106
+ - Xiaomi MiMo Token Plan (China)
107
+ - Xiaomi MiMo Token Plan (Amsterdam)
108
+ - Xiaomi MiMo Token Plan (Singapore)
109
+
110
+ See [docs/providers.md](docs/providers.md) for detailed setup instructions.
111
+
112
+ **Custom providers & models:** Add providers via `~/.scramjet/agent/models.json` if they speak a supported API (OpenAI, Anthropic, Google). For custom APIs or OAuth, use extensions. See [docs/models.md](docs/models.md) and [docs/custom-provider.md](docs/custom-provider.md).
113
+
114
+ ---
115
+
116
+ ## Interactive Mode
117
+
118
+ <p align="center"><img src="docs/images/interactive-mode.png" alt="Interactive Mode" width="600"></p>
119
+
120
+ The interface from top to bottom:
121
+
122
+ - **Startup header** - Shows shortcuts (`/hotkeys` for all), loaded AGENTS.md files, prompt templates, skills, and extensions
123
+ - **Messages** - Your messages, assistant responses, tool calls and results, notifications, errors, and extension UI
124
+ - **Editor** - Where you type; border color indicates thinking level
125
+ - **Footer** - Working directory, session name, total token/cache usage, cost, context usage, current model
126
+
127
+ The editor can be temporarily replaced by other UI, like built-in `/settings` or custom UI from extensions (e.g., a Q&A tool that lets the user answer model questions in a structured format). [Extensions](#extensions) can also replace the editor, add widgets above/below it, a status line, custom footer, or overlays.
128
+
129
+ ### Editor
130
+
131
+ | Feature | How |
132
+ |---------|-----|
133
+ | File reference | Type `@` to fuzzy-search project files |
134
+ | Path completion | Tab to complete paths |
135
+ | Multi-line | Shift+Enter (or Ctrl+Enter on Windows Terminal) |
136
+ | Images | Ctrl+V to paste (Alt+V on Windows), or drag onto terminal |
137
+ | Bash commands | `!command` runs and sends output to LLM, `!!command` runs without sending |
138
+
139
+ Standard editing keybindings for delete word, undo, etc. See [docs/keybindings.md](docs/keybindings.md).
140
+
141
+ ### Commands
142
+
143
+ Type `/` in the editor to trigger commands. [Extensions](#extensions) can register custom commands, [skills](#skills) are available as `/skill:name`, and [prompt templates](#prompt-templates) expand via `/templatename`.
144
+
145
+ | Command | Description |
146
+ |---------|-------------|
147
+ | `/login`, `/logout` | OAuth authentication |
148
+ | `/model` | Switch models |
149
+ | `/scoped-models` | Enable/disable models for Ctrl+P cycling |
150
+ | `/settings` | Thinking level, theme, message delivery, transport |
151
+ | `/resume` | Pick from previous sessions |
152
+ | `/new` | Start a new session |
153
+ | `/name <name>` | Set session display name |
154
+ | `/session` | Show session info (file, ID, messages, tokens, cost) |
155
+ | `/tree` | Jump to any point in the session and continue from there |
156
+ | `/fork` | Create a new session from a previous user message |
157
+ | `/clone` | Duplicate the current active branch into a new session |
158
+ | `/compact [prompt]` | Manually compact context, optional custom instructions |
159
+ | `/copy` | Copy last assistant message to clipboard |
160
+ | `/export [file]` | Export session to HTML file |
161
+ | `/share` | Upload as private GitHub gist with shareable HTML link |
162
+ | `/reload` | Reload keybindings, extensions, skills, prompts, and context files (themes hot-reload automatically) |
163
+ | `/hotkeys` | Show all keyboard shortcuts |
164
+ | `/changelog` | Display version history |
165
+ | `/quit` | Quit scramjet |
166
+
167
+ ### Keyboard Shortcuts
168
+
169
+ See `/hotkeys` for the full list. Customize via `~/.scramjet/agent/keybindings.json`. See [docs/keybindings.md](docs/keybindings.md).
170
+
171
+ **Commonly used:**
172
+
173
+ | Key | Action |
174
+ |-----|--------|
175
+ | Ctrl+C | Clear editor |
176
+ | Ctrl+C twice | Quit |
177
+ | Escape | Cancel/abort |
178
+ | Escape twice | Open `/tree` |
179
+ | Ctrl+L | Open model selector |
180
+ | Ctrl+P / Shift+Ctrl+P | Cycle scoped models forward/backward |
181
+ | Shift+Tab | Cycle thinking level |
182
+ | Ctrl+O | Collapse/expand tool output |
183
+ | Ctrl+T | Collapse/expand thinking blocks |
184
+
185
+ ### Message Queue
186
+
187
+ Submit messages while the agent is working:
188
+
189
+ - **Enter** queues a *steering* message, delivered after the current assistant turn finishes executing its tool calls
190
+ - **Alt+Enter** queues a *follow-up* message, delivered only after the agent finishes all work
191
+ - **Escape** aborts and restores queued messages to editor
192
+ - **Alt+Up** retrieves queued messages back to editor
193
+
194
+ On Windows Terminal, `Alt+Enter` is fullscreen by default. Remap it in [docs/terminal-setup.md](docs/terminal-setup.md) so scramjet can receive the follow-up shortcut.
195
+
196
+ Configure delivery in [settings](docs/settings.md): `steeringMode` and `followUpMode` can be `"one-at-a-time"` (default, waits for response) or `"all"` (delivers all queued at once). `transport` selects provider transport preference (`"sse"`, `"websocket"`, or `"auto"`) for providers that support multiple transports.
197
+
198
+ ---
199
+
200
+ ## Sessions
201
+
202
+ Sessions are stored as JSONL files with a tree structure. Each entry has an `id` and `parentId`, enabling in-place branching without creating new files. See [docs/session-format.md](docs/session-format.md) for file format.
203
+
204
+ ### Management
205
+
206
+ Sessions auto-save to `~/.scramjet/agent/sessions/` organized by working directory.
207
+
208
+ ```bash
209
+ scramjet -c # Continue most recent session
210
+ scramjet -r # Browse and select from past sessions
211
+ scramjet --no-session # Ephemeral mode (don't save)
212
+ scramjet --session <path|id> # Use specific session file or ID
213
+ scramjet --fork <path|id> # Fork specific session file or ID into a new session
214
+ ```
215
+
216
+ Use `/session` in interactive mode to see the current session ID before reusing it with `--session <id>` or `--fork <id>`.
217
+
218
+ ### Branching
219
+
220
+ **`/tree`** - Navigate the session tree in-place. Select any previous point, continue from there, and switch between branches. All history preserved in a single file.
221
+
222
+ <p align="center"><img src="docs/images/tree-view.png" alt="Tree View" width="600"></p>
223
+
224
+ - Search by typing, fold/unfold and jump between branches with Ctrl+←/Ctrl+→ or Alt+←/Alt+→, page with ←/→
225
+ - Filter modes (Ctrl+O): default → no-tools → user-only → labeled-only → all
226
+ - Press Shift+L to label entries as bookmarks and Shift+T to toggle label timestamps
227
+
228
+ **`/fork`** - Create a new session file from a previous user message on the active branch. Opens a selector, copies the active path up to that point, and places the selected prompt in the editor for modification.
229
+
230
+ **`/clone`** - Duplicate the current active branch into a new session file at the current position. The new session keeps the full active-path history and opens with an empty editor.
231
+
232
+ **`--fork <path|id>`** - Fork an existing session file or partial session UUID directly from the CLI. This copies the full source session into a new session file in the current project.
233
+
234
+ ### Compaction
235
+
236
+ Long sessions can exhaust context windows. Compaction summarizes older messages while keeping recent ones.
237
+
238
+ **Manual:** `/compact` or `/compact <custom instructions>`
239
+
240
+ **Automatic:** Enabled by default. Triggers on context overflow (recovers and retries) or when approaching the limit (proactive). Configure via `/settings` or `settings.json`.
241
+
242
+ Compaction is lossy. The full history remains in the JSONL file; use `/tree` to revisit. Customize compaction behavior via [extensions](#extensions). See [docs/compaction.md](docs/compaction.md) for internals.
243
+
244
+ ---
245
+
246
+ ## Settings
247
+
248
+ Use `/settings` to modify common options, or edit JSON files directly:
249
+
250
+ | Location | Scope |
251
+ |----------|-------|
252
+ | `~/.scramjet/agent/settings.json` | Global (all projects) |
253
+ | `.scramjet/settings.json` | Project (overrides global) |
254
+
255
+ See [docs/settings.md](docs/settings.md) for all options.
256
+
257
+ ### Telemetry and update checks
258
+
259
+ The runtime inherits two startup features from the upstream Pi codebase:
260
+
261
+ - **Update check:** disabled by the Scramjet binary (`PI_SKIP_VERSION_CHECK=1` is set automatically). The upstream check against `pi.dev` never runs.
262
+ - **Install/update telemetry:** after first install or a changelog-detected update, sends an anonymous version ping to `https://pi.dev/api/report-install`. Opt out by setting `enableInstallTelemetry` to `false` in `settings.json`, or by setting `PI_TELEMETRY=0`.
263
+
264
+ Use `--offline` or `PI_OFFLINE=1` to disable all startup network operations, including package update checks and install/update telemetry.
265
+
266
+ ---
267
+
268
+ ## Context Files
269
+
270
+ Scramjet loads `AGENTS.md` (or `CLAUDE.md`) at startup from:
271
+ - `~/.scramjet/agent/AGENTS.md` (global)
272
+ - Parent directories (walking up from cwd)
273
+ - Current directory
274
+
275
+ Use for project instructions, conventions, common commands. All matching files are concatenated.
276
+
277
+ Disable context file loading with `--no-context-files` (or `-nc`).
278
+
279
+ ### System Prompt
280
+
281
+ Replace the default system prompt with `.scramjet/SYSTEM.md` (project) or `~/.scramjet/agent/SYSTEM.md` (global). Append without replacing via `APPEND_SYSTEM.md`.
282
+
283
+ ---
284
+
285
+ ## Customization
286
+
287
+ ### Prompt Templates
288
+
289
+ Reusable prompts as Markdown files. Type `/name` to expand.
290
+
291
+ ```markdown
292
+ <!-- ~/.scramjet/agent/prompts/review.md -->
293
+ Review this code for bugs, security issues, and performance problems.
294
+ Focus on: {{focus}}
295
+ ```
296
+
297
+ Place in `~/.scramjet/agent/prompts/`, `.scramjet/prompts/`, or a [scramjet package](#scramjet-packages) to share with others. See [docs/prompt-templates.md](docs/prompt-templates.md).
298
+
299
+ ### Skills
300
+
301
+ On-demand capability packages following the [Agent Skills standard](https://agentskills.io). Invoke via `/skill:name` or let the agent load them automatically.
302
+
303
+ ```markdown
304
+ <!-- ~/.scramjet/agent/skills/my-skill/SKILL.md -->
305
+ # My Skill
306
+ Use this skill when the user asks about X.
307
+
308
+ ## Steps
309
+ 1. Do this
310
+ 2. Then that
311
+ ```
312
+
313
+ Place in `~/.scramjet/agent/skills/`, `~/.agents/skills/`, `.scramjet/skills/`, or `.agents/skills/` (from `cwd` up through parent directories) or a [scramjet package](#scramjet-packages) to share with others. See [docs/skills.md](docs/skills.md).
314
+
315
+ ### Extensions
316
+
317
+ <p align="center"><img src="docs/images/doom-extension.png" alt="Doom Extension" width="600"></p>
318
+
319
+ TypeScript modules that extend scramjet with custom tools, commands, keyboard shortcuts, event handlers, and UI components.
320
+
321
+ ```typescript
322
+ export default function (pi: ExtensionAPI) {
323
+ pi.registerTool({ name: "deploy", ... });
324
+ pi.registerCommand("stats", { ... });
325
+ pi.on("tool_call", async (event, ctx) => { ... });
326
+ }
327
+ ```
328
+
329
+ The default export can also be `async`. Scramjet waits for async extension factories before startup continues, which is useful for one-time initialization such as fetching remote model lists before calling `pi.registerProvider()`.
330
+
331
+ **What's possible:**
332
+ - Custom tools (or replace built-in tools entirely)
333
+ - Sub-agents and plan mode
334
+ - Custom compaction and summarization
335
+ - Permission gates and path protection
336
+ - Custom editors and UI components
337
+ - Status lines, headers, footers
338
+ - Git checkpointing and auto-commit
339
+ - SSH and sandbox execution
340
+ - MCP server integration
341
+ - Games while waiting (yes, Doom runs)
342
+ - ...anything you can dream up
343
+
344
+ Place in `~/.scramjet/agent/extensions/`, `.scramjet/extensions/`, or a [scramjet package](#scramjet-packages) to share with others. See [docs/extensions.md](docs/extensions.md) and [examples/extensions/](examples/extensions/).
345
+
346
+ ### Themes
347
+
348
+ Built-in: `dark`, `light`. Themes hot-reload: modify the active theme file and scramjet immediately applies changes.
349
+
350
+ Place in `~/.scramjet/agent/themes/`, `.scramjet/themes/`, or a [scramjet package](#scramjet-packages) to share with others. See [docs/themes.md](docs/themes.md).
351
+
352
+ ### Scramjet Packages
353
+
354
+ Bundle and share extensions, skills, prompts, and themes via npm or git. Find packages on [npmjs.com](https://www.npmjs.com/search?q=keywords%3Api-package).
355
+
356
+ > **Security:** Scramjet packages run with full system access. Extensions execute arbitrary code, and skills can instruct the model to perform any action including running executables. Review source code before installing third-party packages.
357
+
358
+ ```bash
359
+ scramjet install npm:@foo/pi-tools
360
+ scramjet install npm:@foo/pi-tools@1.2.3 # pinned version
361
+ scramjet install git:github.com/user/repo
362
+ scramjet install git:github.com/user/repo@v1 # tag or commit
363
+ scramjet install git:git@github.com:user/repo
364
+ scramjet install git:git@github.com:user/repo@v1 # tag or commit
365
+ scramjet install https://github.com/user/repo
366
+ scramjet install https://github.com/user/repo@v1 # tag or commit
367
+ scramjet install ssh://git@github.com/user/repo
368
+ scramjet install ssh://git@github.com/user/repo@v1 # tag or commit
369
+ scramjet remove npm:@foo/pi-tools
370
+ scramjet uninstall npm:@foo/pi-tools # alias for remove
371
+ scramjet list
372
+ scramjet update # update the CLI and packages (skips pinned packages)
373
+ scramjet update --extensions # update packages only
374
+ scramjet update --self # update the CLI only
375
+ scramjet update --self --force # reinstall the CLI even if current
376
+ scramjet update npm:@foo/pi-tools # update one package
377
+ scramjet config # enable/disable extensions, skills, prompts, themes
378
+ ```
379
+
380
+ Packages install to `~/.scramjet/agent/git/` (git) or global npm. Use `-l` for project-local installs (`.scramjet/git/`, `.scramjet/npm/`). Git packages install dependencies with `npm install --omit=dev` by default, so runtime deps must be listed under `dependencies`; when `npmCommand` is configured, git packages use plain `install` for compatibility with wrappers. If you use a Node version manager and want package installs to reuse a stable npm context, set `npmCommand` in `settings.json`, for example `["mise", "exec", "node@20", "--", "npm"]`.
381
+
382
+ Create a package by adding a `pi` key to `package.json`:
383
+
384
+ ```json
385
+ {
386
+ "name": "my-scramjet-package",
387
+ "keywords": ["pi-package"],
388
+ "pi": {
389
+ "extensions": ["./extensions"],
390
+ "skills": ["./skills"],
391
+ "prompts": ["./prompts"],
392
+ "themes": ["./themes"]
393
+ }
394
+ }
395
+ ```
396
+
397
+ Without a `pi` manifest, scramjet auto-discovers from conventional directories (`extensions/`, `skills/`, `prompts/`, `themes/`).
398
+
399
+ See [docs/packages.md](docs/packages.md).
400
+
401
+ ---
402
+
403
+ ## Programmatic Usage
404
+
405
+ ### SDK
406
+
407
+ ```typescript
408
+ import { AuthStorage, createAgentSession, ModelRegistry, SessionManager } from "@leanandmean/coding-agent";
409
+
410
+ const authStorage = AuthStorage.create();
411
+ const modelRegistry = ModelRegistry.create(authStorage);
412
+ const { session } = await createAgentSession({
413
+ sessionManager: SessionManager.inMemory(),
414
+ authStorage,
415
+ modelRegistry,
416
+ });
417
+
418
+ await session.prompt("What files are in the current directory?");
419
+ ```
420
+
421
+ For advanced multi-session runtime replacement, use `createAgentSessionRuntime()` and `AgentSessionRuntime`.
422
+
423
+ See [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/).
424
+
425
+ ### RPC Mode
426
+
427
+ For non-Node.js integrations, use RPC mode over stdin/stdout:
428
+
429
+ ```bash
430
+ scramjet --mode rpc
431
+ ```
432
+
433
+ RPC mode uses strict LF-delimited JSONL framing. Clients must split records on `\n` only. Do not use generic line readers like Node `readline`, which also split on Unicode separators inside JSON payloads.
434
+
435
+ See [docs/rpc.md](docs/rpc.md) for the protocol.
436
+
437
+ ---
438
+
439
+ ## Philosophy
440
+
441
+ Scramjet is aggressively extensible so it doesn't have to dictate your workflow. Features that other tools bake in can be built with [extensions](#extensions), [skills](#skills), or installed from third-party [scramjet packages](#scramjet-packages). This keeps the core minimal while letting you shape scramjet to fit how you work.
442
+
443
+ **No MCP.** Build CLI tools with READMEs (see [Skills](#skills)), or build an extension that adds MCP support. [Why?](https://mariozechner.at/posts/2025-11-02-what-if-you-dont-need-mcp/)
444
+
445
+ **No sub-agents.** There's many ways to do this. Spawn scramjet instances via tmux, or build your own with [extensions](#extensions), or install a package that does it your way.
446
+
447
+ **No permission popups.** Run in a container, or build your own confirmation flow with [extensions](#extensions) inline with your environment and security requirements.
448
+
449
+ **No plan mode.** Write plans to files, or build it with [extensions](#extensions), or install a package.
450
+
451
+ **No built-in to-dos.** They confuse models. Use a TODO.md file, or build your own with [extensions](#extensions).
452
+
453
+ **No background bash.** Use tmux. Full observability, direct interaction.
454
+
455
+ ---
456
+
457
+ ## CLI Reference
458
+
459
+ ```bash
460
+ scramjet [options] [@files...] [messages...]
461
+ ```
462
+
463
+ ### Package Commands
464
+
465
+ ```bash
466
+ scramjet install <source> [-l] # Install package, -l for project-local
467
+ scramjet remove <source> [-l] # Remove package
468
+ scramjet uninstall <source> [-l] # Alias for remove
469
+ scramjet update [source|self] # Update the CLI and packages (skips pinned packages)
470
+ scramjet update --extensions # Update packages only
471
+ scramjet update --self # Update the CLI only
472
+ scramjet update --self --force # Reinstall the CLI even if current
473
+ scramjet update --extension <src> # Update one package
474
+ scramjet list # List installed packages
475
+ scramjet config # Enable/disable package resources
476
+ ```
477
+
478
+ ### Modes
479
+
480
+ | Flag | Description |
481
+ |------|-------------|
482
+ | (default) | Interactive mode |
483
+ | `-p`, `--print` | Print response and exit |
484
+ | `--mode json` | Output all events as JSON lines (see [docs/json.md](docs/json.md)) |
485
+ | `--mode rpc` | RPC mode for process integration (see [docs/rpc.md](docs/rpc.md)) |
486
+ | `--export <in> [out]` | Export session to HTML |
487
+
488
+ In print mode, scramjet also reads piped stdin and merges it into the initial prompt:
489
+
490
+ ```bash
491
+ cat README.md | scramjet -p "Summarize this text"
492
+ ```
493
+
494
+ ### Model Options
495
+
496
+ | Option | Description |
497
+ |--------|-------------|
498
+ | `--provider <name>` | Provider (anthropic, openai, google, etc.) |
499
+ | `--model <pattern>` | Model pattern or ID (supports `provider/id` and optional `:<thinking>`) |
500
+ | `--api-key <key>` | API key (overrides env vars) |
501
+ | `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh` |
502
+ | `--models <patterns>` | Comma-separated patterns for Ctrl+P cycling |
503
+ | `--list-models [search]` | List available models |
504
+
505
+ ### Session Options
506
+
507
+ | Option | Description |
508
+ |--------|-------------|
509
+ | `-c`, `--continue` | Continue most recent session |
510
+ | `-r`, `--resume` | Browse and select session |
511
+ | `--session <path\|id>` | Use specific session file or partial UUID |
512
+ | `--fork <path\|id>` | Fork specific session file or partial UUID into a new session |
513
+ | `--session-dir <dir>` | Custom session storage directory |
514
+ | `--no-session` | Ephemeral mode (don't save) |
515
+
516
+ ### Tool Options
517
+
518
+ | Option | Description |
519
+ |--------|-------------|
520
+ | `--tools <list>`, `-t <list>` | Allowlist specific tool names across built-in, extension, and custom tools |
521
+ | `--no-builtin-tools`, `-nbt` | Disable built-in tools by default but keep extension/custom tools enabled |
522
+ | `--no-tools`, `-nt` | Disable all tools by default |
523
+
524
+ Available built-in tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`
525
+
526
+ ### Resource Options
527
+
528
+ | Option | Description |
529
+ |--------|-------------|
530
+ | `-e`, `--extension <source>` | Load extension from path, npm, or git (repeatable) |
531
+ | `--no-extensions` | Disable extension discovery |
532
+ | `--skill <path>` | Load skill (repeatable) |
533
+ | `--no-skills` | Disable skill discovery |
534
+ | `--prompt-template <path>` | Load prompt template (repeatable) |
535
+ | `--no-prompt-templates` | Disable prompt template discovery |
536
+ | `--theme <path>` | Load theme (repeatable) |
537
+ | `--no-themes` | Disable theme discovery |
538
+ | `--no-context-files`, `-nc` | Disable AGENTS.md and CLAUDE.md context file discovery |
539
+
540
+ Combine `--no-*` with explicit flags to load exactly what you need, ignoring settings.json (e.g., `--no-extensions -e ./my-ext.ts`).
541
+
542
+ ### Other Options
543
+
544
+ | Option | Description |
545
+ |--------|-------------|
546
+ | `--system-prompt <text>` | Replace default prompt (context files and skills still appended) |
547
+ | `--append-system-prompt <text>` | Append to system prompt |
548
+ | `--verbose` | Force verbose startup |
549
+ | `-h`, `--help` | Show help |
550
+ | `-v`, `--version` | Show version |
551
+
552
+ ### File Arguments
553
+
554
+ Prefix files with `@` to include in the message:
555
+
556
+ ```bash
557
+ scramjet @prompt.md "Answer this"
558
+ scramjet -p @screenshot.png "What's in this image?"
559
+ scramjet @code.ts @test.ts "Review these files"
560
+ ```
561
+
562
+ ### Examples
563
+
564
+ ```bash
565
+ # Interactive with initial prompt
566
+ scramjet "List all .ts files in src/"
567
+
568
+ # Non-interactive
569
+ scramjet -p "Summarize this codebase"
570
+
571
+ # Non-interactive with piped stdin
572
+ cat README.md | scramjet -p "Summarize this text"
573
+
574
+ # Different model
575
+ scramjet --provider openai --model gpt-4o "Help me refactor"
576
+
577
+ # Model with provider prefix (no --provider needed)
578
+ scramjet --model openai/gpt-4o "Help me refactor"
579
+
580
+ # Model with thinking level shorthand
581
+ scramjet --model sonnet:high "Solve this complex problem"
582
+
583
+ # Limit model cycling
584
+ scramjet --models "claude-*,gpt-4o"
585
+
586
+ # Read-only mode
587
+ scramjet --tools read,grep,find,ls -p "Review the code"
588
+
589
+ # High thinking level
590
+ scramjet --thinking high "Solve this complex problem"
591
+ ```
592
+
593
+ ### Environment Variables
594
+
595
+ | Variable | Description |
596
+ |----------|-------------|
597
+ | `SCRAMJET_CODING_AGENT_DIR` | Override config directory (default: `~/.scramjet/agent`). Legacy `PI_CODING_AGENT_DIR` is also accepted |
598
+ | `SCRAMJET_CODING_AGENT_SESSION_DIR` | Override session storage directory (overridden by `--session-dir`). Legacy `PI_CODING_AGENT_SESSION_DIR` is also accepted |
599
+ | `PI_PACKAGE_DIR` | Override package directory (useful for Nix/Guix where store paths tokenize poorly) |
600
+ | `PI_OFFLINE` | Disable startup network operations, including package update checks and install/update telemetry |
601
+ | `PI_TELEMETRY` | Override install/update telemetry. Use `1`/`true`/`yes` to enable or `0`/`false`/`no` to disable |
602
+ | `PI_CACHE_RETENTION` | Set to `long` for extended prompt cache (Anthropic: 1h, OpenAI: 24h) |
603
+ | `VISUAL`, `EDITOR` | External editor for Ctrl+G |
604
+
605
+ The `PI_*` variable names are inherited from the upstream runtime. `SCRAMJET_CODING_AGENT_DIR` and `SCRAMJET_CODING_AGENT_SESSION_DIR` are the canonical names; the Scramjet binary bridges legacy `PI_CODING_AGENT_DIR` / `PI_CODING_AGENT_SESSION_DIR` for backward compatibility.
606
+
607
+ The upstream `PI_SKIP_VERSION_CHECK` is set automatically by the Scramjet binary — the pi.dev version check never runs.
608
+
609
+ ---
610
+
611
+ ## Contributing & Development
612
+
613
+ See [CONTRIBUTING.md](../../CONTRIBUTING.md) for guidelines and [docs/development.md](docs/development.md) for setup, forking, and debugging.
614
+
615
+ ---
616
+
617
+ ## License
618
+
619
+ MIT
620
+
621
+ ## See Also
622
+
623
+ - [@leanandmean/ai](https://www.npmjs.com/package/@leanandmean/ai): Core LLM toolkit
624
+ - [@leanandmean/agent](https://www.npmjs.com/package/@leanandmean/agent): Agent framework
625
+ - [@leanandmean/tui](https://www.npmjs.com/package/@leanandmean/tui): Terminal UI components
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/bun/cli.ts"],"names":[],"mappings":"","sourcesContent":["#!/usr/bin/env node\nimport { APP_NAME } from \"../config.js\";\n\nprocess.title = APP_NAME;\nprocess.emitWarning = (() => {}) as typeof process.emitWarning;\n\nimport { restoreSandboxEnv } from \"./restore-sandbox-env.js\";\n\nrestoreSandboxEnv();\n\nawait import(\"./register-bedrock.js\");\nawait import(\"../cli.js\");\n"]}
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ import { APP_NAME } from "../config.js";
3
+ process.title = APP_NAME;
4
+ process.emitWarning = (() => { });
5
+ import { restoreSandboxEnv } from "./restore-sandbox-env.js";
6
+ restoreSandboxEnv();
7
+ await import("./register-bedrock.js");
8
+ await import("../cli.js");
9
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/bun/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,CAAC,KAAK,GAAG,QAAQ,CAAC;AACzB,OAAO,CAAC,WAAW,GAAG,CAAC,GAAG,EAAE,CAAC,EAAC,CAAC,CAA+B,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,iBAAiB,EAAE,CAAC;AAEpB,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;AACtC,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC","sourcesContent":["#!/usr/bin/env node\nimport { APP_NAME } from \"../config.js\";\n\nprocess.title = APP_NAME;\nprocess.emitWarning = (() => {}) as typeof process.emitWarning;\n\nimport { restoreSandboxEnv } from \"./restore-sandbox-env.js\";\n\nrestoreSandboxEnv();\n\nawait import(\"./register-bedrock.js\");\nawait import(\"../cli.js\");\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=register-bedrock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-bedrock.d.ts","sourceRoot":"","sources":["../../src/bun/register-bedrock.ts"],"names":[],"mappings":"","sourcesContent":["import { setBedrockProviderModule } from \"@leanandmean/ai\";\nimport { bedrockProviderModule } from \"@leanandmean/ai/bedrock-provider\";\n\nsetBedrockProviderModule(bedrockProviderModule);\n"]}
@@ -0,0 +1,4 @@
1
+ import { setBedrockProviderModule } from "@leanandmean/ai";
2
+ import { bedrockProviderModule } from "@leanandmean/ai/bedrock-provider";
3
+ setBedrockProviderModule(bedrockProviderModule);
4
+ //# sourceMappingURL=register-bedrock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-bedrock.js","sourceRoot":"","sources":["../../src/bun/register-bedrock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,wBAAwB,CAAC,qBAAqB,CAAC,CAAC","sourcesContent":["import { setBedrockProviderModule } from \"@leanandmean/ai\";\nimport { bedrockProviderModule } from \"@leanandmean/ai/bedrock-provider\";\n\nsetBedrockProviderModule(bedrockProviderModule);\n"]}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Workaround for https://github.com/oven-sh/bun/issues/27802
3
+ *
4
+ * Bun compiled binaries have an empty `process.env` when running inside
5
+ * sandbox environments (e.g. nono on Linux/macOS). On Linux we can recover
6
+ * the environment from `/proc/self/environ`.
7
+ */
8
+ /**
9
+ * Restore environment variables from `/proc/self/environ` when running
10
+ * inside a sandbox where Bun's `process.env` is empty.
11
+ */
12
+ export declare function restoreSandboxEnv(): void;
13
+ //# sourceMappingURL=restore-sandbox-env.d.ts.map