@bastani/atomic 0.9.20-alpha.5 → 0.9.20-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 (374) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +37 -0
  3. package/dist/builtin/intercom/CHANGELOG.md +10 -0
  4. package/dist/builtin/intercom/broker/broker.ts +110 -39
  5. package/dist/builtin/intercom/broker/client.ts +8 -1
  6. package/dist/builtin/intercom/index.bundle.mjs +61 -2
  7. package/dist/builtin/intercom/live-route-refusal.ts +69 -0
  8. package/dist/builtin/intercom/package.json +2 -2
  9. package/dist/builtin/intercom/recoverable-disconnect.ts +16 -4
  10. package/dist/builtin/intercom/skills/intercom/SKILL.md +11 -11
  11. package/dist/builtin/intercom/types.ts +3 -1
  12. package/dist/builtin/mcp/package.json +2 -2
  13. package/dist/builtin/subagents/CHANGELOG.md +12 -0
  14. package/dist/builtin/subagents/package.json +3 -3
  15. package/dist/builtin/subagents/skills/cua-driver/BROWSER.md +494 -0
  16. package/dist/builtin/subagents/skills/cua-driver/EMBEDDING.md +578 -0
  17. package/dist/builtin/subagents/skills/cua-driver/LINUX.md +364 -0
  18. package/dist/builtin/subagents/skills/cua-driver/MACOS.md +509 -0
  19. package/dist/builtin/subagents/skills/cua-driver/README.md +113 -0
  20. package/dist/builtin/subagents/skills/cua-driver/RECORDING.md +162 -0
  21. package/dist/builtin/subagents/skills/cua-driver/SKILL.md +1105 -0
  22. package/dist/builtin/subagents/skills/cua-driver/WINDOWS.md +866 -0
  23. package/dist/builtin/subagents/src/extension/index.bundle.mjs +18 -8
  24. package/dist/builtin/web-access/package.json +2 -2
  25. package/dist/builtin/workflows/CHANGELOG.md +34 -0
  26. package/dist/builtin/workflows/README.md +5 -19
  27. package/dist/builtin/workflows/builtin/adversarial-verification.js +3 -3
  28. package/dist/builtin/workflows/builtin/{chunk-7f381xnq.js → chunk-2hzrv5y8.js} +140 -21
  29. package/dist/builtin/workflows/builtin/{chunk-e83tc6nr.js → chunk-3tx8ry44.js} +3 -2
  30. package/dist/builtin/workflows/builtin/{chunk-00ywx588.js → chunk-5724b0cf.js} +1 -1
  31. package/dist/builtin/workflows/builtin/{chunk-zj5162bh.js → chunk-7bzcersz.js} +33 -22
  32. package/dist/builtin/workflows/builtin/{chunk-ne6vh5ct.js → chunk-7n51c5gh.js} +1 -1
  33. package/dist/builtin/workflows/builtin/{chunk-x2nftpgj.js → chunk-9z3ztr2a.js} +1 -1
  34. package/dist/builtin/workflows/builtin/{chunk-7h7s5xdj.js → chunk-dxjxtgmp.js} +1 -1
  35. package/dist/builtin/workflows/builtin/{chunk-tvcydq13.js → chunk-ffdrv23t.js} +1 -1
  36. package/dist/builtin/workflows/builtin/{chunk-pfm1kgqz.js → chunk-hmt5w62g.js} +12 -4
  37. package/dist/builtin/workflows/builtin/{chunk-tdqvdrg1.js → chunk-jngsbbpm.js} +3 -3
  38. package/dist/builtin/workflows/builtin/{chunk-55p5dxjk.js → chunk-njmf5ze7.js} +1 -1
  39. package/dist/builtin/workflows/builtin/{chunk-evfb0312.js → chunk-vn0wb31x.js} +1 -1
  40. package/dist/builtin/workflows/builtin/classify-and-act.js +3 -3
  41. package/dist/builtin/workflows/builtin/fan-out-and-synthesize.js +3 -3
  42. package/dist/builtin/workflows/builtin/generate-and-filter.js +3 -3
  43. package/dist/builtin/workflows/builtin/goal.js +4 -4
  44. package/dist/builtin/workflows/builtin/index.js +12 -12
  45. package/dist/builtin/workflows/builtin/loop-until-done.js +3 -3
  46. package/dist/builtin/workflows/builtin/open-claude-design.js +3 -3
  47. package/dist/builtin/workflows/builtin/ralph.js +4 -4
  48. package/dist/builtin/workflows/builtin/steering-context.js +1 -1
  49. package/dist/builtin/workflows/builtin/tournament.js +3 -3
  50. package/dist/builtin/workflows/package.json +2 -2
  51. package/dist/builtin/workflows/skills/prompt-engineer/SKILL.md +10 -9
  52. package/dist/builtin/workflows/skills/prompt-engineer/references/advanced_patterns.md +4 -4
  53. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5.md +96 -23
  54. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_fable_5_1.md +75 -27
  55. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_4_8.md +72 -26
  56. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5.md +58 -22
  57. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_opus_5_5.md +118 -0
  58. package/dist/builtin/workflows/skills/prompt-engineer/references/claude_sonnet_5.md +70 -29
  59. package/dist/builtin/workflows/skills/prompt-engineer/references/core_prompting.md +1 -1
  60. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_5_5.md +95 -32
  61. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_5_6.md +79 -30
  62. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6.md +139 -0
  63. package/dist/builtin/workflows/skills/prompt-engineer/references/quality_improvement.md +4 -4
  64. package/dist/builtin/workflows/src/extension/index.bundle.mjs +446 -639
  65. package/dist/builtin/workflows/src/index.js +1434 -1277
  66. package/dist/cli/args.d.ts.map +1 -1
  67. package/dist/cli/args.js +15 -4
  68. package/dist/cli/args.js.map +1 -1
  69. package/dist/cli/file-processor.d.ts +1 -1
  70. package/dist/cli/file-processor.d.ts.map +1 -1
  71. package/dist/cli/file-processor.js.map +1 -1
  72. package/dist/core/agent-session-auto-compaction.d.ts.map +1 -1
  73. package/dist/core/agent-session-auto-compaction.js +40 -12
  74. package/dist/core/agent-session-auto-compaction.js.map +1 -1
  75. package/dist/core/agent-session-bash.d.ts.map +1 -1
  76. package/dist/core/agent-session-bash.js +9 -8
  77. package/dist/core/agent-session-bash.js.map +1 -1
  78. package/dist/core/agent-session-boundaries.d.ts +68 -0
  79. package/dist/core/agent-session-boundaries.d.ts.map +1 -0
  80. package/dist/core/agent-session-boundaries.js +334 -0
  81. package/dist/core/agent-session-boundaries.js.map +1 -0
  82. package/dist/core/agent-session-compaction.js +1 -1
  83. package/dist/core/agent-session-compaction.js.map +1 -1
  84. package/dist/core/agent-session-events.d.ts.map +1 -1
  85. package/dist/core/agent-session-events.js +27 -13
  86. package/dist/core/agent-session-events.js.map +1 -1
  87. package/dist/core/agent-session-export.d.ts.map +1 -1
  88. package/dist/core/agent-session-export.js +16 -20
  89. package/dist/core/agent-session-export.js.map +1 -1
  90. package/dist/core/agent-session-message-queue.d.ts.map +1 -1
  91. package/dist/core/agent-session-message-queue.js +6 -3
  92. package/dist/core/agent-session-message-queue.js.map +1 -1
  93. package/dist/core/agent-session-methods.d.ts +33 -4
  94. package/dist/core/agent-session-methods.d.ts.map +1 -1
  95. package/dist/core/agent-session-methods.js.map +1 -1
  96. package/dist/core/agent-session-persistent-custom-messages.d.ts.map +1 -1
  97. package/dist/core/agent-session-persistent-custom-messages.js +2 -1
  98. package/dist/core/agent-session-persistent-custom-messages.js.map +1 -1
  99. package/dist/core/agent-session-prompt.d.ts.map +1 -1
  100. package/dist/core/agent-session-prompt.js +93 -25
  101. package/dist/core/agent-session-prompt.js.map +1 -1
  102. package/dist/core/agent-session-retry.d.ts.map +1 -1
  103. package/dist/core/agent-session-retry.js +4 -9
  104. package/dist/core/agent-session-retry.js.map +1 -1
  105. package/dist/core/agent-session-runtime.d.ts +4 -0
  106. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  107. package/dist/core/agent-session-runtime.js +7 -1
  108. package/dist/core/agent-session-runtime.js.map +1 -1
  109. package/dist/core/agent-session-tasks.d.ts +9 -0
  110. package/dist/core/agent-session-tasks.d.ts.map +1 -1
  111. package/dist/core/agent-session-tasks.js +68 -16
  112. package/dist/core/agent-session-tasks.js.map +1 -1
  113. package/dist/core/agent-session-tool-hooks.d.ts.map +1 -1
  114. package/dist/core/agent-session-tool-hooks.js +15 -5
  115. package/dist/core/agent-session-tool-hooks.js.map +1 -1
  116. package/dist/core/agent-session-tool-registry.d.ts.map +1 -1
  117. package/dist/core/agent-session-tool-registry.js +9 -21
  118. package/dist/core/agent-session-tool-registry.js.map +1 -1
  119. package/dist/core/agent-session-tree.d.ts.map +1 -1
  120. package/dist/core/agent-session-tree.js +2 -3
  121. package/dist/core/agent-session-tree.js.map +1 -1
  122. package/dist/core/agent-session-types.d.ts +8 -0
  123. package/dist/core/agent-session-types.d.ts.map +1 -1
  124. package/dist/core/agent-session-types.js.map +1 -1
  125. package/dist/core/agent-session.d.ts +18 -2
  126. package/dist/core/agent-session.d.ts.map +1 -1
  127. package/dist/core/agent-session.js +22 -3
  128. package/dist/core/agent-session.js.map +1 -1
  129. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  130. package/dist/core/compaction/branch-summarization.js +1 -0
  131. package/dist/core/compaction/branch-summarization.js.map +1 -1
  132. package/dist/core/compaction/compaction-boundary.d.ts.map +1 -1
  133. package/dist/core/compaction/compaction-boundary.js +11 -6
  134. package/dist/core/compaction/compaction-boundary.js.map +1 -1
  135. package/dist/core/compaction/compaction.d.ts +3 -1
  136. package/dist/core/compaction/compaction.d.ts.map +1 -1
  137. package/dist/core/compaction/compaction.js +37 -0
  138. package/dist/core/compaction/compaction.js.map +1 -1
  139. package/dist/core/crash-log.d.ts +6 -0
  140. package/dist/core/crash-log.d.ts.map +1 -0
  141. package/dist/core/crash-log.js +69 -0
  142. package/dist/core/crash-log.js.map +1 -0
  143. package/dist/core/execution-model-router.d.ts +15 -0
  144. package/dist/core/execution-model-router.d.ts.map +1 -1
  145. package/dist/core/execution-model-router.js +82 -33
  146. package/dist/core/execution-model-router.js.map +1 -1
  147. package/dist/core/export-html/template-js/tree-filter-render.js +6 -1
  148. package/dist/core/export-html/template.js +6 -1
  149. package/dist/core/extensions/agent-events.d.ts +69 -3
  150. package/dist/core/extensions/agent-events.d.ts.map +1 -1
  151. package/dist/core/extensions/agent-events.js.map +1 -1
  152. package/dist/core/extensions/api-types.d.ts +5 -3
  153. package/dist/core/extensions/api-types.d.ts.map +1 -1
  154. package/dist/core/extensions/api-types.js.map +1 -1
  155. package/dist/core/extensions/event-results.d.ts +3 -0
  156. package/dist/core/extensions/event-results.d.ts.map +1 -1
  157. package/dist/core/extensions/event-results.js.map +1 -1
  158. package/dist/core/extensions/event-types.d.ts +2 -2
  159. package/dist/core/extensions/event-types.d.ts.map +1 -1
  160. package/dist/core/extensions/event-types.js.map +1 -1
  161. package/dist/core/extensions/index.d.ts +1 -1
  162. package/dist/core/extensions/index.d.ts.map +1 -1
  163. package/dist/core/extensions/index.js.map +1 -1
  164. package/dist/core/extensions/provider-types.d.ts +2 -0
  165. package/dist/core/extensions/provider-types.d.ts.map +1 -1
  166. package/dist/core/extensions/provider-types.js.map +1 -1
  167. package/dist/core/extensions/runner-events.d.ts +16 -2
  168. package/dist/core/extensions/runner-events.d.ts.map +1 -1
  169. package/dist/core/extensions/runner-events.js +98 -5
  170. package/dist/core/extensions/runner-events.js.map +1 -1
  171. package/dist/core/extensions/runner.d.ts +3 -2
  172. package/dist/core/extensions/runner.d.ts.map +1 -1
  173. package/dist/core/extensions/runner.js +4 -1
  174. package/dist/core/extensions/runner.js.map +1 -1
  175. package/dist/core/fast-model-variants.d.ts +16 -0
  176. package/dist/core/fast-model-variants.d.ts.map +1 -1
  177. package/dist/core/fast-model-variants.js +27 -0
  178. package/dist/core/fast-model-variants.js.map +1 -1
  179. package/dist/core/index.d.ts +1 -1
  180. package/dist/core/index.d.ts.map +1 -1
  181. package/dist/core/index.js.map +1 -1
  182. package/dist/core/messages.d.ts +10 -0
  183. package/dist/core/messages.d.ts.map +1 -1
  184. package/dist/core/messages.js +57 -0
  185. package/dist/core/messages.js.map +1 -1
  186. package/dist/core/model-config.d.ts +52 -0
  187. package/dist/core/model-config.d.ts.map +1 -1
  188. package/dist/core/model-config.js +16 -0
  189. package/dist/core/model-config.js.map +1 -1
  190. package/dist/core/model-resolver-defaults.d.ts.map +1 -1
  191. package/dist/core/model-resolver-defaults.js +2 -1
  192. package/dist/core/model-resolver-defaults.js.map +1 -1
  193. package/dist/core/model-runtime.d.ts +13 -1
  194. package/dist/core/model-runtime.d.ts.map +1 -1
  195. package/dist/core/model-runtime.js +16 -1
  196. package/dist/core/model-runtime.js.map +1 -1
  197. package/dist/core/prompt-templates-async.d.ts +2 -2
  198. package/dist/core/prompt-templates-async.d.ts.map +1 -1
  199. package/dist/core/prompt-templates-async.js +57 -29
  200. package/dist/core/prompt-templates-async.js.map +1 -1
  201. package/dist/core/prompt-templates.d.ts +6 -1
  202. package/dist/core/prompt-templates.d.ts.map +1 -1
  203. package/dist/core/prompt-templates.js +61 -35
  204. package/dist/core/prompt-templates.js.map +1 -1
  205. package/dist/core/provider-composer-internal.d.ts +1 -0
  206. package/dist/core/provider-composer-internal.d.ts.map +1 -1
  207. package/dist/core/provider-composer-internal.js +19 -0
  208. package/dist/core/provider-composer-internal.js.map +1 -1
  209. package/dist/core/resource-loader-assets.d.ts.map +1 -1
  210. package/dist/core/resource-loader-assets.js +6 -6
  211. package/dist/core/resource-loader-assets.js.map +1 -1
  212. package/dist/core/sdk-types.d.ts +5 -0
  213. package/dist/core/sdk-types.d.ts.map +1 -1
  214. package/dist/core/sdk-types.js.map +1 -1
  215. package/dist/core/sdk.d.ts.map +1 -1
  216. package/dist/core/sdk.js +7 -2
  217. package/dist/core/sdk.js.map +1 -1
  218. package/dist/core/session-manager-core.d.ts +10 -3
  219. package/dist/core/session-manager-core.d.ts.map +1 -1
  220. package/dist/core/session-manager-core.js +65 -7
  221. package/dist/core/session-manager-core.js.map +1 -1
  222. package/dist/core/session-manager-entries.d.ts +4 -1
  223. package/dist/core/session-manager-entries.d.ts.map +1 -1
  224. package/dist/core/session-manager-entries.js +8 -0
  225. package/dist/core/session-manager-entries.js.map +1 -1
  226. package/dist/core/session-manager-history.d.ts +16 -1
  227. package/dist/core/session-manager-history.d.ts.map +1 -1
  228. package/dist/core/session-manager-history.js +105 -42
  229. package/dist/core/session-manager-history.js.map +1 -1
  230. package/dist/core/session-manager-types.d.ts +30 -3
  231. package/dist/core/session-manager-types.d.ts.map +1 -1
  232. package/dist/core/session-manager-types.js.map +1 -1
  233. package/dist/core/session-manager.d.ts +2 -2
  234. package/dist/core/session-manager.d.ts.map +1 -1
  235. package/dist/core/session-manager.js +1 -1
  236. package/dist/core/session-manager.js.map +1 -1
  237. package/dist/core/settings-types.js.map +1 -1
  238. package/dist/core/structured-output/index.d.ts +1 -1
  239. package/dist/core/structured-output/index.d.ts.map +1 -1
  240. package/dist/core/structured-output/index.js +37 -41
  241. package/dist/core/structured-output/index.js.map +1 -1
  242. package/dist/core/structured-output/jev-client.d.ts +13 -8
  243. package/dist/core/structured-output/jev-client.d.ts.map +1 -1
  244. package/dist/core/structured-output/jev-client.js +90 -32
  245. package/dist/core/structured-output/jev-client.js.map +1 -1
  246. package/dist/core/structured-output/jev.d.ts.map +1 -1
  247. package/dist/core/structured-output/jev.js +38 -64
  248. package/dist/core/structured-output/jev.js.map +1 -1
  249. package/dist/core/structured-output/resolver.d.ts +32 -24
  250. package/dist/core/structured-output/resolver.d.ts.map +1 -1
  251. package/dist/core/structured-output/resolver.js +57 -9
  252. package/dist/core/structured-output/resolver.js.map +1 -1
  253. package/dist/core/structured-output/types.d.ts +8 -6
  254. package/dist/core/structured-output/types.d.ts.map +1 -1
  255. package/dist/core/structured-output/types.js.map +1 -1
  256. package/dist/core/system-prompt.js +1 -1
  257. package/dist/core/system-prompt.js.map +1 -1
  258. package/dist/core/tasks/child-command-owner.d.ts +34 -0
  259. package/dist/core/tasks/child-command-owner.d.ts.map +1 -0
  260. package/dist/core/tasks/child-command-owner.js +70 -0
  261. package/dist/core/tasks/child-command-owner.js.map +1 -0
  262. package/dist/core/tools/bash-pty-native.d.ts +5 -1
  263. package/dist/core/tools/bash-pty-native.d.ts.map +1 -1
  264. package/dist/core/tools/bash-pty-native.js +15 -7
  265. package/dist/core/tools/bash-pty-native.js.map +1 -1
  266. package/dist/core/tools/kill.d.ts +2 -2
  267. package/dist/core/tools/kill.d.ts.map +1 -1
  268. package/dist/core/tools/kill.js +3 -4
  269. package/dist/core/tools/kill.js.map +1 -1
  270. package/dist/core/tools/read.d.ts +4 -0
  271. package/dist/core/tools/read.d.ts.map +1 -1
  272. package/dist/core/tools/read.js +5 -1
  273. package/dist/core/tools/read.js.map +1 -1
  274. package/dist/index-extensions.d.ts +1 -1
  275. package/dist/index-extensions.d.ts.map +1 -1
  276. package/dist/index-extensions.js.map +1 -1
  277. package/dist/index.d.ts +4 -4
  278. package/dist/index.d.ts.map +1 -1
  279. package/dist/index.js +4 -4
  280. package/dist/index.js.map +1 -1
  281. package/dist/main-app-mode.d.ts +1 -1
  282. package/dist/main-app-mode.d.ts.map +1 -1
  283. package/dist/main-app-mode.js +3 -2
  284. package/dist/main-app-mode.js.map +1 -1
  285. package/dist/main.d.ts.map +1 -1
  286. package/dist/main.js +1 -1
  287. package/dist/main.js.map +1 -1
  288. package/dist/modes/interactive/components/tree-selector-content.d.ts.map +1 -1
  289. package/dist/modes/interactive/components/tree-selector-content.js +6 -0
  290. package/dist/modes/interactive/components/tree-selector-content.js.map +1 -1
  291. package/dist/modes/interactive/components/tree-selector-model.d.ts.map +1 -1
  292. package/dist/modes/interactive/components/tree-selector-model.js +1 -0
  293. package/dist/modes/interactive/components/tree-selector-model.js.map +1 -1
  294. package/dist/modes/interactive/interactive-agent-events.js +17 -1
  295. package/dist/modes/interactive/interactive-agent-events.js.map +1 -1
  296. package/dist/modes/interactive/interactive-auth-login.js +2 -4
  297. package/dist/modes/interactive/interactive-auth-login.js.map +1 -1
  298. package/dist/modes/interactive/interactive-mode-helpers.d.ts +1 -0
  299. package/dist/modes/interactive/interactive-mode-helpers.d.ts.map +1 -1
  300. package/dist/modes/interactive/interactive-mode-helpers.js +16 -0
  301. package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
  302. package/dist/modes/interactive/interactive-mode-surface.d.ts +1 -0
  303. package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
  304. package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
  305. package/dist/modes/interactive/interactive-process-lifecycle.js +13 -1
  306. package/dist/modes/interactive/interactive-process-lifecycle.js.map +1 -1
  307. package/dist/modes/interactive/interactive-session-runtime.js +5 -1
  308. package/dist/modes/interactive/interactive-session-runtime.js.map +1 -1
  309. package/dist/modes/interactive-engine/isolated-auth.d.ts +16 -0
  310. package/dist/modes/interactive-engine/isolated-auth.d.ts.map +1 -1
  311. package/dist/modes/interactive-engine/isolated-auth.js +27 -0
  312. package/dist/modes/interactive-engine/isolated-auth.js.map +1 -1
  313. package/dist/modes/interactive-engine/isolated-runtime.d.ts +4 -0
  314. package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
  315. package/dist/modes/interactive-engine/isolated-runtime.js +4 -1
  316. package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
  317. package/dist/modes/rpc/rpc-client-api.d.ts +2 -1
  318. package/dist/modes/rpc/rpc-client-api.d.ts.map +1 -1
  319. package/dist/modes/rpc/rpc-client-api.js +7 -2
  320. package/dist/modes/rpc/rpc-client-api.js.map +1 -1
  321. package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
  322. package/dist/modes/rpc/rpc-command-handler.js +3 -1
  323. package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
  324. package/dist/modes/rpc/rpc-provider-auth.d.ts +2 -1
  325. package/dist/modes/rpc/rpc-provider-auth.d.ts.map +1 -1
  326. package/dist/modes/rpc/rpc-provider-auth.js +2 -2
  327. package/dist/modes/rpc/rpc-provider-auth.js.map +1 -1
  328. package/dist/modes/rpc/rpc-types.d.ts +2 -0
  329. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  330. package/dist/modes/rpc/rpc-types.js.map +1 -1
  331. package/dist/utils/mime.js +1 -1
  332. package/dist/utils/mime.js.map +1 -1
  333. package/dist/utils/tool-result-images.d.ts +3 -1
  334. package/dist/utils/tool-result-images.d.ts.map +1 -1
  335. package/dist/utils/tool-result-images.js +4 -1
  336. package/dist/utils/tool-result-images.js.map +1 -1
  337. package/docs/background-tasks.md +11 -2
  338. package/docs/compaction.md +5 -1
  339. package/docs/computer-use.md +105 -56
  340. package/docs/environment-variables.md +1 -1
  341. package/docs/extensions/events.md +75 -7
  342. package/docs/extensions.md +6 -2
  343. package/docs/getting-started/first-session.md +3 -2
  344. package/docs/intercom/operations.md +13 -1
  345. package/docs/intercom.md +1 -1
  346. package/docs/llama-cpp.md +2 -2
  347. package/docs/models/evals.md +108 -118
  348. package/docs/models/reference.md +31 -3
  349. package/docs/packages.md +2 -0
  350. package/docs/prompt-templates.md +1 -0
  351. package/docs/providers.md +19 -6
  352. package/docs/reference/cli.md +2 -2
  353. package/docs/rpc/examples.md +2 -0
  354. package/docs/sdk/reference.md +2 -3
  355. package/docs/sdk/structured-decisions.md +25 -18
  356. package/docs/sdk.md +13 -2
  357. package/docs/session-format.md +17 -2
  358. package/docs/settings.md +8 -8
  359. package/docs/skills.md +8 -2
  360. package/docs/subagents/reference.md +4 -4
  361. package/docs/subagents.md +2 -2
  362. package/docs/workflows/api-reference.md +7 -34
  363. package/docs/workflows/authoring.md +191 -0
  364. package/docs/workflows/builtins.md +1 -1
  365. package/docs/workflows/operations.md +18 -78
  366. package/docs/workflows/reliable-design.md +14 -29
  367. package/docs/workflows/verification.md +21 -8
  368. package/docs/workflows.md +8 -7
  369. package/examples/rpc-client.ts +38 -0
  370. package/examples/rpc-extension-ui.ts +19 -5
  371. package/examples/sdk/README.md +1 -1
  372. package/npm-shrinkwrap.json +69 -69
  373. package/package.json +8 -8
  374. package/dist/builtin/workflows/skills/prompt-engineer/references/gpt_6_astra.md +0 -58
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  workflow,
3
3
  withBuiltinContext
