savant-code 0.0.19 → 0.0.21

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 (1591) hide show
  1. package/README.md +402 -550
  2. package/{cli/release/index.js → index.js} +0 -0
  3. package/{cli/release-core/launcher.js → launcher.js} +138 -32
  4. package/package.json +44 -71
  5. package/.agents/skills/coding-csharp/SKILL.md +0 -82
  6. package/.agents/skills/coding-go/SKILL.md +0 -76
  7. package/.agents/skills/coding-java/SKILL.md +0 -79
  8. package/.agents/skills/coding-python/SKILL.md +0 -87
  9. package/.agents/skills/coding-rust/SKILL.md +0 -83
  10. package/.agents/skills/coding-typescript/SKILL.md +0 -90
  11. package/.agents/skills/release-workflow/SKILL.md +0 -69
  12. package/.bun-version +0 -1
  13. package/.commandcode/settings.json +0 -11
  14. package/.commandcode/taste/workflow/taste.md +0 -6
  15. package/.env.example +0 -95
  16. package/.gitattributes +0 -43
  17. package/.githooks/pre-push +0 -35
  18. package/.github/workflows/build-release-binaries.yml +0 -163
  19. package/.markdownlint.json +0 -42
  20. package/.markdownlintignore +0 -21
  21. package/.prettierignore +0 -9
  22. package/.prettierrc +0 -23
  23. package/.savantignore +0 -3
  24. package/AGENTS.md +0 -97
  25. package/ARCHITECTURE.md +0 -241
  26. package/CHANGELOG.md +0 -2631
  27. package/CONTRIBUTING.md +0 -88
  28. package/ECHO-freebuff.md +0 -22
  29. package/ECHO.md +0 -722
  30. package/FREEREADME.md +0 -35
  31. package/LEARNINGS.md +0 -345
  32. package/NOTICE +0 -15
  33. package/README.zh-CN.md +0 -479
  34. package/SECURITY.md +0 -8
  35. package/VERSION +0 -1
  36. package/WINDOWS.md +0 -238
  37. package/agents/README.md +0 -41
  38. package/agents/base-chat.ts +0 -44
  39. package/agents/basher.ts +0 -107
  40. package/agents/browser-use/browser-use.test.ts +0 -211
  41. package/agents/browser-use/browser-use.ts +0 -259
  42. package/agents/constants.ts +0 -1
  43. package/agents/context-pruner.ts +0 -1076
  44. package/agents/detective/detective.ts +0 -168
  45. package/agents/editor/best-of-n/best-of-n-selector2.ts +0 -148
  46. package/agents/editor/best-of-n/editor-implementor-gpt-5.ts +0 -7
  47. package/agents/editor/best-of-n/editor-implementor-opus.ts +0 -7
  48. package/agents/editor/best-of-n/editor-implementor.ts +0 -196
  49. package/agents/editor/best-of-n/editor-multi-prompt.ts +0 -265
  50. package/agents/file-explorer/directory-lister.ts +0 -92
  51. package/agents/file-explorer/glob-matcher.ts +0 -96
  52. package/agents/forge/forge.ts +0 -146
  53. package/agents/librarian/librarian.test.ts +0 -289
  54. package/agents/librarian/librarian.ts +0 -158
  55. package/agents/package.json +0 -11
  56. package/agents/recorder/recorder.ts +0 -104
  57. package/agents/researcher/researcher-docs.ts +0 -32
  58. package/agents/researcher/researcher-web.ts +0 -40
  59. package/agents/savant/savant-analyze.ts +0 -11
  60. package/agents/savant/savant-free-deepseek-flash.ts +0 -13
  61. package/agents/savant/savant-free-deepseek.ts +0 -13
  62. package/agents/savant/savant-free-evals.ts +0 -9
  63. package/agents/savant/savant-free-glm.ts +0 -13
  64. package/agents/savant/savant-free-kimi.ts +0 -13
  65. package/agents/savant/savant-free-mimo-pro.ts +0 -13
  66. package/agents/savant/savant-free-mimo.ts +0 -13
  67. package/agents/savant/savant-free-minimax-m3.ts +0 -13
  68. package/agents/savant/savant-free.ts +0 -9
  69. package/agents/savant/savant-scaffold.ts +0 -15
  70. package/agents/savant/savant.ts +0 -706
  71. package/agents/scout/scout.ts +0 -305
  72. package/agents/scribe/scribe.ts +0 -54
  73. package/agents/thinker/thinker-gemini.ts +0 -26
  74. package/agents/thinker/thinker-gpt.ts +0 -21
  75. package/agents/thinker/thinker-with-files-gemini.ts +0 -66
  76. package/agents/thinker/thinker.ts +0 -99
  77. package/agents/tmux-cli.ts +0 -724
  78. package/agents/tsconfig.json +0 -12
  79. package/agents/types/agent-definition.ts +0 -1
  80. package/agents/types/secret-agent-definition.ts +0 -103
  81. package/agents/types/tools.ts +0 -465
  82. package/agents/types/util-types.ts +0 -167
  83. package/agents/verifier/verifier.ts +0 -80
  84. package/art/savant-redesign.md +0 -7
  85. package/art/savant-text-graf.md +0 -5
  86. package/art/savant_ascii.md +0 -88
  87. package/assets/banner.png +0 -0
  88. package/bun.lock +0 -1979
  89. package/bunfig.toml +0 -7
  90. package/cli/README.md +0 -111
  91. package/cli/bunfig.toml +0 -2
  92. package/cli/cli_exit +0 -1
  93. package/cli/package.json +0 -66
  94. package/cli/release/README.md +0 -348
  95. package/cli/release/package.json +0 -56
  96. package/cli/release-core/README.md +0 -20
  97. package/cli/release-core/package.json +0 -4
  98. package/cli/release-core/prepare-package.js +0 -31
  99. package/cli/release-staging/README.md +0 -70
  100. package/cli/release-staging/index.js +0 -42
  101. package/cli/release-staging/package.json +0 -43
  102. package/cli/scripts/build-binary.ts +0 -469
  103. package/cli/scripts/clean.ts +0 -16
  104. package/cli/scripts/prebuild-agents.ts +0 -250
  105. package/cli/scripts/release.ts +0 -103
  106. package/cli/scripts/smoke-binary.ts +0 -280
  107. package/cli/scripts/test-sdk-file-hooks.sh +0 -87
  108. package/cli/scripts/validate-cli-with-tmux.sh +0 -43
  109. package/cli/src/__tests__/README.md +0 -256
  110. package/cli/src/__tests__/bash-mode.test.ts +0 -442
  111. package/cli/src/__tests__/cli-args.test.ts +0 -241
  112. package/cli/src/__tests__/e2e/first-time-login.test.ts +0 -173
  113. package/cli/src/__tests__/e2e/logout-relogin-flow.test.ts +0 -110
  114. package/cli/src/__tests__/e2e/returning-user-auth.test.ts +0 -111
  115. package/cli/src/__tests__/e2e-cli.test.ts +0 -185
  116. package/cli/src/__tests__/helpers/mock-api-client.ts +0 -64
  117. package/cli/src/__tests__/helpers/terminal-watchdog-fixture.ts +0 -50
  118. package/cli/src/__tests__/home-directory-detection.test.ts +0 -213
  119. package/cli/src/__tests__/integration/agent-toolnames-validation.test.ts +0 -63
  120. package/cli/src/__tests__/integration/api-integration.test.ts +0 -289
  121. package/cli/src/__tests__/integration/credentials-storage.test.ts +0 -453
  122. package/cli/src/__tests__/integration/local-agents.test.ts +0 -1187
  123. package/cli/src/__tests__/integration/login-flow-instrumentation.test.ts +0 -146
  124. package/cli/src/__tests__/integration/login-polling-working.test.ts +0 -287
  125. package/cli/src/__tests__/integration/usage-refresh-on-completion.test.ts +0 -177
  126. package/cli/src/__tests__/integration-tmux.test.ts +0 -186
  127. package/cli/src/__tests__/mocks/hover-toggle-controller.ts +0 -71
  128. package/cli/src/__tests__/path-completion.test.ts +0 -243
  129. package/cli/src/__tests__/project-files-chat-id.test.ts +0 -34
  130. package/cli/src/__tests__/release/proxy-http-get.test.ts +0 -670
  131. package/cli/src/__tests__/release/wrapper-safety.test.ts +0 -177
  132. package/cli/src/__tests__/rerender-perf.integration.test.ts +0 -283
  133. package/cli/src/__tests__/terminal-reset-sequences.test.ts +0 -36
  134. package/cli/src/__tests__/terminal-watchdog.test.ts +0 -114
  135. package/cli/src/__tests__/test-utils.ts +0 -266
  136. package/cli/src/__tests__/tmux-poc.ts +0 -150
  137. package/cli/src/__tests__/unit/agent-mode-toggle.test.ts +0 -138
  138. package/cli/src/__tests__/unit/copy-button.test.tsx +0 -188
  139. package/cli/src/__tests__/unit/create-run-config.test.ts +0 -77
  140. package/cli/src/__tests__/unit/publish-confirmation.test.ts +0 -70
  141. package/cli/src/__tests__/unit/segmented-control.test.ts +0 -167
  142. package/cli/src/__tests__/utils/env.test.ts +0 -210
  143. package/cli/src/__tests__/utils/project-picker.test.ts +0 -39
  144. package/cli/src/agents/bundled-agents.generated.d.ts +0 -14
  145. package/cli/src/agents/bundled-agents.generated.ts +0 -1962
  146. package/cli/src/app.tsx +0 -383
  147. package/cli/src/chat.tsx +0 -2008
  148. package/cli/src/cli-args.ts +0 -183
  149. package/cli/src/commands/__tests__/bash-command.test.ts +0 -449
  150. package/cli/src/commands/__tests__/command-args.test.ts +0 -325
  151. package/cli/src/commands/__tests__/copy-conversation.test.ts +0 -240
  152. package/cli/src/commands/__tests__/dev-command.test.ts +0 -128
  153. package/cli/src/commands/__tests__/diagnostics-command.test.ts +0 -35
  154. package/cli/src/commands/__tests__/image.test.ts +0 -99
  155. package/cli/src/commands/__tests__/init.test.ts +0 -479
  156. package/cli/src/commands/__tests__/loop-command.test.ts +0 -89
  157. package/cli/src/commands/__tests__/new-command-rotates-chat.test.ts +0 -87
  158. package/cli/src/commands/__tests__/permissions-command.test.ts +0 -93
  159. package/cli/src/commands/__tests__/process-diagnostics.test.ts +0 -54
  160. package/cli/src/commands/__tests__/prompt-builders.test.ts +0 -69
  161. package/cli/src/commands/__tests__/registry-gating.test.ts +0 -125
  162. package/cli/src/commands/__tests__/rewind-command.test.ts +0 -227
  163. package/cli/src/commands/__tests__/router-connect-chatgpt.test.ts +0 -72
  164. package/cli/src/commands/__tests__/router-input.test.ts +0 -302
  165. package/cli/src/commands/__tests__/router-provider-setup.test.ts +0 -180
  166. package/cli/src/commands/__tests__/savant-free-command-aliases.test.ts +0 -56
  167. package/cli/src/commands/ads.ts +0 -45
  168. package/cli/src/commands/command-registry.ts +0 -1112
  169. package/cli/src/commands/copy-conversation.ts +0 -386
  170. package/cli/src/commands/goal.ts +0 -87
  171. package/cli/src/commands/health-command.ts +0 -61
  172. package/cli/src/commands/help.ts +0 -13
  173. package/cli/src/commands/image.ts +0 -20
  174. package/cli/src/commands/init.ts +0 -121
  175. package/cli/src/commands/loop.ts +0 -182
  176. package/cli/src/commands/process-diagnostics.ts +0 -120
  177. package/cli/src/commands/prompt-builders.ts +0 -140
  178. package/cli/src/commands/publish.ts +0 -261
  179. package/cli/src/commands/rewind.ts +0 -130
  180. package/cli/src/commands/router-utils.ts +0 -80
  181. package/cli/src/commands/router.ts +0 -589
  182. package/cli/src/commands/telemetry.ts +0 -68
  183. package/cli/src/commands/usage.ts +0 -26
  184. package/cli/src/components/__tests__/ad-banner.test.tsx +0 -84
  185. package/cli/src/components/__tests__/block-helpers.test.tsx +0 -139
  186. package/cli/src/components/__tests__/clickable.test.tsx +0 -39
  187. package/cli/src/components/__tests__/grid-layout.integration.test.tsx +0 -365
  188. package/cli/src/components/__tests__/grid-layout.test.tsx +0 -1033
  189. package/cli/src/components/__tests__/markdown-content.test.tsx +0 -163
  190. package/cli/src/components/__tests__/message-block.completion.test.tsx +0 -104
  191. package/cli/src/components/__tests__/message-block.streaming.test.tsx +0 -78
  192. package/cli/src/components/__tests__/message-with-agents.test.tsx +0 -571
  193. package/cli/src/components/__tests__/multiline-input.test.tsx +0 -1129
  194. package/cli/src/components/__tests__/selectable-list.test.ts +0 -232
  195. package/cli/src/components/__tests__/shimmer-text.test.tsx +0 -32
  196. package/cli/src/components/__tests__/status-indicator.test.tsx +0 -184
  197. package/cli/src/components/__tests__/user-error-banner.test.tsx +0 -100
  198. package/cli/src/components/ad-banner.tsx +0 -351
  199. package/cli/src/components/agent-checklist.tsx +0 -385
  200. package/cli/src/components/agent-mode-toggle.tsx +0 -294
  201. package/cli/src/components/ask-user/__tests__/multiple-choice-form.test.ts +0 -432
  202. package/cli/src/components/ask-user/__tests__/validation.test.ts +0 -213
  203. package/cli/src/components/ask-user/components/accordion-question.tsx +0 -153
  204. package/cli/src/components/ask-user/components/custom-answer-input.tsx +0 -66
  205. package/cli/src/components/ask-user/components/options-list.tsx +0 -139
  206. package/cli/src/components/ask-user/components/question-header.tsx +0 -80
  207. package/cli/src/components/ask-user/components/question-option.tsx +0 -94
  208. package/cli/src/components/ask-user/constants.ts +0 -35
  209. package/cli/src/components/ask-user/index.tsx +0 -660
  210. package/cli/src/components/ask-user/utils/validation.ts +0 -85
  211. package/cli/src/components/attachment-card.tsx +0 -67
  212. package/cli/src/components/blocks/agent-block-grid.tsx +0 -58
  213. package/cli/src/components/blocks/agent-branch-item.tsx +0 -230
  214. package/cli/src/components/blocks/agent-branch-wrapper.tsx +0 -524
  215. package/cli/src/components/blocks/agent-list-branch.tsx +0 -77
  216. package/cli/src/components/blocks/ask-user-branch.tsx +0 -98
  217. package/cli/src/components/blocks/block-helpers.tsx +0 -257
  218. package/cli/src/components/blocks/blocks-renderer.tsx +0 -296
  219. package/cli/src/components/blocks/content-with-markdown.tsx +0 -34
  220. package/cli/src/components/blocks/copy-button.tsx +0 -106
  221. package/cli/src/components/blocks/copyable-block.tsx +0 -47
  222. package/cli/src/components/blocks/image-block.tsx +0 -128
  223. package/cli/src/components/blocks/implementor-row.tsx +0 -453
  224. package/cli/src/components/blocks/markdown-content.tsx +0 -360
  225. package/cli/src/components/blocks/markdown-renderables.tsx +0 -347
  226. package/cli/src/components/blocks/single-block.tsx +0 -210
  227. package/cli/src/components/blocks/thinking-block.tsx +0 -77
  228. package/cli/src/components/blocks/tool-block-group.tsx +0 -72
  229. package/cli/src/components/blocks/tool-branch.tsx +0 -196
  230. package/cli/src/components/blocks/user-content-copy.tsx +0 -171
  231. package/cli/src/components/bottom-banner.tsx +0 -145
  232. package/cli/src/components/build-mode-buttons.tsx +0 -110
  233. package/cli/src/components/button.tsx +0 -75
  234. package/cli/src/components/chat-header.tsx +0 -11
  235. package/cli/src/components/chat-history-screen.tsx +0 -417
  236. package/cli/src/components/chat-input-bar.tsx +0 -535
  237. package/cli/src/components/chatgpt-connect-banner.tsx +0 -234
  238. package/cli/src/components/clickable.tsx +0 -149
  239. package/cli/src/components/collapse-button.tsx +0 -36
  240. package/cli/src/components/command-palette.tsx +0 -166
  241. package/cli/src/components/copy-button.tsx +0 -219
  242. package/cli/src/components/dialog.tsx +0 -111
  243. package/cli/src/components/elapsed-timer.tsx +0 -56
  244. package/cli/src/components/error-boundary.tsx +0 -63
  245. package/cli/src/components/feedback-container.tsx +0 -206
  246. package/cli/src/components/feedback-icon-button.tsx +0 -89
  247. package/cli/src/components/feedback-input-mode.tsx +0 -352
  248. package/cli/src/components/file-attachment-card.tsx +0 -89
  249. package/cli/src/components/grid-layout.tsx +0 -83
  250. package/cli/src/components/help-banner.tsx +0 -136
  251. package/cli/src/components/highlighted-text.tsx +0 -52
  252. package/cli/src/components/image-card.tsx +0 -167
  253. package/cli/src/components/image-thumbnail.tsx +0 -112
  254. package/cli/src/components/input-cursor.tsx +0 -77
  255. package/cli/src/components/input-mode-banner.tsx +0 -70
  256. package/cli/src/components/load-previous-button.tsx +0 -48
  257. package/cli/src/components/login-modal.tsx +0 -450
  258. package/cli/src/components/message-block.tsx +0 -337
  259. package/cli/src/components/message-footer.tsx +0 -269
  260. package/cli/src/components/message-with-agents.tsx +0 -594
  261. package/cli/src/components/mode-divider.tsx +0 -43
  262. package/cli/src/components/model-picker.tsx +0 -371
  263. package/cli/src/components/multiline-input.tsx +0 -1276
  264. package/cli/src/components/out-of-credits-banner.tsx +0 -155
  265. package/cli/src/components/pending-attachments-banner.tsx +0 -125
  266. package/cli/src/components/pending-bash-message.tsx +0 -57
  267. package/cli/src/components/progress-bar.tsx +0 -81
  268. package/cli/src/components/project-picker-screen.tsx +0 -469
  269. package/cli/src/components/provider-picker.tsx +0 -139
  270. package/cli/src/components/publish-confirmation.tsx +0 -514
  271. package/cli/src/components/publish-container.tsx +0 -737
  272. package/cli/src/components/raised-pill.tsx +0 -89
  273. package/cli/src/components/renderers/plan-box.tsx +0 -70
  274. package/cli/src/components/review-screen.tsx +0 -114
  275. package/cli/src/components/rewind-picker.tsx +0 -276
  276. package/cli/src/components/right-sidebar.tsx +0 -296
  277. package/cli/src/components/savant-free-active-session-summary.tsx +0 -63
  278. package/cli/src/components/savant-free-landing-screen.tsx +0 -756
  279. package/cli/src/components/savant-free-model-selector.tsx +0 -815
  280. package/cli/src/components/savant-free-referral-banner.tsx +0 -423
  281. package/cli/src/components/savant-free-superseded-screen.tsx +0 -62
  282. package/cli/src/components/savant-ui/animation/pulse.tsx +0 -26
  283. package/cli/src/components/savant-ui/animation/typewriter.tsx +0 -40
  284. package/cli/src/components/savant-ui/branding.tsx +0 -59
  285. package/cli/src/components/savant-ui/data-display/badge.tsx +0 -52
  286. package/cli/src/components/savant-ui/data-display/code-block.tsx +0 -55
  287. package/cli/src/components/savant-ui/data-display/key-value.tsx +0 -34
  288. package/cli/src/components/savant-ui/data-display/sparkline.tsx +0 -42
  289. package/cli/src/components/savant-ui/data-display/timeline.tsx +0 -44
  290. package/cli/src/components/savant-ui/data-display/tree-view.tsx +0 -55
  291. package/cli/src/components/savant-ui/echo/__tests__/sidebar-collapse.test.tsx +0 -90
  292. package/cli/src/components/savant-ui/echo/agent-stack.tsx +0 -72
  293. package/cli/src/components/savant-ui/echo/agent-status.tsx +0 -66
  294. package/cli/src/components/savant-ui/echo/fid-card.tsx +0 -89
  295. package/cli/src/components/savant-ui/echo/fid-list.tsx +0 -68
  296. package/cli/src/components/savant-ui/echo/loop-status-panel.tsx +0 -64
  297. package/cli/src/components/savant-ui/echo/perfection-loop.tsx +0 -118
  298. package/cli/src/components/savant-ui/echo/phase-indicator.tsx +0 -68
  299. package/cli/src/components/savant-ui/echo/phase-info.ts +0 -72
  300. package/cli/src/components/savant-ui/echo/token-meter.tsx +0 -39
  301. package/cli/src/components/savant-ui/feedback/alert.tsx +0 -45
  302. package/cli/src/components/savant-ui/feedback/cost-tracker.tsx +0 -54
  303. package/cli/src/components/savant-ui/feedback/progress-bar.tsx +0 -71
  304. package/cli/src/components/savant-ui/feedback/spinner.tsx +0 -40
  305. package/cli/src/components/savant-ui/icon-theme-keys.ts +0 -67
  306. package/cli/src/components/savant-ui/icon.tsx +0 -53
  307. package/cli/src/components/savant-ui/index.ts +0 -75
  308. package/cli/src/components/savant-ui/input/select.tsx +0 -26
  309. package/cli/src/components/savant-ui/input/toggle.tsx +0 -28
  310. package/cli/src/components/savant-ui/layout/grid.tsx +0 -52
  311. package/cli/src/components/savant-ui/layout/header.tsx +0 -28
  312. package/cli/src/components/savant-ui/navigation/stepper.tsx +0 -41
  313. package/cli/src/components/savant-ui/primitives/key-hint.tsx +0 -45
  314. package/cli/src/components/savant-ui/primitives/key-value-row.tsx +0 -41
  315. package/cli/src/components/savant-ui/primitives/panel.tsx +0 -42
  316. package/cli/src/components/savant-ui/primitives/separator.tsx +0 -34
  317. package/cli/src/components/savant-ui/primitives/sidebar-section.tsx +0 -64
  318. package/cli/src/components/savant-ui/primitives/spacer.tsx +0 -13
  319. package/cli/src/components/savant-ui/primitives/stack.tsx +0 -35
  320. package/cli/src/components/savant-ui/theme.ts +0 -45
  321. package/cli/src/components/scroll-to-bottom-button.tsx +0 -34
  322. package/cli/src/components/segmented-control.tsx +0 -199
  323. package/cli/src/components/selectable-list.tsx +0 -249
  324. package/cli/src/components/selected-chips.tsx +0 -86
  325. package/cli/src/components/separator.tsx +0 -40
  326. package/cli/src/components/session-ended-banner.tsx +0 -183
  327. package/cli/src/components/shimmer-text.tsx +0 -254
  328. package/cli/src/components/status-bar.tsx +0 -279
  329. package/cli/src/components/subscription-limit-banner.tsx +0 -269
  330. package/cli/src/components/suggested-prompts.tsx +0 -184
  331. package/cli/src/components/suggestion-menu.tsx +0 -219
  332. package/cli/src/components/terminal-command-display.tsx +0 -152
  333. package/cli/src/components/terminal-link.tsx +0 -97
  334. package/cli/src/components/text-attachment-card.tsx +0 -77
  335. package/cli/src/components/thinking.tsx +0 -108
  336. package/cli/src/components/toast.tsx +0 -109
  337. package/cli/src/components/tools/__tests__/apply-patch.test.tsx +0 -97
  338. package/cli/src/components/tools/__tests__/code-search.test.tsx +0 -45
  339. package/cli/src/components/tools/__tests__/gravity-index.test.ts +0 -76
  340. package/cli/src/components/tools/__tests__/render-ui.test.tsx +0 -556
  341. package/cli/src/components/tools/__tests__/run-terminal-command.test.ts +0 -274
  342. package/cli/src/components/tools/__tests__/tool-call-item.test.tsx +0 -73
  343. package/cli/src/components/tools/apply-patch.tsx +0 -101
  344. package/cli/src/components/tools/code-search.tsx +0 -50
  345. package/cli/src/components/tools/composio.tsx +0 -140
  346. package/cli/src/components/tools/diff-viewer.tsx +0 -21
  347. package/cli/src/components/tools/glob.tsx +0 -66
  348. package/cli/src/components/tools/gravity-index.tsx +0 -80
  349. package/cli/src/components/tools/list-directory.tsx +0 -66
  350. package/cli/src/components/tools/read-docs.tsx +0 -36
  351. package/cli/src/components/tools/read-files.tsx +0 -97
  352. package/cli/src/components/tools/read-subtree.tsx +0 -40
  353. package/cli/src/components/tools/read-url.tsx +0 -32
  354. package/cli/src/components/tools/registry.ts +0 -131
  355. package/cli/src/components/tools/render-ui.tsx +0 -466
  356. package/cli/src/components/tools/run-terminal-command.tsx +0 -86
  357. package/cli/src/components/tools/skill.tsx +0 -26
  358. package/cli/src/components/tools/str-replace.tsx +0 -77
  359. package/cli/src/components/tools/suggest-followups.tsx +0 -373
  360. package/cli/src/components/tools/task-completed.tsx +0 -16
  361. package/cli/src/components/tools/tool-call-item.tsx +0 -163
  362. package/cli/src/components/tools/types.ts +0 -100
  363. package/cli/src/components/tools/web-search.tsx +0 -32
  364. package/cli/src/components/tools/write-file.tsx +0 -20
  365. package/cli/src/components/tools/write-todos.tsx +0 -105
  366. package/cli/src/components/top-banner.tsx +0 -187
  367. package/cli/src/components/usage-banner.tsx +0 -296
  368. package/cli/src/components/user-error-banner.tsx +0 -54
  369. package/cli/src/components/validation-error-popover.tsx +0 -191
  370. package/cli/src/data/slash-commands.ts +0 -306
  371. package/cli/src/hooks/__tests__/holds-live-savant-free-slot.test.ts +0 -49
  372. package/cli/src/hooks/__tests__/run-outcome.test.ts +0 -178
  373. package/cli/src/hooks/__tests__/session-fetch-signal.test.ts +0 -45
  374. package/cli/src/hooks/__tests__/use-activity-query.test.ts +0 -810
  375. package/cli/src/hooks/__tests__/use-ask-user-bridge.test.ts +0 -175
  376. package/cli/src/hooks/__tests__/use-auth-query.test.ts +0 -21
  377. package/cli/src/hooks/__tests__/use-chat-messages-collapse.test.ts +0 -96
  378. package/cli/src/hooks/__tests__/use-connection-status.test.ts +0 -112
  379. package/cli/src/hooks/__tests__/use-directory-browser.test.ts +0 -215
  380. package/cli/src/hooks/__tests__/use-gravity-ad.test.ts +0 -73
  381. package/cli/src/hooks/__tests__/use-grid-layout.test.ts +0 -346
  382. package/cli/src/hooks/__tests__/use-input-history.test.ts +0 -704
  383. package/cli/src/hooks/__tests__/use-loop-scheduler.test.ts +0 -247
  384. package/cli/src/hooks/__tests__/use-path-tab-completion.test.ts +0 -324
  385. package/cli/src/hooks/__tests__/use-queue-controls.test.ts +0 -68
  386. package/cli/src/hooks/__tests__/use-searchable-list.test.ts +0 -364
  387. package/cli/src/hooks/__tests__/use-send-message-timer.test.ts +0 -146
  388. package/cli/src/hooks/__tests__/use-suggestion-engine-mention.test.ts +0 -364
  389. package/cli/src/hooks/__tests__/use-suggestion-engine.test.ts +0 -485
  390. package/cli/src/hooks/__tests__/use-terminal-focus.test.ts +0 -66
  391. package/cli/src/hooks/__tests__/use-terminal-layout.test.ts +0 -675
  392. package/cli/src/hooks/__tests__/use-timeout.test.ts +0 -330
  393. package/cli/src/hooks/__tests__/use-usage-query.test.ts +0 -526
  394. package/cli/src/hooks/__tests__/use-user-details-query.test.ts +0 -225
  395. package/cli/src/hooks/helpers/__tests__/send-message.test.ts +0 -1851
  396. package/cli/src/hooks/helpers/send-message.ts +0 -553
  397. package/cli/src/hooks/run-outcome.ts +0 -64
  398. package/cli/src/hooks/stream-state.ts +0 -106
  399. package/cli/src/hooks/use-activity-query.ts +0 -696
  400. package/cli/src/hooks/use-agent-validation.ts +0 -80
  401. package/cli/src/hooks/use-ask-user-bridge.ts +0 -102
  402. package/cli/src/hooks/use-auth-query.ts +0 -261
  403. package/cli/src/hooks/use-auth-state.ts +0 -155
  404. package/cli/src/hooks/use-chat-input.ts +0 -87
  405. package/cli/src/hooks/use-chat-keyboard.ts +0 -325
  406. package/cli/src/hooks/use-chat-messages.ts +0 -273
  407. package/cli/src/hooks/use-chat-state.ts +0 -219
  408. package/cli/src/hooks/use-chat-streaming.ts +0 -270
  409. package/cli/src/hooks/use-chat-ui.ts +0 -136
  410. package/cli/src/hooks/use-clipboard.ts +0 -154
  411. package/cli/src/hooks/use-connection-status.ts +0 -156
  412. package/cli/src/hooks/use-directory-browser.ts +0 -88
  413. package/cli/src/hooks/use-elapsed-time.ts +0 -116
  414. package/cli/src/hooks/use-event.ts +0 -36
  415. package/cli/src/hooks/use-exit-handler.ts +0 -108
  416. package/cli/src/hooks/use-fetch-login-url.ts +0 -65
  417. package/cli/src/hooks/use-fids.ts +0 -48
  418. package/cli/src/hooks/use-fingerprint.ts +0 -64
  419. package/cli/src/hooks/use-gravity-ad.ts +0 -688
  420. package/cli/src/hooks/use-grid-layout.ts +0 -78
  421. package/cli/src/hooks/use-input-history.ts +0 -173
  422. package/cli/src/hooks/use-login-keyboard-handlers.ts +0 -74
  423. package/cli/src/hooks/use-login-polling.ts +0 -120
  424. package/cli/src/hooks/use-logo.tsx +0 -178
  425. package/cli/src/hooks/use-loop-scheduler.ts +0 -481
  426. package/cli/src/hooks/use-message-queue.ts +0 -301
  427. package/cli/src/hooks/use-now.ts +0 -20
  428. package/cli/src/hooks/use-path-tab-completion.ts +0 -88
  429. package/cli/src/hooks/use-publish-mutation.ts +0 -60
  430. package/cli/src/hooks/use-queue-controls.ts +0 -70
  431. package/cli/src/hooks/use-queue-ui.ts +0 -55
  432. package/cli/src/hooks/use-savant-free-ctrl-c-exit.ts +0 -23
  433. package/cli/src/hooks/use-savant-free-session-progress.ts +0 -34
  434. package/cli/src/hooks/use-savant-free-session.ts +0 -679
  435. package/cli/src/hooks/use-savant-free-streak-query.ts +0 -72
  436. package/cli/src/hooks/use-scaffold-confirm.ts +0 -62
  437. package/cli/src/hooks/use-scaffold-revert-subscriber.ts +0 -66
  438. package/cli/src/hooks/use-scroll-management.ts +0 -182
  439. package/cli/src/hooks/use-searchable-list.ts +0 -99
  440. package/cli/src/hooks/use-send-message.ts +0 -1038
  441. package/cli/src/hooks/use-sheen-animation.tsx +0 -88
  442. package/cli/src/hooks/use-subscription-query.ts +0 -106
  443. package/cli/src/hooks/use-suggestion-engine.ts +0 -793
  444. package/cli/src/hooks/use-terminal-breakpoints.ts +0 -77
  445. package/cli/src/hooks/use-terminal-dimensions.ts +0 -50
  446. package/cli/src/hooks/use-terminal-focus.ts +0 -146
  447. package/cli/src/hooks/use-terminal-layout.ts +0 -189
  448. package/cli/src/hooks/use-theme.tsx +0 -140
  449. package/cli/src/hooks/use-timeout.ts +0 -88
  450. package/cli/src/hooks/use-toast.ts +0 -114
  451. package/cli/src/hooks/use-update-preference.ts +0 -77
  452. package/cli/src/hooks/use-usage-monitor.ts +0 -59
  453. package/cli/src/hooks/use-usage-query.ts +0 -138
  454. package/cli/src/hooks/use-user-details-query.ts +0 -104
  455. package/cli/src/hooks/use-why-did-you-update.ts +0 -178
  456. package/cli/src/index.tsx +0 -484
  457. package/cli/src/init/__tests__/init-direnv.test.ts +0 -597
  458. package/cli/src/init/init-app.ts +0 -54
  459. package/cli/src/init/init-direnv.ts +0 -133
  460. package/cli/src/login/constants.ts +0 -71
  461. package/cli/src/login/login-flow.ts +0 -224
  462. package/cli/src/login/plain-login.ts +0 -107
  463. package/cli/src/login/utils.ts +0 -183
  464. package/cli/src/native/ripgrep.ts +0 -82
  465. package/cli/src/polyfills/bun-strip-ansi.ts +0 -12
  466. package/cli/src/pre-init/load-dev-env.ts +0 -98
  467. package/cli/src/pre-init/tree-sitter-wasm.ts +0 -98
  468. package/cli/src/project-files.ts +0 -102
  469. package/cli/src/state/__tests__/chat-store-focus.test.ts +0 -22
  470. package/cli/src/state/__tests__/feedback-store.test.ts +0 -260
  471. package/cli/src/state/chat-history-store.ts +0 -27
  472. package/cli/src/state/chat-store.ts +0 -791
  473. package/cli/src/state/feedback-store.ts +0 -162
  474. package/cli/src/state/gateway-catalog-store.ts +0 -45
  475. package/cli/src/state/login-store.ts +0 -150
  476. package/cli/src/state/message-block-store.ts +0 -143
  477. package/cli/src/state/model-picker-store.ts +0 -67
  478. package/cli/src/state/provider-picker-store.ts +0 -53
  479. package/cli/src/state/publish-store.ts +0 -141
  480. package/cli/src/state/review-store.ts +0 -24
  481. package/cli/src/state/rewind-picker-store.ts +0 -74
  482. package/cli/src/state/savant-free-model-store.ts +0 -59
  483. package/cli/src/state/savant-free-session-store.ts +0 -32
  484. package/cli/src/test-setup.ts +0 -20
  485. package/cli/src/testing/env.ts +0 -46
  486. package/cli/src/types/chat-state.ts +0 -15
  487. package/cli/src/types/chat.ts +0 -242
  488. package/cli/src/types/contracts/send-message.ts +0 -16
  489. package/cli/src/types/env.ts +0 -107
  490. package/cli/src/types/function-params.ts +0 -35
  491. package/cli/src/types/opentui-augmentation.d.ts +0 -11
  492. package/cli/src/types/react19-compat.d.ts +0 -19
  493. package/cli/src/types/savant-free-session.ts +0 -17
  494. package/cli/src/types/store.ts +0 -112
  495. package/cli/src/types/theme-system.ts +0 -194
  496. package/cli/src/types/utils.ts +0 -3
  497. package/cli/src/utils/__tests__/activity-tracker.test.ts +0 -440
  498. package/cli/src/utils/__tests__/agent-display.test.ts +0 -139
  499. package/cli/src/utils/__tests__/analytics-client.test.ts +0 -311
  500. package/cli/src/utils/__tests__/anonymous-id.test.ts +0 -74
  501. package/cli/src/utils/__tests__/arrays.test.ts +0 -264
  502. package/cli/src/utils/__tests__/bash-context-processor.test.ts +0 -38
  503. package/cli/src/utils/__tests__/block-processor.test.ts +0 -690
  504. package/cli/src/utils/__tests__/chat-history.test.ts +0 -247
  505. package/cli/src/utils/__tests__/chat-input-key-intercept.test.ts +0 -40
  506. package/cli/src/utils/__tests__/chat-layout.test.ts +0 -32
  507. package/cli/src/utils/__tests__/chat-meta.test.ts +0 -160
  508. package/cli/src/utils/__tests__/chatgpt-oauth.test.ts +0 -50
  509. package/cli/src/utils/__tests__/clipboard.test.ts +0 -998
  510. package/cli/src/utils/__tests__/code-search-summary.test.ts +0 -84
  511. package/cli/src/utils/__tests__/collapse-helpers.test.ts +0 -1272
  512. package/cli/src/utils/__tests__/error-handling.test.ts +0 -611
  513. package/cli/src/utils/__tests__/feedback-helpers.test.ts +0 -452
  514. package/cli/src/utils/__tests__/feedback-submission.test.ts +0 -26
  515. package/cli/src/utils/__tests__/fetch-usage.test.ts +0 -355
  516. package/cli/src/utils/__tests__/fingerprint.test.ts +0 -147
  517. package/cli/src/utils/__tests__/format-elapsed-time.test.ts +0 -103
  518. package/cli/src/utils/__tests__/format-timeout.test.ts +0 -87
  519. package/cli/src/utils/__tests__/image-dimensions.test.ts +0 -243
  520. package/cli/src/utils/__tests__/image-processor.test.ts +0 -250
  521. package/cli/src/utils/__tests__/implementor-helpers.test.ts +0 -1457
  522. package/cli/src/utils/__tests__/keyboard-actions.test.ts +0 -686
  523. package/cli/src/utils/__tests__/layout-helpers.test.ts +0 -36
  524. package/cli/src/utils/__tests__/lazy-response-ads.test.ts +0 -167
  525. package/cli/src/utils/__tests__/logger-sanitize-secrets.test.ts +0 -80
  526. package/cli/src/utils/__tests__/markdown-renderer.test.tsx +0 -518
  527. package/cli/src/utils/__tests__/markdown-streaming.test.ts +0 -64
  528. package/cli/src/utils/__tests__/message-block-helpers.test.ts +0 -1197
  529. package/cli/src/utils/__tests__/message-updater.test.ts +0 -659
  530. package/cli/src/utils/__tests__/ollama-onboarding.test.ts +0 -239
  531. package/cli/src/utils/__tests__/openrouter-models.test.ts +0 -295
  532. package/cli/src/utils/__tests__/osc-timeout-scenarios.test.ts +0 -172
  533. package/cli/src/utils/__tests__/pending-attachments.test.ts +0 -278
  534. package/cli/src/utils/__tests__/provider-setup.test.ts +0 -183
  535. package/cli/src/utils/__tests__/run-state-storage.test.ts +0 -741
  536. package/cli/src/utils/__tests__/savant-code-api.test.ts +0 -634
  537. package/cli/src/utils/__tests__/savant-free-instance-owner.test.ts +0 -69
  538. package/cli/src/utils/__tests__/savant-free-model-navigation.test.ts +0 -104
  539. package/cli/src/utils/__tests__/savant-free-premium-reset.test.ts +0 -81
  540. package/cli/src/utils/__tests__/savant-free-referral-cache.test.ts +0 -67
  541. package/cli/src/utils/__tests__/savant-free-session-display.test.ts +0 -23
  542. package/cli/src/utils/__tests__/savant-free-streak-line.test.ts +0 -76
  543. package/cli/src/utils/__tests__/sdk-event-handlers.test.ts +0 -615
  544. package/cli/src/utils/__tests__/send-message-helpers.test.ts +0 -1875
  545. package/cli/src/utils/__tests__/send-message-timer.test.ts +0 -68
  546. package/cli/src/utils/__tests__/settings.test.ts +0 -138
  547. package/cli/src/utils/__tests__/strings.test.ts +0 -210
  548. package/cli/src/utils/__tests__/syntax-theme.test.ts +0 -91
  549. package/cli/src/utils/__tests__/terminal-color-detection.test.ts +0 -425
  550. package/cli/src/utils/__tests__/terminal-enter-detection.test.ts +0 -77
  551. package/cli/src/utils/__tests__/text-layout.test.ts +0 -82
  552. package/cli/src/utils/__tests__/think-tag-parser.test.ts +0 -159
  553. package/cli/src/utils/__tests__/trace-writer.test.ts +0 -193
  554. package/cli/src/utils/__tests__/trim-chat-logs.test.ts +0 -79
  555. package/cli/src/utils/__tests__/usage-banner-state.test.ts +0 -298
  556. package/cli/src/utils/__tests__/validation-error-formatting.test.ts +0 -126
  557. package/cli/src/utils/__tests__/write-file-atomic.test.ts +0 -130
  558. package/cli/src/utils/active-run.ts +0 -22
  559. package/cli/src/utils/activity-tracker.ts +0 -66
  560. package/cli/src/utils/agent-display.ts +0 -87
  561. package/cli/src/utils/agent-helpers.ts +0 -47
  562. package/cli/src/utils/ai-message-id.ts +0 -12
  563. package/cli/src/utils/analytics.ts +0 -407
  564. package/cli/src/utils/anonymous-id.ts +0 -87
  565. package/cli/src/utils/arrays.ts +0 -117
  566. package/cli/src/utils/auth.ts +0 -258
  567. package/cli/src/utils/bash-context-processor.ts +0 -47
  568. package/cli/src/utils/bash-messages.ts +0 -108
  569. package/cli/src/utils/block-margins.ts +0 -35
  570. package/cli/src/utils/block-operations.ts +0 -548
  571. package/cli/src/utils/block-processor.ts +0 -212
  572. package/cli/src/utils/chat-history.ts +0 -265
  573. package/cli/src/utils/chat-input-key-intercept.ts +0 -52
  574. package/cli/src/utils/chat-layout.ts +0 -44
  575. package/cli/src/utils/chat-meta.ts +0 -101
  576. package/cli/src/utils/chat-scroll-accel.ts +0 -151
  577. package/cli/src/utils/chatgpt-oauth.ts +0 -350
  578. package/cli/src/utils/clipboard-image.ts +0 -610
  579. package/cli/src/utils/clipboard.ts +0 -307
  580. package/cli/src/utils/code-search-summary.ts +0 -69
  581. package/cli/src/utils/collapse-helpers.ts +0 -265
  582. package/cli/src/utils/config-dir.ts +0 -30
  583. package/cli/src/utils/constants.ts +0 -159
  584. package/cli/src/utils/create-event-handler-state.ts +0 -79
  585. package/cli/src/utils/create-run-config.ts +0 -160
  586. package/cli/src/utils/db-storage.ts +0 -254
  587. package/cli/src/utils/detect-shell.ts +0 -112
  588. package/cli/src/utils/directory-browser.ts +0 -74
  589. package/cli/src/utils/engagement.ts +0 -55
  590. package/cli/src/utils/env.ts +0 -109
  591. package/cli/src/utils/error-handling.ts +0 -246
  592. package/cli/src/utils/error-messages.ts +0 -84
  593. package/cli/src/utils/feedback-helpers.ts +0 -115
  594. package/cli/src/utils/feedback-submission.ts +0 -24
  595. package/cli/src/utils/fetch-usage.ts +0 -75
  596. package/cli/src/utils/fid-loader.ts +0 -135
  597. package/cli/src/utils/fingerprint.ts +0 -263
  598. package/cli/src/utils/finish-logic.ts +0 -154
  599. package/cli/src/utils/format-elapsed-time.ts +0 -33
  600. package/cli/src/utils/format-session-units.ts +0 -6
  601. package/cli/src/utils/format-timeout.ts +0 -28
  602. package/cli/src/utils/format-validation-errors-for-message.ts +0 -85
  603. package/cli/src/utils/git.ts +0 -17
  604. package/cli/src/utils/glyphs.ts +0 -188
  605. package/cli/src/utils/helpers.ts +0 -47
  606. package/cli/src/utils/image-display.ts +0 -73
  607. package/cli/src/utils/image-handler.ts +0 -336
  608. package/cli/src/utils/image-processor.ts +0 -133
  609. package/cli/src/utils/image-thumbnail.ts +0 -83
  610. package/cli/src/utils/implementor-helpers.ts +0 -817
  611. package/cli/src/utils/input-modes.ts +0 -196
  612. package/cli/src/utils/keyboard-actions.ts +0 -394
  613. package/cli/src/utils/keypad-keys.ts +0 -47
  614. package/cli/src/utils/layout-helpers.ts +0 -36
  615. package/cli/src/utils/lazy-response-ads.ts +0 -1
  616. package/cli/src/utils/loading-phrases.ts +0 -68
  617. package/cli/src/utils/local-agent-registry.ts +0 -611
  618. package/cli/src/utils/log-shipper.ts +0 -116
  619. package/cli/src/utils/logger.ts +0 -435
  620. package/cli/src/utils/markdown-renderer.tsx +0 -1315
  621. package/cli/src/utils/math.ts +0 -3
  622. package/cli/src/utils/message-block-helpers.ts +0 -667
  623. package/cli/src/utils/message-history.ts +0 -153
  624. package/cli/src/utils/message-tree-utils.ts +0 -67
  625. package/cli/src/utils/message-updater.ts +0 -279
  626. package/cli/src/utils/ollama-onboarding.ts +0 -215
  627. package/cli/src/utils/open-file.ts +0 -144
  628. package/cli/src/utils/open-url.ts +0 -63
  629. package/cli/src/utils/openrouter-models.ts +0 -945
  630. package/cli/src/utils/path-completion.ts +0 -111
  631. package/cli/src/utils/path-helpers.ts +0 -38
  632. package/cli/src/utils/pending-attachments.ts +0 -363
  633. package/cli/src/utils/post-processing.ts +0 -99
  634. package/cli/src/utils/project-picker.ts +0 -12
  635. package/cli/src/utils/provider-setup.ts +0 -259
  636. package/cli/src/utils/recent-projects.ts +0 -156
  637. package/cli/src/utils/renderer-cleanup.ts +0 -142
  638. package/cli/src/utils/response-ad-positions.ts +0 -1
  639. package/cli/src/utils/rewind.ts +0 -175
  640. package/cli/src/utils/run-state-storage.ts +0 -480
  641. package/cli/src/utils/savant-code-api.ts +0 -686
  642. package/cli/src/utils/savant-code-client.ts +0 -217
  643. package/cli/src/utils/savant-free-agent-selection.ts +0 -12
  644. package/cli/src/utils/savant-free-exit.ts +0 -24
  645. package/cli/src/utils/savant-free-instance-owner.ts +0 -66
  646. package/cli/src/utils/savant-free-model-navigation.ts +0 -46
  647. package/cli/src/utils/savant-free-premium-reset.ts +0 -52
  648. package/cli/src/utils/savant-free-referral-cache.ts +0 -35
  649. package/cli/src/utils/savant-free-session-display.ts +0 -21
  650. package/cli/src/utils/savant-free-streak-line.ts +0 -67
  651. package/cli/src/utils/sdk-event-handlers.ts +0 -587
  652. package/cli/src/utils/send-message-helpers.ts +0 -199
  653. package/cli/src/utils/send-message-timer.ts +0 -110
  654. package/cli/src/utils/settings.ts +0 -388
  655. package/cli/src/utils/skill-registry.ts +0 -100
  656. package/cli/src/utils/spawn-agent-matcher.ts +0 -56
  657. package/cli/src/utils/status-indicator-state.ts +0 -100
  658. package/cli/src/utils/stream-chunk-processor.ts +0 -65
  659. package/cli/src/utils/strings.ts +0 -272
  660. package/cli/src/utils/subscription.ts +0 -31
  661. package/cli/src/utils/syntax-highlighter.tsx +0 -19
  662. package/cli/src/utils/syntax-theme.ts +0 -131
  663. package/cli/src/utils/terminal-color-detection.ts +0 -472
  664. package/cli/src/utils/terminal-enter-detection.ts +0 -63
  665. package/cli/src/utils/terminal-images.ts +0 -223
  666. package/cli/src/utils/terminal-reset-sequences.ts +0 -33
  667. package/cli/src/utils/terminal-title.ts +0 -113
  668. package/cli/src/utils/terminal-watchdog.ts +0 -246
  669. package/cli/src/utils/text-layout.ts +0 -153
  670. package/cli/src/utils/theme-config.ts +0 -143
  671. package/cli/src/utils/theme-system.ts +0 -1265
  672. package/cli/src/utils/think-tag-parser.ts +0 -105
  673. package/cli/src/utils/trace-writer.ts +0 -147
  674. package/cli/src/utils/ui-constants.ts +0 -69
  675. package/cli/src/utils/usage-banner-state.ts +0 -146
  676. package/cli/src/utils/validation-error-formatting.ts +0 -92
  677. package/cli/src/utils/validation-error-helpers.ts +0 -19
  678. package/cli/src/utils/version.ts +0 -23
  679. package/cli/src/utils/word-wrap-utils.ts +0 -53
  680. package/cli/src/utils/write-file-atomic.ts +0 -82
  681. package/cli/src/utils/yield-to-event-loop.ts +0 -9
  682. package/cli/tsconfig.json +0 -26
  683. package/coding-standards/csharp.md +0 -77
  684. package/coding-standards/go.md +0 -71
  685. package/coding-standards/java.md +0 -74
  686. package/coding-standards/python.md +0 -82
  687. package/coding-standards/rust.md +0 -78
  688. package/coding-standards/typescript.md +0 -85
  689. package/coding-standards/x402.md +0 -227
  690. package/common/README.md +0 -41
  691. package/common/common_exit +0 -1
  692. package/common/package.json +0 -45
  693. package/common/src/__tests__/agent-validation.test.ts +0 -861
  694. package/common/src/__tests__/agents.test.ts +0 -16
  695. package/common/src/__tests__/dynamic-agent-template-schema.test.ts +0 -420
  696. package/common/src/__tests__/env-ci.test.ts +0 -167
  697. package/common/src/__tests__/env-process.test.ts +0 -145
  698. package/common/src/__tests__/free-agents.test.ts +0 -269
  699. package/common/src/__tests__/handlesteps-parsing.test.ts +0 -247
  700. package/common/src/__tests__/model-config.test.ts +0 -41
  701. package/common/src/__tests__/project-file-tree.test.ts +0 -82
  702. package/common/src/__tests__/response-ad-positions.test.ts +0 -78
  703. package/common/src/__tests__/savant-free-models.test.ts +0 -460
  704. package/common/src/__tests__/savant-free-referral-tiers.test.ts +0 -122
  705. package/common/src/__tests__/user-state.test.ts +0 -30
  706. package/common/src/actions.ts +0 -215
  707. package/common/src/analytics-core.ts +0 -73
  708. package/common/src/analytics.ts +0 -96
  709. package/common/src/api-keys/constants.ts +0 -26
  710. package/common/src/browser-actions.ts +0 -414
  711. package/common/src/constants/agents.ts +0 -250
  712. package/common/src/constants/analytics-events.ts +0 -318
  713. package/common/src/constants/anthropic.ts +0 -72
  714. package/common/src/constants/byok.ts +0 -2
  715. package/common/src/constants/chatgpt-oauth.ts +0 -85
  716. package/common/src/constants/composio.ts +0 -34
  717. package/common/src/constants/feedback.ts +0 -18
  718. package/common/src/constants/free-agents.ts +0 -347
  719. package/common/src/constants/gemini.ts +0 -6
  720. package/common/src/constants/grant-priorities.ts +0 -13
  721. package/common/src/constants/hosts.ts +0 -6
  722. package/common/src/constants/images.ts +0 -53
  723. package/common/src/constants/index.ts +0 -8
  724. package/common/src/constants/knowledge.ts +0 -46
  725. package/common/src/constants/limits.ts +0 -23
  726. package/common/src/constants/model-config.ts +0 -469
  727. package/common/src/constants/paths.ts +0 -69
  728. package/common/src/constants/savant-code-config.ts +0 -12
  729. package/common/src/constants/savant-free-gemini-thinker.ts +0 -30
  730. package/common/src/constants/savant-free-models.ts +0 -855
  731. package/common/src/constants/savant-free-referral-tiers.ts +0 -169
  732. package/common/src/constants/skills.ts +0 -60
  733. package/common/src/constants/subscription-plans.ts +0 -54
  734. package/common/src/constants/ui.ts +0 -25
  735. package/common/src/env-ci.ts +0 -36
  736. package/common/src/env-process.ts +0 -95
  737. package/common/src/env-schema.ts +0 -42
  738. package/common/src/env.ts +0 -69
  739. package/common/src/mcp/client.ts +0 -308
  740. package/common/src/old-constants.ts +0 -10
  741. package/common/src/project-file-tree.ts +0 -361
  742. package/common/src/reddit-capi.ts +0 -175
  743. package/common/src/schemas/feedback.ts +0 -57
  744. package/common/src/schemas/logs.ts +0 -66
  745. package/common/src/templates/agent-validation.ts +0 -436
  746. package/common/src/templates/initial-agents-dir/LICENSE +0 -202
  747. package/common/src/templates/initial-agents-dir/README.md +0 -314
  748. package/common/src/templates/initial-agents-dir/examples/01-basic-diff-reviewer.ts +0 -17
  749. package/common/src/templates/initial-agents-dir/examples/02-intermediate-git-committer.ts +0 -78
  750. package/common/src/templates/initial-agents-dir/examples/03-advanced-file-explorer.ts +0 -76
  751. package/common/src/templates/initial-agents-dir/my-custom-agent.ts +0 -40
  752. package/common/src/templates/initial-agents-dir/package.json +0 -6
  753. package/common/src/templates/initial-agents-dir/skills/README.md +0 -66
  754. package/common/src/templates/initial-agents-dir/skills/example-skill/SKILL.md +0 -29
  755. package/common/src/templates/initial-agents-dir/types/agent-definition.ts +0 -484
  756. package/common/src/templates/initial-agents-dir/types/tools.ts +0 -452
  757. package/common/src/templates/initial-agents-dir/types/util-types.ts +0 -167
  758. package/common/src/testing/TESTING_PATTERNS.md +0 -353
  759. package/common/src/testing/errors.ts +0 -33
  760. package/common/src/testing/fixtures/agent-runtime.ts +0 -325
  761. package/common/src/testing/impl/agent-runtime.ts +0 -6
  762. package/common/src/testing/index.ts +0 -84
  763. package/common/src/testing/mock-modules.ts +0 -54
  764. package/common/src/testing/mock-types.ts +0 -123
  765. package/common/src/testing/mocks/analytics.ts +0 -262
  766. package/common/src/testing/mocks/child-process.ts +0 -93
  767. package/common/src/testing/mocks/crypto.ts +0 -218
  768. package/common/src/testing/mocks/database.ts +0 -337
  769. package/common/src/testing/mocks/filesystem.ts +0 -166
  770. package/common/src/testing/mocks/index.ts +0 -83
  771. package/common/src/testing/mocks/logger.ts +0 -136
  772. package/common/src/testing/mocks/stream.ts +0 -314
  773. package/common/src/testing/mocks/timers.ts +0 -132
  774. package/common/src/testing/mocks/tree-sitter.ts +0 -127
  775. package/common/src/testing/setup.ts +0 -282
  776. package/common/src/testing-env-ci.ts +0 -15
  777. package/common/src/testing-env-process.ts +0 -78
  778. package/common/src/tools/__tests__/compile-tool-definitions.test.ts +0 -34
  779. package/common/src/tools/__tests__/thought-session.test.ts +0 -256
  780. package/common/src/tools/compile-tool-definitions.ts +0 -194
  781. package/common/src/tools/constants.ts +0 -132
  782. package/common/src/tools/list.ts +0 -193
  783. package/common/src/tools/params/__tests__/coerce-to-array.test.ts +0 -237
  784. package/common/src/tools/params/__tests__/sequential-thinking-coercion.test.ts +0 -98
  785. package/common/src/tools/params/tool/add-message.ts +0 -36
  786. package/common/src/tools/params/tool/add-subgoal.ts +0 -57
  787. package/common/src/tools/params/tool/apply-patch.ts +0 -110
  788. package/common/src/tools/params/tool/ask-user.ts +0 -181
  789. package/common/src/tools/params/tool/browser-logs.ts +0 -85
  790. package/common/src/tools/params/tool/code-search.ts +0 -144
  791. package/common/src/tools/params/tool/composio.ts +0 -131
  792. package/common/src/tools/params/tool/create-plan.ts +0 -80
  793. package/common/src/tools/params/tool/end-turn.ts +0 -54
  794. package/common/src/tools/params/tool/find-files.ts +0 -60
  795. package/common/src/tools/params/tool/glob.ts +0 -74
  796. package/common/src/tools/params/tool/gravity-index.ts +0 -92
  797. package/common/src/tools/params/tool/list-directory.ts +0 -58
  798. package/common/src/tools/params/tool/lookup-agent-info.ts +0 -37
  799. package/common/src/tools/params/tool/propose-str-replace.ts +0 -103
  800. package/common/src/tools/params/tool/propose-write-file.ts +0 -71
  801. package/common/src/tools/params/tool/read-docs.ts +0 -85
  802. package/common/src/tools/params/tool/read-files.ts +0 -61
  803. package/common/src/tools/params/tool/read-subtree.ts +0 -83
  804. package/common/src/tools/params/tool/read-url.ts +0 -81
  805. package/common/src/tools/params/tool/render-ui.ts +0 -203
  806. package/common/src/tools/params/tool/run-file-change-hooks.ts +0 -57
  807. package/common/src/tools/params/tool/run-readonly-command.ts +0 -76
  808. package/common/src/tools/params/tool/run-terminal-command.ts +0 -185
  809. package/common/src/tools/params/tool/sequential-thinking.ts +0 -110
  810. package/common/src/tools/params/tool/set-messages.ts +0 -42
  811. package/common/src/tools/params/tool/set-output.ts +0 -62
  812. package/common/src/tools/params/tool/set-scaffold-complete.ts +0 -51
  813. package/common/src/tools/params/tool/skill.ts +0 -56
  814. package/common/src/tools/params/tool/spawn-agent-inline.ts +0 -57
  815. package/common/src/tools/params/tool/spawn-agents.ts +0 -154
  816. package/common/src/tools/params/tool/str-replace.ts +0 -107
  817. package/common/src/tools/params/tool/suggest-followups.ts +0 -94
  818. package/common/src/tools/params/tool/task-completed.ts +0 -58
  819. package/common/src/tools/params/tool/think-deeply.ts +0 -53
  820. package/common/src/tools/params/tool/transition-phase.ts +0 -57
  821. package/common/src/tools/params/tool/update-subgoal.ts +0 -89
  822. package/common/src/tools/params/tool/web-search.ts +0 -73
  823. package/common/src/tools/params/tool/write-file.ts +0 -71
  824. package/common/src/tools/params/tool/write-todos.ts +0 -67
  825. package/common/src/tools/params/utils.ts +0 -152
  826. package/common/src/tools/safety-registry.ts +0 -274
  827. package/common/src/tools/safety.ts +0 -42
  828. package/common/src/tools/sequential-thinking.ts +0 -340
  829. package/common/src/tools/utils.ts +0 -25
  830. package/common/src/types/__tests__/dynamic-agent-template.test.ts +0 -20
  831. package/common/src/types/agent-template.ts +0 -223
  832. package/common/src/types/api/agents/publish.ts +0 -63
  833. package/common/src/types/contracts/agent-runtime.ts +0 -84
  834. package/common/src/types/contracts/analytics.ts +0 -12
  835. package/common/src/types/contracts/bigquery.ts +0 -55
  836. package/common/src/types/contracts/billing.ts +0 -46
  837. package/common/src/types/contracts/client.ts +0 -52
  838. package/common/src/types/contracts/database.ts +0 -104
  839. package/common/src/types/contracts/env.ts +0 -203
  840. package/common/src/types/contracts/llm.ts +0 -183
  841. package/common/src/types/contracts/logger.ts +0 -29
  842. package/common/src/types/contracts/logs.ts +0 -34
  843. package/common/src/types/contracts/trace.ts +0 -21
  844. package/common/src/types/dynamic-agent-template.ts +0 -290
  845. package/common/src/types/filesystem.ts +0 -10
  846. package/common/src/types/function-params.ts +0 -35
  847. package/common/src/types/grant.ts +0 -20
  848. package/common/src/types/gravity-index.ts +0 -170
  849. package/common/src/types/json.ts +0 -26
  850. package/common/src/types/mcp.ts +0 -26
  851. package/common/src/types/messages/content-part.ts +0 -59
  852. package/common/src/types/messages/data-content.ts +0 -14
  853. package/common/src/types/messages/provider-metadata.ts +0 -10
  854. package/common/src/types/messages/savant-code-message.ts +0 -55
  855. package/common/src/types/organization.ts +0 -118
  856. package/common/src/types/print-mode.ts +0 -167
  857. package/common/src/types/publisher.ts +0 -67
  858. package/common/src/types/savant-free-session.ts +0 -295
  859. package/common/src/types/savant-free-streak.ts +0 -6
  860. package/common/src/types/session-state.ts +0 -237
  861. package/common/src/types/skill.ts +0 -56
  862. package/common/src/types/source.ts +0 -11
  863. package/common/src/types/spawn.ts +0 -13
  864. package/common/src/types/subscription.ts +0 -68
  865. package/common/src/types/usage.ts +0 -16
  866. package/common/src/types/util.ts +0 -3
  867. package/common/src/util/__tests__/analytics-dispatcher.test.ts +0 -145
  868. package/common/src/util/__tests__/analytics-log.test.ts +0 -110
  869. package/common/src/util/__tests__/analytics-sampling.test.ts +0 -131
  870. package/common/src/util/__tests__/axiom-only-log.test.ts +0 -64
  871. package/common/src/util/__tests__/engagement-tracker.test.ts +0 -115
  872. package/common/src/util/__tests__/error-abort.test.ts +0 -822
  873. package/common/src/util/__tests__/error-api-details.test.ts +0 -190
  874. package/common/src/util/__tests__/format-code-search.test.ts +0 -60
  875. package/common/src/util/__tests__/log-mirror.test.ts +0 -31
  876. package/common/src/util/__tests__/messages.test.ts +0 -1118
  877. package/common/src/util/__tests__/partial-json-delta.test.ts +0 -505
  878. package/common/src/util/__tests__/paths.test.ts +0 -289
  879. package/common/src/util/__tests__/promise.test.ts +0 -334
  880. package/common/src/util/__tests__/protocol-config.test.ts +0 -119
  881. package/common/src/util/__tests__/rate-limit.test.ts +0 -28
  882. package/common/src/util/__tests__/reddit-savant-free-retention.test.ts +0 -120
  883. package/common/src/util/__tests__/savant-free-streak.test.ts +0 -142
  884. package/common/src/util/__tests__/saxy.test.ts +0 -1008
  885. package/common/src/util/__tests__/string.test.ts +0 -238
  886. package/common/src/util/__tests__/zoned-time.test.ts +0 -88
  887. package/common/src/util/agent-file-utils.ts +0 -110
  888. package/common/src/util/agent-id-parsing.ts +0 -147
  889. package/common/src/util/agent-name-normalization.ts +0 -39
  890. package/common/src/util/analytics-dispatcher.ts +0 -81
  891. package/common/src/util/analytics-log.ts +0 -84
  892. package/common/src/util/analytics-sampling.ts +0 -225
  893. package/common/src/util/array.ts +0 -63
  894. package/common/src/util/axiom-only-log.ts +0 -79
  895. package/common/src/util/cache-debug.ts +0 -191
  896. package/common/src/util/credentials.ts +0 -12
  897. package/common/src/util/currency.ts +0 -25
  898. package/common/src/util/dates.ts +0 -81
  899. package/common/src/util/engagement-tracker.ts +0 -133
  900. package/common/src/util/error.ts +0 -580
  901. package/common/src/util/file.ts +0 -363
  902. package/common/src/util/format-code-search.ts +0 -115
  903. package/common/src/util/lazy-response-ads.ts +0 -93
  904. package/common/src/util/log-data.ts +0 -57
  905. package/common/src/util/log-mirror.ts +0 -34
  906. package/common/src/util/lru-cache.ts +0 -67
  907. package/common/src/util/messages.ts +0 -600
  908. package/common/src/util/model-utils.ts +0 -25
  909. package/common/src/util/object.ts +0 -137
  910. package/common/src/util/param-helpers.ts +0 -49
  911. package/common/src/util/partial-json-delta.ts +0 -100
  912. package/common/src/util/paths.ts +0 -194
  913. package/common/src/util/promise.ts +0 -87
  914. package/common/src/util/protocol-config.ts +0 -141
  915. package/common/src/util/random.ts +0 -15
  916. package/common/src/util/rate-limit.ts +0 -56
  917. package/common/src/util/reddit-capi-events.ts +0 -40
  918. package/common/src/util/reddit-savant-free-retention.ts +0 -69
  919. package/common/src/util/response-ad-positions.ts +0 -54
  920. package/common/src/util/savant-free-privacy.ts +0 -78
  921. package/common/src/util/savant-free-streak.ts +0 -153
  922. package/common/src/util/saxy.ts +0 -739
  923. package/common/src/util/skills.ts +0 -32
  924. package/common/src/util/stop-sequence.ts +0 -60
  925. package/common/src/util/string.ts +0 -419
  926. package/common/src/util/system-info.ts +0 -51
  927. package/common/src/util/type-narrowing.ts +0 -125
  928. package/common/src/util/xml.ts +0 -17
  929. package/common/src/util/zod-schema.ts +0 -80
  930. package/common/src/util/zoned-time.ts +0 -136
  931. package/common/src/utils/ask-user-bridge.ts +0 -47
  932. package/common/tsconfig.json +0 -8
  933. package/database.db +0 -0
  934. package/dev/LEARNINGS.md +0 -309
  935. package/dev/fids/.gitkeep +0 -0
  936. package/dev/fids/archive/.gitkeep +0 -0
  937. package/dev/fids/archive/FID-2026-0802-008-sdk-package-audit-client-run-run-state.md +0 -238
  938. package/dev/fids/archive/FID-2026-0803-001-echo-enforcement-layer-drift.md +0 -404
  939. package/dev/fids/archive/FID-2026-0803-002-llm-providers-database-audit.md +0 -348
  940. package/dev/fids/archive/FID-2026-0803-003-sdk-impl-common-util-audit.md +0 -277
  941. package/dev/fids/archive/FID-2026-0803-004-checkpoint-rewind.md +0 -181
  942. package/dev/fids/archive/FID-2026-0803-005-quality-scan-hygiene-fixes.md +0 -265
  943. package/dev/fids/archive/FID-2026-0803-006-code-map-audit-hygiene.md +0 -243
  944. package/dev/fids/archive/FID-2026-0803-007-evals-benchmark-audit-hygiene.md +0 -296
  945. package/dev/fids/archive/FID-2026-0803-009-echo-enforcement-doc-drift.md +0 -112
  946. package/dev/fids/archive/FID-2026-0803-010-database-llm-providers-low-fixes.md +0 -255
  947. package/dev/fids/archive/FID-2026-0803-011-build-artifact-hygiene.md +0 -169
  948. package/dev/fids/archive/FID-2026-0803-012-release-readiness-audit.md +0 -162
  949. package/dev/fids/archive/FID-2026-0803-013-agent-roster-over-reporting.md +0 -146
  950. package/dev/fids/archive/FID-2026-0803-014-freebuff-to-savant-rebrand-sweep.md +0 -185
  951. package/dev/nova/reports/2026-08-02-top-25-ai-inference-providers-competitive-intel.md +0 -213
  952. package/dev/nova/specs/echo-v0.1.2-freebuff.md +0 -391
  953. package/dev/nova/specs/goal-loop-feature-spec.md +0 -245
  954. package/dev/nova/specs/launch-strategy-research-prompt.md +0 -88
  955. package/dev/releases/README.md +0 -50
  956. package/dev/scratchpad/.gitkeep +0 -0
  957. package/dev/session-summaries/.gitkeep +0 -0
  958. package/dev/session-summaries/2026-07-16-1255.md +0 -128
  959. package/dev/session-summaries/2026-07-17-1000.md +0 -64
  960. package/dev/session-summaries/2026-07-19-eslint-zero-tolerance-cleanup.md +0 -145
  961. package/dev/session-summaries/2026-07-19-fid-026-debugging-and-rename.md +0 -79
  962. package/dev/session-summaries/2026-07-19-fid-026-phase-b-rebrand.md +0 -76
  963. package/dev/session-summaries/2026-07-19-fid-027-clean-break.md +0 -47
  964. package/dev/session-summaries/2026-07-19-pre-push-house-cleaning.md +0 -100
  965. package/dev/session-summaries/2026-07-19-v0.0.2-release-session.md +0 -229
  966. package/dev/session-summaries/2026-07-20-1805-fid-loop-closure.md +0 -95
  967. package/dev/session-summaries/2026-07-22-1800.md +0 -52
  968. package/dev/session-summaries/2026-07-23-fsm-optimization.md +0 -88
  969. package/dev/session-summaries/2026-07-25-0000.md +0 -80
  970. package/dev/session-summaries/2026-07-25-1200-context-compaction.md +0 -154
  971. package/dev/session-summaries/2026-07-25-1600-layer4-reactive-compact.md +0 -96
  972. package/dev/session-summaries/2026-07-25-1700-dev-folder-audit.md +0 -161
  973. package/dev/session-summaries/2026-07-25-2000-benchmark-v2-filters.md +0 -147
  974. package/dev/session-summaries/2026-07-25-2000.md +0 -77
  975. package/dev/session-summaries/2026-07-27-0000.md +0 -63
  976. package/dev/session-summaries/2026-07-28-history-capture-handoff.md +0 -206
  977. package/dev/session-summaries/2026-07-31-freebuff-echo-compliance-remediation.md +0 -156
  978. package/dev/session-summaries/2026-07-31-pre-launch-optimization-execution.md +0 -46
  979. package/dev/session-summaries/2026-0721-1800.md +0 -44
  980. package/dev/session-summaries/2026-08-01-sidebar-folded-startup.md +0 -159
  981. package/dev/session-summaries/2026-08-02-0.0.15-release-closeout.md +0 -32
  982. package/dev/session-summaries/2026-08-02-repository-hygiene.md +0 -51
  983. package/dev/session-summaries/2026-08-03-agent-roster-fix-and-ready-check-closeout.md +0 -73
  984. package/dev/session-summaries/2026-08-03-build-artifact-hygiene-closeout.md +0 -40
  985. package/dev/session-summaries/2026-08-03-code-map-audit-closeout.md +0 -44
  986. package/dev/session-summaries/2026-08-03-database-llm-providers-low-fixes-closeout.md +0 -47
  987. package/dev/session-summaries/2026-08-03-echo-enforcement-doc-drift-closeout.md +0 -43
  988. package/dev/session-summaries/2026-08-03-evals-benchmark-audit-closeout.md +0 -50
  989. package/dev/session-summaries/2026-08-03-quality-scan-hygiene-fixes-closeout.md +0 -57
  990. package/dev/session-summaries/2026-08-03-quality-session-checkpoint-rewind-closeout.md +0 -56
  991. package/dev/session-summaries/2026-08-03-release-readiness-audit-closeout.md +0 -60
  992. package/dev/test-prompts/archive/0.0.2-final-pass.md +0 -209
  993. package/dev/test-prompts/archive/agent-capabilities-full-test.md +0 -361
  994. package/dev/test-prompts/archive/agent-capabilities-test.md +0 -471
  995. package/dev/test-prompts/archive/comprehensive-az-system-test-v1.md +0 -441
  996. package/dev/test-prompts/archive/comprehensive-az-system-test-v2-report.md +0 -377
  997. package/dev/test-prompts/archive/comprehensive-az-system-test-v2.md +0 -544
  998. package/dev/test-prompts/archive/comprehensive-az-system-test.md +0 -396
  999. package/dev/test-prompts/archive/comprehensive-az-test-final.md +0 -900
  1000. package/dev/test-prompts/archive/comprehensive-az-test-v11.md +0 -141
  1001. package/dev/test-prompts/archive/comprehensive-az-test-v12.md +0 -29
  1002. package/dev/test-prompts/archive/comprehensive-az-test-v6.md +0 -631
  1003. package/dev/test-prompts/archive/comprehensive-az-test-v7.md +0 -625
  1004. package/dev/test-prompts/archive/fid-007-ability-confirmation.md +0 -248
  1005. package/dev/test-prompts/archive/fid-2026-0801-006-thinker-tool-call-boundary.md +0 -86
  1006. package/dev/test-prompts/archive/fid-2026-0801-007-child-tool-set-fallback-cli.md +0 -101
  1007. package/dev/test-prompts/archive/fid-2026-0801-008-provider-tool-call-accumulation-cli.md +0 -111
  1008. package/dev/test-prompts/archive/fid-2026-0801-012-thinker-state-output-cli.md +0 -134
  1009. package/dev/test-prompts/archive/gemini-deep-research-sidebar-highlight.md +0 -598
  1010. package/dev/test-prompts/archive/goal-loop-cli-test.md +0 -142
  1011. package/dev/test-prompts/archive/rebrand-qa.md +0 -258
  1012. package/dev/test-prompts/archive/release-az-test-fid-085.md +0 -306
  1013. package/dev/test-prompts/archive/release-az-test-fid-087.md +0 -219
  1014. package/dev/test-prompts/archive/release-az-test-fid-2026-0726-001.md +0 -270
  1015. package/dev/test-prompts/archive/release-az-test-fid-2026-0728-008.md +0 -213
  1016. package/dev/test-prompts/archive/release-az-test-fid-2026-0728-launch-tracks.md +0 -253
  1017. package/dev/test-prompts/archive/release-az-test-fid-2026-0731-pre-launch.md +0 -102
  1018. package/docs/AI Coding Agents Market Research.md +0 -516
  1019. package/docs/Agent Harness Feature Pairing Research.md +0 -166
  1020. package/docs/CLI Agent Inference Backend Research.md +0 -446
  1021. package/docs/Codebuff Rebranding And Migration Plan.md +0 -418
  1022. package/docs/ECHO-EVOLUTION-ARCH.md +0 -77
  1023. package/docs/Harness Engineering for Coding Agents Research.md +0 -196
  1024. package/docs/Launch Plan Review and Optimization.md +0 -178
  1025. package/docs/OpenTUI Sidebar Bug Fix.md +0 -245
  1026. package/docs/SAVANT-VERSIONING.md +0 -31
  1027. package/docs/Savant Code Launch Strategy.md +0 -270
  1028. package/docs/Savant-Code Business And Backend Research.md +0 -222
  1029. package/docs/agents-and-tools.md +0 -217
  1030. package/docs/cloudflare-llms-full.md +0 -9623
  1031. package/docs/design/OpenTUI Terminal Visualization Guide.md +0 -471
  1032. package/docs/design/database-architecture.md +0 -217
  1033. package/docs/design/deep-research-report.md +0 -295
  1034. package/docs/design/thinker-sequentialthinking-regression-diagnostic.md +0 -366
  1035. package/docs/discord-server-design.md +0 -167
  1036. package/docs/gravity-integration-starter.md +0 -202
  1037. package/docs/launch/hn-first-comment.md +0 -44
  1038. package/docs/launch/hn-post.md +0 -35
  1039. package/docs/launch/incident-response.md +0 -88
  1040. package/docs/launch/landing/index.html +0 -233
  1041. package/docs/launch/mastodon-thread.md +0 -52
  1042. package/docs/launch/newsletter-pitch.md +0 -49
  1043. package/docs/launch/twitter-thread.md +0 -62
  1044. package/docs/privacy.md +0 -186
  1045. package/docs/reports/Savant-Code Benchmark Specification.md +0 -206
  1046. package/docs/reports/Thinker Agent Architecture Research.md +0 -284
  1047. package/docs/reports/adoptable-features-2026-07-25.md +0 -604
  1048. package/docs/reports/adoptable-features-master.md +0 -480
  1049. package/docs/reports/codebuff-discord-feedback.md +0 -43
  1050. package/docs/reports/feature-parity-report.md +0 -810
  1051. package/docs/reports/repos/AionUi.md +0 -75
  1052. package/docs/reports/repos/OpenHands.md +0 -76
  1053. package/docs/reports/repos/SWE-agent.md +0 -82
  1054. package/docs/reports/repos/agno.md +0 -89
  1055. package/docs/reports/repos/aider.md +0 -74
  1056. package/docs/reports/repos/cline.md +0 -83
  1057. package/docs/reports/repos/codex.md +0 -83
  1058. package/docs/reports/repos/gemini-cli.md +0 -92
  1059. package/docs/reports/repos/goose.md +0 -65
  1060. package/docs/reports/repos/gpt-pilot.md +0 -52
  1061. package/docs/reports/repos/hermes-agent.md +0 -101
  1062. package/docs/reports/repos/kilocode.md +0 -79
  1063. package/docs/reports/repos/openclaude.md +0 -99
  1064. package/docs/reports/repos/openclaw.md +0 -100
  1065. package/docs/reports/repos/opencode-dev.md +0 -78
  1066. package/docs/reports/repos/zero.md +0 -123
  1067. package/docs/reports/savant-code-benchmark-v2-2026-08-03.md +0 -76
  1068. package/docs/savant-code-modes.md +0 -338
  1069. package/docs/testing.md +0 -51
  1070. package/docs/visual-mockup-neon-slate.txt +0 -41
  1071. package/eslint.config.js +0 -211
  1072. package/evals/README.md +0 -45
  1073. package/evals/benchmark/README.md +0 -449
  1074. package/evals/benchmark/agent-runner.ts +0 -217
  1075. package/evals/benchmark/analyze-task-scores.ts +0 -496
  1076. package/evals/benchmark/eval-codebuff-hard.json +0 -3343
  1077. package/evals/benchmark/eval-codebuff.json +0 -3193
  1078. package/evals/benchmark/eval-codebuff2.json +0 -2494
  1079. package/evals/benchmark/eval-manifold-hard.json +0 -2525
  1080. package/evals/benchmark/eval-manifold.json +0 -1675
  1081. package/evals/benchmark/eval-manifold2.json +0 -1945
  1082. package/evals/benchmark/eval-plane-hard.json +0 -4372
  1083. package/evals/benchmark/eval-plane.json +0 -2028
  1084. package/evals/benchmark/eval-plane2.json +0 -3517
  1085. package/evals/benchmark/eval-saleor-hard.json +0 -6081
  1086. package/evals/benchmark/eval-saleor.json +0 -1829
  1087. package/evals/benchmark/eval-saleor2.json +0 -3273
  1088. package/evals/benchmark/eval-task-generator.ts +0 -158
  1089. package/evals/benchmark/filter-supplemental-files.ts +0 -225
  1090. package/evals/benchmark/format-output.ts +0 -215
  1091. package/evals/benchmark/gen-evals.ts +0 -294
  1092. package/evals/benchmark/gen-repo-eval.ts +0 -71
  1093. package/evals/benchmark/judge.ts +0 -308
  1094. package/evals/benchmark/lessons-extractor.ts +0 -247
  1095. package/evals/benchmark/main-hard-tasks.ts +0 -49
  1096. package/evals/benchmark/main-single-eval.ts +0 -23
  1097. package/evals/benchmark/main.ts +0 -29
  1098. package/evals/benchmark/meta-analyzer.ts +0 -329
  1099. package/evals/benchmark/pick-commits.ts +0 -627
  1100. package/evals/benchmark/run-benchmark.ts +0 -657
  1101. package/evals/benchmark/runners/claude.ts +0 -176
  1102. package/evals/benchmark/runners/codex.ts +0 -143
  1103. package/evals/benchmark/runners/index.ts +0 -4
  1104. package/evals/benchmark/runners/opencode.ts +0 -253
  1105. package/evals/benchmark/runners/runner.ts +0 -13
  1106. package/evals/benchmark/runners/savant.ts +0 -148
  1107. package/evals/benchmark/setup-test-repo.ts +0 -314
  1108. package/evals/benchmark/trace-analyzer.ts +0 -257
  1109. package/evals/benchmark/trace-utils.ts +0 -80
  1110. package/evals/benchmark/types.ts +0 -83
  1111. package/evals/bunfig.toml +0 -4
  1112. package/evals/logger.ts +0 -87
  1113. package/evals/package.json +0 -31
  1114. package/evals/subagents/test-repo-utils.ts +0 -131
  1115. package/evals/tsconfig.json +0 -13
  1116. package/evals/v2/README.md +0 -149
  1117. package/evals/v2/reports/report.json +0 -261
  1118. package/evals/v2/reports/report.md +0 -15
  1119. package/evals/v2/schema/task.schema.json +0 -172
  1120. package/evals/v2/src/cli.ts +0 -216
  1121. package/evals/v2/src/golden.ts +0 -73
  1122. package/evals/v2/src/harness.ts +0 -293
  1123. package/evals/v2/src/metrics.ts +0 -326
  1124. package/evals/v2/src/registry.ts +0 -179
  1125. package/evals/v2/src/reports.ts +0 -126
  1126. package/evals/v2/src/runner.ts +0 -143
  1127. package/evals/v2/src/runners/savant.ts +0 -105
  1128. package/evals/v2/src/sandbox.ts +0 -42
  1129. package/evals/v2/src/sandboxes/docker.ts +0 -49
  1130. package/evals/v2/src/sandboxes/tempdir.ts +0 -120
  1131. package/evals/v2/src/schema.ts +0 -83
  1132. package/evals/v2/src/trace.ts +0 -186
  1133. package/evals/v2/src/verify.ts +0 -199
  1134. package/evals/v2/tasks/error_recovery/env-fault/calculator.js +0 -11
  1135. package/evals/v2/tasks/error_recovery/env-fault/calculator.test.js +0 -15
  1136. package/evals/v2/tasks/error_recovery/env-fault/golden.patch +0 -15
  1137. package/evals/v2/tasks/error_recovery/env-fault/task.yaml +0 -20
  1138. package/evals/v2/tasks/multi_agent_orchestration/options-contract/app.js +0 -5
  1139. package/evals/v2/tasks/multi_agent_orchestration/options-contract/app.test.js +0 -7
  1140. package/evals/v2/tasks/multi_agent_orchestration/options-contract/golden.patch +0 -19
  1141. package/evals/v2/tasks/multi_agent_orchestration/options-contract/greet.js +0 -3
  1142. package/evals/v2/tasks/multi_agent_orchestration/options-contract/orchestration.test.js +0 -30
  1143. package/evals/v2/tasks/multi_agent_orchestration/options-contract/task.yaml +0 -29
  1144. package/evals/v2/tasks/pure_coding/add-fix/add.js +0 -3
  1145. package/evals/v2/tasks/pure_coding/add-fix/add.test.js +0 -11
  1146. package/evals/v2/tasks/pure_coding/add-fix/golden.patch +0 -7
  1147. package/evals/v2/tasks/pure_coding/add-fix/task.yaml +0 -20
  1148. package/evals/v2/tasks/pure_coding/rename-greet/app.js +0 -5
  1149. package/evals/v2/tasks/pure_coding/rename-greet/app.test.js +0 -32
  1150. package/evals/v2/tasks/pure_coding/rename-greet/golden.patch +0 -19
  1151. package/evals/v2/tasks/pure_coding/rename-greet/greet.js +0 -5
  1152. package/evals/v2/tasks/pure_coding/rename-greet/task.yaml +0 -21
  1153. package/evals/v2/tests/golden.test.ts +0 -104
  1154. package/evals/v2/tests/harness.test.ts +0 -204
  1155. package/evals/v2/tests/metrics.test.ts +0 -353
  1156. package/evals/v2/tests/registry.test.ts +0 -210
  1157. package/evals/v2/tests/reports.test.ts +0 -218
  1158. package/evals/v2/tests/savant-runner.test.ts +0 -218
  1159. package/evals/v2/tests/schema.test.ts +0 -127
  1160. package/evals/v2/tests/tempdir-sandbox.test.ts +0 -49
  1161. package/evals/v2/tests/trace.test.ts +0 -76
  1162. package/evals/v2/tests/verify.test.ts +0 -224
  1163. package/license +0 -202
  1164. package/packages/agent-runtime/README.md +0 -46
  1165. package/packages/agent-runtime/agent_exit +0 -1
  1166. package/packages/agent-runtime/bunfig.toml +0 -2
  1167. package/packages/agent-runtime/package.json +0 -34
  1168. package/packages/agent-runtime/src/__tests__/apply-patch-tool.test.ts +0 -202
  1169. package/packages/agent-runtime/src/__tests__/cost-aggregation.test.ts +0 -397
  1170. package/packages/agent-runtime/src/__tests__/generate-diffs-prompt.test.ts +0 -107
  1171. package/packages/agent-runtime/src/__tests__/get-file-reading-updates.test.ts +0 -59
  1172. package/packages/agent-runtime/src/__tests__/gravity-index-tool.test.ts +0 -501
  1173. package/packages/agent-runtime/src/__tests__/loop-agent-steps.test.ts +0 -1512
  1174. package/packages/agent-runtime/src/__tests__/main-prompt.test.ts +0 -452
  1175. package/packages/agent-runtime/src/__tests__/n-parameter.test.ts +0 -984
  1176. package/packages/agent-runtime/src/__tests__/process-file-block.test.ts +0 -196
  1177. package/packages/agent-runtime/src/__tests__/process-str-replace.test.ts +0 -512
  1178. package/packages/agent-runtime/src/__tests__/programmatic-tool-authorization.test.ts +0 -219
  1179. package/packages/agent-runtime/src/__tests__/prompt-caching-subagents.test.ts +0 -749
  1180. package/packages/agent-runtime/src/__tests__/prompts-schema-handling.test.ts +0 -454
  1181. package/packages/agent-runtime/src/__tests__/propose-tools.test.ts +0 -824
  1182. package/packages/agent-runtime/src/__tests__/read-docs-tool.test.ts +0 -394
  1183. package/packages/agent-runtime/src/__tests__/run-agent-step-prefill.test.ts +0 -161
  1184. package/packages/agent-runtime/src/__tests__/run-agent-step-tools.test.ts +0 -612
  1185. package/packages/agent-runtime/src/__tests__/run-programmatic-step.test.ts +0 -1743
  1186. package/packages/agent-runtime/src/__tests__/sandbox-generator.test.ts +0 -154
  1187. package/packages/agent-runtime/src/__tests__/spawn-agents-image-content.test.ts +0 -354
  1188. package/packages/agent-runtime/src/__tests__/spawn-agents-message-history.test.ts +0 -280
  1189. package/packages/agent-runtime/src/__tests__/spawn-agents-permissions.test.ts +0 -664
  1190. package/packages/agent-runtime/src/__tests__/stream-parser-abort.test.ts +0 -250
  1191. package/packages/agent-runtime/src/__tests__/stream-parser-reasoning.test.ts +0 -194
  1192. package/packages/agent-runtime/src/__tests__/subagent-streaming.test.ts +0 -230
  1193. package/packages/agent-runtime/src/__tests__/test-utils.ts +0 -96
  1194. package/packages/agent-runtime/src/__tests__/thinker-convergence-gate.test.ts +0 -242
  1195. package/packages/agent-runtime/src/__tests__/to-token-count-input-schema.test.ts +0 -81
  1196. package/packages/agent-runtime/src/__tests__/tool-executor-sandbox.test.ts +0 -167
  1197. package/packages/agent-runtime/src/__tests__/tool-stream-parser.test.ts +0 -682
  1198. package/packages/agent-runtime/src/__tests__/tool-validation-error.test.ts +0 -1380
  1199. package/packages/agent-runtime/src/__tests__/web-search-tool.test.ts +0 -402
  1200. package/packages/agent-runtime/src/__tests__/xml-tool-result-ordering.test.ts +0 -264
  1201. package/packages/agent-runtime/src/constants.ts +0 -12
  1202. package/packages/agent-runtime/src/context-compactor.ts +0 -425
  1203. package/packages/agent-runtime/src/find-files/__tests__/request-files-prompt.test.ts +0 -190
  1204. package/packages/agent-runtime/src/find-files/custom-file-picker-config.ts +0 -61
  1205. package/packages/agent-runtime/src/find-files/request-files-prompt.ts +0 -462
  1206. package/packages/agent-runtime/src/generate-diffs-prompt.ts +0 -38
  1207. package/packages/agent-runtime/src/get-file-reading-updates.ts +0 -27
  1208. package/packages/agent-runtime/src/llm-api/__tests__/gemini-with-fallbacks.test.ts +0 -267
  1209. package/packages/agent-runtime/src/llm-api/__tests__/serper-api.test.ts +0 -297
  1210. package/packages/agent-runtime/src/llm-api/claude.ts +0 -7
  1211. package/packages/agent-runtime/src/llm-api/context7-api.ts +0 -290
  1212. package/packages/agent-runtime/src/llm-api/gemini-with-fallbacks.ts +0 -104
  1213. package/packages/agent-runtime/src/llm-api/savant-code-web-api.ts +0 -370
  1214. package/packages/agent-runtime/src/llm-api/serper-api.ts +0 -193
  1215. package/packages/agent-runtime/src/main-prompt.ts +0 -251
  1216. package/packages/agent-runtime/src/mcp-constants.ts +0 -12
  1217. package/packages/agent-runtime/src/mcp.ts +0 -83
  1218. package/packages/agent-runtime/src/process-file-block.ts +0 -118
  1219. package/packages/agent-runtime/src/process-str-replace.ts +0 -213
  1220. package/packages/agent-runtime/src/prompt-agent-stream.ts +0 -119
  1221. package/packages/agent-runtime/src/run-agent-step.ts +0 -1632
  1222. package/packages/agent-runtime/src/run-programmatic-step.ts +0 -633
  1223. package/packages/agent-runtime/src/system-prompt/prompts.ts +0 -215
  1224. package/packages/agent-runtime/src/system-prompt/search-system-prompt.ts +0 -89
  1225. package/packages/agent-runtime/src/system-prompt/truncate-file-tree.ts +0 -414
  1226. package/packages/agent-runtime/src/templates/README.md +0 -160
  1227. package/packages/agent-runtime/src/templates/__tests__/agent-registry.test.ts +0 -489
  1228. package/packages/agent-runtime/src/templates/__tests__/strings.test.ts +0 -465
  1229. package/packages/agent-runtime/src/templates/agent-registry.ts +0 -122
  1230. package/packages/agent-runtime/src/templates/prompts.ts +0 -189
  1231. package/packages/agent-runtime/src/templates/strings.ts +0 -292
  1232. package/packages/agent-runtime/src/templates/types.ts +0 -61
  1233. package/packages/agent-runtime/src/tool-stream-parser.ts +0 -260
  1234. package/packages/agent-runtime/src/tools/filter-tool-set.ts +0 -18
  1235. package/packages/agent-runtime/src/tools/handlers/__tests__/glob.test.ts +0 -331
  1236. package/packages/agent-runtime/src/tools/handlers/__tests__/read-subtree.test.ts +0 -346
  1237. package/packages/agent-runtime/src/tools/handlers/__tests__/run-readonly-command.test.ts +0 -284
  1238. package/packages/agent-runtime/src/tools/handlers/handler-function-type.ts +0 -77
  1239. package/packages/agent-runtime/src/tools/handlers/list.ts +0 -105
  1240. package/packages/agent-runtime/src/tools/handlers/tool/__tests__/checkpoint-store.test.ts +0 -394
  1241. package/packages/agent-runtime/src/tools/handlers/tool/__tests__/skill.test.ts +0 -98
  1242. package/packages/agent-runtime/src/tools/handlers/tool/__tests__/write-file.test.ts +0 -24
  1243. package/packages/agent-runtime/src/tools/handlers/tool/add-message.ts +0 -37
  1244. package/packages/agent-runtime/src/tools/handlers/tool/add-subgoal.ts +0 -30
  1245. package/packages/agent-runtime/src/tools/handlers/tool/apply-patch.ts +0 -120
  1246. package/packages/agent-runtime/src/tools/handlers/tool/ask-user.ts +0 -25
  1247. package/packages/agent-runtime/src/tools/handlers/tool/browser-logs.ts +0 -21
  1248. package/packages/agent-runtime/src/tools/handlers/tool/checkpoint-store.ts +0 -378
  1249. package/packages/agent-runtime/src/tools/handlers/tool/code-search.ts +0 -21
  1250. package/packages/agent-runtime/src/tools/handlers/tool/composio.ts +0 -52
  1251. package/packages/agent-runtime/src/tools/handlers/tool/create-plan.ts +0 -63
  1252. package/packages/agent-runtime/src/tools/handlers/tool/end-turn.ts +0 -15
  1253. package/packages/agent-runtime/src/tools/handlers/tool/find-files.ts +0 -161
  1254. package/packages/agent-runtime/src/tools/handlers/tool/glob.ts +0 -22
  1255. package/packages/agent-runtime/src/tools/handlers/tool/gravity-index.ts +0 -230
  1256. package/packages/agent-runtime/src/tools/handlers/tool/list-directory.ts +0 -22
  1257. package/packages/agent-runtime/src/tools/handlers/tool/lookup-agent-info.ts +0 -105
  1258. package/packages/agent-runtime/src/tools/handlers/tool/propose-str-replace.ts +0 -111
  1259. package/packages/agent-runtime/src/tools/handlers/tool/propose-write-file.ts +0 -89
  1260. package/packages/agent-runtime/src/tools/handlers/tool/proposed-content-store.ts +0 -64
  1261. package/packages/agent-runtime/src/tools/handlers/tool/read-docs.ts +0 -160
  1262. package/packages/agent-runtime/src/tools/handlers/tool/read-files.ts +0 -43
  1263. package/packages/agent-runtime/src/tools/handlers/tool/read-subtree.ts +0 -198
  1264. package/packages/agent-runtime/src/tools/handlers/tool/read-url.ts +0 -21
  1265. package/packages/agent-runtime/src/tools/handlers/tool/render-ui.ts +0 -15
  1266. package/packages/agent-runtime/src/tools/handlers/tool/run-file-change-hooks.ts +0 -20
  1267. package/packages/agent-runtime/src/tools/handlers/tool/run-readonly-command.ts +0 -215
  1268. package/packages/agent-runtime/src/tools/handlers/tool/run-terminal-command.ts +0 -33
  1269. package/packages/agent-runtime/src/tools/handlers/tool/sequential-thinking.ts +0 -53
  1270. package/packages/agent-runtime/src/tools/handlers/tool/set-messages.ts +0 -19
  1271. package/packages/agent-runtime/src/tools/handlers/tool/set-output.ts +0 -104
  1272. package/packages/agent-runtime/src/tools/handlers/tool/set-scaffold-complete.ts +0 -32
  1273. package/packages/agent-runtime/src/tools/handlers/tool/skill.ts +0 -146
  1274. package/packages/agent-runtime/src/tools/handlers/tool/spawn-agent-inline.ts +0 -149
  1275. package/packages/agent-runtime/src/tools/handlers/tool/spawn-agent-utils.ts +0 -436
  1276. package/packages/agent-runtime/src/tools/handlers/tool/spawn-agents.ts +0 -286
  1277. package/packages/agent-runtime/src/tools/handlers/tool/str-replace.ts +0 -135
  1278. package/packages/agent-runtime/src/tools/handlers/tool/suggest-followups.ts +0 -20
  1279. package/packages/agent-runtime/src/tools/handlers/tool/task-completed.ts +0 -15
  1280. package/packages/agent-runtime/src/tools/handlers/tool/think-deeply.ts +0 -25
  1281. package/packages/agent-runtime/src/tools/handlers/tool/transition-phase.ts +0 -160
  1282. package/packages/agent-runtime/src/tools/handlers/tool/update-subgoal.ts +0 -48
  1283. package/packages/agent-runtime/src/tools/handlers/tool/web-search.ts +0 -151
  1284. package/packages/agent-runtime/src/tools/handlers/tool/write-file.ts +0 -281
  1285. package/packages/agent-runtime/src/tools/handlers/tool/write-todos.ts +0 -19
  1286. package/packages/agent-runtime/src/tools/prompts.ts +0 -233
  1287. package/packages/agent-runtime/src/tools/sandbox/__tests__/engine.test.ts +0 -169
  1288. package/packages/agent-runtime/src/tools/sandbox/__tests__/shell-denylist.test.ts +0 -104
  1289. package/packages/agent-runtime/src/tools/sandbox/engine.ts +0 -109
  1290. package/packages/agent-runtime/src/tools/sandbox/index.ts +0 -14
  1291. package/packages/agent-runtime/src/tools/sandbox/shell-denylist.ts +0 -119
  1292. package/packages/agent-runtime/src/tools/stream-parser.ts +0 -407
  1293. package/packages/agent-runtime/src/tools/thinker-convergence-gate.ts +0 -162
  1294. package/packages/agent-runtime/src/tools/thought-session-store.ts +0 -43
  1295. package/packages/agent-runtime/src/tools/tool-executor.ts +0 -1098
  1296. package/packages/agent-runtime/src/util/__tests__/messages.test.ts +0 -995
  1297. package/packages/agent-runtime/src/util/__tests__/parse-tool-calls-from-text.test.ts +0 -363
  1298. package/packages/agent-runtime/src/util/__tests__/simplify-tool-results.test.ts +0 -382
  1299. package/packages/agent-runtime/src/util/__tests__/stream-xml-parser.test.ts +0 -285
  1300. package/packages/agent-runtime/src/util/__tests__/think-tags.test.ts +0 -49
  1301. package/packages/agent-runtime/src/util/__tests__/token-counter.test.ts +0 -121
  1302. package/packages/agent-runtime/src/util/activity-tracking.ts +0 -252
  1303. package/packages/agent-runtime/src/util/agent-output.ts +0 -102
  1304. package/packages/agent-runtime/src/util/cache-debug.ts +0 -330
  1305. package/packages/agent-runtime/src/util/format-value.ts +0 -16
  1306. package/packages/agent-runtime/src/util/messages.ts +0 -461
  1307. package/packages/agent-runtime/src/util/parse-tool-calls-from-text.ts +0 -122
  1308. package/packages/agent-runtime/src/util/render-read-files-result.ts +0 -18
  1309. package/packages/agent-runtime/src/util/simplify-tool-results.ts +0 -61
  1310. package/packages/agent-runtime/src/util/stream-xml-parser.ts +0 -259
  1311. package/packages/agent-runtime/src/util/think-tags.ts +0 -33
  1312. package/packages/agent-runtime/src/util/token-counter.ts +0 -136
  1313. package/packages/agent-runtime/tsconfig.json +0 -8
  1314. package/packages/code-map/README.md +0 -43
  1315. package/packages/code-map/__tests__/integration.test.ts +0 -278
  1316. package/packages/code-map/__tests__/languages.test.ts +0 -240
  1317. package/packages/code-map/__tests__/parse.test.ts +0 -640
  1318. package/packages/code-map/__tests__/test-langs/test.c +0 -42
  1319. package/packages/code-map/__tests__/test-langs/test.cpp +0 -34
  1320. package/packages/code-map/__tests__/test-langs/test.cs +0 -34
  1321. package/packages/code-map/__tests__/test-langs/test.go +0 -27
  1322. package/packages/code-map/__tests__/test-langs/test.java +0 -31
  1323. package/packages/code-map/__tests__/test-langs/test.js +0 -50
  1324. package/packages/code-map/__tests__/test-langs/test.php +0 -34
  1325. package/packages/code-map/__tests__/test-langs/test.py +0 -25
  1326. package/packages/code-map/__tests__/test-langs/test.rb +0 -28
  1327. package/packages/code-map/__tests__/test-langs/test.rs +0 -28
  1328. package/packages/code-map/__tests__/test-langs/test.ts +0 -31
  1329. package/packages/code-map/package.json +0 -33
  1330. package/packages/code-map/src/index.ts +0 -4
  1331. package/packages/code-map/src/init-node.ts +0 -185
  1332. package/packages/code-map/src/languages.ts +0 -344
  1333. package/packages/code-map/src/parse.ts +0 -410
  1334. package/packages/code-map/src/tree-sitter-queries/readme.md +0 -24
  1335. package/packages/code-map/src/tree-sitter-queries/tree-sitter-c-tags.scm +0 -16
  1336. package/packages/code-map/src/tree-sitter-queries/tree-sitter-c_sharp-tags.scm +0 -23
  1337. package/packages/code-map/src/tree-sitter-queries/tree-sitter-cpp-tags.scm +0 -29
  1338. package/packages/code-map/src/tree-sitter-queries/tree-sitter-go-tags.scm +0 -26
  1339. package/packages/code-map/src/tree-sitter-queries/tree-sitter-java-tags.scm +0 -19
  1340. package/packages/code-map/src/tree-sitter-queries/tree-sitter-javascript-tags.scm +0 -16
  1341. package/packages/code-map/src/tree-sitter-queries/tree-sitter-php-tags.scm +0 -23
  1342. package/packages/code-map/src/tree-sitter-queries/tree-sitter-python-tags.scm +0 -12
  1343. package/packages/code-map/src/tree-sitter-queries/tree-sitter-ruby-tags.scm +0 -58
  1344. package/packages/code-map/src/tree-sitter-queries/tree-sitter-rust-tags.scm +0 -26
  1345. package/packages/code-map/src/tree-sitter-queries/tree-sitter-typescript-tags.scm +0 -22
  1346. package/packages/code-map/src/types.ts +0 -11
  1347. package/packages/code-map/src/utils.ts +0 -12
  1348. package/packages/code-map/tsconfig.json +0 -10
  1349. package/packages/database/README.md +0 -43
  1350. package/packages/database/package.json +0 -28
  1351. package/packages/database/src/__tests__/service.test.ts +0 -167
  1352. package/packages/database/src/index.ts +0 -146
  1353. package/packages/database/src/service.ts +0 -342
  1354. package/packages/database/tsconfig.json +0 -9
  1355. package/packages/llm-providers/README.md +0 -42
  1356. package/packages/llm-providers/package.json +0 -42
  1357. package/packages/llm-providers/src/ollama/__tests__/detect.test.ts +0 -59
  1358. package/packages/llm-providers/src/ollama/detect.ts +0 -113
  1359. package/packages/llm-providers/src/ollama/index.ts +0 -2
  1360. package/packages/llm-providers/src/openai-compatible/chat/convert-to-openai-compatible-chat-messages.test.ts +0 -855
  1361. package/packages/llm-providers/src/openai-compatible/chat/convert-to-openai-compatible-chat-messages.ts +0 -177
  1362. package/packages/llm-providers/src/openai-compatible/chat/get-response-metadata.ts +0 -15
  1363. package/packages/llm-providers/src/openai-compatible/chat/map-openai-compatible-finish-reason.ts +0 -19
  1364. package/packages/llm-providers/src/openai-compatible/chat/openai-compatible-api-types.ts +0 -60
  1365. package/packages/llm-providers/src/openai-compatible/chat/openai-compatible-chat-language-model.test.ts +0 -549
  1366. package/packages/llm-providers/src/openai-compatible/chat/openai-compatible-chat-language-model.ts +0 -474
  1367. package/packages/llm-providers/src/openai-compatible/chat/openai-compatible-chat-options.ts +0 -25
  1368. package/packages/llm-providers/src/openai-compatible/chat/openai-compatible-metadata-extractor.ts +0 -49
  1369. package/packages/llm-providers/src/openai-compatible/chat/openai-compatible-prepare-tools.ts +0 -162
  1370. package/packages/llm-providers/src/openai-compatible/chat/stream-transform.test.ts +0 -106
  1371. package/packages/llm-providers/src/openai-compatible/chat/stream-transform.ts +0 -585
  1372. package/packages/llm-providers/src/openai-compatible/completion/convert-to-openai-compatible-completion-prompt.ts +0 -98
  1373. package/packages/llm-providers/src/openai-compatible/completion/openai-compatible-completion-language-model.test.ts +0 -173
  1374. package/packages/llm-providers/src/openai-compatible/completion/openai-compatible-completion-language-model.ts +0 -414
  1375. package/packages/llm-providers/src/openai-compatible/completion/openai-compatible-completion-options.ts +0 -33
  1376. package/packages/llm-providers/src/openai-compatible/embedding/openai-compatible-embedding-model.ts +0 -143
  1377. package/packages/llm-providers/src/openai-compatible/embedding/openai-compatible-embedding-options.ts +0 -21
  1378. package/packages/llm-providers/src/openai-compatible/image/openai-compatible-image-model.ts +0 -129
  1379. package/packages/llm-providers/src/openai-compatible/image/openai-compatible-image-settings.ts +0 -1
  1380. package/packages/llm-providers/src/openai-compatible/index.ts +0 -27
  1381. package/packages/llm-providers/src/openai-compatible/openai-compatible-error.ts +0 -34
  1382. package/packages/llm-providers/src/openai-compatible/openai-compatible-provider.ts +0 -174
  1383. package/packages/llm-providers/src/openai-compatible/version.ts +0 -5
  1384. package/packages/llm-providers/tsconfig.json +0 -9
  1385. package/protocol.config.yaml +0 -113
  1386. package/savant-free/README.md +0 -73
  1387. package/savant-free/SPEC.md +0 -385
  1388. package/savant-free/cli/build.ts +0 -49
  1389. package/savant-free/cli/release/README.md +0 -55
  1390. package/savant-free/cli/release/index.js +0 -37
  1391. package/savant-free/cli/release/package.json +0 -43
  1392. package/savant-free/cli/release.ts +0 -128
  1393. package/savant-free/cli/smoke-test.test.ts +0 -257
  1394. package/savant-free/e2e/README.md +0 -173
  1395. package/savant-free/e2e/agent/savant-free-tester.ts +0 -52
  1396. package/savant-free/e2e/tests/ads-behavior.e2e.test.ts +0 -51
  1397. package/savant-free/e2e/tests/agent-startup.e2e.test.ts +0 -61
  1398. package/savant-free/e2e/tests/code-edit.e2e.test.ts +0 -78
  1399. package/savant-free/e2e/tests/help-command.e2e.test.ts +0 -97
  1400. package/savant-free/e2e/tests/knowledge-file.e2e.test.ts +0 -66
  1401. package/savant-free/e2e/tests/slash-commands.e2e.test.ts +0 -119
  1402. package/savant-free/e2e/tests/startup.e2e.test.ts +0 -56
  1403. package/savant-free/e2e/tests/terminal-command.e2e.test.ts +0 -71
  1404. package/savant-free/e2e/tests/version.e2e.test.ts +0 -50
  1405. package/savant-free/e2e/utils/binary-helpers.ts +0 -24
  1406. package/savant-free/e2e/utils/index.ts +0 -17
  1407. package/savant-free/e2e/utils/savant-free-session.ts +0 -229
  1408. package/savant-free/e2e/utils/tmux-custom-tools.ts +0 -156
  1409. package/savant-free/e2e/utils/tmux-helpers.ts +0 -79
  1410. package/savant-free/package.json +0 -20
  1411. package/scripts/eslint-rules/__fixtures__/debug-ast.mjs +0 -20
  1412. package/scripts/eslint-rules/__fixtures__/probe.mjs +0 -41
  1413. package/scripts/eslint-rules/__fixtures__/probe2.mjs +0 -43
  1414. package/scripts/eslint-rules/__fixtures__/rule-test.mjs +0 -44
  1415. package/scripts/eslint-rules/__fixtures__/rule-test2.mjs +0 -27
  1416. package/scripts/eslint-rules/__fixtures__/unknown-bad.ts +0 -21
  1417. package/scripts/eslint-rules/__fixtures__/unknown-good.ts +0 -35
  1418. package/scripts/eslint-rules/no-unknown-in-signatures.js +0 -141
  1419. package/scripts/release.py +0 -360
  1420. package/scripts/run-az-test.sh +0 -1150
  1421. package/scripts/sync-agents.py +0 -337
  1422. package/scripts/tmux/README.md +0 -359
  1423. package/scripts/tmux/package.json +0 -9
  1424. package/scripts/tmux/tmux-capture.sh +0 -231
  1425. package/scripts/tmux/tmux-cli.sh +0 -160
  1426. package/scripts/tmux/tmux-env.sh +0 -34
  1427. package/scripts/tmux/tmux-send.sh +0 -339
  1428. package/scripts/tmux/tmux-start.sh +0 -264
  1429. package/scripts/tmux/tmux-stop.sh +0 -157
  1430. package/scripts/tmux/tmux-viewer/README.md +0 -254
  1431. package/scripts/tmux/tmux-viewer/components/session-viewer.tsx +0 -556
  1432. package/scripts/tmux/tmux-viewer/components/theme.ts +0 -54
  1433. package/scripts/tmux/tmux-viewer/gif-encoder-2.d.ts +0 -28
  1434. package/scripts/tmux/tmux-viewer/gif-exporter.ts +0 -278
  1435. package/scripts/tmux/tmux-viewer/index.tsx +0 -237
  1436. package/scripts/tmux/tmux-viewer/package.json +0 -9
  1437. package/scripts/tmux/tmux-viewer/session-loader.ts +0 -234
  1438. package/scripts/tmux/tmux-viewer/tsconfig.json +0 -9
  1439. package/scripts/tmux/tmux-viewer/types.ts +0 -76
  1440. package/sdk/CHANGELOG.md +0 -126
  1441. package/sdk/PUBLISHING.md +0 -55
  1442. package/sdk/README.md +0 -334
  1443. package/sdk/bunfig.toml +0 -6
  1444. package/sdk/e2e/README.md +0 -158
  1445. package/sdk/e2e/custom-agents/api-integration-agent.e2e.test.ts +0 -145
  1446. package/sdk/e2e/custom-agents/apply-patch-tool.e2e.test.ts +0 -62
  1447. package/sdk/e2e/custom-agents/database-query-agent.e2e.test.ts +0 -135
  1448. package/sdk/e2e/custom-agents/weather-agent.e2e.test.ts +0 -120
  1449. package/sdk/e2e/examples/code-explainer.example.ts +0 -62
  1450. package/sdk/e2e/examples/code-reviewer.example.ts +0 -52
  1451. package/sdk/e2e/examples/commit-message-generator.example.ts +0 -61
  1452. package/sdk/e2e/examples/sdk-lint.example.ts +0 -65
  1453. package/sdk/e2e/examples/sdk-refactor.example.ts +0 -63
  1454. package/sdk/e2e/examples/sdk-test-gen.example.ts +0 -62
  1455. package/sdk/e2e/features/knowledge-files.e2e.test.ts +0 -82
  1456. package/sdk/e2e/features/max-agent-steps.e2e.test.ts +0 -65
  1457. package/sdk/e2e/features/project-files.e2e.test.ts +0 -80
  1458. package/sdk/e2e/integration/connection-check.integration.test.ts +0 -33
  1459. package/sdk/e2e/integration/event-ordering.integration.test.ts +0 -186
  1460. package/sdk/e2e/integration/event-types.integration.test.ts +0 -183
  1461. package/sdk/e2e/integration/stream-chunks.integration.test.ts +0 -191
  1462. package/sdk/e2e/streaming/concurrent-streams.e2e.test.ts +0 -164
  1463. package/sdk/e2e/streaming/subagent-streaming.e2e.test.ts +0 -158
  1464. package/sdk/e2e/utils/__tests__/event-collector.test.ts +0 -297
  1465. package/sdk/e2e/utils/e2e-mocks.ts +0 -458
  1466. package/sdk/e2e/utils/event-collector.ts +0 -145
  1467. package/sdk/e2e/utils/get-api-key.ts +0 -76
  1468. package/sdk/e2e/utils/index.ts +0 -3
  1469. package/sdk/e2e/utils/test-fixtures.ts +0 -196
  1470. package/sdk/e2e/workflows/error-recovery.e2e.test.ts +0 -112
  1471. package/sdk/e2e/workflows/multi-turn-conversation.e2e.test.ts +0 -132
  1472. package/sdk/examples/readme-example-1.ts +0 -34
  1473. package/sdk/examples/readme-example-2.ts +0 -76
  1474. package/sdk/package.json +0 -82
  1475. package/sdk/scripts/build.ts +0 -349
  1476. package/sdk/scripts/fetch-ripgrep.ts +0 -172
  1477. package/sdk/scripts/publish.ts +0 -51
  1478. package/sdk/scripts/release.js +0 -100
  1479. package/sdk/scripts/verify.ts +0 -204
  1480. package/sdk/sdk_exit +0 -1
  1481. package/sdk/smoke-test-dist.ts +0 -248
  1482. package/sdk/src/__tests__/apply-overrides-resume.test.ts +0 -83
  1483. package/sdk/src/__tests__/apply-patch.test.ts +0 -438
  1484. package/sdk/src/__tests__/build-file-tree.test.ts +0 -31
  1485. package/sdk/src/__tests__/change-file.test.ts +0 -212
  1486. package/sdk/src/__tests__/client.test.ts +0 -142
  1487. package/sdk/src/__tests__/clone-session-state.test.ts +0 -158
  1488. package/sdk/src/__tests__/code-search.test.ts +0 -896
  1489. package/sdk/src/__tests__/composio.test.ts +0 -86
  1490. package/sdk/src/__tests__/credentials.test.ts +0 -344
  1491. package/sdk/src/__tests__/database.test.ts +0 -153
  1492. package/sdk/src/__tests__/env.test.ts +0 -137
  1493. package/sdk/src/__tests__/error-utils.test.ts +0 -253
  1494. package/sdk/src/__tests__/fixtures/windows-stubborn-grandchild.ts +0 -26
  1495. package/sdk/src/__tests__/initial-session-state.test.ts +0 -447
  1496. package/sdk/src/__tests__/knowledge-file-selection.test.ts +0 -335
  1497. package/sdk/src/__tests__/load-agents.test.ts +0 -935
  1498. package/sdk/src/__tests__/load-mcp-config.test.ts +0 -285
  1499. package/sdk/src/__tests__/load-skills.test.ts +0 -325
  1500. package/sdk/src/__tests__/model-provider.test.ts +0 -44
  1501. package/sdk/src/__tests__/path-utils.test.ts +0 -66
  1502. package/sdk/src/__tests__/read-files.test.ts +0 -573
  1503. package/sdk/src/__tests__/read-url.test.ts +0 -371
  1504. package/sdk/src/__tests__/researcher-web.integration.test.ts +0 -130
  1505. package/sdk/src/__tests__/run-cancellation.test.ts +0 -1321
  1506. package/sdk/src/__tests__/run-error-preserves-history.test.ts +0 -335
  1507. package/sdk/src/__tests__/run-event-dispatch.test.ts +0 -80
  1508. package/sdk/src/__tests__/run-file-filter.test.ts +0 -530
  1509. package/sdk/src/__tests__/run-handle-event.test.ts +0 -142
  1510. package/sdk/src/__tests__/run-mcp-tool-filter.test.ts +0 -124
  1511. package/sdk/src/__tests__/run-state-child-process.test.ts +0 -72
  1512. package/sdk/src/__tests__/run-terminal-command.test.ts +0 -236
  1513. package/sdk/src/__tests__/run.integration.test.ts +0 -170
  1514. package/sdk/src/__tests__/user-knowledge-files.test.ts +0 -361
  1515. package/sdk/src/__tests__/validate-agents.test.ts +0 -943
  1516. package/sdk/src/agents/load-agents.ts +0 -339
  1517. package/sdk/src/agents/load-mcp-config.ts +0 -275
  1518. package/sdk/src/client.ts +0 -87
  1519. package/sdk/src/composio.ts +0 -78
  1520. package/sdk/src/constants.ts +0 -29
  1521. package/sdk/src/credentials.ts +0 -303
  1522. package/sdk/src/custom-tool.ts +0 -66
  1523. package/sdk/src/env.ts +0 -116
  1524. package/sdk/src/error-utils.ts +0 -127
  1525. package/sdk/src/impl/__tests__/llm-chatgpt-oauth-policy.test.ts +0 -67
  1526. package/sdk/src/impl/__tests__/llm-native-tool-call.test.ts +0 -38
  1527. package/sdk/src/impl/__tests__/llm-stream-yielded-content.test.ts +0 -118
  1528. package/sdk/src/impl/__tests__/model-provider-free-mode.test.ts +0 -166
  1529. package/sdk/src/impl/__tests__/prompt-result.test.ts +0 -210
  1530. package/sdk/src/impl/__tests__/provider-options-metadata.test.ts +0 -67
  1531. package/sdk/src/impl/agent-runtime.ts +0 -159
  1532. package/sdk/src/impl/chatgpt-backend-fetch.ts +0 -588
  1533. package/sdk/src/impl/database.ts +0 -516
  1534. package/sdk/src/impl/llm.ts +0 -852
  1535. package/sdk/src/impl/model-provider.ts +0 -638
  1536. package/sdk/src/impl/openrouter-key-resolver.ts +0 -78
  1537. package/sdk/src/index.ts +0 -133
  1538. package/sdk/src/native/ripgrep.ts +0 -141
  1539. package/sdk/src/retry-config.ts +0 -51
  1540. package/sdk/src/run-state.ts +0 -897
  1541. package/sdk/src/run.ts +0 -1222
  1542. package/sdk/src/skills/load-skills.ts +0 -253
  1543. package/sdk/src/testing/env.ts +0 -19
  1544. package/sdk/src/tools/apply-patch.ts +0 -690
  1545. package/sdk/src/tools/change-file.ts +0 -155
  1546. package/sdk/src/tools/code-search.ts +0 -547
  1547. package/sdk/src/tools/glob.ts +0 -58
  1548. package/sdk/src/tools/index.ts +0 -19
  1549. package/sdk/src/tools/list-directory.ts +0 -52
  1550. package/sdk/src/tools/path-utils.ts +0 -101
  1551. package/sdk/src/tools/read-files.ts +0 -110
  1552. package/sdk/src/tools/read-url.ts +0 -469
  1553. package/sdk/src/tools/run-file-change-hooks.ts +0 -22
  1554. package/sdk/src/tools/run-terminal-command.ts +0 -483
  1555. package/sdk/src/tools/ssrf.ts +0 -120
  1556. package/sdk/src/types/env.ts +0 -40
  1557. package/sdk/src/utils/logger.ts +0 -15
  1558. package/sdk/src/validate-agents.ts +0 -157
  1559. package/sdk/test/cjs-compatibility/package-lock.json +0 -423
  1560. package/sdk/test/cjs-compatibility/package.json +0 -21
  1561. package/sdk/test/cjs-compatibility/test-imports.js +0 -77
  1562. package/sdk/test/cjs-compatibility/test-types.ts +0 -54
  1563. package/sdk/test/cjs-compatibility/tsconfig.json +0 -17
  1564. package/sdk/test/esm-compatibility/package-lock.json +0 -423
  1565. package/sdk/test/esm-compatibility/package.json +0 -21
  1566. package/sdk/test/esm-compatibility/test-imports.js +0 -83
  1567. package/sdk/test/esm-compatibility/test-types.ts +0 -59
  1568. package/sdk/test/esm-compatibility/tsconfig.json +0 -17
  1569. package/sdk/test/ripgrep-bundling/package-lock.json +0 -423
  1570. package/sdk/test/ripgrep-bundling/package.json +0 -21
  1571. package/sdk/test/ripgrep-bundling/test-ripgrep-types.ts +0 -132
  1572. package/sdk/test/ripgrep-bundling/test-ripgrep.js +0 -257
  1573. package/sdk/test/ripgrep-bundling/tsconfig.json +0 -15
  1574. package/sdk/test/setup-env.ts +0 -54
  1575. package/sdk/test/test-sdk.ts +0 -25
  1576. package/sdk/test/tree-sitter-queries/package-lock.json +0 -47
  1577. package/sdk/test/tree-sitter-queries/package.json +0 -12
  1578. package/sdk/test/tree-sitter-queries/test-query-files.js +0 -256
  1579. package/sdk/tsconfig.build.json +0 -32
  1580. package/sdk/tsconfig.json +0 -27
  1581. package/sdk/vendor/ripgrep/arm64-darwin/rg +0 -0
  1582. package/sdk/vendor/ripgrep/arm64-linux/rg +0 -0
  1583. package/sdk/vendor/ripgrep/x64-darwin/rg +0 -0
  1584. package/sdk/vendor/ripgrep/x64-linux/rg +0 -0
  1585. package/sdk/vendor/ripgrep/x64-win32/rg.exe +0 -0
  1586. package/templates/FID-TEMPLATE.md +0 -125
  1587. package/templates/README-TEMPLATE.md +0 -87
  1588. package/templates/SESSION-SUMMARY.md +0 -135
  1589. package/tsconfig.base.json +0 -18
  1590. package/tsconfig.json +0 -27
  1591. /package/{cli/release-core/http.js → http.js} +0 -0
