@bastani/atomic 0.9.20-alpha.5 → 0.9.20-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/CHANGELOG.md +41 -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 +6 -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/web-access/package.json +2 -2
  24. package/dist/builtin/workflows/CHANGELOG.md +13 -0
  25. package/dist/builtin/workflows/builtin/adversarial-verification.js +3 -3
  26. package/dist/builtin/workflows/builtin/{chunk-7f381xnq.js → chunk-2hzrv5y8.js} +140 -21
  27. package/dist/builtin/workflows/builtin/{chunk-e83tc6nr.js → chunk-3tx8ry44.js} +3 -2
  28. package/dist/builtin/workflows/builtin/{chunk-00ywx588.js → chunk-5724b0cf.js} +1 -1
  29. package/dist/builtin/workflows/builtin/{chunk-ne6vh5ct.js → chunk-7n51c5gh.js} +1 -1
  30. package/dist/builtin/workflows/builtin/{chunk-x2nftpgj.js → chunk-9z3ztr2a.js} +1 -1
  31. package/dist/builtin/workflows/builtin/{chunk-zj5162bh.js → chunk-deq63d9p.js} +3 -3
  32. package/dist/builtin/workflows/builtin/{chunk-7h7s5xdj.js → chunk-dxjxtgmp.js} +1 -1
  33. package/dist/builtin/workflows/builtin/{chunk-tvcydq13.js → chunk-ffdrv23t.js} +1 -1
  34. package/dist/builtin/workflows/builtin/{chunk-pfm1kgqz.js → chunk-hmt5w62g.js} +12 -4
  35. package/dist/builtin/workflows/builtin/{chunk-tdqvdrg1.js → chunk-jngsbbpm.js} +3 -3
  36. package/dist/builtin/workflows/builtin/{chunk-55p5dxjk.js → chunk-njmf5ze7.js} +1 -1
  37. package/dist/builtin/workflows/builtin/{chunk-evfb0312.js → chunk-vn0wb31x.js} +1 -1
  38. package/dist/builtin/workflows/builtin/classify-and-act.js +3 -3
  39. package/dist/builtin/workflows/builtin/fan-out-and-synthesize.js +3 -3
  40. package/dist/builtin/workflows/builtin/generate-and-filter.js +3 -3
  41. package/dist/builtin/workflows/builtin/goal.js +4 -4
  42. package/dist/builtin/workflows/builtin/index.js +12 -12
  43. package/dist/builtin/workflows/builtin/loop-until-done.js +3 -3
  44. package/dist/builtin/workflows/builtin/open-claude-design.js +3 -3
  45. package/dist/builtin/workflows/builtin/ralph.js +4 -4
  46. package/dist/builtin/workflows/builtin/steering-context.js +1 -1
  47. package/dist/builtin/workflows/builtin/tournament.js +3 -3
  48. package/dist/builtin/workflows/package.json +2 -2
  49. package/dist/builtin/workflows/src/extension/index.bundle.mjs +199 -36
  50. package/dist/builtin/workflows/src/index.js +1418 -1271
  51. package/dist/cli/args.d.ts.map +1 -1
  52. package/dist/cli/args.js +15 -4
  53. package/dist/cli/args.js.map +1 -1
  54. package/dist/cli/file-processor.d.ts +1 -1
  55. package/dist/cli/file-processor.d.ts.map +1 -1
  56. package/dist/cli/file-processor.js.map +1 -1
  57. package/dist/core/agent-session-auto-compaction.d.ts.map +1 -1
  58. package/dist/core/agent-session-auto-compaction.js +40 -12
  59. package/dist/core/agent-session-auto-compaction.js.map +1 -1
  60. package/dist/core/agent-session-bash.d.ts.map +1 -1
  61. package/dist/core/agent-session-bash.js +9 -8
  62. package/dist/core/agent-session-bash.js.map +1 -1
  63. package/dist/core/agent-session-boundaries.d.ts +68 -0
  64. package/dist/core/agent-session-boundaries.d.ts.map +1 -0
  65. package/dist/core/agent-session-boundaries.js +334 -0
  66. package/dist/core/agent-session-boundaries.js.map +1 -0
  67. package/dist/core/agent-session-compaction.js +1 -1
  68. package/dist/core/agent-session-compaction.js.map +1 -1
  69. package/dist/core/agent-session-events.d.ts.map +1 -1
  70. package/dist/core/agent-session-events.js +27 -13
  71. package/dist/core/agent-session-events.js.map +1 -1
  72. package/dist/core/agent-session-export.d.ts.map +1 -1
  73. package/dist/core/agent-session-export.js +16 -20
  74. package/dist/core/agent-session-export.js.map +1 -1
  75. package/dist/core/agent-session-message-queue.d.ts.map +1 -1
  76. package/dist/core/agent-session-message-queue.js +3 -2
  77. package/dist/core/agent-session-message-queue.js.map +1 -1
  78. package/dist/core/agent-session-methods.d.ts +30 -4
  79. package/dist/core/agent-session-methods.d.ts.map +1 -1
  80. package/dist/core/agent-session-methods.js.map +1 -1
  81. package/dist/core/agent-session-persistent-custom-messages.d.ts.map +1 -1
  82. package/dist/core/agent-session-persistent-custom-messages.js +2 -1
  83. package/dist/core/agent-session-persistent-custom-messages.js.map +1 -1
  84. package/dist/core/agent-session-prompt.d.ts.map +1 -1
  85. package/dist/core/agent-session-prompt.js +93 -25
  86. package/dist/core/agent-session-prompt.js.map +1 -1
  87. package/dist/core/agent-session-retry.d.ts.map +1 -1
  88. package/dist/core/agent-session-retry.js +4 -9
  89. package/dist/core/agent-session-retry.js.map +1 -1
  90. package/dist/core/agent-session-runtime.js +1 -1
  91. package/dist/core/agent-session-runtime.js.map +1 -1
  92. package/dist/core/agent-session-tool-hooks.d.ts.map +1 -1
  93. package/dist/core/agent-session-tool-hooks.js +15 -5
  94. package/dist/core/agent-session-tool-hooks.js.map +1 -1
  95. package/dist/core/agent-session-tree.d.ts.map +1 -1
  96. package/dist/core/agent-session-tree.js +2 -3
  97. package/dist/core/agent-session-tree.js.map +1 -1
  98. package/dist/core/agent-session-types.d.ts +6 -0
  99. package/dist/core/agent-session-types.d.ts.map +1 -1
  100. package/dist/core/agent-session-types.js.map +1 -1
  101. package/dist/core/agent-session.d.ts +15 -2
  102. package/dist/core/agent-session.d.ts.map +1 -1
  103. package/dist/core/agent-session.js +17 -1
  104. package/dist/core/agent-session.js.map +1 -1
  105. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  106. package/dist/core/compaction/branch-summarization.js +1 -0
  107. package/dist/core/compaction/branch-summarization.js.map +1 -1
  108. package/dist/core/compaction/compaction-boundary.d.ts.map +1 -1
  109. package/dist/core/compaction/compaction-boundary.js +11 -6
  110. package/dist/core/compaction/compaction-boundary.js.map +1 -1
  111. package/dist/core/compaction/compaction.d.ts +3 -1
  112. package/dist/core/compaction/compaction.d.ts.map +1 -1
  113. package/dist/core/compaction/compaction.js +37 -0
  114. package/dist/core/compaction/compaction.js.map +1 -1
  115. package/dist/core/crash-log.d.ts +6 -0
  116. package/dist/core/crash-log.d.ts.map +1 -0
  117. package/dist/core/crash-log.js +69 -0
  118. package/dist/core/crash-log.js.map +1 -0
  119. package/dist/core/execution-model-router.d.ts +1 -0
  120. package/dist/core/execution-model-router.d.ts.map +1 -1
  121. package/dist/core/execution-model-router.js +15 -12
  122. package/dist/core/execution-model-router.js.map +1 -1
  123. package/dist/core/export-html/template-js/tree-filter-render.js +6 -1
  124. package/dist/core/export-html/template.js +6 -1
  125. package/dist/core/extensions/agent-events.d.ts +69 -3
  126. package/dist/core/extensions/agent-events.d.ts.map +1 -1
  127. package/dist/core/extensions/agent-events.js.map +1 -1
  128. package/dist/core/extensions/api-types.d.ts +5 -3
  129. package/dist/core/extensions/api-types.d.ts.map +1 -1
  130. package/dist/core/extensions/api-types.js.map +1 -1
  131. package/dist/core/extensions/event-results.d.ts +3 -0
  132. package/dist/core/extensions/event-results.d.ts.map +1 -1
  133. package/dist/core/extensions/event-results.js.map +1 -1
  134. package/dist/core/extensions/event-types.d.ts +2 -2
  135. package/dist/core/extensions/event-types.d.ts.map +1 -1
  136. package/dist/core/extensions/event-types.js.map +1 -1
  137. package/dist/core/extensions/index.d.ts +1 -1
  138. package/dist/core/extensions/index.d.ts.map +1 -1
  139. package/dist/core/extensions/index.js.map +1 -1
  140. package/dist/core/extensions/provider-types.d.ts +2 -0
  141. package/dist/core/extensions/provider-types.d.ts.map +1 -1
  142. package/dist/core/extensions/provider-types.js.map +1 -1
  143. package/dist/core/extensions/runner-events.d.ts +16 -2
  144. package/dist/core/extensions/runner-events.d.ts.map +1 -1
  145. package/dist/core/extensions/runner-events.js +98 -5
  146. package/dist/core/extensions/runner-events.js.map +1 -1
  147. package/dist/core/extensions/runner.d.ts +3 -2
  148. package/dist/core/extensions/runner.d.ts.map +1 -1
  149. package/dist/core/extensions/runner.js +4 -1
  150. package/dist/core/extensions/runner.js.map +1 -1
  151. package/dist/core/index.d.ts +1 -1
  152. package/dist/core/index.d.ts.map +1 -1
  153. package/dist/core/index.js.map +1 -1
  154. package/dist/core/messages.d.ts +10 -0
  155. package/dist/core/messages.d.ts.map +1 -1
  156. package/dist/core/messages.js +57 -0
  157. package/dist/core/messages.js.map +1 -1
  158. package/dist/core/model-config.d.ts +52 -0
  159. package/dist/core/model-config.d.ts.map +1 -1
  160. package/dist/core/model-config.js +16 -0
  161. package/dist/core/model-config.js.map +1 -1
  162. package/dist/core/model-resolver-defaults.d.ts.map +1 -1
  163. package/dist/core/model-resolver-defaults.js +2 -1
  164. package/dist/core/model-resolver-defaults.js.map +1 -1
  165. package/dist/core/prompt-templates-async.d.ts +2 -2
  166. package/dist/core/prompt-templates-async.d.ts.map +1 -1
  167. package/dist/core/prompt-templates-async.js +57 -29
  168. package/dist/core/prompt-templates-async.js.map +1 -1
  169. package/dist/core/prompt-templates.d.ts +6 -1
  170. package/dist/core/prompt-templates.d.ts.map +1 -1
  171. package/dist/core/prompt-templates.js +61 -35
  172. package/dist/core/prompt-templates.js.map +1 -1
  173. package/dist/core/provider-composer-internal.d.ts +1 -0
  174. package/dist/core/provider-composer-internal.d.ts.map +1 -1
  175. package/dist/core/provider-composer-internal.js +19 -0
  176. package/dist/core/provider-composer-internal.js.map +1 -1
  177. package/dist/core/resource-loader-assets.d.ts.map +1 -1
  178. package/dist/core/resource-loader-assets.js +6 -6
  179. package/dist/core/resource-loader-assets.js.map +1 -1
  180. package/dist/core/sdk.js +3 -2
  181. package/dist/core/sdk.js.map +1 -1
  182. package/dist/core/session-manager-core.d.ts +10 -3
  183. package/dist/core/session-manager-core.d.ts.map +1 -1
  184. package/dist/core/session-manager-core.js +65 -7
  185. package/dist/core/session-manager-core.js.map +1 -1
  186. package/dist/core/session-manager-entries.d.ts +4 -1
  187. package/dist/core/session-manager-entries.d.ts.map +1 -1
  188. package/dist/core/session-manager-entries.js +8 -0
  189. package/dist/core/session-manager-entries.js.map +1 -1
  190. package/dist/core/session-manager-history.d.ts +16 -1
  191. package/dist/core/session-manager-history.d.ts.map +1 -1
  192. package/dist/core/session-manager-history.js +105 -42
  193. package/dist/core/session-manager-history.js.map +1 -1
  194. package/dist/core/session-manager-types.d.ts +30 -3
  195. package/dist/core/session-manager-types.d.ts.map +1 -1
  196. package/dist/core/session-manager-types.js.map +1 -1
  197. package/dist/core/session-manager.d.ts +2 -2
  198. package/dist/core/session-manager.d.ts.map +1 -1
  199. package/dist/core/session-manager.js +1 -1
  200. package/dist/core/session-manager.js.map +1 -1
  201. package/dist/core/structured-output/index.d.ts +0 -1
  202. package/dist/core/structured-output/index.d.ts.map +1 -1
  203. package/dist/core/structured-output/index.js +3 -15
  204. package/dist/core/structured-output/index.js.map +1 -1
  205. package/dist/core/structured-output/jev-client.d.ts +4 -8
  206. package/dist/core/structured-output/jev-client.d.ts.map +1 -1
  207. package/dist/core/structured-output/jev-client.js +36 -32
  208. package/dist/core/structured-output/jev-client.js.map +1 -1
  209. package/dist/core/structured-output/jev.d.ts.map +1 -1
  210. package/dist/core/structured-output/jev.js +4 -12
  211. package/dist/core/structured-output/jev.js.map +1 -1
  212. package/dist/core/structured-output/types.d.ts +0 -2
  213. package/dist/core/structured-output/types.d.ts.map +1 -1
  214. package/dist/core/structured-output/types.js.map +1 -1
  215. package/dist/core/system-prompt.js +1 -1
  216. package/dist/core/system-prompt.js.map +1 -1
  217. package/dist/core/tools/read.d.ts +4 -0
  218. package/dist/core/tools/read.d.ts.map +1 -1
  219. package/dist/core/tools/read.js +5 -1
  220. package/dist/core/tools/read.js.map +1 -1
  221. package/dist/index-extensions.d.ts +1 -1
  222. package/dist/index-extensions.d.ts.map +1 -1
  223. package/dist/index-extensions.js.map +1 -1
  224. package/dist/index.d.ts +2 -2
  225. package/dist/index.d.ts.map +1 -1
  226. package/dist/index.js +2 -2
  227. package/dist/index.js.map +1 -1
  228. package/dist/main-app-mode.d.ts +1 -1
  229. package/dist/main-app-mode.d.ts.map +1 -1
  230. package/dist/main-app-mode.js +3 -2
  231. package/dist/main-app-mode.js.map +1 -1
  232. package/dist/main.d.ts.map +1 -1
  233. package/dist/main.js +1 -1
  234. package/dist/main.js.map +1 -1
  235. package/dist/modes/interactive/components/tree-selector-content.d.ts.map +1 -1
  236. package/dist/modes/interactive/components/tree-selector-content.js +6 -0
  237. package/dist/modes/interactive/components/tree-selector-content.js.map +1 -1
  238. package/dist/modes/interactive/components/tree-selector-model.d.ts.map +1 -1
  239. package/dist/modes/interactive/components/tree-selector-model.js +1 -0
  240. package/dist/modes/interactive/components/tree-selector-model.js.map +1 -1
  241. package/dist/modes/interactive/interactive-agent-events.js +17 -1
  242. package/dist/modes/interactive/interactive-agent-events.js.map +1 -1
  243. package/dist/modes/interactive/interactive-mode-helpers.d.ts +1 -0
  244. package/dist/modes/interactive/interactive-mode-helpers.d.ts.map +1 -1
  245. package/dist/modes/interactive/interactive-mode-helpers.js +16 -0
  246. package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
  247. package/dist/modes/interactive/interactive-mode-surface.d.ts +1 -0
  248. package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
  249. package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
  250. package/dist/modes/interactive/interactive-process-lifecycle.js +13 -1
  251. package/dist/modes/interactive/interactive-process-lifecycle.js.map +1 -1
  252. package/dist/modes/interactive/interactive-session-runtime.js +5 -1
  253. package/dist/modes/interactive/interactive-session-runtime.js.map +1 -1
  254. package/dist/utils/mime.js +1 -1
  255. package/dist/utils/mime.js.map +1 -1
  256. package/dist/utils/tool-result-images.d.ts +3 -1
  257. package/dist/utils/tool-result-images.d.ts.map +1 -1
  258. package/dist/utils/tool-result-images.js +4 -1
  259. package/dist/utils/tool-result-images.js.map +1 -1
  260. package/docs/compaction.md +5 -1
  261. package/docs/computer-use.md +105 -56
  262. package/docs/extensions/events.md +75 -7
  263. package/docs/extensions.md +6 -2
  264. package/docs/getting-started/first-session.md +1 -0
  265. package/docs/intercom/operations.md +13 -1
  266. package/docs/intercom.md +1 -1
  267. package/docs/models/evals.md +68 -82
  268. package/docs/models/reference.md +30 -2
  269. package/docs/packages.md +2 -0
  270. package/docs/prompt-templates.md +1 -0
  271. package/docs/providers.md +8 -2
  272. package/docs/sdk/reference.md +1 -2
  273. package/docs/sdk/structured-decisions.md +10 -9
  274. package/docs/sdk.md +13 -2
  275. package/docs/session-format.md +17 -2
  276. package/docs/settings.md +1 -1
  277. package/docs/skills.md +3 -1
  278. package/docs/subagents/reference.md +4 -4
  279. package/docs/subagents.md +1 -1
  280. package/docs/workflows/api-reference.md +2 -0
  281. package/docs/workflows/authoring.md +191 -0
  282. package/docs/workflows/operations.md +9 -3
  283. package/docs/workflows/verification.md +21 -8
  284. package/npm-shrinkwrap.json +69 -69
  285. package/package.json +8 -8