4
- } from "./chunk-00ywx588.js";
4
+ } from "./chunk-5724b0cf.js";
5
5
 
6
6
  // dist/builtin/workflows/builtin/open-claude-design.ts
7
7
  import { Type as Type2 } from "typebox";
@@ -75,7 +75,7 @@ function prepareArtifactDir(cwd = process.cwd()) {
75
75
  join(tmpArtifactBase(), runId),
76
76
  join(tmpdir(), "open-claude-design", runId)
77
77
  ];
78
- const candidates = [join(cwd, "specs", "design", runId), ...tmpCandidates];
78
+ const candidates = process.env.NODE_ENV === "test" ? tmpCandidates : [join(cwd, "specs", "design", runId), ...tmpCandidates];
79
79
  for (const candidate of candidates) {
80
80
  try {
81
81
  mkdirSync(candidate, { recursive: true });
@@ -134,7 +134,15 @@ function ensureAgentBrowser() {
134
134
  summary: "agent-browser already on PATH; skipped install."
135
135
  };
136
136
  }
137
- if (false) {}
137
+ if (process.env.NODE_ENV === "test") {
138
+ return {
139
+ available: false,
140
+ alreadyPresent: false,
141
+ installed: false,
142
+ summary: "agent-browser not found; skipped global install under the test environment.",
143
+ error: "global install skipped during tests"
144
+ };
145
+ }
138
146
  try {
139
147
  const install = spawnSync("npm", ["install", "-g", "agent-browser"], {
140
148
  stdio: "ignore",
@@ -801,7 +809,7 @@ async function runOpenClaudeDesignWorkflow(ctx) {
801
809
  spec_path: specPath,
802
810
  spec_file_url: specFileUrl
803
811
  };
804
- if (shouldEarlyExitForBrowser(agentBrowser.available, "development") && typeof designContext.exit === "function") {
812
+ if (shouldEarlyExitForBrowser(agentBrowser.available, process.env.NODE_ENV) && typeof designContext.exit === "function") {
805
813
  designContext.exit({
806
814
  reason: `open-claude-design needs the agent-browser skill's browser for interactive design review, which is unavailable (${agentBrowser.error ?? agentBrowser.summary}). No design was generated. Install it (\`npm install -g agent-browser\` + \`agent-browser install\`) and re-run.`,
807
815
  outputs: partialArtifactOutputs
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  workflow,
3
3
  withBuiltinContext
4
- } from "./chunk-00ywx588.js";
4
+ } from "./chunk-5724b0cf.js";
5
5
  import {
6
6
  keepContext,
7
7
  REVIEWER_CALIBRATION_RULES,
@@ -24,7 +24,7 @@ import {
24
24
  EVIDENCE_CLOSURE_POLICY,
25
25
  WORKTREE_DISCIPLINE_CONTRACT,
26
26
  REVIEW_CODE_DELTA_CONTRACT
27
- } from "./chunk-e83tc6nr.js";
27
+ } from "./chunk-3tx8ry44.js";
28
28
  import {
29
29
  VERIFICATION_SCALE
30
30
  } from "./chunk-n1910xc4.js";
@@ -38,7 +38,7 @@ import {
38
38
  reviewerFailureText,
39
39
  summarizeReviewConvergence,
40
40
  reverify_consolidated_batch
41
- } from "./chunk-7f381xnq.js";
41
+ } from "./chunk-2hzrv5y8.js";
42
42
  import {
43
43
  fold_usage
44
44
  } from "./chunk-tgt0s5e5.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  workflow,
3
3
  withBuiltinContext
4
- } from "./chunk-00ywx588.js";
4
+ } from "./chunk-5724b0cf.js";
5
5
  import {
6
6
  scoring_prompt_reads,
7
7
  build_scoring_prompt
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  workflow,
3
3
  withBuiltinContext
4
- } from "./chunk-00ywx588.js";
4
+ } from "./chunk-5724b0cf.js";
5
5
  import {
6
6
  score_progress,
7
7
  classify_trend
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  DEFAULT_ACTION_CATEGORIES2,
3
3
  classify_and_act_default
4
- } from "./chunk-tvcydq13.js";
5
- import"./chunk-00ywx588.js";
6
- import"./chunk-e83tc6nr.js";
4
+ } from "./chunk-ffdrv23t.js";
5
+ import"./chunk-5724b0cf.js";
6
+ import"./chunk-3tx8ry44.js";
7
7
  export {
8
8
  DEFAULT_ACTION_CATEGORIES2 as DEFAULT_ACTION_CATEGORIES,
9
9
  classify_and_act_default as default
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  fan_out_and_synthesize_default
3
- } from "./chunk-ne6vh5ct.js";
4
- import"./chunk-00ywx588.js";
5
- import"./chunk-e83tc6nr.js";
3
+ } from "./chunk-7n51c5gh.js";
4
+ import"./chunk-5724b0cf.js";
5
+ import"./chunk-3tx8ry44.js";
6
6
  export {
7
7
  fan_out_and_synthesize_default as default
8
8
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  generate_and_filter_default
3
- } from "./chunk-55p5dxjk.js";
3
+ } from "./chunk-njmf5ze7.js";
4
4
  import"./chunk-2377r57g.js";
