@bastani/atomic 0.9.18-alpha.5 → 0.9.18-alpha.7

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 (376) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/README.md +3 -3
  3. package/dist/builtin/intercom/CHANGELOG.md +39 -0
  4. package/dist/builtin/intercom/README.md +22 -2
  5. package/dist/builtin/intercom/broker/broker.ts +676 -128
  6. package/dist/builtin/intercom/broker/client.ts +151 -35
  7. package/dist/builtin/intercom/broker/delivered-message-cache.ts +497 -37
  8. package/dist/builtin/intercom/broker/framing.ts +4 -2
  9. package/dist/builtin/intercom/broker/paths.ts +10 -0
  10. package/dist/builtin/intercom/broker/pending-send-registry.ts +1 -2
  11. package/dist/builtin/intercom/broker/send-handler.ts +311 -52
  12. package/dist/builtin/intercom/broker/send-signature.ts +4 -2
  13. package/dist/builtin/intercom/broker/socket-writes.ts +103 -0
  14. package/dist/builtin/intercom/broker/spawn.ts +9 -4
  15. package/dist/builtin/intercom/index.bundle.mjs +1410 -212
  16. package/dist/builtin/intercom/package.json +2 -2
  17. package/dist/builtin/intercom/recoverable-disconnect.ts +52 -0
  18. package/dist/builtin/intercom/retry-policy.ts +8 -0
  19. package/dist/builtin/intercom/skills/intercom/SKILL.md +17 -9
  20. package/dist/builtin/intercom/types.ts +27 -8
  21. package/dist/builtin/intercom/workflow-stage-path-matching.ts +90 -0
  22. package/dist/builtin/intercom/workflow-stage-target.ts +57 -0
  23. package/dist/builtin/mcp/index.bundle.mjs +427 -126
  24. package/dist/builtin/mcp/package.json +2 -2
  25. package/dist/builtin/subagents/CHANGELOG.md +19 -0
  26. package/dist/builtin/subagents/README.md +3 -3
  27. package/dist/builtin/subagents/agents/code-simplifier.md +2 -2
  28. package/dist/builtin/subagents/agents/codebase-analyzer.md +2 -2
  29. package/dist/builtin/subagents/agents/codebase-locator.md +2 -2
  30. package/dist/builtin/subagents/agents/codebase-online-researcher.md +11 -11
  31. package/dist/builtin/subagents/agents/codebase-pattern-finder.md +2 -2
  32. package/dist/builtin/subagents/agents/codebase-research-analyzer.md +2 -2
  33. package/dist/builtin/subagents/agents/codebase-research-locator.md +2 -2
  34. package/dist/builtin/subagents/agents/debugger.md +3 -3
  35. package/dist/builtin/subagents/agents/worker.md +2 -2
  36. package/dist/builtin/subagents/package.json +3 -3
  37. package/dist/builtin/subagents/skills/qlty/SKILL.md +29 -101
  38. package/dist/builtin/subagents/skills/qlty/references/manual-configuration.md +52 -0
  39. package/dist/builtin/subagents/skills/subagent/SKILL.md +11 -11
  40. package/dist/builtin/subagents/src/extension/index.bundle.mjs +49 -132
  41. package/dist/builtin/web-access/package.json +2 -2
  42. package/dist/builtin/workflows/CHANGELOG.md +46 -0
  43. package/dist/builtin/workflows/README.md +7 -7
  44. package/dist/builtin/workflows/builtin/adversarial-verification.js +2 -2
  45. package/dist/builtin/workflows/builtin/{chunk-szz1ajz9.js → chunk-42s7sw0b.js} +9 -2
  46. package/dist/builtin/workflows/builtin/{chunk-2dqb5s2q.js → chunk-79fjkcvh.js} +1 -1
  47. package/dist/builtin/workflows/builtin/{chunk-n58a7v26.js → chunk-b0v2xab1.js} +181 -10
  48. package/dist/builtin/workflows/builtin/{chunk-fghhy2a5.js → chunk-ed4jfn5t.js} +23 -5
  49. package/dist/builtin/workflows/builtin/{chunk-h3r2vkzc.js → chunk-hqpe2cyx.js} +60 -21
  50. package/dist/builtin/workflows/builtin/{chunk-hzzn6adg.js → chunk-k3w87x8y.js} +1 -1
  51. package/dist/builtin/workflows/builtin/{chunk-82ha8p41.js → chunk-n8h4yyew.js} +1 -1
  52. package/dist/builtin/workflows/builtin/{chunk-qwzvgxnq.js → chunk-reqr3sr3.js} +1 -1
  53. package/dist/builtin/workflows/builtin/{chunk-c53y8bdh.js → chunk-wgccch41.js} +1 -1
  54. package/dist/builtin/workflows/builtin/{chunk-0x6e303p.js → chunk-zbekjqew.js} +20 -7
  55. package/dist/builtin/workflows/builtin/{chunk-29wrp38a.js → chunk-ze5x3d1r.js} +1 -1
  56. package/dist/builtin/workflows/builtin/classify-and-act.js +2 -2
  57. package/dist/builtin/workflows/builtin/fan-out-and-synthesize.js +2 -2
  58. package/dist/builtin/workflows/builtin/generate-and-filter.js +2 -2
  59. package/dist/builtin/workflows/builtin/goal.js +3 -3
  60. package/dist/builtin/workflows/builtin/index.js +11 -11
  61. package/dist/builtin/workflows/builtin/loop-until-done.js +2 -2
  62. package/dist/builtin/workflows/builtin/open-claude-design.js +2 -2
  63. package/dist/builtin/workflows/builtin/ralph.js +3 -3
  64. package/dist/builtin/workflows/builtin/steering-context.js +1 -1
  65. package/dist/builtin/workflows/builtin/tournament.js +2 -2
  66. package/dist/builtin/workflows/package.json +2 -2
  67. package/dist/builtin/workflows/skills/prompt-engineer/SKILL.md +39 -52
  68. package/dist/builtin/workflows/skills/prompt-engineer/references/advanced_patterns.md +9 -37
  69. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5.md +49 -0
  70. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5_1.md +57 -0
  71. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_4_8.md +57 -0
  72. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5.md +47 -0
  73. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_sonnet_5.md +57 -0
  74. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_5_5.md +60 -0
  75. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_5_6.md +58 -0
  76. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_astra.md +58 -0
  77. package/dist/builtin/workflows/skills/prompt-engineer/references/quality_improvement.md +18 -4
  78. package/dist/builtin/workflows/src/extension/index.bundle.mjs +3194 -737
  79. package/dist/builtin/workflows/src/index.js +899 -436
  80. package/dist/builtin/workflows/src/shared/authoring-contract-stage.d.ts +0 -10
  81. package/dist/cli/list-models.d.ts.map +1 -1
  82. package/dist/cli/list-models.js +4 -0
  83. package/dist/cli/list-models.js.map +1 -1
  84. package/dist/client/index.d.ts +1 -2
  85. package/dist/client/index.d.ts.map +1 -1
  86. package/dist/client/index.js +1 -2
  87. package/dist/client/index.js.map +1 -1
  88. package/dist/config.d.ts +0 -9
  89. package/dist/config.d.ts.map +1 -1
  90. package/dist/config.js +0 -45
  91. package/dist/config.js.map +1 -1
  92. package/dist/core/agent-session-compaction.d.ts.map +1 -1
  93. package/dist/core/agent-session-compaction.js +8 -6
  94. package/dist/core/agent-session-compaction.js.map +1 -1
  95. package/dist/core/agent-session-methods.d.ts +1 -0
  96. package/dist/core/agent-session-methods.d.ts.map +1 -1
  97. package/dist/core/agent-session-methods.js.map +1 -1
  98. package/dist/core/agent-session-models.d.ts.map +1 -1
  99. package/dist/core/agent-session-models.js +3 -4
  100. package/dist/core/agent-session-models.js.map +1 -1
  101. package/dist/core/agent-session-queue-pause.d.ts.map +1 -1
  102. package/dist/core/agent-session-queue-pause.js +6 -0
  103. package/dist/core/agent-session-queue-pause.js.map +1 -1
  104. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  105. package/dist/core/agent-session-runtime.js +13 -5
  106. package/dist/core/agent-session-runtime.js.map +1 -1
  107. package/dist/core/agent-session-tool-hooks.js +1 -1
  108. package/dist/core/agent-session-tool-hooks.js.map +1 -1
  109. package/dist/core/agent-session-tree.d.ts.map +1 -1
  110. package/dist/core/agent-session-tree.js +8 -0
  111. package/dist/core/agent-session-tree.js.map +1 -1
  112. package/dist/core/agent-session.d.ts +2 -0
  113. package/dist/core/agent-session.d.ts.map +1 -1
  114. package/dist/core/agent-session.js +2 -0
  115. package/dist/core/agent-session.js.map +1 -1
  116. package/dist/core/compaction/branch-summarization.d.ts +2 -2
  117. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  118. package/dist/core/compaction/branch-summarization.js +4 -4
  119. package/dist/core/compaction/branch-summarization.js.map +1 -1
  120. package/dist/core/extensions/api-types.d.ts +8 -2
  121. package/dist/core/extensions/api-types.d.ts.map +1 -1
  122. package/dist/core/extensions/api-types.js.map +1 -1
  123. package/dist/core/extensions/context-types.d.ts +12 -0
  124. package/dist/core/extensions/context-types.d.ts.map +1 -1
  125. package/dist/core/extensions/context-types.js.map +1 -1
  126. package/dist/core/extensions/runner-shortcuts.d.ts.map +1 -1
  127. package/dist/core/extensions/runner-shortcuts.js +0 -1
  128. package/dist/core/extensions/runner-shortcuts.js.map +1 -1
  129. package/dist/core/fast-model-routing-transport.d.ts +12 -0
  130. package/dist/core/fast-model-routing-transport.d.ts.map +1 -0
  131. package/dist/core/{codex-fast-mode-transport.js → fast-model-routing-transport.js} +29 -29
  132. package/dist/core/fast-model-routing-transport.js.map +1 -0
  133. package/dist/core/fast-model-routing.d.ts +57 -0
  134. package/dist/core/fast-model-routing.d.ts.map +1 -0
  135. package/dist/core/fast-model-routing.js +201 -0
  136. package/dist/core/fast-model-routing.js.map +1 -0
  137. package/dist/core/fast-model-variants.d.ts +98 -0
  138. package/dist/core/fast-model-variants.d.ts.map +1 -0
  139. package/dist/core/fast-model-variants.js +148 -0
  140. package/dist/core/fast-model-variants.js.map +1 -0
  141. package/dist/core/http-dispatcher.d.ts.map +1 -1
  142. package/dist/core/http-dispatcher.js +4 -2
  143. package/dist/core/http-dispatcher.js.map +1 -1
  144. package/dist/core/keybindings.d.ts +0 -10
  145. package/dist/core/keybindings.d.ts.map +1 -1
  146. package/dist/core/keybindings.js +0 -8
  147. package/dist/core/keybindings.js.map +1 -1
  148. package/dist/core/messages.d.ts +1 -1
  149. package/dist/core/messages.d.ts.map +1 -1
  150. package/dist/core/messages.js.map +1 -1
  151. package/dist/core/model-config.d.ts +15 -0
  152. package/dist/core/model-config.d.ts.map +1 -1
  153. package/dist/core/model-config.js +3 -0
  154. package/dist/core/model-config.js.map +1 -1
  155. package/dist/core/model-resolver-initial.js +1 -1
  156. package/dist/core/model-resolver-initial.js.map +1 -1
  157. package/dist/core/model-runtime-streaming.d.ts +14 -1
  158. package/dist/core/model-runtime-streaming.d.ts.map +1 -1
  159. package/dist/core/model-runtime-streaming.js +25 -3
  160. package/dist/core/model-runtime-streaming.js.map +1 -1
  161. package/dist/core/model-runtime.d.ts +39 -2
  162. package/dist/core/model-runtime.d.ts.map +1 -1
  163. package/dist/core/model-runtime.js +91 -7
  164. package/dist/core/model-runtime.js.map +1 -1
  165. package/dist/core/provider-composer-internal.d.ts.map +1 -1
  166. package/dist/core/provider-composer-internal.js +8 -2
  167. package/dist/core/provider-composer-internal.js.map +1 -1
  168. package/dist/core/sdk.d.ts.map +1 -1
  169. package/dist/core/sdk.js +18 -18
  170. package/dist/core/sdk.js.map +1 -1
  171. package/dist/core/session-manager-archive.d.ts.map +1 -1
  172. package/dist/core/session-manager-archive.js +25 -2
  173. package/dist/core/session-manager-archive.js.map +1 -1
  174. package/dist/core/settings-manager-core.d.ts +0 -2
  175. package/dist/core/settings-manager-core.d.ts.map +1 -1
  176. package/dist/core/settings-manager-core.js +2 -9
  177. package/dist/core/settings-manager-core.js.map +1 -1
  178. package/dist/core/settings-manager-internals.d.ts +0 -1
  179. package/dist/core/settings-manager-internals.d.ts.map +1 -1
  180. package/dist/core/settings-manager-internals.js.map +1 -1
  181. package/dist/core/settings-manager-ui-accessors.d.ts +0 -8
  182. package/dist/core/settings-manager-ui-accessors.d.ts.map +1 -1
  183. package/dist/core/settings-manager-ui-accessors.js +0 -53
  184. package/dist/core/settings-manager-ui-accessors.js.map +1 -1
  185. package/dist/core/settings-manager.d.ts +1 -1
  186. package/dist/core/settings-manager.d.ts.map +1 -1
  187. package/dist/core/settings-manager.js.map +1 -1
  188. package/dist/core/settings-types.d.ts +0 -5
  189. package/dist/core/settings-types.d.ts.map +1 -1
  190. package/dist/core/settings-types.js.map +1 -1
  191. package/dist/core/skills.d.ts +1 -1
  192. package/dist/core/skills.d.ts.map +1 -1
  193. package/dist/core/skills.js +4 -2
  194. package/dist/core/skills.js.map +1 -1
  195. package/dist/core/slash-commands.d.ts.map +1 -1
  196. package/dist/core/slash-commands.js +0 -1
  197. package/dist/core/slash-commands.js.map +1 -1
  198. package/dist/core/system-prompt.js +7 -7
  199. package/dist/core/system-prompt.js.map +1 -1
  200. package/dist/core/tools/edit.d.ts +1 -1
  201. package/dist/core/tools/edit.d.ts.map +1 -1
  202. package/dist/core/tools/edit.js +128 -3
  203. package/dist/core/tools/edit.js.map +1 -1
  204. package/dist/core/tools/hashline.d.ts +2 -2
  205. package/dist/core/tools/hashline.d.ts.map +1 -1
  206. package/dist/core/tools/hashline.js +40 -10
  207. package/dist/core/tools/hashline.js.map +1 -1
  208. package/dist/core/tools/write.d.ts.map +1 -1
  209. package/dist/core/tools/write.js +8 -8
  210. package/dist/core/tools/write.js.map +1 -1
  211. package/dist/core/workflow-stage-admission.d.ts +6 -0
  212. package/dist/core/workflow-stage-admission.d.ts.map +1 -1
  213. package/dist/core/workflow-stage-admission.js +14 -0
  214. package/dist/core/workflow-stage-admission.js.map +1 -1
  215. package/dist/index-extensions.d.ts +1 -1
  216. package/dist/index-extensions.d.ts.map +1 -1
  217. package/dist/index-extensions.js.map +1 -1
  218. package/dist/index.d.ts +5 -5
  219. package/dist/index.d.ts.map +1 -1
  220. package/dist/index.js +4 -5
  221. package/dist/index.js.map +1 -1
  222. package/dist/modes/interactive/components/atomic-working-status.d.ts +4 -0
  223. package/dist/modes/interactive/components/atomic-working-status.d.ts.map +1 -1
  224. package/dist/modes/interactive/components/atomic-working-status.js +26 -1
  225. package/dist/modes/interactive/components/atomic-working-status.js.map +1 -1
  226. package/dist/modes/interactive/components/custom-editor.d.ts +7 -0
  227. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
  228. package/dist/modes/interactive/components/custom-editor.js +43 -0
  229. package/dist/modes/interactive/components/custom-editor.js.map +1 -1
  230. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  231. package/dist/modes/interactive/components/footer.js +0 -6
  232. package/dist/modes/interactive/components/footer.js.map +1 -1
  233. package/dist/modes/interactive/components/index.d.ts +1 -2
  234. package/dist/modes/interactive/components/index.d.ts.map +1 -1
  235. package/dist/modes/interactive/components/index.js +0 -1
  236. package/dist/modes/interactive/components/index.js.map +1 -1
  237. package/dist/modes/interactive/components/model-selector.d.ts +1 -1
  238. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
  239. package/dist/modes/interactive/components/model-selector.js +6 -11
  240. package/dist/modes/interactive/components/model-selector.js.map +1 -1
  241. package/dist/modes/interactive/components/scoped-models-selector.d.ts +2 -5
  242. package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
  243. package/dist/modes/interactive/components/scoped-models-selector.js +3 -19
  244. package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
  245. package/dist/modes/interactive/components/settings-selector-items.js +1 -1
  246. package/dist/modes/interactive/components/settings-selector-items.js.map +1 -1
  247. package/dist/modes/interactive/components/thinking-selector.d.ts +1 -2
  248. package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
  249. package/dist/modes/interactive/components/thinking-selector.js +4 -11
  250. package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
  251. package/dist/modes/interactive/components/transcript-follow-indicator.js +3 -3
  252. package/dist/modes/interactive/components/transcript-follow-indicator.js.map +1 -1
  253. package/dist/modes/interactive/interactive-agent-events.js +8 -8
  254. package/dist/modes/interactive/interactive-agent-events.js.map +1 -1
  255. package/dist/modes/interactive/interactive-autocomplete.js +5 -16
  256. package/dist/modes/interactive/interactive-autocomplete.js.map +1 -1
  257. package/dist/modes/interactive/interactive-bash-compact.js +2 -9
  258. package/dist/modes/interactive/interactive-bash-compact.js.map +1 -1
  259. package/dist/modes/interactive/interactive-deferred-startup.d.ts.map +1 -1
  260. package/dist/modes/interactive/interactive-deferred-startup.js +3 -0
  261. package/dist/modes/interactive/interactive-deferred-startup.js.map +1 -1
  262. package/dist/modes/interactive/interactive-editor-actions.js +2 -2
  263. package/dist/modes/interactive/interactive-editor-actions.js.map +1 -1
  264. package/dist/modes/interactive/interactive-extension-custom-ui.js +1 -0
  265. package/dist/modes/interactive/interactive-extension-custom-ui.js.map +1 -1
  266. package/dist/modes/interactive/interactive-extension-dialogs.js +7 -0
  267. package/dist/modes/interactive/interactive-extension-dialogs.js.map +1 -1
  268. package/dist/modes/interactive/interactive-extension-runtime.js +20 -10
  269. package/dist/modes/interactive/interactive-extension-runtime.js.map +1 -1
  270. package/dist/modes/interactive/interactive-hotkeys-debug.js +1 -5
  271. package/dist/modes/interactive/interactive-hotkeys-debug.js.map +1 -1
  272. package/dist/modes/interactive/interactive-initial-session-binding.d.ts.map +1 -1
  273. package/dist/modes/interactive/interactive-initial-session-binding.js +3 -0
  274. package/dist/modes/interactive/interactive-initial-session-binding.js.map +1 -1
  275. package/dist/modes/interactive/interactive-input-handling.js +0 -8
  276. package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
  277. package/dist/modes/interactive/interactive-mode-base.d.ts +5 -1
  278. package/dist/modes/interactive/interactive-mode-base.d.ts.map +1 -1
  279. package/dist/modes/interactive/interactive-mode-base.js +15 -9
  280. package/dist/modes/interactive/interactive-mode-base.js.map +1 -1
  281. package/dist/modes/interactive/interactive-mode-deps.d.ts +1 -3
  282. package/dist/modes/interactive/interactive-mode-deps.d.ts.map +1 -1
  283. package/dist/modes/interactive/interactive-mode-deps.js +1 -3
  284. package/dist/modes/interactive/interactive-mode-deps.js.map +1 -1
  285. package/dist/modes/interactive/interactive-mode-surface.d.ts +9 -12
  286. package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
  287. package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
  288. package/dist/modes/interactive/interactive-model-routing.js +10 -13
  289. package/dist/modes/interactive/interactive-model-routing.js.map +1 -1
  290. package/dist/modes/interactive/interactive-render-chat.js +29 -0
  291. package/dist/modes/interactive/interactive-render-chat.js.map +1 -1
  292. package/dist/modes/interactive/interactive-selectors.js +2 -32
  293. package/dist/modes/interactive/interactive-selectors.js.map +1 -1
  294. package/dist/modes/interactive/interactive-session-routing.js +1 -5
  295. package/dist/modes/interactive/interactive-session-routing.js.map +1 -1
  296. package/dist/modes/interactive/interactive-session-runtime.js +1 -5
  297. package/dist/modes/interactive/interactive-session-runtime.js.map +1 -1
  298. package/dist/modes/interactive/interactive-slash-commands.js +6 -13
  299. package/dist/modes/interactive/interactive-slash-commands.js.map +1 -1
  300. package/dist/modes/interactive/interactive-startup.d.ts.map +1 -1
  301. package/dist/modes/interactive/interactive-startup.js +19 -13
  302. package/dist/modes/interactive/interactive-startup.js.map +1 -1
  303. package/dist/modes/interactive/interactive-tui.d.ts.map +1 -1
  304. package/dist/modes/interactive/interactive-tui.js +27 -3
  305. package/dist/modes/interactive/interactive-tui.js.map +1 -1
  306. package/dist/modes/interactive-engine/engine-custom-ui.d.ts.map +1 -1
  307. package/dist/modes/interactive-engine/engine-custom-ui.js +1 -0
  308. package/dist/modes/interactive-engine/engine-custom-ui.js.map +1 -1
  309. package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
  310. package/dist/modes/interactive-engine/isolated-runtime.js +4 -1
  311. package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
  312. package/dist/utils/child-process.d.ts.map +1 -1
  313. package/dist/utils/child-process.js +13 -6
  314. package/dist/utils/child-process.js.map +1 -1
  315. package/dist/utils/exif-orientation.d.ts.map +1 -1
  316. package/dist/utils/exif-orientation.js +2 -3
  317. package/dist/utils/exif-orientation.js.map +1 -1
  318. package/dist/utils/tools-manager.d.ts +1 -0
  319. package/dist/utils/tools-manager.d.ts.map +1 -1
  320. package/dist/utils/tools-manager.js +33 -18
  321. package/dist/utils/tools-manager.js.map +1 -1
  322. package/docs/custom-provider.md +2 -0
  323. package/docs/development.md +17 -0
  324. package/docs/docs.json +14 -2
  325. package/docs/extensions.md +9 -4
  326. package/docs/intercom.md +41 -7
  327. package/docs/keybindings.md +8 -6
  328. package/docs/models/evals.md +394 -0
  329. package/docs/models/model-selection.md +54 -27
  330. package/docs/models/pareto-efficiency.md +33 -16
  331. package/docs/models.md +37 -1
  332. package/docs/packages.md +2 -2
  333. package/docs/providers.md +44 -20
  334. package/docs/quickstart.md +8 -6
  335. package/docs/rpc.md +3 -3
  336. package/docs/sdk.md +2 -16
  337. package/docs/settings.md +19 -22
  338. package/docs/skills.md +4 -2
  339. package/docs/subagents.md +9 -3
  340. package/docs/tools/edit.md +373 -0
  341. package/docs/tools.md +3 -7
  342. package/docs/tui.md +2 -1
  343. package/docs/usage.md +3 -5
  344. package/docs/workflows/api-reference.md +1395 -0
  345. package/docs/workflows/authoring.md +678 -0
  346. package/docs/workflows/builtins.md +245 -0
  347. package/docs/workflows/operations.md +811 -0
  348. package/docs/workflows/reliable-design.md +2099 -0
  349. package/docs/workflows/verification.md +62 -0
  350. package/docs/workflows.md +15 -5183
  351. package/npm-shrinkwrap.json +584 -69
  352. package/package.json +7 -7
  353. package/dist/client/remote-session.d.ts +0 -64
  354. package/dist/client/remote-session.d.ts.map +0 -1
  355. package/dist/client/remote-session.js +0 -351
  356. package/dist/client/remote-session.js.map +0 -1
  357. package/dist/client/transcript.d.ts +0 -12
  358. package/dist/client/transcript.d.ts.map +0 -1
  359. package/dist/client/transcript.js +0 -98
  360. package/dist/client/transcript.js.map +0 -1
  361. package/dist/core/codex-fast-mode-transport.d.ts +0 -12
  362. package/dist/core/codex-fast-mode-transport.d.ts.map +0 -1
  363. package/dist/core/codex-fast-mode-transport.js.map +0 -1
  364. package/dist/core/codex-fast-mode.d.ts +0 -53
  365. package/dist/core/codex-fast-mode.d.ts.map +0 -1
  366. package/dist/core/codex-fast-mode.js +0 -249
  367. package/dist/core/codex-fast-mode.js.map +0 -1
  368. package/dist/modes/interactive/components/fast-mode-selector.d.ts +0 -27
  369. package/dist/modes/interactive/components/fast-mode-selector.d.ts.map +0 -1
  370. package/dist/modes/interactive/components/fast-mode-selector.js +0 -107
  371. package/dist/modes/interactive/components/fast-mode-selector.js.map +0 -1
  372. package/dist/server/create-harness.d.ts +0 -53
  373. package/dist/server/create-harness.d.ts.map +0 -1
  374. package/dist/server/create-harness.js +0 -360
  375. package/dist/server/create-harness.js.map +0 -1
  376. package/docs/models/artificial-analysis-index.md +0 -83