@@ -5,93 +5,79 @@ description: "Primary-source benchmark facts used by Atomic automatic model rout
5
5
 
6
6
  # Evals
7
7
 
8
- Facts only; accessed 2026-09-20. `∅`=source null/absent, not zero.
8
+ Last Accessed: 2026-09-21.
9
9
 
10
- ## Artificial Analysis Intelligence Index v4.3.2
11
-
12
- The [Intelligence Index](https://artificialanalysis.ai/evaluations/artificial-analysis-intelligence-index) (v4.3.2, [methodology](https://artificialanalysis.ai/methodology/intelligence-benchmarking)) is Artificial Analysis's synthesis of overall model intelligence across reasoning, knowledge, and programming, weighted Agents 30%, Coding 20%, Scientific Reasoning 20%, General 30%; text-based, English. Constituents: [AA-Briefcase v1.1](https://artificialanalysis.ai/evaluations/aa-briefcase) multi-week knowledge-work projects with file deliverables; [GDPval-AA v2.1](https://artificialanalysis.ai/evaluations/gdpval-aa) economically valuable tasks across 44 US occupations; AutomationBench-AA SaaS workflow automation through REST APIs; Terminal-Bench 4.0 terminal tasks across software engineering, sysadmin, data, and security; SciCode Python for scientific computing; AA-Omniscience factual knowledge and hallucination; GDP.pdf reasoning over long professional PDFs; [AA-LCR v1.1](https://artificialanalysis.ai/evaluations/artificial-analysis-long-context-reasoning) reasoning across ~100k-token document sets; [Humanity's Last Exam](https://artificialanalysis.ai/evaluations/humanitys-last-exam) frontier academic questions; CritPt research-level physics. GPQA and MMMU-Pro are not constituents.
13
-
14
- Table: 47-config default-chart union, 31 aggregate Index rows plus default constituent selections (311 displayed constituent records; CritPt has 32). Columns: `idx`=Index points; `Bn`/`Gn`=normalized Elo `clamp((Elo−500)/2000)*100`; `Auto`/`TB`/`Sci`/`HLE`/`PDF`/`Crit`/`OA`/`ONH`/`LCR`=percent, where `OA` is Omniscience accuracy and `ONH` is the 6,000-question ONH rate `(partial+notattempted)/(incorrect+partial+notattempted)`; `PDF` is GDP.pdf All-pass. Row labels use source `chart_label`, or `full_config_label` when the chart omits settings. Fable rows use Adaptive Reasoning; Fable 5 fallback=Opus 4.8, Fable 5.1 Default Fallback. Inkling AA `xhigh` is distinct from Frontier `0.99`.
10
+ Key:
15
11
 
16
- | ID | Model | idx | Bn | Gn | Auto | TB | Sci | HLE | PDF | Crit | OA | ONH | LCR |
17
- | --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
18
- | A01 | Claude Fable 5.1 (max with fallback) | 53 | 58.9 | 61.7 | 59.4 | 52 | 63.1 | 59.1 | 26.2 | 29.7 | 67.2 | 27.4 | 85.3 |
19
- | A02 | Claude Fable 5.1 (xhigh with fallback) | 53 | 58.4 | 61 | 57.8 | 55.1 | 60.9 | 58.7 | 26.2 | 31.1 | 66.2 | 29.5 | 83 |
20
- | A03 | GPT-6 Astra (max) | 53 | 53.4 | 52.1 | 68.5 | 59.1 | 56.5 | 54.7 | 31 | 31.7 | 62.6 | 48.7 | 80.7 |
21
- | A04 | GPT-6 Astra (xhigh) | 52 | 52.2 | 50.8 | 67.2 | 59.6 | 55.7 | 54.6 | 32.2 | 31.4 | 61.9 | 51.7 | 80 |
22
- | A05 | Claude Fable 5.1 (high with fallback) | 51 | 54.6 | 55.9 | 55.3 | 52 | 58.7 | 55.9 | 26.8 | 30.3 | 64.9 | 31.2 | 83.7 |
23
- | A06 | GPT-6 Astra (high) | 51 | 50.3 | 49.2 | 66.6 | 54 | 55.4 | 53.1 | 31 | 28.9 | 61.1 | 55.2 | 80 |
24
- | A07 | Claude Opus 5 (max) | 51 | 58.7 | 60.4 | 56.6 | 49 | 56.4 | 54.9 | 21.6 | 29.1 | 60.9 | 39.2 | 79.3 |
25
- | A08 | Claude Opus 5 (xhigh) | 50 | 57.5 | 58.8 | 53.2 | 46.5 | 55.7 | 54.4 | 21 | 27.7 | 59.5 | 40.5 | 80.3 |
26
- | A09 | Claude Fable 5 (Adaptive Reasoning, Max Effort, Opus 4.8 Fallback) | 50 | 52.2 | 54.8 | 54.1 | 42.4 | 61 | 55.5 | 24 | 28.6 | 65.3 | 36.4 | 82.3 |
27
- | A10 | GPT-6 Astra (medium) | 50 | 48 | 48.4 | 64.6 | 49.5 | 54.2 | 52.7 | 30.4 | 29.1 | 60.6 | 53.5 | 79.7 |
28
- | A11 | Claude Fable 5.1 (medium with fallback) | 49 | 52.1 | 51.8 | 54.7 | 44.9 | 56.4 | 53.8 | 26.8 | 29.1 | 63.1 | 30.9 | 84.7 |
29
- | A12 | Claude Opus 5 (high) | 48 | 53.7 | 54 | 53.6 | 46 | 55.4 | 52.8 | 19.6 | 28.3 | 58.9 | 38.8 | 79 |
30
- | A13 | Muse Spark 1.3 (max) | 48 | 54.9 | 58.7 | 57.9 | 33.3 | 58.8 | 48.7 | 26.6 | 24.9 | 43.6 | 67.1 | 83 |
31
- | A14 | GPT-5.6 Sol (max) | 47 | 49.4 | 54.4 | 60.1 | 39.9 | 57.1 | 49.5 | 27.2 | 32.3 | 59.4 | 7.8 | 84 |
32
- | A15 | Claude Fable 5.1 (low with fallback) | 47 | 49.5 | 47.5 | 52.2 | 40.4 | 56.7 | 48.9 | 28 | 27.7 | 60.2 | 34.4 | 82.3 |
33
- | A16 | GPT-6 Astra (low) | 46 | 38 | 43.3 | 59.1 | 41.9 | 54.1 | 49.2 | 30.4 | 26.3 | 59.5 | 53.1 | 80 |
34
- | A17 | Qwen3.8 Max (0902) | 45 | 57.1 | 58.4 | 56.2 | 38.9 | 52.1 | 43.1 | 22.8 | 17.7 | 31.7 | 71.2 | 80.3 |
35
- | A18 | Muse Spark 1.3 (xhigh) | 45 | 49.7 | 56.4 | 56.8 | 16.7 | 59.7 | 47.5 | 24.2 | 26 | 41.5 | 68.5 | 83 |
36
- | A19 | GLM-5.3 (max) | 45 | 51.3 | 57.3 | 62.2 | 41.9 | 59 | 42.3 | 11.2 | 19.1 | 33.9 | 70.4 | 79.7 |
37
- | A20 | Grok 4.6 (high) | 44 | 51.2 | 55.3 | 66.7 | 21.2 | 56.5 | 42.9 | 17 | 17.1 | 48.2 | 65.7 | 80.3 |
38
- | A21 | Grok 4.6 (xhigh) | 44 | 52.8 | 56.6 | 67 | 17.2 | 53 | 44.1 | 17.2 | 19.7 | 43 | 76 | 81 |
39
- | A22 | Step 5 Preview | 44 | 46.7 | 53.3 | 51 | 33.3 | 58.9 | 46.5 | 14.8 | 20.9 | 41.5 | 57 | 88.3 |
40
- | A23 | Kimi K3 (max) | 44 | 50.6 | 51.2 | 58.3 | 12.6 | 59.5 | 46.9 | 22 | 23.4 | 47.6 | 46.8 | 88.7 |
41
- | A24 | Grok 4.6 (medium) | 43 | 49.6 | 55.2 | 63.2 | 13.1 | 55.9 | 42.1 | 17.8 | 17.7 | 41.9 | 76 | 81 |
42
- | A25 | GPT-5.6 Terra (max) | 42 | 41.9 | 46.6 | 59.6 | 35.4 | 55 | 42.9 | 24 | 30 | 46.8 | 12.1 | 83 |
43
- | A26 | GLM-5.3-Flash | 42 | 48 | 57 | 60.4 | 32.8 | 51.6 | 39.9 | 15.4 | 15.4 | 27.5 | 72.4 | 80 |
44
- | A27 | Gemini 3.8 Flash (high) | 41 | 35.1 | 45.6 | 59.9 | 19.7 | 56.6 | 47.8 | 21 | 18.3 | 54.6 | 44.8 | 81.3 |
45
- | A28 | Qwen3.8-Flash-Next | 40 | 54.9 | 55.6 | 55.9 | 25.3 | 50.6 | 38 | 15.6 | 11.1 | 24.5 | 54.7 | 79.7 |
46
- | A29 | Gemini 3.8 Flash (medium) | 40 | 33.9 | 45.4 | 60.9 | 19.7 | 55.1 | 42.1 | 22.8 | 12.3 | 53 | 48.1 | 84 |
47
- | A30 | Gemini 3.7 Flash (medium) | 40 | ∅ | 42 | ∅ | ∅ | 59.8 | 39 | ∅ | 9.4 | 54 | 34.1 | 83 |
48
- | A31 | DeepSeek V4.1 Flash (Reasoning, Max Effort) | 39 | 46.7 | 55 | 68.9 | 26.8 | 51.9 | 39.2 | 12.8 | 14.3 | 46.4 | 3.5 | 84 |
49
- | A32 | GPT-5.5 (xhigh) | 38 | 32 | 41.8 | 47.3 | 14.6 | 55.8 | 45.8 | 21.2 | 27.1 | 58 | 11 | 84.3 |
50
- | A33 | GPT-5.6 Luna (max) | 37 | 42.3 | 47.1 | 50.2 | 11.6 | 53.6 | 39.5 | 24 | 20.6 | 42.7 | 7.4 | 83.7 |
51
- | A34 | GPT-5.5 (high) | 37 | 29.5 | 40.5 | 44.3 | 9.1 | 56.1 | 45 | 22.6 | 25.4 | 57 | 10.9 | 84.3 |
52
- | A35 | DeepSeek V4 Pro 0813 (Reasoning, Max Effort) | 36 | 38.1 | 47.1 | 56.7 | 14.1 | 51 | 41 | 11.4 | 18 | 49.1 | 5.2 | 80.3 |
53
- | A36 | Muse Spark 1.1 (xhigh) | 34 | 17.3 | 35.4 | 38.8 | 6.1 | 58.8 | 46.2 | 14.4 | 15.1 | 52 | 50 | 77.7 |
54
- | A37 | Qwen3.8 27B (xhigh) | 34 | 45.2 | 45.4 | 48.2 | 5.6 | 46.6 | 33.9 | 16.6 | 5.4 | 15.6 | 69.7 | 82 |
55
- | A38 | K2 Horizon 375B A23B | 31 | 40.2 | 42.5 | 37.2 | 1.5 | 42.9 | 32 | 7.4 | 4.6 | 18.2 | 74.1 | 80 |
56
- | A39 | MiniMax-M3 | 29 | 29.7 | 36.5 | 21.3 | 2 | 47.1 | 39 | 9.8 | 3.7 | 16.7 | 81.6 | 83 |
57
- | A40 | Inkling (xhigh) | 25 | 16.5 | 28.2 | 5 | 1 | 47 | 31.9 | 12.8 | 5.4 | 41.5 | 32.3 | 77.3 |
58
- | A41 | Nemotron 3 Ultra 550B A55B (Reasoning) | 23 | 18.7 | 25 | 3 | 0.5 | 40.3 | 28.4 | 5 | 3.1 | 22.6 | 70.3 | 79.3 |
59
- | A42 | Gemini 3.5 Flash-Lite | 22 | 7.1 | 23.5 | 25 | 1 | 41.3 | 18.8 | 13.6 | 0 | 29.5 | 65.6 | 76 |
60
- | A43 | Muse Glimmer (high) | 17 | 0 | 13.7 | 6.8 | 0.5 | 44.9 | 22 | 10 | 2.6 | 27 | 18.1 | 83.3 |
61
- | A44 | Mistral Medium 3.5 | 14 | 0.7 | 12.4 | 6.3 | 0 | 40.2 | 13.8 | 2.8 | 0 | 24.7 | 18.4 | 69.3 |
62
- | A45 | gpt-oss-120b (high) | 12 | 0 | 4.8 | 0.2 | 0 | 34 | 19.6 | 4 | 1.1 | 21.8 | 9.2 | 52 |
63
- | A46 | GPT-5.4 Pro (xhigh) | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | 30 | ∅ | ∅ | ∅ |
64
- | A47 | GPT-5.5 Pro (xhigh) | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | 30.6 | ∅ | ∅ | ∅ |
12
+ - `∅`=source null/absent, not zero.
13
+ - Values are rounded to 1 decimal from the [model leaderboard](https://artificialanalysis.ai/leaderboards/models) payload, Coding Index and Agentic Index fields on free `GET /api/v2/language/models/free`, and default-chart constituent fields on the [Intelligence Index](https://artificialanalysis.ai/evaluations/artificial-analysis-intelligence-index) page.
14
+ - A chart label may show the nearest integer of `idx`.
15
+ - `idx`: Intelligence Index points.
16
+ - `Cod`: Coding Index points.
17
+ - `Agt`: Agentic Index points.
18
+ - `Brief`: AA-Briefcase normalized Elo `clamp((Elo-500)/2000)*100`.
19
+ - `Gn`: GDPval-AA normalized Elo `clamp((Elo-500)/2000)*100`.
20
+ - `Omni`: Omniscience Index, -100 to 100.
21
+ - `Open`: Openness Index points.
22
+ - Other score columns are percent.
23
+ - `OA`: Omniscience accuracy.
24
+ - `ONH`: the 6,000-question ONH rate `(partial+notattempted)/(incorrect+partial+notattempted)`, not 1 minus the hallucination rate.
25
+ - `PDF`: GDP.pdf All-pass.
26
+ - `Auto`: AutomationBench-AA.
27
+ - `TB4`: Terminal-Bench 4.0.
28
+ - `TB21`: Terminal-Bench 2.1.
29
+ - `TBh`: Terminal-Bench Hard.
30
+ - `Sci`: SciCode.
31
+ - `HLE`: Humanity's Last Exam.
32
+ - `Crit`: CritPt.
33
+ - `LCR`: AA-LCR.
34
+ - `GPQA`: GPQA Diamond.
35
+ - `IF`: IFBench.
36
+ - `MMMU`: MMMU-Pro.
37
+ - `tau2`: τ².
38
+ - `tauB`: τ²-Banking.
39
+ - `Analyst`: Analyst Agent.
40
+ - `ITB`: ITBench SRE.
41
+ - `Apex`: Apex Agents.
42
+ - `AIME`: AIME 2025.
43
+ - `LCB`: LiveCodeBench.
44
+ - `Harvey`: Harvey Lab.
45
+ - `MLCR`: MLCR overall.
46
+ - `Ent`: EnterpriseOps Gym.
47
+ - `Brief`, `Auto`, `PDF`, `AIME`, `LCB`, `Harvey`, `MLCR`, `Open`, and `Ent` are published for default-chart models; other rows are `∅` for those columns.
65
48
 
66
- ## DeepSWE v1.1
67
-
68
- [DeepSWE](https://deepswe.datacurve.ai/) v1.1 (update 2026-09-03; [changelog](https://deepswe.datacurve.ai/changelog)) measures whether a coding agent can complete original, long-horizon software-engineering tasks in real repositories: 113 tasks written from scratch (no model has seen the solution) across 91 repositories and 5 languages, with prompts about half SWE-bench Pro's length and solutions needing 5.5x more code. Verifiers are hand-written to check behavior, not implementation. All models run on mini-swe-agent.
49
+ ## Artificial Analysis Intelligence Index v4.3.2
69
50
 
70
- Table: all 21 default Best rows in source order, each with `n_runs=4`. Columns: model, effort, pass@1±95% run-to-run CI (percent) with CI=`1.96*std(runs)/sqrt(R)`, USD/task, output k-tokens, and steps. Source costs are not billed Atomic cost: GPT-6 Astra uses expected launch pricing, DeepSeek peak rates (off-peak half), GPT-5.6 Sol promotional pricing.
51
+ Table: top 26 catalog models by Intelligence Index. Fifty does not fit. Jev allows 32k tokens for state plus the longest question, and this snapshot is sent in full with the model-selection guide.
71
52
 
72
- | ID | Model | Effort | pass@1±CI | USD/task | output k-tokens | steps |
73
- | --- | --- | --- | ---: | ---: | ---: | ---: |
74
- | D01 | gpt-6-astra | xhigh | 74±3 | 6.52 | 30 | 29 |
75
- | D02 | gemini-3.8-flash | high | 74±1 | 2.36 | 143 | 166 |
76
- | D03 | claude-opus-5 | max | 74±4 | 11.84 | 118 | 99 |
77
- | D04 | gpt-5.6-sol | max | 73±3 | 6.46 | 60 | 61 |
78
- | D05 | claude-fable-5 | xhigh | 70±3 | 13.41 | 80 | 68 |
79
- | D06 | glm-5.3 | max | 69±3 | 3.99 | 80 | 124 |
80
- | D07 | kimi-k3 | max | 69±5 | 4.65 | 81 | 98 |
81
- | D08 | grok-4.6 | medium | 67±2 | 3.45 | 50 | 70 |
82
- | D09 | gpt-5.6-luna | max | 67±4 | 0.61 | 73 | 102 |
83
- | D10 | gpt-5.5 | xhigh | 67±6 | 7.23 | 46 | 82 |
84
- | D11 | gemini-3.7-flash | medium | 65±3 | 2.03 | 94 | 117 |
85
- | D12 | glm-5.3-flash | max | 63±4 | 0.24 | 73 | 123 |
86
- | D13 | deepseek-v4-pro | max | 63±6 | 1.67 | 106 | 155 |
87
- | D14 | claude-opus-4.8 | max | 59±2 | 13.22 | 135 | 120 |
88
- | D15 | qwen3.8-max | xhigh | 57±3 | 3.73 | 95 | 111 |
89
- | D16 | muse-spark-1.2 | xhigh | 55±2 | 3.70 | 99 | 101 |
90
- | D17 | claude-sonnet-5 | max | 54±4 | 26.40 | 214 | 268 |
91
- | D18 | deepseek-v4-flash | max | 53±4 | 0.46 | 108 | 153 |
92
- | D19 | gemini-3.6-flash | high | 47±4 | 2.21 | 96 | 117 |
93
- | D20 | glm-5.2 | max | 44±2 | 3.92 | 78 | 129 |
94
- | D21 | gemini-3.5-flash | high | 36±4 | 3.45 | 76 | 105 |
53
+ | slug | Model | idx | Brief | Gn | Auto | TB4 | Sci | HLE | PDF | Crit | OA | ONH | LCR | Cod | Agt | Omni | GPQA | TB21 | TBh | IF | MMMU | tau2 | tauB | Analyst | ITB | Apex | AIME | LCB | Harvey | MLCR | Open | Ent |
54
+ | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
55
+ | claude-fable-5-1 | Claude Fable 5.1 (Adaptive Reasoning, Max Effort, Default Fallback) | 53.4 | 58.9 | 61.7 | 59.4 | 52 | 63.1 | 59.1 | 26.2 | 29.7 | 67.2 | 27.4 | 85.3 | 81.6 | 57.9 | 43.5 | 93.7 | 91.4 | ∅ | ∅ | ∅ | ∅ | 47.2 | 57.5 | ∅ | ∅ | ∅ | ∅ | 93 | 71.1 | ∅ | ∅ |
56
+ | claude-fable-5-1-xhigh | Claude Fable 5.1 (Adaptive Reasoning, Xhigh Effort, Default Fallback) | 53.2 | 58.4 | 61 | 57.8 | 55.1 | 60.9 | 58.7 | 26.2 | 31.1 | 66.2 | 29.5 | 83 | 80.7 | 57.2 | 42.4 | 93.4 | 91 | ∅ | ∅ | ∅ | ∅ | 45.8 | ∅ | ∅ | ∅ | ∅ | ∅ | 93.3 | ∅ | ∅ | ∅ |
57
+ | gpt-6-astra | GPT-6 Astra (max) | 52.7 | 53.4 | 52.1 | 68.5 | 59.1 | 56.5 | 54.7 | 31 | 31.7 | 62.6 | 48.7 | 80.7 | 76.9 | 51 | 43.4 | 96.1 | 88.4 | ∅ | ∅ | 86.9 | ∅ | 41.4 | 51.3 | ∅ | ∅ | ∅ | ∅ | ∅ | 35 | ∅ | ∅ |
58
+ | gpt-6-astra-xhigh | GPT-6 Astra (xhigh) | 52.4 | 52.2 | 50.8 | 67.2 | 59.6 | 55.7 | 54.6 | 32.2 | 31.4 | 61.9 | 51.7 | 80 | 75.9 | 50.2 | 43.4 | 96.3 | 89.1 | ∅ | ∅ | 86.2 | ∅ | 43.1 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ |
59
+ | claude-fable-5-1-high | Claude Fable 5.1 (Adaptive Reasoning, High Effort, Default Fallback) | 51.2 | 54.6 | 55.9 | 55.3 | 52 | 58.7 | 55.9 | 26.8 | 30.3 | 64.9 | 31.2 | 83.7 | 79.1 | 53.1 | 40.8 | 90.6 | 89.9 | ∅ | ∅ | ∅ | ∅ | 43.1 | ∅ | ∅ | ∅ | ∅ | ∅ | 93 | ∅ | ∅ | ∅ |
60
+ | gpt-6-astra-high | GPT-6 Astra (high) | 50.9 | 50.3 | 49.2 | 66.6 | 54 | 55.4 | 53.1 | 31 | 28.9 | 61.1 | 55.2 | 80 | 77.1 | 48.2 | 43.7 | 94.9 | 89.9 | ∅ | ∅ | 86.4 | ∅ | 40 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ |
61
+ | claude-opus-5 | Claude Opus 5 (Adaptive Reasoning, Max Effort) | 50.8 | 58.7 | 60.4 | 56.6 | 49 | 56.4 | 54.9 | 21.6 | 29.1 | 60.9 | 39.2 | 79.3 | 78 | 56.5 | 37.1 | 93.2 | 89.1 | ∅ | ∅ | 84.7 | ∅ | 42.1 | 53.8 | ∅ | ∅ | ∅ | ∅ | 93.5 | 55.6 | ∅ | 47.5 |
62
+ | claude-opus-5-xhigh | Claude Opus 5 (Adaptive Reasoning, Xhigh Effort) | 49.7 | 57.5 | 58.8 | 53.2 | 46.5 | 55.7 | 54.4 | 21 | 27.7 | 59.5 | 40.5 | 80.3 | 77 | 55.6 | 35.4 | 93.7 | 88 | ∅ | ∅ | 84 | ∅ | 43.3 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | 58.3 | ∅ | ∅ |
63
+ | claude-fable-5 | Claude Fable 5 (Adaptive Reasoning, Max Effort, Opus 4.8 Fallback) | 49.6 | ∅ | 54.8 | 54.1 | 42.4 | 61 | 55.5 | 24 | 28.6 | 65.4 | 36.4 | 82.3 | 76.5 | 50.7 | 43.3 | 92.6 | 84.6 | 62.9 | 63.5 | ∅ | 98.5 | 38.1 | 48.8 | ∅ | ∅ | ∅ | ∅ | 93.6 | 64.4 | ∅ | 51.1 |
64
+ | gpt-6-astra-medium | GPT-6 Astra (medium) | 49.6 | ∅ | 48.4 | 64.6 | 49.5 | 54.2 | 52.7 | 30.4 | 29.1 | 60.6 | 53.5 | 79.7 | 76.7 | 46 | 42.2 | 93.9 | 89.5 | ∅ | ∅ | 85.1 | ∅ | 35.5 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ |
65
+ | claude-fable-5-1-medium | Claude Fable 5.1 (Adaptive Reasoning, Medium Effort, Default Fallback) | 48.9 | ∅ | 51.8 | 54.7 | 44.9 | 56.4 | 53.8 | 26.8 | 29.1 | 63.1 | 30.9 | 84.7 | 77.1 | 50.2 | 37.6 | 88.6 | 88 | ∅ | ∅ | ∅ | ∅ | 41 | ∅ | ∅ | ∅ | ∅ | ∅ | 92.6 | ∅ | ∅ | ∅ |
66
+ | claude-opus-5-high | Claude Opus 5 (Adaptive Reasoning, High Effort) | 48.1 | ∅ | 54.1 | 53.6 | 46 | 55.4 | 52.8 | 19.6 | 28.3 | 58.9 | 38.8 | 79 | 76.5 | 52.3 | 33.7 | 93.7 | 87.6 | ∅ | ∅ | 82.4 | ∅ | 44.7 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | 59.4 | ∅ | ∅ |
67
+ | muse-spark-1-3 | Muse Spark 1.3 (max) | 48.1 | 54.9 | 58.7 | 57.9 | 33.3 | 58.8 | 48.7 | 26.6 | 24.9 | 43.6 | 67.1 | 83 | 75.8 | 55.5 | 25 | 93.5 | 84.3 | ∅ | ∅ | ∅ | ∅ | 50.5 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | 43.3 | ∅ | ∅ |
68
+ | gpt-5-6-sol | GPT-5.6 Sol (max) | 47 | 49.4 | 54.4 | 60.1 | 39.9 | 57.1 | 49.5 | 27.2 | 32.3 | 59.4 | 7.8 | 84 | 77.4 | 50.2 | 22 | 94.1 | 88 | 65.9 | 72.7 | 83.4 | 85.1 | 44.3 | 47.5 | 56.2 | ∅ | ∅ | ∅ | 87.2 | 26.1 | ∅ | 42.9 |
69
+ | claude-fable-5-1-low | Claude Fable 5.1 (Adaptive Reasoning, Low Effort, Default Fallback) | 46.8 | ∅ | 47.5 | 52.2 | 40.4 | 56.7 | 48.9 | 28 | 27.7 | 60.2 | 34.4 | 82.3 | 75.2 | 47.1 | 34.1 | 88.1 | 85 | ∅ | ∅ | ∅ | ∅ | 39 | ∅ | ∅ | ∅ | ∅ | ∅ | 92.3 | ∅ | ∅ | ∅ |
70
+ | grok-4-7 | Grok 4.7 (xhigh) | 46.4 | 57.9 | 59.8 | 65.6 | 25.8 | 57.4 | 43.1 | 20 | 17.7 | 47.5 | 70.7 | 76.7 | ∅ | ∅ | 32 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | 15 | ∅ | ∅ |
71
+ | grok-4-7-high | Grok 4.7 (high) | 46.3 | 57.2 | 59.7 | 63.5 | 24.7 | 57.8 | 42.3 | 23.2 | 18 | 47.8 | 67.6 | 77 | ∅ | ∅ | 30.9 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ |
72
+ | mimo-v2-6-pro | MiMo-V2.6-Pro | 46.3 | 51.1 | 58.7 | 58.6 | 34.8 | 60.9 | 49.4 | 19.2 | 26.6 | 34.9 | 59.4 | 86.3 | ∅ | ∅ | 8.4 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ |
73
+ | gpt-6-astra-low | GPT-6 Astra (low) | 45.8 | ∅ | 43.3 | 59.1 | 41.9 | 54.1 | 49.2 | 30.4 | 26.3 | 59.5 | 53.1 | 80 | 75.7 | 38.8 | 40.6 | 93.1 | 88 | ∅ | ∅ | 84.6 | ∅ | 32 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ |
74
+ | qwen3-8-max | Qwen3.8 Max (0902) | 45.4 | 57 | 58.4 | 56.2 | 38.9 | 52.1 | 43.1 | 22.8 | 17.7 | 31.7 | 71.2 | 80.3 | 76.2 | 56 | 12 | 92.8 | 88.8 | ∅ | ∅ | 82.8 | ∅ | 47.8 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | 20 | ∅ | ∅ |
75
+ | muse-spark-1-3-xhigh | Muse Spark 1.3 (xhigh) | 45.1 | ∅ | 56.4 | 56.8 | 16.7 | 59.7 | 47.5 | 24.2 | 26 | 41.5 | 68.5 | 83 | 76.5 | 51.5 | 23.1 | 94.1 | 85.4 | ∅ | ∅ | 82 | ∅ | 47.2 | ∅ | ∅ | ∅ | ∅ | ∅ | 95.5 | ∅ | ∅ | ∅ |
76
+ | claude-opus-5-medium | Claude Opus 5 (Adaptive Reasoning, Medium Effort) | 44.8 | ∅ | 48.8 | 54.3 | 34.3 | 51.5 | 51.3 | 20 | 26.9 | 57.1 | 39.3 | 82 | 74.3 | 46.2 | 31 | 91.9 | 86.1 | ∅ | ∅ | 81.6 | ∅ | 38.6 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | 56.1 | ∅ | ∅ |
77
+ | glm-5-3 | GLM-5.3 (max) | 44.8 | 51.2 | 57.3 | 62.2 | 41.9 | 59 | 42.3 | 11.2 | 19.1 | 33.9 | 70.4 | 79.7 | 74.8 | 53.1 | 14.3 | 91.7 | 83.9 | ∅ | ∅ | ∅ | ∅ | 50.3 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | 48.3 | 33.3 | 36.4 |
78
+ | grok-4-6 | Grok 4.6 (high) | 44.3 | 52.3 | 55.3 | 66.7 | 21.2 | 56.5 | 42.9 | 17 | 17.1 | 48.2 | 65.7 | 80.3 | 76.8 | 53 | 30.5 | 94.9 | 88.4 | ∅ | ∅ | ∅ | ∅ | 50.7 | 41.3 | ∅ | ∅ | ∅ | ∅ | ∅ | 12.2 | ∅ | 48.3 |
79
+ | grok-4-6-xhigh | Grok 4.6 (xhigh) | 44.2 | ∅ | 56.6 | 67 | 17.2 | 53 | 44.1 | 17.2 | 19.7 | 43 | 76 | 81 | 75.9 | 52.5 | 29.3 | 93.5 | 88 | ∅ | ∅ | ∅ | ∅ | 43.3 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ |
80
+ | gpt-5-6-sol-xhigh | GPT-5.6 Sol (xhigh) | 44 | ∅ | 52.4 | 55.3 | 24.7 | 57.1 | 47.3 | 27.6 | 28.6 | 58.8 | 8.1 | 82.3 | 78.3 | 47.4 | 21 | 93.1 | 89.5 | 61.4 | 71 | 82.7 | 84.8 | 38.1 | ∅ | ∅ | ∅ | ∅ | ∅ | ∅ | 18.3 | ∅ | ∅ |
95
81
 
96
82
  ## Cognition FrontierCode 1.1
97
83
 
@@ -91,6 +91,7 @@ In `models.json`, `headers` values must be strings. A `null` suppression marker
91
91
  | `reasoning` | No | `false` | Supports extended thinking |
92
92
  | `thinkingLevelMap` | No | omitted | Maps Atomic thinking levels to provider values and marks unsupported levels (see below) |
93
93
  | `input` | No | `["text"]` | Input types: `["text"]` or `["text", "image"]` |
94
+ | `inputLimits` | No | omitted | Request limits and image preprocessing for this model (see below) |
94
95
  | `contextWindow` | No | `128000` | Default/effective context window size in tokens |
95
96
  | `maxTokens` | No | `16384` | Maximum output tokens |
96
97
  | `samplingParams` | No | omitted | Sampling parameters merged verbatim into every request body for OpenAI-compatible APIs (see below) |
@@ -130,6 +131,33 @@ Atomic does not synthesize Azure OpenAI Astra entries. Live-provider catalogs re
130
131
 
131
132
  On OpenAI Responses, Astra uses the newer prompt-cache payload. `cacheRetention: "long"` sends `prompt_cache_options.ttl: "30m"` instead of the legacy `prompt_cache_retention: "24h"`; `none` sends explicit mode without a cache key, and `short` sends neither cache option. Earlier Responses models keep the 24-hour field for long retention.
132
133
 
134
+ ### Image Input Limits
135
+
136
+ Use `inputLimits.images.resize` to configure how new images are encoded before they enter conversation history:
137
+
138
+ ```json
139
+ {
140
+ "id": "vision-model",
141
+ "input": ["text", "image"],
142
+ "inputLimits": {
143
+ "images": {
144
+ "resize": {
145
+ "maxWidth": 1568,
146
+ "maxHeight": 1568,
147
+ "maxBytes": 524288,
148
+ "jpegQuality": 75
149
+ }
150
+ }
151
+ }
152
+ }
153
+ ```
154
+
155
+ `maxBytes` is the maximum base64-encoded payload size. Omitted resize fields use Atomic's conservative defaults: 2000×2000, 4.5 MiB encoded, and JPEG quality 80. Built-in vision models carry that profile explicitly so unknown gateways never receive larger images than before.
156
+
157
+ Atomic applies the selected model's resize profile to `@file` attachments, the `read` tool, and images returned by tools. `@file` attachments are resized once the run's model is known, after `before_agent_start` handlers may have changed it. Images are encoded once before they enter history; changing models does not rewrite historical images or invalidate the cached conversation prefix. The `images.autoResize` setting can disable resizing globally.
158
+
159
+ The catalog can also record `inputLimits.maxRequestBytes`, `images.maxPerMessage`, and `images.maxPerRequest`. These fields describe hard provider limits; Atomic does not yet rewrite or reject conversation history based on them.
160
+
133
161
  ### Sampling Parameters
134
162
 
135
163
  `samplingParams` is a free-form object merged into every request body for an OpenAI-compatible model after the fields Atomic sets, so its keys win. Use it to send parameters that Atomic does not model, including server-specific values such as llama.cpp's `min_p` or vLLM's `top_k`:
@@ -354,7 +382,7 @@ Use `modelOverrides` to customize specific models without replacing the provider
354
382
  }
355
383
  ```
356
384
 
357
- `modelOverrides` supports these fields per model: `name`, `reasoning`, `thinkingLevelMap`, `input`, `cost` (partial scalar rates plus optional full tier-array replacement), `contextWindow`, `maxTokens`, `samplingParams` (merged per key), `headers`, `compat`.
385
+ `modelOverrides` supports these fields per model: `name`, `reasoning`, `thinkingLevelMap`, `input`, `inputLimits` (deep-merged), `cost` (partial scalar rates plus optional full tier-array replacement), `contextWindow`, `maxTokens`, `samplingParams` (merged per key), `headers`, `compat`.
358
386
 
359
387
  Atomic reads one `models.json` from the active agent directory. It does not layer model overrides from `.pi` and `.atomic` files.
360
388
 
@@ -511,7 +539,7 @@ For providers with partial OpenAI compatibility, use the `compat` field.
511
539
  | `chatTemplateKwargs` | `chat_template_kwargs` values for `thinkingFormat: "chat-template"`; use `{ "$var": "thinking.enabled" }`, `{ "$var": "thinking.effort" }`, or `{ "$var": "thinking.budget" }` for Atomic-controlled thinking values |
512
540
  | `chatTemplateArgs` | `chat_template_args` values for `thinkingFormat: "baseten"`; use `{ "$var": "thinking.enabled" }`, `{ "$var": "thinking.effort" }`, or `{ "$var": "thinking.budget" }` for Atomic-controlled thinking values |
513
541
  | `cacheControlFormat` | Use Anthropic-style `cache_control` markers on the system prompt, last tool definition, and last user/assistant text content. Currently only `anthropic` is supported. |
514
- | `supportsStrictMode` | OpenAI-compatible strict JSON-schema function tools. This is not a general guarantee for every API. |
542
+ | `supportsStrictMode` | OpenAI-compatible strict JSON-schema function tools. Defaults to `false`: OpenAI compatibility alone does not imply strict support, so custom OpenAI-compatible providers must opt in explicitly. Built-in capable models carry it in their catalog metadata. |
515
543
  | `supportsStrictTools` | Anthropic/Bedrock strict-tool capability, normally generated from verified model metadata. |
516
544
  | `supportsOpenAIGrammarTools` | Canonical Pi capability for OpenAI Lark/regex custom tools. Keep false unless the endpoint passes custom tools through unchanged. |
517
545
  | `supportsGrammarTools` | Atomic compatibility alias for `supportsOpenAIGrammarTools`; the canonical field wins if both disagree. |
package/docs/packages.md CHANGED
@@ -168,6 +168,8 @@ Moved to [Package reference](/packages/reference#package-filtering).
168
168
 
169
169
  Use `atomic config` to enable or disable extensions, skills, prompt templates, and themes. It starts in global settings (`~/.atomic/agent/settings.json`); press Tab to switch global/project scope. Use `atomic config -l` to start in project overrides (`.atomic/settings.json`) with inherited global resources dimmed. Workflow package filters can be configured with `workflows` patterns.
170
170
 
171
+ When an uncaught exception or a fatal runtime error ends an interactive session, Atomic checks the crash stack for frames that belong to loaded extensions and names the matching extension packages or files in the exit message, suggesting `atomic config` to disable them or `atomic -ne` to confirm the crash reproduces without optional extensions.
172
+
171
173
  ## Scope and Deduplication
172
174
 
173
175
  Moved to [Package reference](/packages/reference#scope-and-deduplication).
@@ -35,6 +35,7 @@ Review the staged changes (`git diff --cached`). Focus on:
35
35
  - The filename becomes the command name. `review.md` becomes `/review`.
36
36
  - `description` is optional. If missing, the first non-empty line is used.
37
37
  - `argument-hint` is optional. When set, the hint is displayed before the description in the autocomplete dropdown.
38
+ - Invalid YAML frontmatter (for example an unquoted `description: Broken: value`) skips only that template and reports a warning naming the file and the parse position; valid sibling templates still load.
38
39
 
39
40
  ### Argument Hints
40
41
 
package/docs/providers.md CHANGED
@@ -28,6 +28,7 @@ Use `/login` in interactive mode, then select a provider:
28
28
  - OpenRouter
29
29
  - Kimi Code
30
30
  - xAI (Grok/X subscription)
31
+ - Meta (Muse subscription)
31
32
  - Radius
32
33
 
33
34
  Use `/login <provider>`, such as `/login openrouter` or `/login kimi-coding`, to go directly to a provider. Select subscription or API-key authentication when both are available.
@@ -130,10 +131,14 @@ Business and enterprise tokens sent to the individual host return `421 Misdirect
130
131
 
131
132
  Run `/login xai`, then select **Use a subscription**. `XAI_API_KEY` remains available through **Use an API key**.
132
133
 
133
- Atomic defaults xAI sessions to `grok-4.6`. GitHub Copilot also exposes Grok 4.6 when the account's model policy enables it. Network-backed catalogs refresh and cache these newer entries independently of the bundled catalog snapshot.
134
+ Atomic defaults xAI sessions to `grok-4.7`. GitHub Copilot also exposes Grok 4.7 when the account's model policy enables it. Network-backed catalogs refresh and cache these newer entries independently of the bundled catalog snapshot.
134
135
 
135
136
  Builtin workflows and subagents default to `model: "auto"`, selecting an available model and supported effort for each task rather than using fixed role models or shipped fallback chains. This does not change your main-chat model. To choose the decision provider, use `/settings` → **Router model**. For explicit child models, fallback lists or provider restrictions, see [Subagent reference](/subagents/reference#automatic-model-selection) and [builtin workflow model options](/workflows/builtins#built-in-workflows).
136
137
 
138
+ ### Meta (Muse subscription)
139
+
140
+ Run `/login meta`, then select **Sign in with Meta** to open the device authorization flow. The login mints a Model API key that is re-minted automatically about once a day. `META_API_KEY` remains available through **Use an API key**.
141
+
137
142
  ### Radius
138
143
 
139
144
  Radius is a dynamic `pi-messages` gateway. `/login radius` stores OAuth tokens in `auth.json`; its model catalog refreshes independently and is cached in `models-store.json`. API-key authentication is also available through `/login radius` or `RADIUS_API_KEY`. Custom Radius gateways can be declared in `models.json` with `"oauth": "radius"` and the gateway `baseUrl`.
@@ -186,6 +191,7 @@ Catalog failures preserve the last usable models for each provider. See [catalog
186
191
  | Together AI | `TOGETHER_API_KEY` | `together` |
187
192
  | Baseten | `BASETEN_API_KEY` | `baseten` |
188
193
  | Kimi For Coding | `KIMI_API_KEY` | `kimi-coding` |
194
+ | Meta | `META_API_KEY` | `meta` |
189
195
  | MiniMax | `MINIMAX_API_KEY` | `minimax` |
190
196
  | MiniMax (China) | `MINIMAX_CN_API_KEY` | `minimax-cn` |
191
197
  | Moonshot AI | `MOONSHOT_API_KEY` | `moonshotai` |
@@ -498,7 +504,7 @@ Replace the former direct ID `typesafe-ai/jev` with `typesafe-ai/jev-latest` in
498
504
 
499
505
  With an empty `routerModel`, configured Jev credentials select Jev for prerequisite workflow and subagent-auto routing. An explicit router selection takes precedence. General SDK structured-output requests select their inference model explicitly. This does not change the `structured_output` tool's model. User-issued `/workflow` commands bypass launch routing.
500
506
 
501
- Routers can repair malformed or schema-invalid answers up to three times after the initial attempt, within one shared deadline. Generic SDK decisions remain one-shot. Large choices can require several requests, increasing latency and usage; state is never trimmed automatically. See [structured decision limits](/sdk/structured-decisions#provider-behavior-and-limits) before sending large candidate lists or context.
507
+ Routers can repair malformed or schema-invalid answers up to three times after the initial attempt, without a structured-decision deadline. Cancel the request to stop waiting; independent provider and enclosing tool-request limits still apply. Generic SDK decisions remain one-shot. Large choices can require several requests, increasing latency and usage; state is never trimmed automatically. See [structured decision limits](/sdk/structured-decisions#provider-behavior-and-limits) before sending large candidate lists or context.
502
508
 
503
509
  HTTP 401 means check the key saved through `/login typesafe-ai` or `TYPESAFE_API_KEY`, 422 means check the question/state contract, and 429 or 529 means wait before retrying explicitly. Configured credentials do not verify access or quota. See [TypeSafe's API](https://docs.typesafe.ai/api.md) and [Choice reference](https://docs.typesafe.ai/primitives/choice.md).
504
510
 
@@ -152,7 +152,7 @@ const builtinsOnly = await ModelRuntime.create({ modelsPath: null });
152
152
 
153
153
  > See the complete [`ModelRuntime` credential and model configuration example](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/examples/sdk/09-api-keys-and-oauth.ts).
154
154
 
155
- ### Bounded structured decisions
155
+ ### Structured decisions
156
156
 
157
157
  Use `inferStructuredOutput()` with an explicit inference model for a single schema-validated semantic decision without starting an agent session or executing tools. It supports ordinary configured models and the decision-only `typesafe-ai/jev-latest` and `openrouter/~typesafe/jev-latest` integrations, and never reads `routerModel`. OpenRouter Jev reuses existing OpenRouter authentication. The separate `inferRouterDecision()` entrypoint shares `routerModel` resolution for prerequisite workflow/subagent-auto routing only. Neither API changes the selected chat model or the `structured_output` tool. See [Structured decisions](/sdk/structured-decisions) for state preparation, examples, provider limits and failure handling.
158
158
 
@@ -850,7 +850,6 @@ inferRouterDecision
850
850
  resolveRouterModel
851
851
  getStructuredOutputProviders
852
852
  JEV_STRUCTURED_OUTPUT_PROVIDER
853
- DEFAULT_STRUCTURED_OUTPUT_TIMEOUT_MS
854
853
  getAgentDir
855
854
  getPackageDir
856
855
  getReadmePath
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Structured decisions
3
- description: Make a bounded structured decision without starting an agent session.
3
+ description: Make a schema-validated structured decision without starting an agent session.
4
4
  ---
5
5
 
6
6
  # Structured decisions
@@ -29,11 +29,11 @@ OpenRouter Jev reuses the registry's existing OpenRouter sign-in or saved API ke
29
29
 
30
30
  ### Router repair attempts
31
31
 
32
- By default, `inferRouterDecision()` gives each provider an initial attempt plus **up to three corrective retries** when an answer is malformed or fails the decision schema. This applies independently to Jev and the current-chat fallback: at most four attempts each, sharing one deadline of 30 seconds by default. A valid answer stops retries immediately; a valid `none` is not retried. Repairs may increase latency and provider usage, but never start a workflow or child before final validation.
32
+ By default, `inferRouterDecision()` gives each provider an initial attempt plus **up to three corrective retries** when an answer is malformed or fails the decision schema. This applies independently to Jev and the current-chat fallback: at most four attempts each, without a structured-decision time limit. A valid answer stops retries immediately; a valid `none` is not retried. Repairs may increase latency and provider usage, but never start a workflow or child before final validation.
33
33
 
34
- Input/configuration errors, cancellation, timeout, and stale-catalog rejection are not repaired. Generic `inferStructuredOutput()` remains one-shot; it does not gain router repairs or provider fallback.
34
+ Input/configuration errors, cancellation, and stale-catalog rejection are not repaired. Generic `inferStructuredOutput()` remains one-shot; it does not gain router repairs or provider fallback.
35
35
 
36
- When `routerModel` is empty, automatically selected Jev switches to the current chat model after exhausting its output repairs, encountering an HTTP or connection error, or exceeding the local context budget. Context-budget failures switch before sending an oversized request; HTTP errors such as `max_tokens_exceeded` switch without repeating an unchanged request. A warning reports the safe failure reason and fallback model. The fallback gets its own initial attempt plus three corrective retries, using the original state, schema and constraints within the remaining deadline. The result includes `fallback: { from, to, reason }` and identifies the chat model in `model`. This can send routing context to your chat provider and incur its normal charges. An explicit `routerModel` disables provider fallback. Missing credentials, response-size violations, cancellation and timeout do not trigger fallback.
36
+ When `routerModel` is empty, automatically selected Jev switches to the current chat model after exhausting its output repairs, encountering an HTTP or connection error, or exceeding the local context budget. Context-budget failures switch before sending an oversized request; HTTP errors such as `max_tokens_exceeded` switch without repeating an unchanged request. A warning reports the safe failure reason and fallback model. The fallback gets its own initial attempt plus three corrective retries, using the original state, schema and constraints. The result includes `fallback: { from, to, reason }` and identifies the chat model in `model`. This can send routing context to your chat provider and incur its normal charges. An explicit `routerModel` disables provider fallback. Missing credentials, response-size violations and cancellation do not trigger fallback.
37
37
 
38
38
  ## Prepare a decision
39
39
 
@@ -68,7 +68,7 @@ const result = await inferStructuredOutput({
68
68
  schema,
69
69
  instructions: "Classify whether the task asks a question. Use none for other tasks.",
70
70
  state: {
71
- task: "What does the timeout setting mean?",
71
+ task: "What does the router setting mean?",
72
72
  constraints: { permittedAction: "classify only" },
73
73
  reference: { text: "A question requests an explanation or information." },
74
74
  candidates: ["question", "none"],
@@ -87,7 +87,6 @@ const result = await inferStructuredOutput({
87
87
  category: choices.category === "question" ? "question" : "none",
88
88
  } as const),
89
89
  },
90
- timeoutMs: 30_000,
91
90
  maxTokens: 4096,
92
91
  });
93
92
  console.log(result.value.category);
@@ -103,7 +102,7 @@ Ordinary models receive one `structured_output` result tool with the supplied sc
103
102
 
104
103
  Ordinary requests set `maxRetries: 0`, use HTTP/SSE rather than WebSocket transport fallback, and disable configured Anthropic server-side fallbacks for this request only. Custom provider implementations must honor these options and must not introduce their own inference retries or fallback requests.
105
104
 
106
- [TypeSafe Jev](/providers#typesafe-jev) accepts shared state and typed questions instead of JSON-schema generation. Atomic packs independent questions together. Generic `inferStructuredOutput()` calls have no automatic retries; router calls can repair malformed or schema-invalid answers within their shared deadline. Question IDs are correlation keys, not instructions seen by Jev, so put complete semantics in each question's `instructions`. Describe the speculative premise of a conditional question and consume its answer only when that premise applies.
105
+ [TypeSafe Jev](/providers#typesafe-jev) accepts shared state and typed questions instead of JSON-schema generation. Atomic packs independent questions together. Generic `inferStructuredOutput()` calls have no automatic retries; router calls can repair malformed or schema-invalid answers within their attempt allowance. Question IDs are correlation keys, not instructions seen by Jev, so put complete semantics in each question's `instructions`. Describe the speculative premise of a conditional question and consume its answer only when that premise applies.
107
106
 
108
107
  Choices with up to 255 options keep a single comparison when they fit the context budget. Larger or more verbose choices use a bounded tournament: every original option participates in stable batches of at most 255; each batch retains its top three by validated probabilities, with ties resolved by original order. Further shrinking rounds precede a final shared comparison. Probabilities are never compared across batches. Multiple named questions can mix small choices and tournaments; `decode` receives original option keys only after all judgments succeed. Empty choices fail; singletons still go to the provider when they fit.
109
108
 
@@ -121,11 +120,13 @@ Jev response bodies are limited to 1 MiB per request. Atomic validates answer ty
121
120
 
122
121
  ## Cancellation and failures
123
122
 
124
- The default deadline is 30 seconds for the entire decision, including all router repair attempts, any chat fallback, tournament rounds, authentication, transport and response reading. `timeoutMs` must be a positive integer no greater than 2147483647; zero does not disable it. Ordinary output is bounded by `maxTokens`, default 4096. Pass an `AbortSignal` to cancel. Cancellation or timeout rejects the whole call immediately; a failed batch yields no partial decision, and late responses cannot invoke the Jev mapper.
123
+ Structured decisions have no built-in wall-clock timeout. Slow authentication, inference, repairs, chat fallback and tournament rounds can finish without the former 30-second cutoff. Pass an `AbortSignal` to cancel; SDK callers that need their own deadline can supply `signal: AbortSignal.timeout(milliseconds)`. Cancellation rejects the whole call immediately, even if a provider ignores its signal. A failed batch yields no partial decision, and late responses cannot invoke the Jev mapper. Ordinary output is still bounded by `maxTokens`, default 4096.
124
+
125
+ The `timeoutMs` request option and `DEFAULT_STRUCTURED_OUTPUT_TIMEOUT_MS` export have been removed. Remove these from existing integrations and use `signal` for caller-owned cancellation. Provider transport, credential-preparation and enclosing tool-request limits remain independent; removing the decision timeout does not disable them.
125
126
 
126
127
  No result is returned for missing state, invalid configuration, unrepaired malformed output or an unrecovered provider failure. Keep action admission after the awaited result and check cancellation again at that boundary. Neither API runs recursive agents or provider probes.
127
128
 
128
- Jev errors report the SDK error class, HTTP status, recognized machine error codes such as `max_tokens_exceeded`, and a validated TypeSafe request ID when available. Raw error bodies, arbitrary messages and credentials are not exposed. SDK transport retries and body logging are disabled, including when `TYPESAFE_LOG_LEVEL` is set. Cancellation and timeout remain distinct failures.
129
+ Jev errors report the SDK error class, HTTP status, recognized machine error codes such as `max_tokens_exceeded`, and a validated TypeSafe request ID when available. Raw error bodies, arbitrary messages and credentials are not exposed. Jev requests have no automatic transport retries or body logging, including when `TYPESAFE_LOG_LEVEL` is set.
129
130
 
130
131
  For direct Jev, HTTP 401 means check `/login typesafe-ai` or `TYPESAFE_API_KEY`; for OpenRouter Jev, check `/login openrouter` or `OPENROUTER_API_KEY`. HTTP 400 or 422 means check the state/question contract or reported context limit; 403 means access denied, 404 means check the endpoint/model, and 429 or 529 means wait before an explicit retry.
131
132
 
package/docs/sdk.md CHANGED
@@ -283,6 +283,8 @@ interface AgentSession {
283
283
 
284
284
  // State access
285
285
  agent: Agent;
286
+ sessionManager: SessionManager;
287
+ refreshContext(): void;
286
288
  model: Model | undefined;
287
289
  thinkingLevel: ThinkingLevel;
288
290
  messages: AgentMessage[];
@@ -493,8 +495,8 @@ const state = session.agent.state;
493
495
  // state.streamingMessage?: AgentMessage - current partial assistant message
494
496
  // state.errorMessage?: string - latest assistant error
495
497
 
496
- // Replace messages (useful for branching or restoration)
497
- session.agent.state.messages = messages; // copies the top-level array
498
+ // Model-visible messages are projected from session.sessionManager.
499
+ // agent.state.messages is a refreshed inspection cache; do not assign it for restoration.
498
500
 
499
501
  // Replace tools
500
502
  session.agent.state.tools = tools; // copies the top-level array
@@ -503,6 +505,15 @@ session.agent.state.tools = tools; // copies the top-level array
503
505
  await session.agent.waitForIdle();
504
506
  ```
505
507
 
508
+ Provider requests use `session.sessionManager` as the canonical finalized context. Assigning `session.agent.state.messages` does not replace persisted context and may be overwritten at the next request boundary. Restore externally stored history when constructing the session instead:
509
+
510
+ ```typescript
511
+ const restoredManager = SessionManager.inMemory(process.cwd(), { id: sessionId }, entries);
512
+ const { session } = await createAgentSession({ sessionManager: restoredManager });
513
+ ```
514
+
515
+ For an existing session, use `session.navigateTree(entryId)` to move its active branch. Use `session.sessionManager.appendMessage(...)` plus `session.refreshContext()` only when intentionally appending externally managed entries. A caller-supplied `prepareNextTurnWithContext` replacement context is still honored for exactly the request it prepared.
516
+
506
517
  ### Events
507
518
 
508
519
  Subscribe to events to receive streaming output and lifecycle notifications.
@@ -267,6 +267,18 @@ Older Atomic versions stored logical entry/content-block deletions in `type:"con
267
267
 
268
268
  These records are archival and never produced or applied by current Atomic. When an old session resumes, previously hidden content may re-enter context until verbatim-line compaction creates an active boundary.
269
269
 
270
+ ### ContextEditEntry
271
+
272
+ Append-only edit of one earlier context-producing entry. It changes only future model context; the target entry and its metadata remain unchanged in raw history, UI, exports, and session accounting.
273
+
274
+ ```json
275
+ {"type":"context_edit","id":"g6h7i8j9","parentId":"f6g7h8i9","timestamp":"2024-12-03T14:11:00.000Z","targetId":"c3d4e5f6","replacement":null}
276
+ ```
277
+
278
+ Targets may be user, assistant, tool-result, or custom-message entries. `replacement: null` omits the target from model context. A non-null `replacement` replaces only the target message content. String replacements for assistant and tool-result entries are normalized to one text block because those roles require content arrays. If several edits target the same entry, the latest edit on the active branch wins. Edits are branch-relative: navigating to a point before the edit reveals the target's original contribution again.
279
+
280
+ Atomic writes these entries itself when it durably omits a failed attempt from model context (an automatic retry after a provider error, a model fallback, an overflow or length recovery, or an interrupted empty reply that resumes an admitted queued message). Extensions append them through the `turn_end` and `agent_before_settle` boundaries.
281
+
270
282
  ### BranchSummaryEntry
271
283
 
272
284
  Created when switching branches via `/tree` with an LLM generated summary of the left branch up to the common ancestor. Captures context from the abandoned path.
@@ -354,10 +366,10 @@ Entries form a tree:
354
366
 
355
367
  ## Context Building
356
368
 
357
- `buildSessionContext()` walks the active branch from root to leaf and replays model, thinking-level, and context-window changes. It selects the latest `compaction` entry whose `details.strategy` is `"verbatim-lines"`.
369
+ `buildSessionProjection()` walks the active branch from root to leaf and replays model, thinking-level, and context-window changes. It selects the latest `compaction` entry whose `details.strategy` is `"verbatim-lines"`, then applies the latest `context_edit` for each selected target. It returns the model-visible messages together with their source entries (`entries[].sourceEntry` and `entries[].messages`); omitted targets produce no message, replacements retain the source entry's role and metadata while changing only content, and the raw selected entries are not modified. `buildSessionContext()` returns just the messages, thinking level, and model from that projection. Provider requests are built from this projection.
358
370
 
359
371
  - With no active boundary, normal message, custom-message, and branch-summary entries are emitted verbatim.
360
- - With a boundary whose `firstKeptEntryId` is a string, Atomic emits a single custom-role `customType:"compaction"` message whose text is the durable string plus the losslessly serialized kept tail (the entries from that ID up to the boundary, with retained images kept as image blocks on that message), then the messages appended after the boundary.
372
+ - With a boundary whose `firstKeptEntryId` is a string, Atomic emits a single custom-role `customType:"compaction"` message whose text is the durable string plus the losslessly serialized kept tail (the entries from that ID up to the boundary, with context edits applied and retained images kept as image blocks on that message), then the messages appended after the boundary. Kept-tail entries project no standalone messages of their own.
361
373
  - With `firstKeptEntryId: null`, Atomic emits the boundary and post-boundary messages but no pre-boundary ordinary message.
362
374
  - If a corrupt/foreign boundary's non-null `firstKeptEntryId` is absent, Atomic emits the boundary followed by post-boundary messages rather than resurrecting all older content.
363
375
  - Legacy `context_compaction` entries and non-verbatim `compaction` entries are skipped as inert archival records.
@@ -468,7 +480,10 @@ for (const stage of stages.filter((session) => session.internal)) {
468
480
  - `branchWithSummary(entryId, summary, details?, fromHook?)` - Branch with context summary
469
481
 
470
482
  ### Instance Methods - Context & Info
483
+ - `buildSessionProjection()` - Get the context-edited projection: source entries with their model-visible messages, plus thinkingLevel and model
471
484
  - `buildSessionContext()` - Get messages, thinkingLevel, and model for LLM
485
+ - `buildContextEntries()` - Active branch entries after the latest compaction boundary
486
+ - `appendContextEdit(targetId, replacement)` - Append a branch-local context edit (`null` omits the target; `{ content }` replaces only its content)
472
487
  - `getEntries()` - All entries (excluding header)
473
488
  - `getHeader()` - Session header metadata
474
489
  - `getSessionName()` - Get display name from latest session_info entry (`undefined` when cleared or never named)
package/docs/settings.md CHANGED
@@ -83,7 +83,7 @@ Use `/settings` → **Router model** to change the effective selection. If the p
83
83
 
84
84
  A nonempty explicit model takes precedence over automatic Jev selection. Use an exact catalog ID without a reasoning suffix, or the decision-only ID `typesafe-ai/jev-latest` or `openrouter/~typesafe/jev-latest`. Replace old `typesafe-ai/jev` settings with `typesafe-ai/jev-latest`. An invalid explicit ID, `auto`, non-string value or surrounding whitespace fails the decision instead of silently changing providers. An explicit empty project value overrides a global selection and restores the configured-direct-Jev/current-chat precedence. OpenRouter credentials alone do not select Jev automatically.
85
85
 
86
- With **Automatic**, a Jev HTTP or connection failure, or exhaustion of its structured-output repairs, switches routing to your current chat model. By default, each provider gets an initial attempt plus three corrective retries for invalid output, using the same context and shared deadline. Atomic reports the fallback; it can incur chat-provider charges. An explicit router selection disables provider fallback. Cancellation, timeout and local input-validation failures do not trigger fallback.
86
+ With **Automatic**, a Jev HTTP or connection failure, or exhaustion of its structured-output repairs, switches routing to your current chat model. By default, each provider gets an initial attempt plus three corrective retries for invalid output, using the same context. Routing has no built-in wall-clock deadline; cancel the request to stop waiting. Independent provider, credential-preparation and enclosing tool-request limits still apply. Atomic reports the fallback; it can incur chat-provider charges. An explicit router selection disables provider fallback. Cancellation and local input-validation failures do not trigger fallback.
87
87
 
88
88
  Automatic subagent and workflow-stage model selection uses a bounded excerpt for long tasks, keeping the beginning, end, and `<keepContext>...</keepContext>` spans. Only the router's copy is shortened; execution receives the full task and hard model constraints stay enforced. Put essential model-selection requirements in protected spans. Unprotected middle text may be omitted, so excerpts can affect model choice. This does not truncate workflow-launch state or general structured decisions.
89
89
 
package/docs/skills.md CHANGED
@@ -109,7 +109,9 @@ Offline, `qlty metrics` and `qlty smells` still work through built-in static ana
109
109
 
110
110
  ### Built-in computer-use and automation guidance
111
111
 
112
- For desktop computer use, or CUA, use PyAutoGUI for mouse, keyboard and screenshots. For browser automation, load `/skill:agent-browser`. For terminal automation/testing, prefer `/skill:herdr` on macOS, Linux and Windows. Install Herdr if missing when network access and permissions permit; fall back to `/skill:tmux` or native Windows psmux when installation or use is not possible. Preserve the upstream skill's explicit-request and managed-pane requirements. These are separate interfaces, not interchangeable command names. See [verification and desktop safety](/workflows/verification) for installation, permissions, dedicated sessions and input cleanup.
112
+ For desktop, simulator, and emulator computer use, or CUA, load `/skill:cua-driver` and drive the exact window with one-shot `cua-driver call <tool>` commands; when a custom workflow's TypeScript owns the scenario, use the `@trycua/cua-driver` SDK inside `ctx.tool` instead. See [Computer use](/computer-use#desktop-automation-with-cua-driver) for installing the executable, turning telemetry off, readiness, and permissions. For browser automation, load `/skill:agent-browser`. For terminal automation/testing, prefer `/skill:herdr` on macOS, Linux and Windows. Install Herdr if missing when network access and permissions permit; fall back to `/skill:tmux` or native Windows psmux when installation or use is not possible. Preserve the upstream skill's explicit-request and managed-pane requirements. These are separate interfaces, not interchangeable command names. See [verification and desktop safety](/workflows/verification) for installation, permissions, dedicated sessions and evidence.
113
+
114
+ The bundled [Cua Driver skill](https://github.com/trycua/cua/tree/cua-driver-rs-v0.28.2/libs/cua-driver/rust/Skills/cua-driver) is upstream's `libs/cua-driver/rust/Skills/cua-driver` at tag `cua-driver-rs-v0.28.2`, vendored verbatim with all three platform guides (`MACOS.md`, `WINDOWS.md`, `LINUX.md`) plus `BROWSER.md`, `RECORDING.md`, and `EMBEDDING.md`; only the `SKILL.md` frontmatter is Atomic-owned. MIT licensed, © 2025 Cua AI, Inc. It teaches the snapshot → act → fresh snapshot → verify loop for the `cua-driver` CLI; it does not install the `cua-driver` executable, grant permissions, or turn telemetry off, and Atomic never runs `cua-driver skills install`. Browsers stay with `agent-browser` even though the vendored `BROWSER.md` describes upstream's browser route.
113
115
 
114
116
  The bundled [Herdr skill](https://github.com/herdrdev/herdr/blob/v0.9.0/skills/herdr/SKILL.md) requires an explicit Herdr mention or request and `HERDR_ENV=1`; it stops outside a Herdr-managed pane. It does not install Herdr or authorize control of unrelated panes. Use returned pane IDs, and check completion separately from command submission.
115
117
 
@@ -35,15 +35,15 @@ The shared [`routerModel`](/settings#routermodel) setting chooses the model maki
35
35
 
36
36
  Neither routing nor child fallback changes the parent chat model or the `structured_output` tool.
37
37
 
38
- Routing has one 30-second deadline. By default, Jev and any current-chat fallback each get an initial attempt plus three corrective retries for malformed or schema-invalid answers. A valid answer stops repairs.
38
+ Routing has no built-in wall-clock deadline. Slow decisions can finish; cancel the request to stop waiting. Independent provider and credential-preparation limits still apply. By default, Jev and any current-chat fallback each get an initial attempt plus three corrective retries for malformed or schema-invalid answers. A valid answer stops repairs.
39
39
 
40
40
  The result records a primary `{ model, effort }` and up to two ordered `fallbacks`, each with its own model and effort. Atomic ranks three distinct eligible provider/model IDs, or all available IDs when fewer than three qualify. It selects each rank from the remaining models, excluding all efforts of earlier choices. A supported `"off"` is distinct from `null`, which means no configurable reasoning. The catalog reflects configured authentication, not proof of valid credentials, quota, or entitlement.
41
41
 
42
- The child does not start if no candidates are eligible, model/effort pairs remain invalid, availability changes, or an unrecovered provider error, timeout, or cancellation occurs. With an empty `routerModel`, oversized Jev context, a Jev HTTP or connection failure, or exhausted output repairs triggers a reported switch to the current chat model within the same deadline. The chat model gets its own output-repair allowance. Explicit router selections remain pinned. Invalid inputs, cancellation, timeout and stale-catalog failures do not trigger fallback. No partial decision can launch a child.
42
+ The child does not start if no candidates are eligible, model/effort pairs remain invalid, availability changes, or an unrecovered provider error or cancellation occurs. With an empty `routerModel`, oversized Jev context, a Jev HTTP or connection failure, or exhausted output repairs triggers a reported switch to the current chat model. The chat model gets its own output-repair allowance. Explicit router selections remain pinned. Invalid inputs, cancellation and stale-catalog failures do not trigger fallback. No partial decision can launch a child.
43
43
 
44
- For large eligible sets, Jev uses tournament requests within the same deadline. Every eligible pair enters a batch of at most 255; three per batch reach the finalist comparison. Verbose choices can split below 255 options to respect context budgets. Each batch contains only its candidate descriptions and repeats the same routing task or excerpt. Tournaments and repairs can increase latency and usage, and grouping can affect the winner. If the task or a comparison still cannot fit, automatic routing can use chat; pinned Jev fails with guidance to reduce context or select a chat router. See [structured decision limits](/sdk/structured-decisions#provider-behavior-and-limits).
44
+ For large eligible sets, Jev uses tournament requests without a shared decision deadline. Every eligible pair enters a batch of at most 255; three per batch reach the finalist comparison. Verbose choices can split below 255 options to respect context budgets. Each batch contains only its candidate descriptions and repeats the same routing task or excerpt. Tournaments and repairs can increase latency and usage, and grouping can affect the winner. If the task or a comparison still cannot fit, automatic routing can use chat; pinned Jev fails with guidance to reduce context or select a chat router. See [structured decision limits](/sdk/structured-decisions#provider-behavior-and-limits).
45
45
 
46
- Execution tries the ranked models in order before remaining configured fallbacks and the current chat model, subject to normal retry rules and hard constraints. Duplicate model IDs are attempted only at their first position. Each ranked candidate retains its selected effort. Ranking can require up to three selection passes within the shared deadline. Metadata preserves the ordered decision separately from the model and effort actually used; workflow checkpoints restore that order without rerouting.
46
+ Execution tries the ranked models in order before remaining configured fallbacks and the current chat model, subject to normal retry rules and hard constraints. Duplicate model IDs are attempted only at their first position. Each ranked candidate retains its selected effort. Ranking can require up to three selection passes. Metadata preserves the ordered decision separately from the model and effort actually used; workflow checkpoints restore that order without rerouting.
47
47
 
48
48
  Choose a router provider permitted to receive the task and agent name/description. Do not put secrets in them.
49
49
 
package/docs/subagents.md CHANGED
@@ -92,7 +92,7 @@ In a parallel run, `intercom.ask`, `contact_supervisor({ reason: "need_decision"
92
92
 
93
93
  `intercom.send` and `contact_supervisor` progress updates return after delivery without waiting for a reply. An exact-child Intercom handshake can release the parallel call's foreground observations so the supervisor can handle the message. This is not execution cancellation: active siblings keep running, queued siblings start once capacity is available, and worktrees stay owned until their children exit. Background calls use the same communication path without needing to release an observation.
94
94
 
95
- To update a working child, use ordinary Intercom `send` or `ask` with its exact connected name or full session ID from `intercom list`. Foreground and background children treat it as a priority interrupt: the child's current model call or cancellable tool is cancelled and the message is handled next in the same child execution, without relaunching its task or repeating the original prompt. Tools that ignore cancellation finish first, and completed side effects are kept. Multiple updates stay in arrival order. A reply to an incoming ask uses ordinary `intercom.reply`; this does not change the single-child parent-targeted handoff described below.
95
+ To update a working child, use ordinary Intercom `send` or `ask` with its exact connected name or full session ID from `intercom list`. An admitted child registers with Intercom when its session starts, so it is listed and reachable while it works even if it never calls Intercom itself. Foreground and background children treat it as a priority interrupt: the child's current model call or cancellable tool is cancelled and the message is handled next in the same child execution, without relaunching its task or repeating the original prompt. Tools that ignore cancellation finish first, and completed side effects are kept. Multiple updates stay in arrival order. A reply to an incoming ask uses ordinary `intercom.reply`; this does not change the single-child parent-targeted handoff described below.
96
96
 
97
97
  Targeted `kill` stops only the selected child and cannot be resumed. Explicit batch cancellation and session/workflow-stage lifetime closure still stop the intended owned children, including pending reply waits. A late or duplicate reply cannot revive a terminal child. Ordinary Intercom group restrictions and the authorized cross-group `contact_supervisor` route are unchanged.
98
98
 
@@ -606,6 +606,8 @@ A context overflow that the stage session's compaction has already failed to res
606
606
 
607
607
  A schema-backed candidate gets the original prompt plus up to three corrective follow-ups to produce valid `structured_output`. Exhaustion records a failed attempt and advances to the next candidate with a fresh correction budget. Successful capture is never retried. If the chain runs out, the stage fails with its structured-output contract error.
608
608
 
609
+ Corrective follow-ups are reserved for turns that actually answered without a valid `structured_output` call. A schema-backed prompt that resolves without any assistant message is treated as a transient provider failure instead: it spends the same-candidate retry budget from `settings.retry`, then advances to the next candidate, and its attempt records carry `Model turn ended without an assistant message after the prompt (empty completion)` rather than the structured-output contract error. If every candidate ends that way, the run blocks as a recoverable `provider_unavailable` failure that can be resumed once the provider recovers. Cancellation during such a turn stops both the retries and the chain.
610
+
609
611
  Session creation uses the same retry and fallback policy. Transient failures retry; rejected credentials, unavailable models, and incompatible requests advance immediately. If all candidates fail, a later call may try again. Concurrent callers share creation rather than starting duplicate sessions.
610
612
 
611
613
  Pause remains effective during creation or retry. Resume continues the paused objective without consuming a fallback candidate solely because of the pause.