5
5
  import"./chunk-n1910xc4.js";
6
- import"./chunk-00ywx588.js";
7
- import"./chunk-e83tc6nr.js";
6
+ import"./chunk-5724b0cf.js";
7
+ import"./chunk-3tx8ry44.js";
8
8
  export {
9
9
  generate_and_filter_default as default
10
10
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  goal_default
3
- } from "./chunk-zj5162bh.js";
4
- import"./chunk-7f381xnq.js";
3
+ } from "./chunk-7bzcersz.js";
4
+ import"./chunk-2hzrv5y8.js";
5
5
  import"./chunk-2377r57g.js";
6
6
  import"./chunk-z0d03ktm.js";
7
7
  import"./chunk-n1910xc4.js";
8
- import"./chunk-00ywx588.js";
9
- import"./chunk-e83tc6nr.js";
8
+ import"./chunk-5724b0cf.js";
9
+ import"./chunk-3tx8ry44.js";
10
10
  export {
11
11
  goal_default as default
12
12
  };
@@ -1,36 +1,36 @@
1
- import"./chunk-00ywx588.js";
2
- import"./chunk-e83tc6nr.js";
1
+ import"./chunk-5724b0cf.js";
2
+ import"./chunk-3tx8ry44.js";
3
3
  import"./chunk-n1910xc4.js";