@@ -1,604 +0,0 @@
1
- # Adoptable Features & Ideas — Master Synthesis (2026-07-25)
2
-
3
- > **Generated:** 2026-07-25
4
- > **Scope:** 116 open-source repositories scanned in `resources/`
5
- > **Purpose:** Cross-cutting synthesis of the most impactful and novel ideas for improving savant-code, sourced from a fresh deep review
6
- > **Method:** Orchestrator extracted README inventory for all 116 repos → 6 parallel general sub-agents deep-read README + key source files per repo, returning path-cited findings per the ECHO Cross-Agent Claim Rule (`ECHO.md:275-286`) → Orchestrator spot-verified 3 high-impact claims against actual source (os-moda ledger, goose compaction, cline checkpoints — all confirmed) → consolidated into capability-gap-organized synthesis
7
- > **Predecessor:** [`adoptable-features-master.md`](./adoptable-features-master.md) (2026-07-19, 16-repo scan, archived). This document supersedes it for the 2026-07-25 scan of 116 repos; the predecessor remains as historical research.
8
-
9
- ---
10
-
11
- ## Executive Summary
12
-
13
- Scanned 116 repositories spanning TypeScript, Python, Rust, Go, Swift, and Zig. The synthesis below ranks adoptable features by **impact on savant-code** (how much it improves the product) and **novelty** (how unusual the pattern is relative to savant-code's existing ECHO Protocol governance). Features are grouped into **28 numbered items across 4 tiers** (Critical / High Impact / Medium Impact / Novel), organized by capability gap rather than by source repo. Where multiple repos solved the same gap, they are combined with comparison tables.
14
-
15
- **The single highest-leverage adoption is the Audit + Isolation Triad: tamper-evident ledger + git worktree-per-FID + git-ref checkpoints.** Savant-Code's FID lifecycle is documented in trivially-editable markdown with no integrity guarantee, Forge writes directly to the workspace with no isolation, and the Perfection Loop's SELF-CORRECT has no per-run checkpoint to roll back to. These three capabilities compose: every FID transition gets hash-chained, every Forge run happens in an isolated worktree, and every Perfection Loop iteration gets a git-ref checkpoint the Verifier can roll back to on test failure. Together they transform the FID lifecycle from a document-based gentlemen's agreement into a tamper-evident, crash-safe, rollback-capable system.
16
-
17
- **Spot-verification performed by the Orchestrator (not sub-agent-reported):**
18
-
19
- - `os-moda/crates/agentd/src/ledger.rs:1-50` — `Event` struct, `GENESIS_PREV_HASH`, WAL pragma confirmed
20
- - `goose/crates/goose/src/context_mgmt/mod.rs:227-256` — `filter_tool_responses`, middle-out removal confirmed
21
- - `cline/sdk/packages/core/src/hooks/checkpoint-hooks.ts:1-20` — `CheckpointEntry`/`CheckpointMetadata` confirmed
22
-
23
- **Per the Cross-Agent Claim Rule (`ECHO.md:280-283`):** The remaining features are based on sub-agent reports that cite paths but the Orchestrator has not personally read every line. Before implementing any feature, re-verify the cited path against current source.
24
-
25
- ---
26
-
27
- ## Tier 1: Critical (Must-Have for Production-Grade FID Lifecycle)
28
-
29
- ### 1. Tamper-Evident Audit Ledger
30
-
31
- Savant-Code's FID lifecycle (`dev/fids/`, `dev/session-summaries/`, `CHANGELOG.md`) is plain markdown — trivially editable, no integrity guarantee. Three repos solve this independently:
32
-
33
- | Repo | Pattern | Source |
34
- |------|---------|--------|
35
- | os-moda | Hash-chained SQLite ledger; `hash = SHA-256(id\|ts\|type\|actor\|payload\|prev_hash)` pipe-delimited; WAL + synchronous=FULL; FTS5 virtual table with BM25 + Porter stemming; `verify()` walks chain recomputing every hash; `incidents` + `incident_steps` tables | `crates/agentd/src/ledger.rs:10-21,102-117,291-330,379-439` |
36
- | bernstein | HMAC-chained Merkle lineage spine; `.sdd/lineage/<run_id>/spine.jsonl`; `entry_hash = H(prev_hash, artifact_path, content_hash, actor, step_id, model, timestamp)` + HMAC tag; `verify` names first divergent step | `src/bernstein/core/lineage/spine.py:1-36,88-100` |
37
- | bernstein | Durable work ledger (crash-safe resume); hash-chained JSONL; `ledger resume` verifies chain end-to-end, rebuilds scheduler state by deterministic replay; secrets scrubbed before hashing | `README.md:81` |
38
-
39
- **Recommended adoption:** os-moda's SQLite+FTS5 design. Append-only SQLite is the right substrate for Savant-Code's TypeScript monorepo (Bun has native SQLite); FTS5 gives full-text search over event history for free; WAL + synchronous=FULL is the correct durability profile. Layer bernstein's `ledger resume` deterministic-replay semantics on top for crash recovery.
40
-
41
- **Impact:** Critical — every FID transition + every Forge/Verifier tool call gets hash-chained; tamper-evident, offline-verifiable via `savant verify-ledger`
42
- **Effort:** High (new `packages/audit-ledger/` workspace; hash chain, FTS5, verify CLI, incident workspaces)
43
-
44
- ---
45
-
46
- ### 2. Git Worktree-per-FID with Rollback
47
-
48
- Savant-Code's Forge writes directly to the workspace. Multiple repos solve this at different trust levels:
49
-
50
- | Repo | Pattern | Source |
51
- |------|---------|--------|
52
- | kagan | Worktree-per-task with rollback on failure; creates git worktree on `kagan/<slug>` BEFORE registering plugin or running setup; if anything after worktree creation fails, rolls back by removing worktree + branch; `taskWorktreePath()` derives stable path from `Bun.hash(mainWorktree)` | `src/task/create.ts:21-66`, `src/git/runner.ts:78-82` |
53
- | kilocode | Worktree-as-session with create/list/remove/reset; `Worktree` service at `~/.local/share/{app}/worktree/{projectId}/{slug}`; `reset` does `git fetch` + `git reset --hard {defaultBranch}` + `git clean -ffdx` + `git submodule update --init --recursive --force` | `packages/opencode/src/worktree/index.ts:191-310,536-622` |
54
- | brood-box | COW snapshot + per-file review with hash-verified flush (TOCTOU protection); `FSFlusher.Flush()` re-verifies SHA-256 of each snapshot file before copying; refuses with "file modified between diff and flush"; `O_NOFOLLOW` to avoid symlinks; strips setuid/setgid/sticky bits; VM stopped before review | `internal/infra/review/flusher.go:34-122`, `internal/infra/review/reviewer.go:77-120` |
55
- | OpenHands | Docker sandbox service; `DockerSandboxService` + `SandboxService` abstract interface + `ProcessSandboxService` (local fallback) + `RemoteSandboxService` (cloud); user-scoped access control, lifecycle | `openhands/app_server/sandbox/` |
56
- | zed | Per-thread sandbox grants with `allow_unsandboxed` escape hatch; macOS Seatbelt, Linux Bubblewrap, Windows Bubblewrap-via-WSL; `.git` dirs protected | `crates/agent/src/sandboxing.rs:1-77` |
57
-
58
- **Recommended adoption:** kagan's worktree-per-FID as the foundation (TypeScript-native, `Bun.hash` for stable paths, clean rollback on failure). Layer brood-box's hash-verified flush when Verifier needs TOCTOU protection on promotion. Reserve OpenHands Docker sandbox for untrusted-codebase onboarding.
59
-
60
- **Impact:** Critical — parallel FIDs don't collide; failed GREEN attempts leave zero trace; Verifier runs tests in isolation
61
- **Effort:** Medium (worktree service in `packages/agent-runtime/`; FID-to-worktree mapping in Recorder)
62
-
63
- ---
64
-
65
- ### 3. Git-Ref Checkpoints per Perfection Loop Iteration
66
-
67
- Savant-Code's Perfection Loop has SELF-CORRECT but no per-run checkpoint to roll back to.
68
-
69
- | Repo | Pattern | Source |
70
- |------|---------|--------|
71
- | cline | Git-ref-based checkpoints with runCount; stores each agent run as private git ref `refs/cline/checkpoints/{sessionId}/{runCount}` plus a stash; `CheckpointMetadata { latest, history }` persisted in session metadata; `compareCheckpointToWorkspace` returns `CheckpointWorkspaceCompareResult` for diff/restore | `sdk/packages/core/src/hooks/checkpoint-hooks.ts:7-15,97-140,155+` |
72
- | zero | `/rewind` session rollback; temporal undo of conversation + agent state (distinct from `/resume` which continues) | `README.md:207` |
73
- | os-moda | SafeSwitch (deploy with TTL probation + health checks + auto-rollback); `SwitchSession { ttl_secs, health_checks, previous_generation, status }`; `HealthCheck` enum: SystemdUnit/TcpPort/HttpGet/Command; auto-rollback to previous generation on failure | `crates/osmoda-watch/src/switch.rs:4-45,47-90` |
74
-
75
- **Recommended adoption:** cline's git-ref checkpoint pattern as the foundation (TypeScript-compatible via `child_process` git calls). Each Perfection Loop iteration gets `refs/savant/checkpoints/{fidId}/{iteration}/`; on AUDIT failure, Verifier can `git reset` to the last-known-good checkpoint instead of re-running RED→GREEN. Layer os-moda's SafeSwitch TTL+health-check pattern for the AUDIT phase.
76
-
77
- **Impact:** Critical — bad GREEN edits can be cleanly undone at the session level; AUDIT failures don't require full RED→GREEN re-runs
78
- **Effort:** Medium (checkpoint service in `packages/agent-runtime/`; FID-iteration-to-ref mapping in Recorder)
79
-
80
- ---
81
-
82
- ### 4. SpendMeter — Per-Agent Per-UTC-Day Token+USD Kill-Switch
83
-
84
- Savant-Code has no token tracking UI, no spend cap, no per-agent budget. The Perfection Loop's circuit breaker (max 10 iterations) bounds iterations but not cost.
85
-
86
- | Repo | Pattern | Source |
87
- |------|---------|--------|
88
- | os-moda | `SpendMeter.check()` called BEFORE model invoke; accumulates per-agent per-UTC-day; over-cap refuses with typed `spend_cap_exceeded` + human reason; alerts at 80%/100% (warn/halt), once per threshold per day; `0`/undefined = unlimited | `packages/osmoda-gateway/src/spend.ts:1-119` |
89
- | agenttrace | Loop fingerprinting + loop-waste cost attribution; `loop_fingerprints()` groups repeated tool calls by `(tool_name, result_hash)`; `loop_cost()` computes retry_cost + tool_loop_cost as $ wasted; `loop_waste_percent()` | `crates/agenttrace-core/src/diagnostics.rs:43-52,248-259` |
90
- | forge | Token-source bucket classifier (5 buckets); splits input tokens into instructions/tool_definitions/tool_results/repo_reads/prose; chars/4 estimate; self-consistency check (sum within ±10% of total) | `scripts/forge-token-bucket.cjs:1-80` |
91
- | cc-tempo | Active-work-time parser from transcript JSONL; computes real wall-clock work time (not inflated `api_duration_ms`); 3 idle protections that only ever reduce time; parallel SubAgents don't inflate | `bin/calc_active_time.py:1-182` |
92
-
93
- **Recommended adoption:** os-moda's SpendMeter as the foundation (TypeScript-native, `state/spend.json` persistence, per-UTC-day reset). Layer agenttrace's loop-waste attribution and forge's 5-bucket classifier. cc-tempo's active-work-time parser feeds the statusline.
94
-
95
- **Impact:** Critical — runaway budgets go undetected today; per-FID spend cap prevents a single bad FID from burning unbounded budget
96
- **Effort:** Low for SpendMeter (single file, ~120 lines); Medium for full observability stack
97
-
98
- ---
99
-
100
- ## Tier 2: High Impact (Strongly Recommended)
101
-
102
- ### 5. Context Compaction Pipeline
103
-
104
- Savant-Code's Hybrid Mode can hit context limits on long FID-bound tasks. The predecessor report (2026-07-19, item 4) recommended OpenCode's structured summary; the 2026-07-25 scan found richer patterns.
105
-
106
- | Repo | Pattern | Source |
107
- |------|---------|--------|
108
- | goose | Progressive compaction with middle-out tool-response removal; on `ContextLengthExceeded`, `do_compact` retries with progressively larger removal percentages `[0,10,20,50,100]`; `filter_tool_responses` removes tool-response messages from the middle outward (preserves most recent + oldest) | `crates/goose/src/context_mgmt/mod.rs:227-275,277-351,432-595` |
109
- | SWE-agent | Pluggable HistoryProcessor pipeline; `AbstractHistoryProcessor.__call__(history) -> History` protocol; YAML-configurable; `ClosedWindowHistoryProcessor` (replaces old file-view windows with "Outdated window with N lines omitted"), `CacheControlHistoryProcessor` (sets Anthropic `cache_control: {type: ephemeral}` on last N messages), `RemoveRegex` (strips `<diff>.*</diff>`) | `sweagent/agent/history_processors.py:13-17,215-258,261-302,305-337` |
110
- | entroly | Cache Aligner; hashes injected context per-client; if new context is >90% similar (Jaccard over tokens), reuses previous version verbatim to preserve provider prefix cache (~90% read discount on cached prefixes) | `entroly/cache_aligner.py:1-20,45-113` |
111
- | hermes-agent | Prompt caching as sacred invariant; hard rule: never alter past context mid-conversation, never swap toolsets, never reload memories — anything that mutates past context invalidates prefix cache and multiplies cost; slash commands that mutate system-prompt state default to deferred invalidation | `AGENTS.md` |
112
-
113
- **Recommended adoption:** Compose all four. Goose's progressive compaction as the reactive engine; SWE-agent's pluggable pipeline as the architecture (configure per-phase in `protocol.config.yaml`); entroly's Cache Aligner for cache preservation; hermes-agent's sacred-invariant rule as an explicit runtime constraint (FID state injected once per session, not re-injected per turn).
114
-
115
- **Impact:** High — essential for long-running FID-bound sessions; preserves prompt-cache hits (cost multiplier)
116
- **Effort:** Medium (new compaction module in `packages/agent-runtime/`; pipeline config in `protocol.config.yaml`)
117
-
118
- ---
119
-
120
- ### 6. Background Memory Pipeline
121
-
122
- Savant-Code's `dev/LEARNINGS.md` is flat unstructured prose. The predecessor report (2026-07-19, item 10) recommended Codex's two-phase pipeline; the 2026-07-25 scan found complementary patterns.
123
-
124
- | Repo | Pattern | Source |
125
- |------|---------|--------|
126
- | codex | 2-phase background memory pipeline; Phase 1: per-rollout extraction (async bounded jobs, parallel with concurrency cap, produce `raw_memory` + `rollout_summary`, redact secrets); Phase 2: global lock, sync to git-baselined memory workspace, render `phase2_workspace_diff.md`, spawn **sandboxed consolidation sub-agent** (no-approvals, no-network, local-write-only) to update `MEMORY.md` / `memory_summary.md` / `skills/`; watermarks prevent rework | `codex-rs/memories/README.md:29-157` |
127
- | agno | Multi-store Learning Machine; 6 typed memory stores (`user_profile`, `user_memory`, `session_context`, `entity_memory`, `learned_knowledge`, `decision_log`); each independently enabled; each exposes tools to agent; each has `LearningMode` (ALWAYS/AGENTIVE/PROPOSE/HITL) | `libs/agno/agno/learn/machine.py:52-788` |
128
- | spartan-ai-toolkit | 3-layer agent memory; Layer 1: `.memory/index.md` (~150 chars/line, always loaded, pointers only); Layer 2: `.memory/{decisions,patterns,knowledge,blockers}/` (loaded on demand); Layer 3: `.memory/transcripts/` (never loaded, grep-only archive) | `README.md:230-247` |
129
- | spartan-ai-toolkit | Memory-consolidate; detects stale (verify claims against current codebase), duplicates, contradictions, derivable-from-code; uses `git log --follow` to check for renames before declaring stale | `toolkit/commands/spartan/memory-consolidate.md:33-110` |
130
- | agno | Memory Curator; `prune(user_id, max_age_days, max_count)` removes old memories; `deduplicate()` normalizes text and removes exact/near-exact dupes | `libs/agno/agno/learn/curate.py:27-185` |
131
- | hermes-agent | Background skill curator (inactivity-triggered); auxiliary-model task that auto-transitions lifecycle states (active→stale→archived) based on usage timestamps; spawns forked review agent that can pin/archive/consolidate/patch; uses auxiliary client to never touch main session's prompt cache | `agent/curator.py:1-20,70-86` |
132
- | os-moda | Auto-generated SKILL.md from repeated tool sequences (SKILLGEN loop); 6h interval; `find_tool_sequences(db, min_sessions=3)`; deduplicates via Jaccard overlap (≥0.8 skips); writes full SKILL.md with YAML frontmatter + step-by-step body | `crates/osmoda-teachd/src/skillgen.rs:15-37,40-107,110-169,245-263` |
133
-
134
- **Recommended adoption:** Codex's 2-phase pipeline as the architecture (Phase 1 extracts per-FID learnings, Phase 2 consolidates cross-FID via sandboxed Scribe sub-agent). Layer agno's typed stores. Use spartan-ai-toolkit's 3-layer structure for the storage layout. Use spartan-ai-toolkit's memory-consolidate as the Scribe's periodic maintenance pass. Use os-moda's SKILLGEN loop to auto-generate `.agents/skills/` from observed recurring tool-call patterns.
135
-
136
- **Impact:** High — cross-session learning is a key differentiator; replaces manual LEARNINGS.md maintenance
137
- **Effort:** High (memory subsystem; Phase 1/2 pipeline, consolidation sub-agent, curator loop, SKILLGEN loop)
138
-
139
- ---
140
-
141
- ### 7. Deterministic Tool-Call Guardrails
142
-
143
- ECHO's Law 2 (Present Before Act) and Law 14 (error paths handled) are prompt-enforced. Multiple repos enforce deterministically.
144
-
145
- | Repo | Pattern | Source |
146
- |------|---------|--------|
147
- | pi-steering-hooks | Deterministic regex-based guardrails with override + audit; `Rule { tool, field, pattern (violation=match), requires (AND), unless (exemption), reason, noOverride }`; default rules: `no-force-push`, `no-hard-reset`, `no-rm-rf-slash` (noOverride), `conventional-commits`, `no-long-running-commands`; override via `# steering-override: <rule-name> — <reason>` in any comment syntax | `src/index.ts:25-104` |
148
- | zed | Hardcoded security rules (non-overridable terminal-command denylist); `HARDCODED_SECURITY_RULES` `LazyLock` of compiled regexes blocking `rm -rf /`, `rm -rf ~`, `$HOME` variants; flag-position normalization prevents `-rfv`/`--recursive --force` bypass | `crates/agent/src/tool_permissions.rs:12-60` |
149
- | codex | execpolicy: Starlark-based command policy engine; `prefix_rule(pattern, decision=allow\|prompt\|forbidden, justification, match, not_match)` + `host_executable(name, paths)` to whitelist exact binary paths; rules load from `.rules` files, multiple merge in order, strictest severity wins; examples validated at load time as unit tests | `codex-rs/execpolicy/README.md:5-95` |
150
- | goose | Adversary inspector: LLM-as-judge for tool calls; `AdversaryInspector` reads `~/.config/goose/adversary.md` (frontmatter selects tools + rules body); sends recent user messages + call to LLM with BLOCK/ALLOW decision; default rules block data exfiltration, destructive ops, privilege escalation | `crates/goose/src/security/adversary_inspector.rs:14-60` |
151
-
152
- **Recommended adoption:** Layer all four. zed's hardcoded security floor as the non-overridable base. pi-steering-hooks' regex rules as the project-configurable layer in `protocol.config.yaml`. codex's execpolicy as the advanced policy engine. goose's adversary inspector as the LLM-judge second pass for gray-area commands.
153
-
154
- **Impact:** High — safety is non-negotiable for autonomous agents; today's "bash AUDIT-only" gating is binary and insufficient
155
- **Effort:** Low for pi-steering-hooks pattern; Medium for execpolicy; Medium for adversary inspector
156
-
157
- ---
158
-
159
- ### 8. Risk-Tiered Change Classifier (Auto Hybrid vs FID-Bound)
160
-
161
- Savant-Code's Hybrid Mode vs FID-Bound Execution decision is currently a manual judgment call.
162
-
163
- | Repo | Pattern | Source |
164
- |------|---------|--------|
165
- | great_cto | Risk-tiered change classifier (T0/T1/T2); T2 hard floor if any behavioral file matches `migrations/`, `auth/`, `pricing/`, `_domains.json`, OR new write-capable connector, OR `deployTarget=production`, OR behavioral file count ≥ `bulkThreshold` (default 50); T0 only if every file is non-behavioral; explicit `tier:tN` label can up/down-grade within non-floored range but never downgrades past T2 | `scripts/lib/change-tier.mjs:15-112` |
166
- | great_cto | Spec-critic adversarial prompt; 7 attack vectors (wrong-problem, scope-explosion, internal-contradictions, missing-stakeholders, untested-assumptions, irreversibility-traps, missing-failure-spec) run BEFORE implementation begins | `packages/cli/assets/skills/brainstorming/spec-critic-prompt.md:17-80` |
167
- | OpenSpec | Explore-First phase; `/opsx:explore` is pre-proposal phase where AI reads code, weighs options, shapes plan with user BEFORE anything is written; explicitly "no-stakes" — no artifacts committed | `README.md:49-77,142` |
168
- | blueprint | Interactive Q&A planning with multiple-choice questions; agent reads codebase then asks MC questions that surface real design choices; questions start broad, get more specific; repeat until user decides to stop, then generate plan | `README.md:13-23,67-74` |
169
-
170
- **Recommended adoption:** great_cto's T0/T1/T2 classifier as the auto-routing engine (TypeScript-native, file-pattern matching). Layer the spec-critic adversarial prompt into Detective's RED phase. Add OpenSpec's Explore-First as a PRE-FID phase. Add blueprint's MC Q&A to Detective RED phase to resolve ambiguity.
171
-
172
- **Impact:** High — auto-routes Hybrid vs FID-Bound based on changed-file signature; force FID-Bound for migrations/auth/pricing
173
- **Effort:** Medium (T0/T1/T2 classifier); Low for spec-critic prompt; Low for Explore-First; Low for blueprint Q&A
174
-
175
- ---
176
-
177
- ### 9. Code Intelligence Beyond Tree-Sitter
178
-
179
- Savant-Code's `packages/code-map` extracts tokens + calls via tree-sitter. No cross-reference linking, no back-links, no graph algorithm, no vector index.
180
-
181
- | Repo | Pattern | Source |
182
- |------|---------|--------|
183
- | aider | PageRank-based repo map with personalization; builds `networkx.MultiDiGraph` of def→ref edges; runs `nx.pagerank(G, weight="weight", personalization=...)` with chat-file/mentioned-file/mentioned-identifier weights | `aider/repomap.py:365-525` |
184
- | refact | AST indexer with cross-references in LMDB; 7 tree-sitter parsers, two-phase indexing (parse+store → link cross-references); LMDB storage with key prefixes (`d|` defs, `c|` fuzzy lookup, `u|` back-links, `classes|` inheritance); background thread with batch processing | `refact-agent/engine/AGENTS.md` AST section |
185
- | refact | VecDB with AST-aware + markdown + trajectory chunkers; SQLite + vec0 extension; chunkers: trajectory JSON (4 msgs/chunk), Markdown (heading-aware), code (AST-aware token windows); cosine KNN → reject threshold → normalize usefulness | `refact-agent/engine/crates/refact-vecdb/src/` |
186
- | refact | Knowledge graph (petgraph DiGraph) with builder/cleanup/staleness/query; staleness tracks file-modified timestamps | `refact-agent/engine/crates/refact-knowledge-graph/src/lib.rs:1-5` |
187
- | reflex | Trigram inverted-index + runtime tree-sitter symbol detection (lazy parsing); indexing extracts 3-char trigrams only; symbol queries narrow 62K files → ~10-100 candidates via trigrams, then parse only those with tree-sitter (2-224ms) | `CLAUDE.md` Runtime Symbol Detection Architecture |
188
- | codesight | BFS blast-radius through import graph; builds reverse + forward adjacency maps from import edges, BFS to depth 3; maps affected files → affected routes (by handler file), affected models (by `db` tag), affected middleware | `src/detectors/blast-radius.ts:7-85` |
189
- | sourcebook | Co-change coupling analysis; `analyzeGitHistory` returns `coChangeClusters: [fileA, fileB, commitCount][]`; if `auth.ts` co-changes with `session.ts` in 88% of commits, flags `session.ts` as missing from diff | `src/scanner/git.ts:5-24` |
190
-
191
- **Recommended adoption:** Compose by capability. aider's PageRank for "what's relevant to this FID" subgraph. refact's LMDB back-links for "who calls this function?" without grep. refact's VecDB for "find similar past FIDs" semantic search. reflex's trigram index for sub-100ms large-repo symbol queries. codesight's blast-radius for Detective RED. sourcebook's co-change for Verifier AUDIT.
192
-
193
- **Impact:** High — codebase understanding is essential for multi-agent coding; today's tree-sitter-only is the floor
194
- **Effort:** Medium for PageRank; High for LMDB back-links; High for VecDB; High for trigram index; Medium for blast-radius; Medium for co-change
195
-
196
- ---
197
-
198
- ### 10. Parallel Execution & Best-of-N
199
-
200
- Savant-Code's Perfection Loop runs once per FID. No competing implementations, no parallel sub-FIDs.
201
-
202
- | Repo | Pattern | Source |
203
- |------|---------|--------|
204
- | kimi-code | Tool-call scheduler with resource-access conflict detection; `ToolScheduler<Result>` adds tool calls; if `ToolAccesses.conflict(task.accesses, candidate.accesses)` is false for all active + queued, task starts immediately; results handed back in provider order | `packages/agent-core/src/loop/tool-scheduler.ts:28-99` |
205
- | bernstein | Tournament runs; task declares `attempts: N`; scheduler fans out N sibling attempts in isolated worktrees with byte-identical inputs; winner is pure function of evaluator outputs (test pass rate, lint, coverage delta, mutation score) with stable attempt-hash tie-break; emits signed `TournamentReceipt` | `README.md:86` |
206
- | SWE-agent | Multi-attempt reviewer + preselector + chooser (best-of-N); `AbstractReviewer.review() -> ReviewerResult { accept: bool\|float, outputs, messages }`; `PreselectorOutput.chosen_idx: list[int]` filters N to shortlist; `ChooserOutput.chosen_idx: int` picks winner | `sweagent/agent/reviewer.py:30-100` |
207
- | SWE-agent | AskColleagues action sampler; `AskColleaguesConfig { n_samples: int = 2 }`; `get_colleague_discussion(completions)` concatenates all parsed completions into "Your colleagues had the following ideas: ..." so model picks best of N | `sweagent/agent/action_sampler.py:23-60` |
208
- | LoopTroop | LLM Council (draft → vote → refine → verify); multiple independent model instances draft plans, score each other using weighted rubric, vote on proposals; winner refines its draft by synthesizing strongest ideas from losing drafts, then verifies coverage | `server/workflow/phases/beadsPhase.ts:1-7,23`, `README.md:104-113` |
209
-
210
- **Recommended adoption:** kimi-code's tool-call scheduler as the foundation for parallel read-only Detective calls. bernstein's tournament runs for GREEN phase (Forge spawns N parallel attempts in worktrees, Verifier picks winner deterministically). SWE-agent's AskColleagues for Thinker. LoopTroop's LLM Council for high-stakes FID planning.
211
-
212
- **Impact:** High — cuts latency in Hybrid Mode; enables competing implementations for high-stakes FIDs
213
- **Effort:** Low for tool-call scheduler; Medium for tournament; Low for AskColleagues; High for LLM Council
214
-
215
- ---
216
-
217
- ### 11. Goal/Budget-Bound Perfection Loop
218
-
219
- Savant-Code's Perfection Loop has a circuit breaker (max 10 iterations) but no semantic goal or budget.
220
-
221
- | Repo | Pattern | Source |
222
- |------|---------|--------|
223
- | kimi-code | Goal state machine with completionCriterion + SetGoalBudget; `CreateGoalTool` accepts `{objective, completionCriterion?, replace?}`; `SetGoalBudgetTool` caps work (tokens / tool calls / turns); `goalForModel(snapshot)` serializes for model context | `packages/agent-core/src/tools/builtin/goal/create-goal.ts:17-77` |
224
- | openclaude | Goal evaluator (LLM-judge for session goal completion); `GoalEvaluatorDecision { complete, confidence, reason, next_instruction }`; system prompt: "Mark complete only when recent conversation shows the goal condition is satisfied. If verification is missing for a development task, mark incomplete." | `src/services/goal/evaluator.ts:6-77`, `src/services/goal/types.ts:1-32` |
225
- | pi-ralph | max_activations per hat; `HatConfig.max_activations?: number`; before dispatching, checks `count > nextHatConfig.max_activations` → stops loop with `reason: "Hat 'X' exhausted (N activations)"` | `lib.ts:20,622-629` |
226
-
227
- **Recommended adoption:** kimi-code's Goal state machine as the foundation (each FID becomes a Goal with a `completionCriterion` = the AUDIT pass condition and a `budget` = max Forge iterations before escalation). Layer openclaude's Goal evaluator as the Verifier's LLM-judge. Layer pi-ralph's max_activations as per-agent caps.
228
-
229
- **Impact:** High — today's Perfection Loop can loop forever on a bad FID; semantic goal + budget forces convergence
230
- **Effort:** Medium (Goal state machine in `packages/agent-runtime/`; LLM-judge evaluator in Verifier)
231
-
232
- ---
233
-
234
- ### 12. Hookable Lifecycle Events
235
-
236
- Savant-Code's FSM transitions are internal. Users can't plug in CI/notifications without forking.
237
-
238
- | Repo | Pattern | Source |
239
- |------|---------|--------|
240
- | codex | Lifecycle hooks with JSON Schema I/O contracts; 9 typed hook contracts as JSON schemas: `pre-tool-use`, `post-tool-use`, `pre-compact`, `post-compact`, `session-start`, `session-end`, `subagent-start`, `subagent-stop`, `stop`, plus `permission-request`; each has `*.input.schema.json` + `*.output.schema.json` | `codex-rs/hooks/` |
241
- | openase | Workflow lifecycle hooks with failure policies + template variables; declarative `on_activate` / `on_reload`; each `{cmd, timeout, on_failure}` where `on_failure` ∈ `{block, warn, ignore}`; commands support `{{project.id}}`, `{{workflow.id}}`, etc. shell-quoted | `internal/workflow/hooks.go:19-43,66-95,210-249,300-322` |
242
- | octomind | Declarative guardrails as TOML; `.agents/guardrails.toml` with four section types: `[[pipe]]` (pre-model input transform), `[[guard]]` (pre-call deny rule with `match=capture(arg_name=regex)`), `[[hook]]` (post-result script where non-zero exit injects stdout into agent's inbox), `[[validator]]` (end-of-turn script over new call-log slice) | `src/config/guardrails.rs:15-41`, `README.md:182-213` |
243
-
244
- **Recommended adoption:** codex's JSON Schema I/O contracts as the typed-hook foundation (expose FSM transitions as hookable events: `pre-GREEN`, `post-AUDIT`, `pre-FID-archive`). Layer openase's failure policies and template variables. Layer octomind's TOML guardrails as the project-configurable surface in `protocol.config.yaml`.
245
-
246
- **Impact:** High — extensibility without core changes; users plug in custom CI/notifications/slack
247
- **Effort:** Medium (hook registry + dispatcher + JSON Schema contracts)
248
-
249
- ---
250
-
251
- ### 13. Per-FID File Scope Enforcement
252
-
253
- Savant-Code gates by FSM phase but not by per-FID file scope. Forge can write anywhere in GREEN.
254
-
255
- | Repo | Pattern | Source |
256
- |------|---------|--------|
257
- | bernstein | In-process verification gates via adapter hooks; task's `owned_files` become write allowlist; `Stop` hook runs required verification in-session and refuses to end turn while it fails; `PreToolUse` matcher refuses out-of-scope writes (realpath-contained, so `..` traversal or in-scope symlink resolving outside worktree is refused) | `README.md:80` |
258
- | spartan-ai-toolkit | Freeze mode; `/spartan:freeze <dir>` locks file creation/edit/deletion to `<dir>/**`; reads anywhere always allowed; test directory auto-unlocked: `src/main/kotlin/.../module/` → also allows `src/test/kotlin/.../module/` | `toolkit/commands/spartan/freeze.md:9-46` |
259
- | kagan | Push protection via tool.execute.before hook; `guardGitPush()` intercepts bash tool calls, runs `isGitPushCommand()` (tokenizes, handles `&&`/`||`/`;`/`|` separators, skips `-C`/`-c` flags); throws `PUSH_DENIED_MESSAGE` if supervised | `src/server.ts:44-58`, `src/git/runner.ts:43-76` |
260
-
261
- **Recommended adoption:** bernstein's `owned_files` write allowlist as the foundation (FID declares its target files; Forge can only write those). Layer spartan-ai-toolkit's freeze mode for the test-directory auto-mapping. Layer kagan's push protection (block `git push` during GREEN/AUDIT unless explicitly approved).
262
-
263
- **Impact:** High — prevents Forge from writing outside its FID's declared scope; aligns with ECHO's per-FID isolation
264
- **Effort:** Medium for owned_files allowlist; Low for freeze mode; Low for push protection
265
-
266
- ---
267
-
268
- ## Tier 3: Medium Impact (Recommended)
269
-
270
- ### 14. Code Review Format / PR Packing
271
-
272
- Savant-Code's Verifier audits diffs but has no structured review format.
273
-
274
- | Repo | Pattern | Source |
275
- |------|---------|--------|
276
- | prpack | Diff + full post-change file content packing; per-file emits the diff AND the full post-change file content so reviewer model can see what didn't change but matters; `pickFence` finds longest backtick run and emits fence one char longer | `src/pack.js:190-257` |
277
- | prpack | Adjacent-test auto-discovery; `collectAdjacentTests` + `guessTestSiblings` maps `foo.ts`→`foo.test.ts`, `foo.go`→`foo_test.go`, `foo.py`→`test_foo.py`, `foo.rb`→`foo_spec.rb` | `src/pack.js:152-188` |
278
- | prpack | Four focused review-angle prompts; security/performance/tests/architecture, each forcing `[SEVERITY] file:line — summary / Why it matters / Suggested fix` format and `Bottom line: ship | fix-before-ship | hold` verdict | `src/prompts.js:1-181`, `THE_TECHNIQUE.md:130-149` |
279
- | sourcebook | Two-layer diff-completeness gate; Layer A rules-based (<1s, no LLM): co-change + test-file detection + import graph + hub detection; Layer B sends diff+context to Claude Sonnet; every AI suggestion requires dependency citation, hallucinated paths filtered | `README.md:106-119`, `CLAUDE.md` Architecture |
280
-
281
- **Recommended adoption:** prpack's packing technique as the Verifier's review-artifact format. Layer the four focused review-angle prompts for four-pass AUDIT. Layer sourcebook's two-layer gate (rules-based first pass, LLM second pass with citation requirement).
282
-
283
- **Impact:** Medium — structured review artifacts catch more than ad-hoc diff inspection
284
- **Effort:** Low for packing; Low for review-angle prompts; Medium for two-layer gate
285
-
286
- ---
287
-
288
- ### 15. AGENTS.md Linting & Auto-Generation
289
-
290
- Savant-Code's `AGENTS.md` is hand-edited, never linted or auto-generated.
291
-
292
- | Repo | Pattern | Source |
293
- |------|---------|--------|
294
- | cc-audit | 12-rule AGENTS.md linter; `RULE_SIGNALS` checks for keyword signals of 12 baseline rules; `ANTI_PATTERNS` regex-detects leaked GitHub PATs (`ghp_…`), AWS keys (`AKIA…`), `sk-` API keys, paypal me links, literal passwords; `COMPLIANCE_CLIFF = 200` lines | `cc_audit.py:35-148` |
295
- | caliber | Deterministic config-quality scoring; scores against actual filesystem on 6 axes (Files & Setup 25pts, Quality 25pts, Grounding 20pts, Accuracy 15pts, Freshness 10pts, Bonus 5pts); score-regression guard with auto-revert | `src/scoring/checks/accuracy.ts:1-60`, `README.md:178-193` |
296
- | faf-cli | AGENTS.md authoring from structured data; deterministically projects a `.faf` into AGENTS.md (orientation line, setup/build commands sorted by `setupRank`, verify bar, guardrails, DoD); managed block wrapped in `<!-- faf:start -->` / `<!-- faf:end -->` | `src/interop/agents.ts:33-100` |
297
- | faf-cli | Trophy-gated bi-directional sync; blocks `--pull` unless project scores 100% (Trophy tier) | `src/commands/sync.ts:70-107` |
298
-
299
- **Recommended adoption:** cc-audit's 12-rule linter as the Verifier AUDIT phase gate (one Python file, ~240 lines, zero deps — easy port to TypeScript). Layer caliber's deterministic scoring as `savant score` command. Layer faf-cli's managed-block AGENTS.md authoring so Scribe can auto-regenerate boilerplate sections.
300
-
301
- **Impact:** Medium — catches stale paths, leaked secrets, compliance-cliff violations in the canonical context file
302
- **Effort:** Low for cc-audit port; Medium for caliber scoring; Medium for faf-cli authoring
303
-
304
- ---
305
-
306
- ### 16. LSP Integration
307
-
308
- | Repo | Pattern | Source |
309
- |------|---------|--------|
310
- | kilocode | LSP integration with document symbols + diagnostics; `Range`, `Symbol`, `DocumentSymbol`, `Status`; `SymbolKind` enum; `lsp/client.ts` + `lsp/server.ts` + `lsp/launch.ts` for spawning language servers; exposes `lsp.updated` events | `packages/opencode/src/lsp/lsp.ts:19-80` |
311
-
312
- **Recommended adoption:** kilocode's LSP client. LSP diagnostics are ground truth for "did the code compile?" Forge could subscribe to `lsp.updated` after each write to catch type errors immediately (much stronger than grep-based verification).
313
-
314
- **Impact:** Medium — improves code understanding and post-edit verification
315
- **Effort:** High (LSP client in `packages/code-map/`; per-language server spawning)
316
-
317
- ---
318
-
319
- ### 17. Autonomous / Scheduled Execution
320
-
321
- Savant-Code waits for user input. No background FIDs, no scheduled audits.
322
-
323
- | Repo | Pattern | Source |
324
- |------|---------|--------|
325
- | cline | Cron scheduler with materializer + SQLite store + resource limiter; 5-field cron parser with ranges/steps/names; `cron-materializer.ts` (turns schedules into runnable jobs); `resource-limiter.ts` (concurrency cap); `sqlite-cron-store.ts` (durable persistence) | `sdk/packages/core/src/cron/schedule/scheduler.ts:1-80` |
326
- | os-moda | Autonomous agent loop engine; `POST /loops` creates loop with `interval` + `iteration_cap` + `stop_sentinel` that fires real LLM turn each tick toward standing goal; loops persist across restarts; pause after 3 consecutive errors; spend-capped | `CLAUDE.md` Agent loop engine section |
327
- | golembot | Proactive task coordinator with result delivery; `ProactiveCoordinator` runs scheduled prompts through agent, captures streamed reply + cost + duration; records execution history; delivers results to target channels | `src/proactive.ts:30-159` |
328
-
329
- **Recommended adoption:** cline's cron scheduler as the foundation (TypeScript-native, SQLite-durable, resource-limited). Layer os-moda's autonomous loop engine for long-running autonomous FIDs. Layer golembot's proactive coordinator for autonomous background FIDs.
330
-
331
- **Impact:** Medium — enables overnight FID batches, scheduled re-audits, autonomous refactors
332
- **Effort:** High (cron module + loop engine + result delivery)
333
-
334
- ---
335
-
336
- ### 18. Loop / Stuck Detection
337
-
338
- Savant-Code's Perfection Loop can spin on the same fix.
339
-
340
- | Repo | Pattern | Source |
341
- |------|---------|--------|
342
- | ccg-workflow | Loop detection with break-loop protocol injection; tracks turns per (phase, nextAction); when same phase+nextAction repeats 3+ turns, injects `⚠️ LOOP DETECTED` warning with forced break-loop protocol | `templates/hooks/workflow-state.js:23-48` |
343
- | ctxlint | Session loop detection; flags 3+ consecutive identical commands or cyclic A,B,A,B patterns in session history | `README.md:90` |
344
- | LoopTroop | Ralph-style recovery loop with context wipe; on failure: log compact error trace, reset worktree, discard contaminated session, begin fresh run with clean context plus note from previous failures; repeats until tests pass or retry limits reached | `README.md:144-152`, `server/workflow/phases/beadsPhase.ts:69` |
345
-
346
- **Recommended adoption:** ccg-workflow's loop detection as the foundation. Layer ctxlint's cyclic-pattern detection. Layer LoopTroop's Ralph-style recovery (on Verifier rejection, Forge retries with fresh context window carrying only compact failure trace).
347
-
348
- **Impact:** Medium — detects stuck FIDs, forces Thinker re-analysis, prevents context drift
349
- **Effort:** Low for ccg-workflow; Medium for ctxlint; Medium for Ralph-style recovery
350
-
351
- ---
352
-
353
- ### 19. Output Filtering (Context Budget Preservation)
354
-
355
- | Repo | Pattern | Source |
356
- |------|---------|--------|
357
- | forge | Per-class Bash output filter; PostToolUse hook condenses verbose Bash output by command class: package-install keeps first 5 + warn/err + last 3; build keeps warn/err + last 3; git-diff keeps 100 lines/file; find keeps first 50 + last 10; curl keeps 1024 body bytes; 3-second safety timeout | `hooks/output-filter.js:1-100` |
358
- | forge | Test-output filter (failures + summary only); keeps failure blocks with 8 lines of context + summary tail (10 lines), drops passing-noise lines; 2000-char threshold, 3-second timeout | `hooks/test-output-filter.js:1-100` |
359
- | forge | Auto-backprop hook (PostToolUse → spec-gap detection → new AC + regression test); detects test failures; on failure, writes `.forge/.auto-backprop-pending.json` with failure context (capped 4000 bytes); stop-hook prepends backprop request to next prompt, traces bug to acceptance criterion that should have caught it, proposes tightened criterion, generates regression test | `hooks/auto-backprop.js:1-213` |
360
-
361
- **Recommended adoption:** forge's output filter + test-output filter (condense before context window). Layer auto-backprop for Verifier AUDIT (when test failure detected, automatically trace to FID acceptance criterion gap, propose tightened criterion, generate regression test).
362
-
363
- **Impact:** Medium — preserves context budget; closes loop between AUDIT failure and FID refinement
364
- **Effort:** Low for output filters; Medium for auto-backprop
365
-
366
- ---
367
-
368
- ### 20. Cross-Agent Shared Memory & Audit
369
-
370
- | Repo | Pattern | Source |
371
- |------|---------|--------|
372
- | imcodes | Managed MCP tool surface with runtime-bound identity; daemon-managed stdio MCP server exposes memory recall, agent-to-agent messaging, cron scheduling; every tool call bound to current session/project/user/server at runtime; agents cannot forge namespace, user, server, token, or routing fields | `README.md:100-109,181-184` |
373
- | imcodes | Supervised execution with idle-boundary completion classification; at each turn's idle boundary, supervisor classifies turn as `complete`/`continue`/`ask_human` then auto-dispatches next continue prompt; optional `supervised_audit` mode triggers audit/rework loop before returning control | `README.md:111-122,163-168` |
374
- | sidecar | Unified multi-agent conversation browser; 10 adapters (amp, claudecode, codex, copilot, cursor, geminicli, kiro, opencode, piagent, warp); `Plugin` struct aggregating `adapters map[string]adapter.Adapter` with session list state, message pagination, render-cache | `internal/plugins/conversations/plugin.go:25-100` |
375
-
376
- **Recommended adoption:** imcodes' runtime-bound identity for tool calls (bind tool calls to active FID so agent working on FID-A cannot write to FID-B's namespace). Layer imcodes' supervised execution (auto-continue Perfection Loop's GREEN→AUDIT→GREEN retry without human "continue" prompts). Layer sidecar's conversation browser for Scribe.
377
-
378
- **Impact:** Medium — FID-scoped tool isolation; reduces human-in-the-loop friction
379
- **Effort:** High for runtime-bound identity; Medium for supervised execution; High for conversation browser
380
-
381
- ---
382
-
383
- ### 21. Provider Status & Quota Management
384
-
385
- | Repo | Pattern | Source |
386
- |------|---------|--------|
387
- | models | Provider status registry with OfficialFirst strategy + fallback; `STATUS_REGISTRY` has 22 entries across 7 status-page platforms; each entry has `StatusStrategy::OfficialFirst { official, fallback_source_slug }` | `src/status/registry.rs:12-80` |
388
- | onwatch | Auto quota-starter; detects unstarted window; fires `SendStarterPing()` in goroutine; `allowStarterPing()` enforces rolling rate cap (max 5 pings per 4h per window); ping sends minimal request asking model to reply "Quota Resumed" (~62 tokens) | `internal/agent/codex_agent.go:20-32,88-190,245-275` |
389
- | onwatch | OAuth token rotation to bypass 429; when `FetchQuotas()` returns `ErrAnthropicRateLimited`, refreshes OAuth token (rate limits are per-access-token, not per-account); saves BOTH new access token AND new refresh token immediately | `internal/agent/anthropic_agent.go:241-256,458-615` |
390
-
391
- **Recommended adoption:** models' provider status registry as the Researcher's pre-FID check. Layer onwatch's auto quota-starter. Layer onwatch's OAuth token rotation (when provider 429s during FID, automatically rotate OAuth token for fresh rate-limit window).
392
-
393
- **Impact:** Medium — prevents FID stalls on provider quota issues; reduces 429 interruptions
394
- **Effort:** Medium for status registry; Medium for auto quota-starter; Medium for OAuth rotation
395
-
396
- ---
397
-
398
- ### 22. Portable Config & Overlay
399
-
400
- | Repo | Pattern | Source |
401
- |------|---------|--------|
402
- | claude-snapshot | Portable config tarball with `$HOME` path normalization; `normalizePaths` rewrites exporter's home dir to literal `$HOME` token; `resolvePaths` rewrites back on apply; `sanitizeSettings` rewrites nvm-pinned Node paths to bare `node`; every overwritten file backed up as `.bak` first | `src/snapshot.mjs:46-93` |
403
- | claude-overlay | Surgical config overlay with tracked managed keys; writes `.claude/provider-overlay.json` recording exactly which keys it manages; `merge` (enable) unions them into settings; `remove` (disable) subtracts only those keys — user's custom config never touched; `_atomic_write` writes to temp then `os.rename` (atomic), `chmod 0600` | `lib/engine.py:26-120` |
404
- | claude-overlay | `env:` prefix for secrets; config values starting with `env:` are read from named env var at runtime, so credentials never touch disk | `lib/engine.py:115-120` |
405
-
406
- **Recommended adoption:** claude-snapshot for Scribe (export/import full Savant-Code config as portable tarball for team onboarding). Layer claude-overlay for Orchestrator (let users swap LLM providers/model tiers without touching base `protocol.config.yaml`). Adopt claude-overlay's `env:` prefix convention for API keys.
407
-
408
- **Impact:** Medium — team onboarding, provider switching, secret hygiene
409
- **Effort:** Medium for snapshot; Medium for overlay; Low for `env:` prefix
410
-
411
- ---
412
-
413
- ## Tier 4: Novel / Worth Noting
414
-
415
- ### 23. Session Fork / Rewind / Side-Conversation
416
-
417
- | Repo | Pattern | Source |
418
- |------|---------|--------|
419
- | zero | `/btw` side-conversation fork; asks question in isolated session fork without adding side conversation to main session's context | `README.md:208` |
420
- | zero | `/rewind` session rollback; temporal undo of conversation + agent state (distinct from `/resume` which continues) | `README.md:207` |
421
- | pi-ralph | Steering queue; user messages during active loop queued, injected into next hat; `LoopState.steering: string[]`; pushed instead of interrupting; injected in `buildHatInjection()`, then cleared | `lib.ts:76,752-758` |
422
-
423
- **Recommended adoption:** zero's `/btw` for Orchestrator (let user ask "btw, why did Detective flag this file?" mid-FID without polluting FID transcript). Layer zero's `/rewind` for Orchestrator (rewind FID session to before bad Forge implementation, re-run GREEN from checkpoint). Layer pi-ralph's steering queue (queue user steering messages during FID's Perfection Loop, inject into next agent's prompt rather than interrupting mid-turn).
424
-
425
- **Impact:** Medium — better UX for interactive sessions; prevents context pollution
426
- **Effort:** Low for `/btw`; Medium for `/rewind`; Low for steering queue
427
-
428
- ---
429
-
430
- ### 24. Streaming DAG with AC-Level Dependency Granularity
431
-
432
- | Repo | Pattern | Source |
433
- |------|---------|--------|
434
- | forge | Streaming DAG with AC-level dependency granularity + witness-hash invalidation; extends task dependencies from task-level (`depends: [T003]`) to AC-level (`depends: [T001.R001.AC3]`); when upstream emits `ac-met` for an AC downstream needs, scheduler dispatches downstream provisionally in its own worktree; on `task-verified`, provisional promotes; if upstream regresses the AC (witness hash changes on verify), every downstream that consumed old witness is marked STALE and re-queued; safety caps: `maxProvisional=3` per chain, `maxFailuresBeforeFallback=2` | `scripts/forge-streaming-dag.cjs:1-80` |
435
-
436
- **Recommended adoption:** Orchestrator — FID-level dependency tracking with witness hashes so a regression in one FID invalidates only dependent FIDs, not the whole queue. Enables parallel FID execution with AC-level granularity.
437
-
438
- **Impact:** High novelty, Medium direct impact — enables fine-grained parallel FID execution
439
- **Effort:** High
440
-
441
- ---
442
-
443
- ### 25. Intent Capsules with Deterministic Drift Escalation
444
-
445
- | Repo | Pattern | Source |
446
- |------|---------|--------|
447
- | bernstein | Intent capsules; at approval time the goal is compiled into an intent capsule (allowed action classes, file-scope globs, permitted adapters, egress classes, cost-envelope, expiry) bound to audit chain; deterministic drift monitor maps observed journal events to action classes and compares against the capsule; on divergence emits a signed escalation receipt | `README.md:74` |
448
-
449
- **Recommended adoption:** Verifier AUDIT — prove a FID's execution stayed within its declared scope cryptographically. This is ECHO's FSM tool-gating taken further: not just "which phase allows which tools" but "did the agent actually stay within the FID's declared scope."
450
-
451
- **Impact:** High novelty, Medium direct impact — cryptographic proof of FID scope adherence
452
- **Effort:** High
453
-
454
- ---
455
-
456
- ### 26. Spec-to-Task-Graph with Requirement-Hash Lineage
457
-
458
- | Repo | Pattern | Source |
459
- |------|---------|--------|
460
- | bernstein | Spec-to-task-graph; three-stage pipeline: draft extracts EARS-shaped acceptance lines into content-addressed requirement set, approve binds the hash into audit chain, compile turns approved set into task graph as pure model-free transformation where each node is content-addressed over requirement lines | `README.md:88` |
461
-
462
- **Recommended adoption:** Recorder (FID phase) — make FID tasks content-addressable over requirement lines so post-approval edits break the chain visibly. This is a stronger FID integrity guarantee than the hash-chained ledger (item 1): it binds requirements to tasks cryptographically.
463
-
464
- **Impact:** High novelty, Medium direct impact — FID requirements become tamper-evident at the task level
465
- **Effort:** Medium
466
-
467
- ---
468
-
469
- ### 27. Build Probes & A/B Test Across Model Tiers
470
-
471
- | Repo | Pattern | Source |
472
- |------|---------|--------|
473
- | tokenwise | Build probes; at install time, runs two probes: (1) Routing probe — spawns probe Task at Haiku tier asking it to return "TOKENWISE_PROBE_OK", verifies model param took effect; if not, refuses to install; (2) Env-var probe — sets `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=80` and reads it back to verify env vars are honored | `skills/install/SKILL.md:35-44`, `README.md:250-256` |
474
- | tokenwise | A/B test across model tiers; `/tokenwise:ab "<task>"` runs same task on multiple tiers separately, diffs outputs, scores quality, writes report with recommendation | `README.md:153-159,199-215` |
475
- | tokenwise | Safety caps for model routing; Haiku never spawns further subagents; max spawn depth = 2; trivial-task floor: tasks under 100 chars with no file context run inline; input bump: if subagent context would exceed 30k tokens, escalate one tier | `README.md:69-74` |
476
-
477
- **Recommended adoption:** tokenwise's build probes for Orchestrator (on startup, probe LLM provider for known routing/config bugs before starting FIDs; refuse to start if broken). Layer A/B test across model tiers. Layer safety caps when routing FIDs to cheaper models.
478
-
479
- **Impact:** Medium novelty, Medium direct impact — prevents silent routing failures; validates model tier sufficiency
480
- **Effort:** Low for build probes; Medium for A/B test; Low for safety caps
481
-
482
- ---
483
-
484
- ### 28. Skill Mention Syntax with Collision Detection
485
-
486
- | Repo | Pattern | Source |
487
- |------|---------|--------|
488
- | codex | Skill mention syntax with collision detection; `core-skills/src/mention_counts.rs` builds exact + ASCII-lowercase name counts across all loaded skills, excluding disabled paths; `injection.rs` builds `SkillInjection { name, path, contents }` per turn based on `@skill-name` mentions in user input, with `InjectedHostSkillPrompts` dedup set | `codex-rs/core-skills/src/mention_counts.rs:8-23`, `injection.rs:71-80` |
489
- | octomind | Intent-driven skill activation via embedding model; skills describe what they're for; runtime matches user prompt against those descriptions and only loads matching skills; abstains on near-ties | `README.md:219-249` |
490
- | OpenHands | Microagents with frontmatter triggers; per-repo `.openhands/microagents/*.md` with optional frontmatter `triggers: [keyword1, keyword2]`; without frontmatter: always loaded; with triggers: only loaded when user's message matches trigger keyword | `AGENTS.md` Microagents section |
491
-
492
- **Recommended adoption:** codex's `@skill-name` mention syntax for CLI UX (`@coding-typescript` injects the skill body for Forge, `@release-workflow` for Recorder). Layer OpenHands' microagent frontmatter triggers. Layer octomind's embedding-based intent-driven activation for the advanced case.
493
-
494
- **Impact:** Medium novelty, Medium direct impact — reduces context bloat; enables many more skills without bloating every agent's system prompt
495
- **Effort:** Low for `@mention` syntax; Low for frontmatter triggers; High for embedding-based activation
496
-
497
- ---
498
-
499
- ## Savant-Code Differentiators to Preserve
500
-
501
- During adoption work, these unique strengths must be preserved:
502
-
503
- | Differentiator | Evidence |
504
- |---------------|----------|
505
- | **ECHO Protocol governance** | FID-bound Perfection Loop + 9-role separation of duties + 15 Laws |
506
- | **FID lifecycle** | Created → Analyzed → Fixed → Verified → Closed → Archived with Perfection Loop FSM running on the FID document |
507
- | **Hybrid Mode** | Orchestrator writes code directly for most tasks; FID-Bound Execution for complex tasks |
508
- | **Tool gating by FSM phase** | write tools GREEN-only, bash AUDIT-only, sequentialthinking Thinker-only |
509
- | **Cross-Agent Claim Rule** | Sub-agent claims must cite source paths; "Detective said X" is not a source |
510
- | **Free-tier model catalog** | `savant-free-models.ts` — MiniMax M3, DeepSeek V4, MiMo, Kimi, GLM, HY3 |
511
- | **Disciplined small roster** | 9 fixed, well-scoped agents vs. open-ended dynamic spawning |
512
- | **OpenTUI 0.2.2 + React 19** | Native terminal UI core with TypeScript bindings; already uses DiffRenderable, MarkdownRenderable, CodeRenderable, ScrollBoxRenderable, SelectRenderable, TabSelectRenderable, etc. |
513
-
514
- ---
515
-
516
- ## Prioritized Adoption Roadmap
517
-
518
- ### Phase 0 — FID Integrity Foundation (unblocks safe autonomous operation)
519
-
520
- 1. **Tamper-evident audit ledger** (item 1) — hash-chained SQLite ledger for every FID transition + tool call; `savant verify-ledger` CLI
521
- 2. **Git worktree-per-FID with rollback** (item 2) — each FID runs in isolated worktree; kagan's `Bun.hash` stable paths
522
- 3. **Git-ref checkpoints per Perfection Loop iteration** (item 3) — `refs/savant/checkpoints/{fidId}/{iteration}/`; AUDIT can `git reset` on test failure
523
- 4. **SpendMeter per-agent daily kill-switch** (item 4) — `state/spend.json`; refuse to invoke model if over cap; alerts at 80%/100%
524
-
525
- ### Phase 1 — Context & Memory
526
-
527
- 5. **Context compaction pipeline** (item 5) — goose's progressive compaction + SWE-agent's pluggable HistoryProcessor pipeline + entroly's Cache Aligner + hermes-agent's sacred-invariant rule
528
- 6. **Background memory pipeline** (item 6) — codex's 2-phase extraction → consolidation; agno's typed stores; spartan-ai-toolkit's 3-layer structure; os-moda's SKILLGEN loop
529
-
530
- ### Phase 2 — Safety & Intelligence
531
-
532
- 7. **Deterministic tool-call guardrails** (item 7) — zed's hardcoded floor + pi-steering-hooks' regex rules + codex's execpolicy + goose's adversary inspector
533
- 8. **Risk-tiered change classifier** (item 8) — great_cto's T0/T1/T2 auto-routing Hybrid vs FID-Bound; spec-critic; Explore-First; blueprint Q&A
534
- 9. **Code intelligence beyond tree-sitter** (item 9) — aider's PageRank + refact's LMDB back-links + refact's VecDB + reflex's trigram index + codesight's blast-radius + sourcebook's co-change
535
- 10. **Per-FID file scope enforcement** (item 13) — bernstein's owned_files allowlist + spartan-ai-toolkit's freeze mode + kagan's push protection
536
-
537
- ### Phase 3 — Orchestration & Autonomy
538
-
539
- 11. **Parallel execution & best-of-N** (item 10) — kimi-code's tool-call scheduler + bernstein's tournament runs + SWE-agent's AskColleagues + LoopTroop's LLM Council
540
- 12. **Goal/budget-bound Perfection Loop** (item 11) — kimi-code's Goal state machine + openclaude's Goal evaluator + pi-ralph's max_activations
541
- 13. **Hookable lifecycle events** (item 12) — codex's JSON Schema hooks + openase's failure policies + octomind's TOML guardrails
542
- 14. **Autonomous/scheduled execution** (item 17) — cline's cron scheduler + os-moda's autonomous loop engine + golembot's proactive coordinator
543
-
544
- ### Phase 4 — Quality & Review
545
-
546
- 15. **Code review format / PR packing** (item 14) — prpack's diff+full-file+adjacent-tests + four review-angle prompts + sourcebook's two-layer gate
547
- 16. **AGENTS.md linting & auto-generation** (item 15) — cc-audit's 12-rule linter + caliber's scoring + faf-cli's managed-block authoring
548
- 17. **LSP integration** (item 16) — kilocode's LSP client with `lsp.updated` events
549
- 18. **Loop/stuck detection** (item 18) — ccg-workflow's loop detection + ctxlint's cyclic patterns + LoopTroop's Ralph-style recovery
550
- 19. **Output filtering** (item 19) — forge's per-class Bash output filter + test-output filter + auto-backprop
551
-
552
- ### Phase 5 — Provider & UX Polish
553
-
554
- 20. **Provider status & quota management** (item 21) — models' status registry + onwatch's auto quota-starter + OAuth token rotation
555
- 21. **Portable config & overlay** (item 22) — claude-snapshot + claude-overlay + `env:` prefix
556
- 22. **Session fork/rewind/side-conversation** (item 23) — zero's `/btw` + `/rewind` + pi-ralph's steering queue
557
- 23. **Skill mention syntax & trigger-gated loading** (item 28) — codex's `@skill-name` + OpenHands' microagent frontmatter triggers
558
-
559
- ---
560
-
561
- ## Evidence Index
562
-
563
- ### Sub-Agent Reports (6 parallel `general` agents, path-cited per Cross-Agent Claim Rule)
564
-
565
- | Cluster | Repos Covered | Result |
566
- |---------|----------------|--------|
567
- | Coding Agents A | aider, cline, codex, continue, gemini-cli, goose, gpt-pilot, kilocode, kimi-code, opencode-dev, openclaw, OpenHands, refact, SWE-agent, tabby, TabNine, theia | 12 repos with novel features; 5 skipped (gpt-pilot unmaintained/compromised, opencode-dev upstream, openclaw not coding-focused, TabNine closed-source, theia IDE framework) |
568
- | Coding Agents B | agentify, anima, axon, bernstein, blueprint, butterfish, calibre, ccg-workflow, claude-task-master, Dorothy, entroly, hermes-agent, imcodes, LoopTroop, micro-agent, octomind, openagent, openase, ORCH, parallel-code, swarmclaw | 11 repos with novel features; 10 skipped |
569
- | Code Review + Context | baz-cli, cc-audit, claude-lens, claude-overlay, claude-snapshot, code-insights, codesight, ctxlint, faf-cli, git-lrc, Gito, gptcomet, grasp, great_cto, gritql, intelligence-sync, Jctx, minimax-code-review, potpie, pr-agent, pr-triage, prpack, zai-code-review, sidecar | 13 repos with novel features; 11 skipped |
570
- | Sandbox + Memory + Token | agenttier, agenttrace, brood-box, cc-tempo, claude-code-pro-pack, cmux, console, forge, iwe, kagan, models, onwatch, openclaude, openquack, os-moda, pi-ralph, pi-steering-hooks, Poirot, tokrepo, tokscale, tokenwise, WhereMyTokens, vibebox, spartan-ai-toolkit | 16 repos with novel features; 8 skipped |
571
- | Terminal/UI + Research | AionUi, antigravity-link-extension, cli (Shep), cmux, onUI, opentui, reflex, LynxPrompt, sourcebook, skill-optimizer, swarmvault, testdriver, tldraw, WrenAI, zed, awesome-code-docs, ai-coding-guide | 10 repos with novel features; 7 skipped |
572
- | Misc + Remaining | agno, ai-coding-guide, awesome-ai-startups, clave, golembot, issue-ai-agent, mirrord, os-moda, openase, openclaude, openclaw, opencode-dev, OpenSpec, opentui, zero, zed | 7 repos with novel features; 9 skipped |
573
-
574
- ### Orchestrator Spot-Verification (3 claims verified against actual source)
575
-
576
- 1. **os-moda ledger** — `crates/agentd/src/ledger.rs:1-50` read directly; `Event` struct, `GENESIS_PREV_HASH` all-zeros, WAL pragma, `synchronous=FULL` pragma all confirmed matching sub-agent report
577
- 2. **goose compaction** — `crates/goose/src/context_mgmt/mod.rs:227-256` read directly; `filter_tool_responses`, middle-out removal (`middle = tool_indices.len() / 2`, alternate left/right) confirmed matching sub-agent report
578
- 3. **cline checkpoints** — `sdk/packages/core/src/hooks/checkpoint-hooks.ts:1-20` read directly; `CheckpointEntry { ref, createdAt, runCount, kind? }`, `CheckpointMetadata { latest, history }` confirmed matching sub-agent report
579
-
580
- ### Source Repos
581
-
582
- `resources/{116 repos}/` at `C:\Users\spenc\dev\savant-code\resources\`
583
-
584
- ### Predecessor Reports
585
-
586
- - [`adoptable-features-master.md`](./adoptable-features-master.md) (2026-07-19, 16-repo scan, archived) — this document supersedes it for the 2026-07-25 scan
587
- - [`feature-parity-report.md`](./feature-parity-report.md) (2026-07-19, 16-repo product-first analysis)
588
- - [`docs/reports/repos/{16 repos}.md`](./repos/) (2026-07-19, per-repo feature inventories)
589
-
590
- ---
591
-
592
- ## Synthesis-Audit Note
593
-
594
- > **Added 2026-07-25.** This master synthesis is sourced from 6 parallel `general` sub-agent reports, each covering 16-24 repos with path-cited findings per the ECHO Cross-Agent Claim Rule (`ECHO.md:275-286`). The Orchestrator spot-verified 3 of the highest-impact claims against actual source (os-moda ledger, goose compaction, cline checkpoints — all confirmed).
595
- >
596
- > **Unverified claims remaining:** The remaining features are based on sub-agent reports that cite paths but the Orchestrator has not personally read every line. Per Cross-Agent Claim Rule (`ECHO.md:280-283`), before implementing any feature, re-verify the cited path against current source. Numbers and specific line ranges sourced from sub-agent analysis must be traceable to a record the implementer can grep, read, or query independently.
597
- >
598
- > **Repos intentionally skipped as not novel:** gpt-pilot (unmaintained, supply-chain compromised Aug 2025–Jun 2026), opencode-dev (Savant-Code's own upstream), openclaw (personal assistant, not coding-focused), TabNine (closed-source config only), theia (IDE framework, not an agent), ai-coding-guide/awesome-code-docs/awesome-ai-startups (content lists, not features), opentui (already a Savant-Code dependency), reflex's trigram index (overlaps with code-map, listed in item 9 for the lazy-parsing pattern only).
599
- >
600
- > **Recommendation:** Before Phase 0 work begins, run a fresh savant-code baseline pass (independent of this report) to catch any drift between the reports and the live codebase. Create a FID per feature, run the Perfection Loop (RED → GREEN → AUDIT → COMPLETE) on each before implementation.
601
-
602
- ---
603
-
604
- *End of master synthesis (2026-07-25).*