@@ -0,0 +1,58 @@
1
+ # GPT-5.6 prompting and migration
2
+
3
+ Use this reference for the GPT-5.6 family. Guidance checked on September 5, 2026 against [OpenAI's GPT-5.6 guide](https://developers.openai.com/api/docs/guides/latest-model?model=gpt-5.6). Keep these defaults separate from [GPT-6 Astra](gpt_6_astra.md) and [GPT-5.5](gpt_5_5.md).
4
+
5
+ ## Start with the workload and a lean contract
6
+
7
+ The `gpt-5.6` alias routes to `gpt-5.6-sol` for flagship capability. The guide positions `gpt-5.6-terra` for a balance of quality and price and `gpt-5.6-luna` for efficient, high-volume work. Evaluate the chosen variant on the actual workload; these API names do not establish availability in an agent's configured catalog.
8
+
9
+ State the outcome, success criteria, domain context, approval boundaries, and required evidence. Let the model choose routine steps. When simplifying a working prompt, remove one group of repeated instructions, examples, or tools at a time and rerun the same cases. Keep examples that encode product requirements or correct a measured gap. Check context growth across long sessions as well as initial prompt size.
10
+
11
+ OpenAI reports roughly 10–15% higher scores, 41–66% fewer total tokens, and 33–67% lower cost for leaner prompts in a sample of internal coding-agent evaluations. These are workload-dependent observations, not expected gains for every application.
12
+
13
+ ## Define action boundaries once
14
+
15
+ Distinguish answering, reviewing, or diagnosing from implementing. Name authorized local work and the final action separately. Repeated "ask first" rules can block expected progress; missing approval for an external, destructive, costly, or scope-expanding action still matters.
16
+
17
+ ```text
18
+ For review requests, inspect the relevant materials and report findings without editing. For requests to fix or build, make the requested local changes and run relevant non-destructive checks. Continue work already authorized in this conversation. Ask before actions outside that authority, including destructive operations or unapproved external writes. Stop when the requested result and required checks are complete, or name the blocking decision.
19
+ ```
20
+
21
+ ## Control brevity without losing content
22
+
23
+ GPT-5.6 tends to be more concise than GPT-5.5. Reevaluate inherited "keep it short" instructions if answers lose evidence, caveats, or next steps. Set `text.verbosity` to `low`, `medium`, or `high` for the request default, then specify task-specific length and required content.
24
+
25
+ ```text
26
+ Lead with the conclusion. Retain required facts, decisions, evidence, material caveats, and the next action. Trim introductions, repetition, generic reassurance, and secondary detail first. Acknowledge a reported problem specifically; omit generic praise and sign-offs.
27
+ ```
28
+
29
+ ## Effort, pro mode, and state
30
+
31
+ Use Responses for reasoning, tool-calling, and multi-turn work. Verify provider and SDK support before adopting these controls.
32
+
33
+ | Control | Guidance |
34
+ | --- | --- |
35
+ | Reasoning effort | Supported values are `none`, `low`, `medium`, `high`, `xhigh`, and `max`; the default is `medium`. Preserve the current GPT-5.5/5.4 effort on migration, then compare one level lower. If starting at `none`, retain that latency baseline and test `low` for reasoning or tool work. |
36
+ | Higher effort | Use `high` or `xhigh` for measured quality gains. Reserve `max` for the hardest quality-first work; compare it against `xhigh` rather than assuming more effort is better. |
37
+ | Pro mode | Keep the selected model and set `reasoning.mode: "pro"`; do not invent a separate Pro model slug. Effort is independent and defaults to `medium` in standard and pro modes. Pro increases latency and bills the aggregated model work. Compare it with standard mode at the same model and effort. |
38
+ | Persisted reasoning | GPT-5.6 defaults to `all_turns`. Omit `reasoning.context` or use `auto`, and inspect the effective response value. Use `all_turns` for stable goals and `current_turn` when earlier reasoning is no longer relevant. |
39
+ | Continuations | With `all_turns`, use `previous_response_id`. For manual history, preserve prior user inputs and every response output item. With `store: false` or Zero Data Retention, replay the returned encrypted reasoning items. |
40
+ | Caching | Implicit caching remains available. Cache writes cost 1.25 times uncached input; track `cached_tokens` and `cache_write_tokens`. Use explicit breakpoints or `prompt_cache_options.mode: "explicit"` when useful, and replace `prompt_cache_retention` with `prompt_cache_options.ttl`. |
41
+
42
+ Pro mode is an API setting, not a request to narrate private reasoning or generate several visible answers. Keep the same outcome-focused prompt and compare completeness, evidence, cost, and latency.
43
+
44
+ ## Choose programmatic tool calling by task shape
45
+
46
+ Use Programmatic Tool Calling for a bounded stage that filters, joins, ranks, deduplicates, aggregates, or validates large tool results into a smaller structured result. Multiple calls alone do not justify it. Prefer direct calls when one call is enough, outputs are small, each result changes the next decision, approval is needed, or citations/native artifacts must remain visible.
47
+
48
+ Name the eligible tools, documented input/output fields, output schema, evidence requirements, retry/concurrency limits, and stop condition. If return shapes are unknown, inspect them through direct calls first. When combining routes, define one handoff and prohibit duplicate completed actions.
49
+
50
+ The application must enable `programmatic_tool_calling`, opt tools in through `allowed_callers`, handle `program` and `program_output` items, and preserve `call_id` and `caller` linkage. Validate both the program's result and the final assistant answer; correct records are insufficient if the answer drops a required citation or caveat. Consult the [PTC guide](https://developers.openai.com/api/docs/guides/tools-programmatic-tool-calling) before implementation.
51
+
52
+ The Responses multi-agent beta can coordinate independent workstreams and synthesize results. Treat it separately from an agent harness's own subagents. Prompt text does not enable hosted PTC, pro mode, persisted reasoning, or multi-agent support in Atomic.
53
+
54
+ ## Images and streaming safeguards
55
+
56
+ With `original` or `auto` image detail, GPT-5.6 preserves dimensions unless a side exceeds 65,535 pixels, then scales to that limit. Images still over the 30,000-patch limit are rejected rather than resized to fit. Choose detail deliberately and validate image size, latency, and token cost; do not carry GPT-5.5's image limits forward.
57
+
58
+ The guide notes real-time cyber/biology safeguards can refuse requests or pause generation for several seconds. Handle refusals and streaming delays honestly; do not treat them as a reason to evade safeguards. For individual end users, send a stable, privacy-preserving `safety_identifier` as described in the [safety guide](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -0,0 +1,58 @@
1
+ # GPT-6 Astra prompting and migration
2
+
3
+ Use this reference when targeting `gpt-6-astra`, migrating a prompt to Astra, or diagnosing early stops, excessive verification, or conflicting skills. Keep other model variants separate. Guidance checked on September 5, 2026 against [OpenAI's model guide](https://developers.openai.com/api/docs/guides/latest-model?model=gpt-6-astra).
4
+
5
+ ## Define completion and permission once
6
+
7
+ Astra follows detailed instructions closely and may ask questions where earlier models made assumptions. Define the intended finished result, including implementation, inspection, repairs, and any authorized final action. Treat action requests such as "can you fix this" as requests to do the work. Continue through work already authorized by the conversation; ask when a missing decision would materially change the result or permission is actually absent.
8
+
9
+ Before asking for final approval, prepare the authorized, reversible work so the user can review a concrete result. Do not turn this into blanket permission for destructive actions, publication, deployment, or external mutations. Preserve higher-priority policy, repository requirements, and explicit user boundaries.
10
+
11
+ Adapt this example to the real environment:
12
+
13
+ ```text
14
+ Implement the requested fix and verify the affected behavior. The local tests use disposable fixtures and have no production access. Run them, repair failures caused by this change, and rerun affected checks without asking again. Complete the repository's required checks. Stop when the requested behavior and required checks pass, or when a specific missing decision or permission blocks progress. Prepare a reviewable diff; deployment is not authorized.
15
+ ```
16
+
17
+ If exploration beyond the first implementation is intended, name the questions to explore and the stopping condition. Avoid an automatic "pause after first implementation" rule unless that review gate is needed.
18
+
19
+ ## Audit instructions that change behavior
20
+
21
+ Astra is sensitive to skills and repository instruction files. Check the relevant loaded instructions for conflicting completion rules, stale model workarounds, mandatory broad research, or approval language that blocks already-authorized work. Use the instruction audit in [quality_improvement.md](quality_improvement.md) when these symptoms appear.
22
+
23
+ Explicit user preferences override advisory skill defaults, subject to system/developer instructions and real authorization requirements. A skill cannot grant permission or override higher-priority policy. When a skill causes an unexpected pause or scope change, identify its exact `SKILL.md` path, quote the instruction, and distinguish its requirement from your interpretation. Do not silently remove binding constraints in the name of brevity.
24
+
25
+ ## Calibrate testing and delegation
26
+
27
+ Run checks appropriate to the change and all required repository checks. Broaden or repeat them only after a new change, a failure, or an unresolved concern. Avoid tests that merely repeat implementation text for reversible, low-impact edits. Keep regression tests that exercise behavior and failure modes.
28
+
29
+ Astra may delegate less than desired. When the application supports collaboration, explicitly allow independent tasks to run in parallel if that saves time or improves quality. Give each delegate a bounded objective, ownership, and expected evidence; respect the harness's concurrency limits. Keep dependent work sequential and synthesize results before acting. Claude-specific delegation damping is not an Astra default. Inter-agent messages should be legible to humans, with proper spacing and clear identifiers.
30
+
31
+ ## Control writing directly
32
+
33
+ Astra tends toward detailed, formatted responses. Specify the audience, necessary detail, and output shape instead of assuming the concise defaults of GPT-5.6. Prefer a clear first sentence and short paragraphs. Use lists or tables when they help comparison or sequence. Use familiar words and concrete verbs; remove stock conclusions, repeated slogans, unnecessary contrasts, and technical jargon that does not help the reader. Preserve consequential caveats and validation evidence.
34
+
35
+ ```text
36
+ Lead with the result. Use short, plain paragraphs and include only the evidence, caveats, and next action needed by this reader. Use a list only for parallel items. Avoid canned headings such as "Bottom line" and unnecessary contrasts such as "This isn't X, it's Y."
37
+ ```
38
+
39
+ ## API migration checks
40
+
41
+ These are API capabilities, not promises that every agent harness exposes them. Verify the SDK, provider, and request path before adding parameters.
42
+
43
+ | Area | Astra migration rule |
44
+ | --- | --- |
45
+ | Model and effort | Set `model: "gpt-6-astra"`. Preserve existing effective reasoning effort; when migrating from `none` or `minimal`, start with `low` and evaluate. Astra does not support `none`. Use `reasoning.effort` in Responses or `reasoning_effort` in Chat Completions. |
46
+ | Tools | Use Responses for tool calling. Astra supports Chat Completions, but tool calling requires Responses. |
47
+ | Sampling and log probabilities | Remove `temperature`, `top_p`, and `top_logprobs`. Remove Chat Completions `logprobs`; remove `message.output_text.logprobs` from Responses `include`. |
48
+ | Cache migration | From GPT-5.5 or earlier, replace `prompt_cache_retention` with `prompt_cache_options.ttl: "30m"`. Review cache boundaries and cache-write billing in the [caching guide](https://developers.openai.com/api/docs/guides/prompt-caching#summary-of-model-differences). |
49
+ | Changing effort | In supported standard single-agent requests, use a `configuration_update` input item to change effort without changing request-level `reasoning.effort` and the cached prompt prefix. The update persists until replaced. Check the [compatibility limits](https://developers.openai.com/api/docs/guides/reasoning#change-reasoning-mid-conversation) first. |
50
+ | EU data residency | Use Standard processing. Astra does not support `service_tier: "fast"` or `"priority"` with EU data residency. Fast mode has no latency SLA. |
51
+
52
+ Async tools can free the model to handle independent work while a tool runs. Mark a supported function or custom tool `async: true`; the application still executes the tool, manages pending work, and returns its result with the original `call_id`. Do not assume dependency ordering or cancellation happens automatically. See [async tool calling](https://developers.openai.com/api/docs/guides/async-tool-calling).
53
+
54
+ Mid-turn steering over Responses WebSockets can carry revised instructions into a continuation while preserving completed work. Reconcile completed actions, pending tool results, and the new scope rather than repeating side effects. Consult the [steering event flow](https://developers.openai.com/api/docs/guides/steering) before implementing it. Prompt text alone does not enable async execution or steering in Atomic or another harness.
55
+
56
+ ## Check the change on representative cases
57
+
58
+ Compare a normal task, an early-stop case, and a permission boundary case. Check whether the agent completes authorized work, asks only blocking questions, runs the required checks without repetitive expansion, and respects forbidden actions. For API migrations, also validate the request payload and tool-result flow. Keep prompt edits, model changes, and effort experiments separate so failures have an identifiable cause. Do not claim a measured improvement without running the comparison.
@@ -4,12 +4,12 @@ Optimize against representative behavior, not prompt aesthetics. Preserve user-v
4
4
 
5
5
  ## Delete-First Workflow
6
6
 
7
- OpenAI measured leaner system prompts scoring roughly 10–15% higher on internal coding-agent evals while using 41–66% fewer total tokens and costing 33–67% less. Results vary, but the direction is clear: deletion is the default edit.
7
+ OpenAI's [GPT-5.6 guide](gpt_5_6.md) reports leaner system prompts scoring roughly 10–15% higher on internal coding-agent evals while using 41–66% fewer total tokens and costing 33–67% less. Treat these as workload-specific measurements. Test deletions against your own baseline.
8
8
 
9
9
  ### Delete
10
10
 
11
11
  - repeated statements of the same rule;
12
- - generic self-verification nagging and legacy verifier scaffolding;
12
+ - generic self-verification reminders that duplicate the target model's behavior without improving measured outcomes;
13
13
  - over-triggering absolutes such as “use this tool in every case” when routing depends on context;
14
14
  - step-by-step process narration for behavior the model already performs;
15
15
  - examples that do not alter measured behavior;
@@ -37,6 +37,19 @@ Reserve absolute language for true invariants. Convert judgment calls into condi
37
37
 
38
38
  Do not rewrite a working prompt stack and change effort, model, and tools simultaneously; that makes causality impossible to identify.
39
39
 
40
+ ## Audit accumulated skills and repository instructions
41
+
42
+ The following audit distills [Eric Provencher's advice on X](https://x.com/pvncher/status/2095991462416490862), read September 5, 2026. It is practitioner guidance for instruction maintenance, not an API specification or a measured guarantee for every model or harness.
43
+
44
+ - Keep skill descriptions short and specific about when to load them. Prefer "Plan and validate database migrations" to "Use for anything involving databases." Too many broad or competing descriptions make routing harder. Provencher reports that Codex truncates descriptions when too many skills are installed; do not assume Atomic has the same truncation behavior.
45
+ - Keep a multi-purpose skill's root file a small router. Put task-specific procedures and scripts in references, and load only the branch needed. This saves context and avoids unrelated instructions changing the task.
46
+ - Revisit inherited recipes after model upgrades. Replace rigid itineraries for routine judgment with outcomes, necessary dependencies, and completion criteria. Evaluate changes across the models used by repository contributors; guidance that helps Sol or Luna may overconstrain Astra.
47
+ - Review `AGENTS.md` requirements in proportion to the task. A typo fix rarely needs a full repository map or a stack of design documents. Keep contextual pointers current and retain required pre-edit inspection and repository checks; propose changes to binding instructions rather than silently ignoring them.
48
+ - Make permission boundaries concrete. If the environment actually uses disposable local fixtures with no production access, authorize running and repairing those tests as one workflow. Do not generalize that permission to production or publication, and do not ask again at every already-authorized step.
49
+ - Define completion before work starts, including running the implementation, inspecting results, and repairing failures when requested. A first-pass review gate is a deliberate stopping point; remove an accidental gate only when authorized. For broader exploration, state what to investigate and where to stop.
50
+
51
+ Treat each audit change as a hypothesis. Compare representative tasks, including a small edit and a real approval boundary, before removing a rule globally. OpenAI's [Astra guide](gpt_6_astra.md) adds model-specific advice for excessive testing, early stops, and instruction conflicts.
52
+
40
53
  ## Evaluation Contract
41
54
 
42
55
  Choose cases that represent normal traffic, hard edge cases, missing evidence, tool failures, and adversarial inputs. Measure:
@@ -66,7 +79,7 @@ For long agent runs, ground status as well as final claims:
66
79
  Before reporting progress, audit each claim against a tool result from this session. Report failed, skipped, or unverified work plainly, and call work complete only when the cited validation supports it.
67
80
  ```
68
81
 
69
- This compact evidence rule replaces repeated requests to recheck work. Anthropic reports that grounding progress against tool results nearly eliminated fabricated status reports in its tests.
82
+ This evidence rule helps reduce unsupported progress claims; it does not replace required verification. The [Fable 5 guide](claude_fable_5.md) reports benefits from grounding status and separately recommends independent verification for long work. Keep those distinct from Opus 5's advice to remove redundant self-checks.
70
83
 
71
84
  ## Consistent Output
72
85
 
@@ -105,6 +118,7 @@ Safety invariants may use `NEVER` or `MUST`; stylistic preferences and tool judg
105
118
  | Agent stops early | Permission boundary is vague or final plan substitutes for action | Define authorized actions and completion/blocker stop rules |
106
119
  | Agent overbuilds | Scope and success criteria are broad | Name the requested scope and exclude unrelated features or refactors |
107
120
  | Too much delegation | No size or independence threshold | Add delegation damping and a concurrency cap |
121
+ | Too little delegation on Astra | No explicit permission or independence rule | Allow bounded parallel work when it saves time or improves quality |
108
122
  | Long visible answer | No explicit output length contract | Specify preserved content, omissions, sections, and word limit |
109
123
  | High latency/cost | Excess prompt text or effort | Delete first, then compare one lower effort level |
110
124
  | Long-context miss | Query precedes large documents | Put documents first and query last; Anthropic measured up to ~30% improvement |
@@ -112,7 +126,7 @@ Safety invariants may use `NEVER` or `MUST`; stylistic preferences and tool judg
112
126
 
113
127
  ## Model and Effort Regression Checks
114
128
 
115
- Preserve the current model and effort as the baseline before tuning. For GPT-5.6, test the same reasoning effort and one level lower. For Claude Opus 5 and Claude Fable 5, start from `high`, then compare lower levels where quality holds and higher levels only for capability-sensitive work.
129
+ Preserve the current model and effort as the baseline before tuning. Read the relevant page from the [model table](../SKILL.md#model-guides) for migration defaults and supported controls. Effort names do not imply equal reasoning volume across models. Compare lower levels where quality holds and higher levels only where the gain justifies cost; do not silently change thinking defaults, output budgets, or API compatibility.
116
130
 
117
131
  Effort is not a substitute for missing success criteria, routing, dependencies, validation, or stop rules. On Opus 5, effort does not reliably control visible response length; use an explicit length and shape contract.
118
132