4
4
  import"./chunk-2377r57g.js";
5
5
  import {
6
6
  adversarial_verification_default
7
- } from "./chunk-7h7s5xdj.js";
7
+ } from "./chunk-dxjxtgmp.js";
8
8
  import {
9
9
  classify_and_act_default
10
- } from "./chunk-tvcydq13.js";
10
+ } from "./chunk-ffdrv23t.js";
11
11
  import {
12
12
  fan_out_and_synthesize_default
13
- } from "./chunk-ne6vh5ct.js";
13
+ } from "./chunk-7n51c5gh.js";
14
14
  import {
15
15
  generate_and_filter_default
16
- } from "./chunk-55p5dxjk.js";
17
- import"./chunk-7f381xnq.js";
16
+ } from "./chunk-njmf5ze7.js";
17
+ import"./chunk-2hzrv5y8.js";
18
18
  import"./chunk-z0d03ktm.js";
19
19
  import {
20
20
  goal_default
21
- } from "./chunk-zj5162bh.js";
21
+ } from "./chunk-7bzcersz.js";
22
22
  import {
23
23
  open_claude_design_default
24
- } from "./chunk-pfm1kgqz.js";
24
+ } from "./chunk-hmt5w62g.js";
25
25
  import {
26
26
  loop_until_done_default
27
- } from "./chunk-evfb0312.js";
27
+ } from "./chunk-vn0wb31x.js";
28
28
  import {
29
29
  ralph_default
30
- } from "./chunk-tdqvdrg1.js";
30
+ } from "./chunk-jngsbbpm.js";
31
31
  import {
32
32
  tournament_default
33
- } from "./chunk-x2nftpgj.js";
33
+ } from "./chunk-9z3ztr2a.js";
34
34
  export {
35
35
  adversarial_verification_default as adversarialVerification,
36
36
  classify_and_act_default as classifyAndAct,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  loop_until_done_default
3
- } from "./chunk-evfb0312.js";
3
+ } from "./chunk-vn0wb31x.js";
4
4
  import"./chunk-z0d03ktm.js";
5
5
  import"./chunk-n1910xc4.js";
6
- import"./chunk-00ywx588.js";
7
- import"./chunk-e83tc6nr.js";
6
+ import"./chunk-5724b0cf.js";
7
+ import"./chunk-3tx8ry44.js";
8
8
  export {
9
9
  loop_until_done_default as default
10
10
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  open_claude_design_default
3
- } from "./chunk-pfm1kgqz.js";
4
- import"./chunk-00ywx588.js";
5
- import"./chunk-e83tc6nr.js";
3
+ } from "./chunk-hmt5w62g.js";
4
+ import"./chunk-5724b0cf.js";
5
+ import"./chunk-3tx8ry44.js";
6
6
  export {
7
7
  open_claude_design_default as default
8
8
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ralph_default
3
- } from "./chunk-tdqvdrg1.js";
4
- import"./chunk-7f381xnq.js";
3
+ } from "./chunk-jngsbbpm.js";
4
+ import"./chunk-2hzrv5y8.js";
5
5
  import"./chunk-2377r57g.js";
6
6
  import"./chunk-z0d03ktm.js";
7
7
  import"./chunk-n1910xc4.js";
8
- import"./chunk-00ywx588.js";
9
- import"./chunk-e83tc6nr.js";
8
+ import"./chunk-5724b0cf.js";
9
+ import"./chunk-3tx8ry44.js";
10
10
  export {
11
11
  ralph_default as default
12
12
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withSteeringPropagationContext2
3
- } from "./chunk-e83tc6nr.js";
3
+ } from "./chunk-3tx8ry44.js";
4
4
  export {
5
5
  withSteeringPropagationContext2 as withSteeringPropagationContext
6
6
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  tournament_default
3
- } from "./chunk-x2nftpgj.js";
3
+ } from "./chunk-9z3ztr2a.js";
4
4
  import"./chunk-2377r57g.js";
5
5
  import"./chunk-n1910xc4.js";
6
- import"./chunk-00ywx588.js";
7
- import"./chunk-e83tc6nr.js";
6
+ import"./chunk-5724b0cf.js";
7
+ import"./chunk-3tx8ry44.js";
8
8
  export {
9
9
  tournament_default as default
10
10
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/workflows",
3
- "version": "0.9.20-alpha.5",
3
+ "version": "0.9.20-alpha.7",
4
4
  "private": true,
5
5
  "description": "Atomic extension for multi-stage workflow authoring and execution.",
6
6
  "contributors": [
@@ -86,7 +86,7 @@
86
86
  },
87
87
  "peerDependencies": {
88
88
  "@bastani/atomic": "*",
89
- "@earendil-works/pi-tui": "^0.86.1"
89
+ "@earendil-works/pi-tui": "^0.87.1"
90
90
  },
91
91
  "peerDependenciesMeta": {
92
92
  "@bastani/atomic": {
@@ -5,7 +5,7 @@ description: Write, evaluate, migrate, or troubleshoot prompts for GPT and Claud
5
5
 
6
6
  # Prompt engineering
7
7
 
8
- Create or revise prompts for the user's target model. Keep the common prompt portable and load only the relevant model guide. Each model page distills its official source into practical instructions; defaults, effort levels, and API features do not transfer automatically between models or providers.
8
+ Create or revise prompts for the user's target model. Keep the common prompt portable and load only the relevant model guide. Each page connects an observed behavior to a prompt adjustment, prompt wording, and caveats. Use the matching patterns rather than pasting the whole guide into a prompt. The guides cover prompts, not API request settings; behavior does not transfer automatically between models.
9
9
 
10
10
  ## Workflow
11
11
 
@@ -28,14 +28,15 @@ Create or revise prompts for the user's target model. Keep the common prompt por
28
28
 
29
29
  | Target | Read | Main distinctions |
30
30
  | --- | --- | --- |
31
- | GPT-6 Astra | `references/gpt_6_astra.md` | Completion and approval pauses, instruction sensitivity, proportionate verification, API migration |
32
- | GPT-5.6, Sol, Terra, Luna | `references/gpt_5_6.md` | Lean prompts, concise defaults, effort sweep, pro mode, programmatic tools, caching |
33
- | GPT-5.5 | `references/gpt_5_5.md` | Outcome-first baseline, retrieval limits, explicit validation, assistant phase replay |
34
- | Claude Fable 5.1 | `references/claude_fable_5_1.md` | Progress visibility, batching, thinking-history binding, completion and output budget |
31
+ | GPT-6 Astra, Sol, Luna | `references/gpt_6.md` | OpenAI's official templates for approval pauses, skill-instruction conflicts, writing style, delegation, and verification; Sol/Luna effort sensitivity |
32
+ | GPT-5.6 Sol, Terra, Luna | `references/gpt_5_6.md` | Lean prompts, concise defaults, high-effort and pro-mode prompts, programmatic tool stages, cache-friendly ordering |
33
+ | GPT-5.5 | `references/gpt_5_5.md` | Outcome-first baseline, retrieval limits, grounded drafts, explicit validation |
34
+ | Claude Fable 5.1 | `references/claude_fable_5_1.md` | Progress visibility, batching, append-only reminders, completion within the output allowance |
35
35
  | Claude Fable 5 | `references/claude_fable_5.md` | Long-run completion, grounded progress, task-sized independent verification, refusal handling |
36
+ | Claude Opus 5.5 | `references/claude_opus_5_5.md` | Always-on thinking, progress cadence, bounded unattended continuation, pasted-content boundaries |
36
37
  | Claude Opus 5 | `references/claude_opus_5.md` | Separate response length from effort, remove redundant verification, bound delegation |
37
- | Claude Opus 4.8 | `references/claude_opus_4_8.md` | Explicit adaptive thinking, literal scope, tool triggering, design alternatives |
38
- | Claude Sonnet 5 | `references/claude_sonnet_5.md` | Changed thinking default, unsupported manual budgets/sampling, literal scope and review recall |
38
+ | Claude Opus 4.8 | `references/claude_opus_4_8.md` | Steerable thinking, literal scope, tool triggering, design alternatives |
39
+ | Claude Sonnet 5 | `references/claude_sonnet_5.md` | Thinking on by default, variety through prompts instead of sampling, literal scope and review recall |
39
40
 
40
41
  For a migration, read both source and target pages when both are listed. For a cross-model prompt, keep common requirements in the main contract and isolate only the differences that affect behavior. Do not load every page for a single-model task.
41
42
 
@@ -44,12 +45,12 @@ For a migration, read both source and target pages when both are listed. For a c
44
45
  - State the result and completion bar; leave routine path selection to the model.
45
46
  - Give relevant context and a short reason for important constraints.
46
47
  - Reserve absolute language for true invariants such as safety, permission, required fields, and forbidden actions. Use conditional rules for judgment calls.
47
- - Specify output length, sections, format, and validation when the user or a parser depends on them. Use schemas for machine output where supported.
48
+ - Specify output length, sections, format, and validation when the user or a parser depends on them. Use schemas for machine output when the host enforces them.
48
49
  - Use descriptive XML tags to separate mixed instructions, context, examples, and untrusted documents when helpful. Simple prompts need no markup.
49
50
  - Keep examples only when they improve measured behavior. Ensure they obey the written contract.
50
51
  - Require evidence for consequential claims, permit uncertainty, and define what happens when evidence is missing.
51
52
  - Request conclusions, evidence, observed behavior, and validation results. Do not ask the model to reconstruct private reasoning in response text.
52
53
  - Calibrate verification and delegation to the model and task. Preserve required checks, real approval gates, and the harness's concurrency and execution rules.
53
- - Validate API compatibility before recommending parameters. A provider capability is not proof that Atomic or another host exposes it.
54
+ - Mentioning a tool or capability in a prompt does not provide it. Write prompts only for tools the host actually exposes.
54
55
 
55
56
  Prompting reduces errors but does not eliminate them. Preserve safety, business, evidence, permission, and downstream parser constraints while optimizing.
@@ -1,10 +1,10 @@
1
1
  # Advanced Prompting Patterns
2
2
 
3
- Use these patterns for agents, tools, long context, multi-stage work, or model-specific tuning. Keep the common prompt portable; add a model-specific branch only when behavior or API controls differ.
3
+ Use these patterns for agents, tools, long context, multi-stage work, or model-specific tuning. Keep the common prompt portable; add a model-specific branch only when behavior differs.
4
4
 
5
5
  ## Choose model-specific guidance separately
6
6
 
7
- The [skill's model table](../SKILL.md#model-guides) routes to one page per model, each linked to its official source. Read the target page before selecting effort, verification cadence, delegation, or API controls. Keep those differences out of a shared prompt unless the application deliberately branches by model.
7
+ The [skill's model table](../SKILL.md#model-guides) routes to one page per model, each linked to its official source. Read the target page before tuning effort, verification cadence, or delegation. Keep those differences out of a shared prompt unless the application deliberately branches by model.
8
8
 
9
9
  ## Agentic Prompt Structure
10
10
 
@@ -72,11 +72,11 @@ Quote grounding can focus retrieval in noisy inputs. Require only quotes that su
72
72
 
73
73
  ## Adaptive Thinking and Effort
74
74
 
75
- Check the target model's thinking default, supported effort levels, and output budget before tuning. Effort names do not guarantee equal reasoning volume across versions. On supported Claude thinking requests, `max_tokens` covers both thinking and visible response; leave room for both. Change effort separately from prompt wording to identify the cause of regressions.
75
+ Check the target model's thinking behavior before tuning. Effort names do not guarantee equal reasoning volume across versions. Where thinking shares the output allowance with the visible response, leave room for both. Change effort separately from prompt wording to identify the cause of regressions.
76
76
 
77
77
  Do not use visible chain-of-thought instructions or private-deliberation tags as a prompting technique. They are obsolete and can trigger Fable 5 safeguards. Ask for an answer supported by evidence, calculations, test results, or a concise decision rationale that does not solicit private deliberation.
78
78
 
79
- Keep earlier conversation items intact when replaying state. Caching and thinking-history binding rules differ by model and API; read the model page before changing effort, system instructions, or the replayed prefix.
79
+ Keep earlier conversation items intact when replaying state. Caching and history-replay rules differ by model; read the model page before changing effort, system instructions, or the replayed prefix.
80
80
 
81
81
  ## Prompt Chaining and Examples
82
82
 
@@ -1,49 +1,122 @@
1
1
  # Claude Fable 5 prompting
2
2
 
3
- Use this reference for long autonomous tasks, progress reliability, delegation, and migration from Opus 4.8. Distilled from [Anthropic's Fable 5 prompting guide](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-fable-5), checked September 5, 2026. Apply model-specific changes to observed failures rather than importing every instruction into every task.
3
+ Use this reference for long autonomous tasks, progress reliability, delegation, memory, and migration from Opus 4.8. Distilled from [Anthropic's Fable 5 prompting guide](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-fable-5), checked September 22, 2026. Apply model-specific changes to observed failures rather than importing every instruction into every task. The prompt snippets below are adaptations for reuse in your own prompts, not verbatim quotes from Anthropic's guide.
4
4
 
5
- ## Calibrate effort and task size
5
+ ## Turns run much longer by default
6
6
 
7
- Start at `high` for most tasks. Use `xhigh` for the most capability-sensitive work and evaluate `medium` or `low` for routine or interactive tasks. Higher effort can improve verification on difficult work but also encourage unnecessary context gathering and planning on small tasks.
7
+ Hard tasks can run for many minutes per request, and autonomous runs can extend for hours, especially when the model gathers context, builds, and self-verifies. On ambiguous tasks, keep the model from overplanning:
8
8
 
9
- Give the model a complete goal, why it matters, and observable completion criteria. Test demanding end-to-end work as well as simple edits when evaluating adoption. Keep nearby refactors, defensive additions, and unrelated deliverables outside the requested scope.
9
+ ```text
10
+ When you have enough information to act, act. Do not re-derive facts already established in the conversation, re-litigate a decision the user has already made, or narrate options you will not pursue in user-facing messages. If you are weighing a choice, give a recommendation, not an exhaustive survey. This does not apply to thinking blocks.
11
+ ```
12
+
13
+ ## Higher effort can widen scope on routine work
14
+
15
+ Lower effort still performs well on routine or interactive tasks. At higher effort on routine work, the model can gather context and deliberate beyond what the task needs, alongside strong verification and rigorous output. To curb unrequested scope growth:
16
+
17
+ ```text
18
+ Do not add features, refactors, or abstractions beyond the task. Use the simplest design that fully satisfies the request. Avoid speculative handling for impossible scenarios, while preserving existing validation, required checks, and meaningful safety boundaries.
19
+ ```
20
+
21
+ ## Short instructions steer strongly; enumerating every case is unnecessary
22
+
23
+ Fable 5 follows brief instructions well. Un-steered, it can elaborate beyond what a task needs, especially at higher effort: surveying unpursued options, explaining root causes at length, or narrating what the next line does. A short brevity instruction replaces a long list of forbidden patterns:
24
+
25
+ ```text
26
+ Lead with the outcome. Your first sentence after finishing should answer "what happened" or "what did you find." Supporting detail comes after. Being readable and being concise are different things; drop details that don't change what the reader would do next, but don't compress the writing into fragments or arrow chains.
27
+ ```
28
+
29
+ The same brevity principle applies to checkpoint behavior; state the actual stopping condition rather than every case:
30
+
31
+ ```text
32
+ Pause when a required approval, a destructive or irreversible action, a material scope decision, or missing input prevents progress. Otherwise continue already-authorized work without asking again. State the blocker rather than ending on a promise.
33
+ ```
34
+
35
+ ## Progress claims need grounding in actual tool results
36
+
37
+ On long autonomous runs, ask the model to audit its own status claims before reporting them:
38
+
39
+ ```text
40
+ Before reporting progress, audit each claim against a tool result from this session. Only report work you can point to evidence for; if something is not yet verified, say so explicitly. Report outcomes faithfully: if tests fail, say so with the output; if a step was skipped, say that.
41
+ ```
42
+
43
+ Anthropic reports this nearly eliminated fabricated status reports in its testing; measure the effect on your own workload rather than assuming it transfers unchanged.
44
+
45
+ ## Long-session summaries need re-grounding, not working shorthand
46
+
47
+ In extended agentic conversations, Fable 5 can write final summaries in the same dense, arrow-chain shorthand useful while working between tool calls, which a reader who did not see the work cannot follow:
10
48
 
11
- Hard requests can run for many minutes and autonomous tasks much longer. Review streaming, client timeouts, progress indicators, and asynchronous monitoring for the actual workload. Do not raise repository test budgets or change execution policy merely because long model turns are possible.
49
+ ```text
50
+ Your final summary is for a reader who did not see the work. Lead with the outcome, then explain what you need from them. Replace working shorthand and arrow chains with plain sentences that identify the relevant files, commits, or flags. Keep supporting evidence and material limitations.
51
+ ```
52
+
53
+ ## Unrequested actions and destructive commands need explicit boundaries
54
+
55
+ The model can occasionally take actions nobody asked for (drafting an unrequested email, creating defensive backup branches). Name what is and is not authorized, and require evidence before a state-changing command:
56
+
57
+ ```text
58
+ When the user is describing a problem or thinking out loud rather than requesting a change, the deliverable is your assessment; report findings and stop. Before running a command that changes system state (restarts, deletes, config edits), check that the evidence actually supports that specific action. A signal that pattern-matches to a known failure may have a different cause.
59
+ ```
60
+
61
+ ## Rare early stops need a bounded continuation, not indefinite prompting
62
+
63
+ Deep into a long session, Fable 5 can occasionally end a turn with a text-only statement of intent instead of the matching tool call, or ask permission when it already has enough to proceed. For genuinely unattended pipelines, add a standing reminder:
64
+
65
+ ```text
66
+ The user is not watching this unattended run in real time. Continue reversible actions already authorized by the request without routine check-ins. If the next step you describe is available and authorized, take it rather than ending on a promise. Stop when the task is complete, a required approval or budget boundary is reached, or no work can advance without a blocking decision or protected access.
67
+ ```
12
68
 
13
- ## Use brief, explicit boundaries
69
+ Bound automatic continuations rather than looping indefinitely on a task that is genuinely stuck; stop after a small number and surface it for review.
70
+ Use the unattended wording only when it is true; retain interactive approval gates. A task asking only for findings does not authorize a fix.
14
71
 
15
- Fable 5 follows short instructions strongly. Prefer a concise scope and output contract over lists of every possible over-elaboration. Specify necessary checkpoints once and preserve real permission requirements.
72
+ ## Delegation scales with explicit ownership, not implicit trust
73
+
74
+ Fable 5 dispatches and sustains parallel subagents readily. Give explicit delegation conditions, independent file or task ownership, and expected evidence; prefer asynchronous communication over blocking on the slowest subagent:
75
+
76
+ ```text
77
+ Delegate independent subtasks to subagents and keep working while they run. Intervene if a subagent goes off track or is missing relevant context.
78
+ ```
79
+
80
+ For long-running work, a stated verification interval with fresh-context verifier subagents against the specification tends to outperform self-critique:
16
81
 
17
82
  ```text
18
- Complete the requested change and its required validation. Keep edits within the stated scope. Continue work already authorized by the request; pause only for a blocking decision, missing permission, or unavailable prerequisite. Report completed work and the evidence for it in plain language.
83
+ Establish a method for checking your own work at an interval of [X] as you build. Run this every [X interval], verifying your work with subagents against the specification.
19
84
  ```
20
85
 
21
- If a turn ends with an unexecuted intention, continue with the actual tool call when authorized. Do not treat a plan as completion. Avoid exposing remaining-context countdowns that encourage premature handoffs. If the application compacts automatically, explain that behavior accurately rather than promising unlimited context.
86
+ Apply this where the workload and orchestration policy call for it. Do not carry Opus 5's removal of generic verification into Fable 5 as a universal rule, and do not impose periodic verifier loops on trivial edits; required repository checks remain binding regardless.
87
+
88
+ ## Memory across runs needs an explicit place to write
22
89
 
23
- ## Ground progress and communicate clearly
90
+ Where authorized, give the model a persistent notes file and instructions for maintaining it:
24
91
 
25
- Before reporting progress, compare each claim with actual tool results from the current session. Label failures, skipped checks, and unverified work. Anthropic reports this rule reduced fabricated status reports in its tests; verify its effect on your own workload.
92
+ ```text
93
+ Store one lesson per file with a one-line summary at the top. Record corrections and confirmed approaches alike, including why they mattered. Don't save what the repo or chat history already records; update an existing note rather than duplicating it; delete notes that turn out to be wrong.
94
+ ```
26
95
 
27
- For long conversations, prefer readable sentences over arrow chains, compressed implementation labels, or references to reasoning the user never saw. Lead with the outcome and retain the evidence and caveats the reader needs.
96
+ To bootstrap from prior sessions: "Reflect on the previous sessions we've had together. Use subagents to identify core themes and lessons, and store them in [X]." Do not let memory become authorization for unrelated edits, and avoid retaining secrets unnecessarily.
28
97
 
29
- If the product needs an exact deliverable or direct reply displayed mid-task, the guide recommends a send-to-user tool whose input the client renders verbatim. Pair it with instructions identifying when to use it; defining the tool alone may not trigger use. Reserve it for content intended for the user, not internal reasoning or routine narration. Confirm the host implements such a tool before referring to it in a prompt.
98
+ ## Verbatim mid-task content needs a dedicated delivery path
30
99
 
31
- ## Delegate and verify according to the task
100
+ For long asynchronous agents where the user must see specific content exactly as written before the task ends (a generated snippet, a direct answer mid-loop), the source recommends a client-side tool whose input is rendered verbatim rather than summarized. Defining the tool is not enough; pair it with an explicit instruction naming when to use it, and reserve it for user-facing content, not narration:
32
101
 
33
- Fable 5 readily dispatches and sustains parallel subagents. Give explicit delegation conditions, independent ownership, and result expectations. Prefer asynchronous communication where supported. Long-lived delegates can reuse context across related subtasks, but they still need scope boundaries and a current assignment.
102
+ ```text
103
+ Between tool calls, when you have content the user must read verbatim, call send_to_user with that content. Use it only for user-facing content, not for narration or reasoning.
104
+ ```
34
105
 
35
- For long-running work, the official guide recommends a stated verification interval and fresh-context verifier subagents against the specification. Apply that pattern when the workload and orchestration policy call for it. Do not copy Opus 5's removal of generic verification into Fable 5 as a universal rule, or impose periodic verifier loops on trivial edits. Required repository checks remain binding.
106
+ Confirm the host actually implements such a tool before referring to it in a prompt.
36
107
 
37
- When authorized, provide a small persistent notes file for lessons that should carry between runs. Record useful decisions and evidence, and review prior sessions to seed it. Do not turn memory into permission for unrelated edits or retain secrets unnecessarily.
108
+ ## Review filters lose recall on vague severity language
38
109
 
39
- ## Remove obsolete instructions safely
110
+ Vague thresholds like "be conservative" can make the model investigate just as thoroughly but withhold findings below that unclear bar. If a downstream stage ranks or filters, tell the discovery stage its job is coverage; give a concrete bar (incorrect behavior, failing test, misleading result) for a single pass, and preserve any severity limit the user explicitly requested.
40
111
 
41
- Review legacy skills and procedures for overly prescriptive steps that worsen default performance. Propose or make instruction changes only within the user's authorization. Preserve safety, parser contracts, permission boundaries, and required validation while testing whether a shorter prompt improves results.
112
+ ```text
113
+ Within the requested scope, report supported findings with their trigger, location, impact, and evidence. Label plausible but unverified concerns separately. If a later review pass will rank them, do not silently discard lower-severity findings; retain any severity limits the user explicitly set.
114
+ ```
42
115
 
43
- Do not ask the model to echo, transcribe, or reconstruct private reasoning in response text. The guide warns that this can trigger `reasoning_extraction` refusals and fallback to Opus 4.8. Request conclusions, citations, observed outputs, and validation evidence. If supported, consume API-provided thinking blocks for available reasoning visibility rather than asking the model to recreate them.
116
+ ## Requests for its reasoning can trigger refusals
44
117
 
45
- The source also describes possible refusals in offensive cybersecurity and biology or life-sciences work. Handle refusal and fallback explicitly under application policy; a prompting guide does not override those safeguards.
118
+ Fable 5 runs safety classifiers for offensive cybersecurity, biology and life-sciences content, and extraction of its reasoning. Benign work in these areas can still be refused. Do not ask the model to echo, transcribe, or reconstruct its private reasoning in the response; that request pattern can itself trigger a refusal. Ask for conclusions, citations, and validation evidence instead.
46
119
 
47
- ## Check the change
120
+ ## Validate the prompt change
48
121
 
49
- Evaluate a difficult bounded task, a routine edit, and an interrupted long run. Check completion, authorization, scope, accurate status, and actual tool execution. Compare effort levels separately from prompt changes. This prompting guide does not establish API compatibility for every provider or Atomic integration; consult the linked model introduction before changing request parameters.
122
+ Evaluate a difficult bounded task, a routine edit, and an interrupted long run. Check completion, authorization, scope, accurate status, and actual tool execution. Change one prompt variable at a time.