self-evolve-framework 1.6.0 → 1.6.1

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 (301) hide show
  1. package/README.md +33 -23
  2. package/bin/cli.js +24 -67
  3. package/package.json +1 -1
  4. package/template/rules/knowledge/README.md +56 -0
  5. package/template/rules/knowledge/ant-design-vue.mdc +54 -0
  6. package/template/rules/knowledge/general.mdc +56 -0
  7. package/template/rules/knowledge/rust.mdc +55 -0
  8. package/template/rules/knowledge/shadcn-svelte.mdc +64 -0
  9. package/template/rules/knowledge/svelte.mdc +135 -0
  10. package/template/rules/knowledge/tailwind.mdc +66 -0
  11. package/template/rules/knowledge/tauri.mdc +65 -0
  12. package/template/rules/knowledge/typescript.mdc +41 -0
  13. package/template/rules/knowledge/vue.mdc +48 -0
  14. package/template/rules/ponytail.mdc +23 -98
  15. package/template/rules/self-evolve.mdc +24 -0
  16. package/template/skills/impeccable/SKILL.md +47 -174
  17. package/template/skills/skillopt-sleep/SKILL.md +32 -88
  18. package/template/skills/impeccable/agents/impeccable_asset_producer.toml +0 -92
  19. package/template/skills/impeccable/agents/impeccable_manual_edit_applier.toml +0 -95
  20. package/template/skills/impeccable/agents/openai.yaml +0 -4
  21. package/template/skills/impeccable/reference/adapt.md +0 -311
  22. package/template/skills/impeccable/reference/animate.md +0 -201
  23. package/template/skills/impeccable/reference/audit.md +0 -133
  24. package/template/skills/impeccable/reference/bolder.md +0 -113
  25. package/template/skills/impeccable/reference/brand.md +0 -108
  26. package/template/skills/impeccable/reference/clarify.md +0 -288
  27. package/template/skills/impeccable/reference/codex.md +0 -105
  28. package/template/skills/impeccable/reference/colorize.md +0 -257
  29. package/template/skills/impeccable/reference/craft.md +0 -123
  30. package/template/skills/impeccable/reference/critique.md +0 -790
  31. package/template/skills/impeccable/reference/delight.md +0 -302
  32. package/template/skills/impeccable/reference/distill.md +0 -111
  33. package/template/skills/impeccable/reference/document.md +0 -429
  34. package/template/skills/impeccable/reference/extract.md +0 -69
  35. package/template/skills/impeccable/reference/harden.md +0 -347
  36. package/template/skills/impeccable/reference/hooks.md +0 -90
  37. package/template/skills/impeccable/reference/init.md +0 -172
  38. package/template/skills/impeccable/reference/interaction-design.md +0 -189
  39. package/template/skills/impeccable/reference/layout.md +0 -161
  40. package/template/skills/impeccable/reference/live.md +0 -720
  41. package/template/skills/impeccable/reference/onboard.md +0 -234
  42. package/template/skills/impeccable/reference/optimize.md +0 -258
  43. package/template/skills/impeccable/reference/overdrive.md +0 -130
  44. package/template/skills/impeccable/reference/polish.md +0 -241
  45. package/template/skills/impeccable/reference/product.md +0 -60
  46. package/template/skills/impeccable/reference/quieter.md +0 -99
  47. package/template/skills/impeccable/reference/shape.md +0 -165
  48. package/template/skills/impeccable/reference/typeset.md +0 -279
  49. package/template/skills/impeccable/scripts/command-metadata.json +0 -94
  50. package/template/skills/impeccable/scripts/context-signals.mjs +0 -225
  51. package/template/skills/impeccable/scripts/context.mjs +0 -961
  52. package/template/skills/impeccable/scripts/critique-storage.mjs +0 -242
  53. package/template/skills/impeccable/scripts/detect-csp.mjs +0 -198
  54. package/template/skills/impeccable/scripts/detect.mjs +0 -21
  55. package/template/skills/impeccable/scripts/detector/browser/injected/index.mjs +0 -1937
  56. package/template/skills/impeccable/scripts/detector/cli/main.mjs +0 -290
  57. package/template/skills/impeccable/scripts/detector/design-system.mjs +0 -750
  58. package/template/skills/impeccable/scripts/detector/detect-antipatterns-browser.js +0 -5138
  59. package/template/skills/impeccable/scripts/detector/detect-antipatterns.mjs +0 -50
  60. package/template/skills/impeccable/scripts/detector/engines/browser/detect-url.mjs +0 -277
  61. package/template/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs +0 -568
  62. package/template/skills/impeccable/scripts/detector/engines/static-html/css-cascade.mjs +0 -1015
  63. package/template/skills/impeccable/scripts/detector/engines/static-html/detect-html.mjs +0 -234
  64. package/template/skills/impeccable/scripts/detector/engines/visual/screenshot-contrast.mjs +0 -189
  65. package/template/skills/impeccable/scripts/detector/findings.mjs +0 -12
  66. package/template/skills/impeccable/scripts/detector/node/file-system.mjs +0 -198
  67. package/template/skills/impeccable/scripts/detector/profile/profiler.mjs +0 -166
  68. package/template/skills/impeccable/scripts/detector/registry/antipatterns.mjs +0 -448
  69. package/template/skills/impeccable/scripts/detector/rules/checks.mjs +0 -2671
  70. package/template/skills/impeccable/scripts/detector/shared/color.mjs +0 -124
  71. package/template/skills/impeccable/scripts/detector/shared/constants.mjs +0 -101
  72. package/template/skills/impeccable/scripts/detector/shared/inline-ignores.mjs +0 -148
  73. package/template/skills/impeccable/scripts/detector/shared/page.mjs +0 -7
  74. package/template/skills/impeccable/scripts/hook-admin.mjs +0 -661
  75. package/template/skills/impeccable/scripts/hook-before-edit.mjs +0 -476
  76. package/template/skills/impeccable/scripts/hook-lib.mjs +0 -1632
  77. package/template/skills/impeccable/scripts/hook.mjs +0 -61
  78. package/template/skills/impeccable/scripts/lib/design-parser.mjs +0 -842
  79. package/template/skills/impeccable/scripts/lib/impeccable-config.mjs +0 -638
  80. package/template/skills/impeccable/scripts/lib/impeccable-paths.mjs +0 -128
  81. package/template/skills/impeccable/scripts/lib/is-generated.mjs +0 -69
  82. package/template/skills/impeccable/scripts/lib/target-args.mjs +0 -42
  83. package/template/skills/impeccable/scripts/live/browser-script-parts.mjs +0 -49
  84. package/template/skills/impeccable/scripts/live/completion.mjs +0 -19
  85. package/template/skills/impeccable/scripts/live/event-validation.mjs +0 -137
  86. package/template/skills/impeccable/scripts/live/insert-ui.mjs +0 -458
  87. package/template/skills/impeccable/scripts/live/manual-apply.mjs +0 -939
  88. package/template/skills/impeccable/scripts/live/manual-edit-routes.mjs +0 -357
  89. package/template/skills/impeccable/scripts/live/manual-edits-buffer.mjs +0 -152
  90. package/template/skills/impeccable/scripts/live/session-store.mjs +0 -289
  91. package/template/skills/impeccable/scripts/live/svelte-component.mjs +0 -826
  92. package/template/skills/impeccable/scripts/live/sveltekit-adapter.mjs +0 -274
  93. package/template/skills/impeccable/scripts/live/ui-core.mjs +0 -180
  94. package/template/skills/impeccable/scripts/live/vocabulary.mjs +0 -36
  95. package/template/skills/impeccable/scripts/live-accept.mjs +0 -812
  96. package/template/skills/impeccable/scripts/live-browser-dom.js +0 -146
  97. package/template/skills/impeccable/scripts/live-browser-session.js +0 -123
  98. package/template/skills/impeccable/scripts/live-browser.js +0 -11173
  99. package/template/skills/impeccable/scripts/live-commit-manual-edits.mjs +0 -1241
  100. package/template/skills/impeccable/scripts/live-complete.mjs +0 -75
  101. package/template/skills/impeccable/scripts/live-copy-edit-agent.mjs +0 -683
  102. package/template/skills/impeccable/scripts/live-discard-manual-edits.mjs +0 -51
  103. package/template/skills/impeccable/scripts/live-inject.mjs +0 -583
  104. package/template/skills/impeccable/scripts/live-insert.mjs +0 -272
  105. package/template/skills/impeccable/scripts/live-manual-edit-evidence.mjs +0 -363
  106. package/template/skills/impeccable/scripts/live-poll.mjs +0 -384
  107. package/template/skills/impeccable/scripts/live-resume.mjs +0 -94
  108. package/template/skills/impeccable/scripts/live-server.mjs +0 -1135
  109. package/template/skills/impeccable/scripts/live-status.mjs +0 -61
  110. package/template/skills/impeccable/scripts/live-target.mjs +0 -30
  111. package/template/skills/impeccable/scripts/live-wrap.mjs +0 -894
  112. package/template/skills/impeccable/scripts/live.mjs +0 -297
  113. package/template/skills/impeccable/scripts/modern-screenshot.umd.js +0 -14
  114. package/template/skills/impeccable/scripts/palette.mjs +0 -633
  115. package/template/skills/impeccable/scripts/pin.mjs +0 -214
  116. package/template/skills/skillopt-sleep/configs/_base_/default.yaml +0 -103
  117. package/template/skills/skillopt-sleep/configs/alfworld/default.yaml +0 -29
  118. package/template/skills/skillopt-sleep/configs/docvqa/default.yaml +0 -28
  119. package/template/skills/skillopt-sleep/configs/features/soft_gate.yaml +0 -47
  120. package/template/skills/skillopt-sleep/configs/livemathematicianbench/default.yaml +0 -22
  121. package/template/skills/skillopt-sleep/configs/officeqa/default.yaml +0 -34
  122. package/template/skills/skillopt-sleep/configs/searchqa/default.yaml +0 -32
  123. package/template/skills/skillopt-sleep/configs/spreadsheetbench/default.yaml +0 -34
  124. package/template/skills/skillopt-sleep/scripts/framework/skillopt/__init__.py +0 -28
  125. package/template/skills/skillopt-sleep/scripts/framework/skillopt/config.py +0 -282
  126. package/template/skills/skillopt-sleep/scripts/framework/skillopt/datasets/__init__.py +0 -7
  127. package/template/skills/skillopt-sleep/scripts/framework/skillopt/datasets/base.py +0 -512
  128. package/template/skills/skillopt-sleep/scripts/framework/skillopt/engine/__init__.py +0 -9
  129. package/template/skills/skillopt-sleep/scripts/framework/skillopt/engine/trainer.py +0 -2379
  130. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/__init__.py +0 -1
  131. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/README.md +0 -43
  132. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/config_template.yaml +0 -55
  133. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/env_template.py +0 -151
  134. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/loader_template.py +0 -87
  135. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/__init__.py +0 -5
  136. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/adapter.py +0 -428
  137. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/dataloader.py +0 -123
  138. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/analyst_error.md +0 -55
  139. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/analyst_success.md +0 -33
  140. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/rollout_no_history.md +0 -8
  141. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/rollout_with_history.md +0 -9
  142. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/rollout_with_memory.md +0 -16
  143. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/reflect.py +0 -4
  144. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/rollout.py +0 -366
  145. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/skills/initial.md +0 -45
  146. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/__init__.py +0 -9
  147. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/alfworld_envs.py +0 -221
  148. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/alfworld_projection.py +0 -60
  149. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/alfworld_prompts.py +0 -8
  150. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/config_tw.yaml +0 -145
  151. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/env_base.py +0 -84
  152. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/env_manager.py +0 -139
  153. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/memory.py +0 -87
  154. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/base.py +0 -329
  155. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/__init__.py +0 -1
  156. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/adapter.py +0 -90
  157. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/dataloader.py +0 -61
  158. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/evaluator.py +0 -113
  159. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/prompts/analyst_error.md +0 -35
  160. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/prompts/analyst_success.md +0 -24
  161. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/prompts/rollout_system.md +0 -12
  162. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/rollout.py +0 -391
  163. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/skills/initial.md +0 -11
  164. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/__init__.py +0 -1
  165. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/adapter.py +0 -129
  166. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/dataloader.py +0 -308
  167. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/evaluator.py +0 -62
  168. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/prompts/analyst_error.md +0 -37
  169. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/prompts/analyst_success.md +0 -25
  170. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/prompts/rollout_system.md +0 -12
  171. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/reflect.py +0 -4
  172. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/rollout.py +0 -434
  173. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/skills/initial.md +0 -16
  174. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/__init__.py +0 -1
  175. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/adapter.py +0 -112
  176. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/dataloader.py +0 -71
  177. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/evaluator.py +0 -46
  178. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/prompts/analyst_error.md +0 -37
  179. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/prompts/analyst_success.md +0 -25
  180. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/prompts/rollout_system.md +0 -15
  181. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/rollout.py +0 -799
  182. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/skills/initial.md +0 -15
  183. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/tool_runtime.py +0 -552
  184. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/__init__.py +0 -1
  185. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/adapter.py +0 -96
  186. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/dataloader.py +0 -42
  187. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/evaluator.py +0 -100
  188. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/prompts/analyst_error.md +0 -46
  189. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/prompts/analyst_success.md +0 -32
  190. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/prompts/rollout_system.md +0 -13
  191. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/reflect.py +0 -4
  192. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/rollout.py +0 -494
  193. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/skills/initial.md +0 -3
  194. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/__init__.py +0 -5
  195. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/adapter.py +0 -159
  196. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/codegen_agent.py +0 -731
  197. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/dataloader.py +0 -37
  198. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/evaluator.py +0 -158
  199. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/executor.py +0 -67
  200. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/analyst_error.md +0 -46
  201. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/analyst_success.md +0 -32
  202. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/codegen_system.md +0 -1
  203. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/critical_rules.md +0 -9
  204. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/react_system.md +0 -21
  205. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/react_agent.py +0 -395
  206. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/reflect.py +0 -4
  207. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/rollout.py +0 -979
  208. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/skills/initial.md +0 -56
  209. package/template/skills/skillopt-sleep/scripts/framework/skillopt/evaluation/__init__.py +0 -13
  210. package/template/skills/skillopt-sleep/scripts/framework/skillopt/evaluation/gate.py +0 -148
  211. package/template/skills/skillopt-sleep/scripts/framework/skillopt/gradient/__init__.py +0 -15
  212. package/template/skills/skillopt-sleep/scripts/framework/skillopt/gradient/aggregate.py +0 -253
  213. package/template/skills/skillopt-sleep/scripts/framework/skillopt/gradient/reflect.py +0 -635
  214. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/__init__.py +0 -514
  215. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/azure_openai.py +0 -915
  216. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/backend_config.py +0 -185
  217. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/claude_backend.py +0 -371
  218. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/codex_backend.py +0 -666
  219. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/codex_harness.py +0 -1057
  220. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/common.py +0 -229
  221. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/minimax_backend.py +0 -277
  222. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/qwen_backend.py +0 -456
  223. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/router.py +0 -236
  224. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/__init__.py +0 -15
  225. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/appendix.py +0 -156
  226. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/clip.py +0 -109
  227. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/lr_autonomous.py +0 -108
  228. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/meta_skill.py +0 -79
  229. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/rewrite.py +0 -59
  230. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/scheduler.py +0 -127
  231. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/select.py +0 -4
  232. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/skill.py +0 -201
  233. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/skill_aware.py +0 -206
  234. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/slow_update.py +0 -396
  235. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/update_modes.py +0 -135
  236. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/__init__.py +0 -63
  237. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_error.md +0 -41
  238. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_error_full_rewrite.md +0 -32
  239. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_error_rewrite.md +0 -44
  240. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_success.md +0 -36
  241. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_success_full_rewrite.md +0 -30
  242. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_success_rewrite.md +0 -33
  243. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/lr_autonomous.md +0 -20
  244. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_failure.md +0 -30
  245. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_failure_full_rewrite.md +0 -28
  246. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_failure_rewrite.md +0 -26
  247. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_final.md +0 -33
  248. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_final_full_rewrite.md +0 -28
  249. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_final_rewrite.md +0 -25
  250. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_success.md +0 -28
  251. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_success_full_rewrite.md +0 -28
  252. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_success_rewrite.md +0 -25
  253. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/meta_skill.md +0 -40
  254. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/ranking.md +0 -20
  255. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/ranking_rewrite.md +0 -15
  256. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/rewrite_skill.md +0 -25
  257. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/slow_update.md +0 -60
  258. package/template/skills/skillopt-sleep/scripts/framework/skillopt/scheduler/__init__.py +0 -8
  259. package/template/skills/skillopt-sleep/scripts/framework/skillopt/types.py +0 -306
  260. package/template/skills/skillopt-sleep/scripts/framework/skillopt/utils/__init__.py +0 -4
  261. package/template/skills/skillopt-sleep/scripts/framework/skillopt/utils/json_utils.py +0 -172
  262. package/template/skills/skillopt-sleep/scripts/framework/skillopt/utils/scoring.py +0 -28
  263. package/template/skills/skillopt-sleep/scripts/python/__init__.py +0 -20
  264. package/template/skills/skillopt-sleep/scripts/python/__main__.py +0 -343
  265. package/template/skills/skillopt-sleep/scripts/python/backend.py +0 -1371
  266. package/template/skills/skillopt-sleep/scripts/python/budget.py +0 -75
  267. package/template/skills/skillopt-sleep/scripts/python/config.py +0 -162
  268. package/template/skills/skillopt-sleep/scripts/python/consolidate.py +0 -238
  269. package/template/skills/skillopt-sleep/scripts/python/cycle.py +0 -291
  270. package/template/skills/skillopt-sleep/scripts/python/dream.py +0 -138
  271. package/template/skills/skillopt-sleep/scripts/python/experiments/__init__.py +0 -1
  272. package/template/skills/skillopt-sleep/scripts/python/experiments/gbrain_bench.py +0 -119
  273. package/template/skills/skillopt-sleep/scripts/python/experiments/personas.py +0 -86
  274. package/template/skills/skillopt-sleep/scripts/python/experiments/report.py +0 -132
  275. package/template/skills/skillopt-sleep/scripts/python/experiments/run_experiment.py +0 -178
  276. package/template/skills/skillopt-sleep/scripts/python/experiments/run_gbrain.py +0 -209
  277. package/template/skills/skillopt-sleep/scripts/python/experiments/run_transfer.py +0 -155
  278. package/template/skills/skillopt-sleep/scripts/python/experiments/sweep.py +0 -164
  279. package/template/skills/skillopt-sleep/scripts/python/gate.py +0 -50
  280. package/template/skills/skillopt-sleep/scripts/python/harvest.py +0 -304
  281. package/template/skills/skillopt-sleep/scripts/python/harvest_codex.py +0 -253
  282. package/template/skills/skillopt-sleep/scripts/python/harvest_sources.py +0 -41
  283. package/template/skills/skillopt-sleep/scripts/python/judges.py +0 -84
  284. package/template/skills/skillopt-sleep/scripts/python/llm_miner.py +0 -134
  285. package/template/skills/skillopt-sleep/scripts/python/memory.py +0 -129
  286. package/template/skills/skillopt-sleep/scripts/python/mine.py +0 -312
  287. package/template/skills/skillopt-sleep/scripts/python/replay.py +0 -146
  288. package/template/skills/skillopt-sleep/scripts/python/rollout.py +0 -153
  289. package/template/skills/skillopt-sleep/scripts/python/scheduler.py +0 -138
  290. package/template/skills/skillopt-sleep/scripts/python/slow_update.py +0 -142
  291. package/template/skills/skillopt-sleep/scripts/python/staging.py +0 -103
  292. package/template/skills/skillopt-sleep/scripts/python/state.py +0 -96
  293. package/template/skills/skillopt-sleep/scripts/python/tasks_file.py +0 -81
  294. package/template/skills/skillopt-sleep/scripts/python/types.py +0 -146
  295. package/template/skills/skillopt-sleep/scripts/shell/__init__.py +0 -0
  296. package/template/skills/skillopt-sleep/scripts/shell/eval_only.py +0 -466
  297. package/template/skills/skillopt-sleep/scripts/shell/materialize_searchqa.py +0 -148
  298. package/template/skills/skillopt-sleep/scripts/shell/run_alfworld.sh +0 -60
  299. package/template/skills/skillopt-sleep/scripts/shell/run_searchqa.sh +0 -40
  300. package/template/skills/skillopt-sleep/scripts/shell/run_spreadsheetbench.sh +0 -39
  301. package/template/skills/skillopt-sleep/scripts/shell/train.py +0 -556
@@ -1,306 +0,0 @@
1
- """Standardized I/O types for the ReflACT pipeline.
2
-
3
- Shared dataclass definitions for the 6-stage per-step pipeline
4
- and the 2 epoch-level stages. All types support round-trip
5
- conversion to/from plain dicts for incremental adoption.
6
-
7
- Re-exports
8
- ----------
9
- GateResult, GateAction — from skillopt.evaluation.gate
10
- BatchSpec — from skillopt.datasets.base
11
- """
12
- from __future__ import annotations
13
-
14
- from dataclasses import dataclass, field, fields as dc_fields
15
- from typing import Any, Literal
16
-
17
- from skillopt.evaluation.gate import GateAction, GateResult # noqa: F401
18
- from skillopt.datasets.base import BatchSpec # noqa: F401
19
-
20
-
21
- # ── Atomic types ─────────────────────────────────────────────────────────
22
-
23
- EditOp = Literal["append", "insert_after", "replace", "delete"]
24
-
25
-
26
- @dataclass
27
- class Edit:
28
- """A single edit operation on a skill document.
29
-
30
- Used across Reflect → Aggregate → Select → Update → MetaReflect.
31
- """
32
-
33
- op: EditOp
34
- content: str = ""
35
- target: str = ""
36
- support_count: int | None = None
37
- source_type: Literal["failure", "success"] | None = None
38
- merge_level: int | None = None
39
- update_origin: str = ""
40
- update_target: str = ""
41
-
42
- @classmethod
43
- def from_dict(cls, d: dict) -> Edit:
44
- return cls(
45
- op=d.get("op", "append"),
46
- content=d.get("content", ""),
47
- target=d.get("target", ""),
48
- support_count=d.get("support_count"),
49
- source_type=d.get("source_type"),
50
- merge_level=d.get("merge_level"),
51
- update_origin=d.get("update_origin", ""),
52
- update_target=d.get("update_target", ""),
53
- )
54
-
55
- def to_dict(self) -> dict:
56
- d: dict[str, Any] = {"op": self.op, "content": self.content}
57
- if self.target:
58
- d["target"] = self.target
59
- if self.support_count is not None:
60
- d["support_count"] = self.support_count
61
- if self.source_type is not None:
62
- d["source_type"] = self.source_type
63
- if self.merge_level is not None:
64
- d["merge_level"] = self.merge_level
65
- if self.update_origin:
66
- d["update_origin"] = self.update_origin
67
- if self.update_target:
68
- d["update_target"] = self.update_target
69
- return d
70
-
71
-
72
- @dataclass
73
- class Patch:
74
- """A set of edits with reasoning.
75
-
76
- Output of Aggregate (③), Select (④); input to Update (⑤).
77
- """
78
-
79
- edits: list[Edit] = field(default_factory=list)
80
- reasoning: str = ""
81
- ranking_details: dict[str, Any] | None = None
82
-
83
- @classmethod
84
- def from_dict(cls, d: dict) -> Patch:
85
- edits_raw = d.get("edits", [])
86
- return cls(
87
- edits=[Edit.from_dict(e) if isinstance(e, dict) else e for e in edits_raw],
88
- reasoning=d.get("reasoning", ""),
89
- ranking_details=d.get("ranking_details"),
90
- )
91
-
92
- def to_dict(self) -> dict:
93
- d: dict[str, Any] = {
94
- "reasoning": self.reasoning,
95
- "edits": [e.to_dict() if isinstance(e, Edit) else e for e in self.edits],
96
- }
97
- if self.ranking_details is not None:
98
- d["ranking_details"] = self.ranking_details
99
- return d
100
-
101
-
102
- # ── Stage ① ROLLOUT ──────────────────────────────────────────────────────
103
-
104
- @dataclass
105
- class RolloutResult:
106
- """Result of a single episode/task rollout.
107
-
108
- Universal fields are required; env-specific fields live in ``extras``.
109
- """
110
-
111
- id: str
112
- hard: int
113
- soft: float
114
- n_turns: int = 0
115
- fail_reason: str = ""
116
- task_type: str = ""
117
- task_description: str = ""
118
- predicted_answer: str = ""
119
- question: str = ""
120
- reference_text: str = ""
121
- target_system_prompt: str = ""
122
- target_user_prompt: str = ""
123
- spreadsheet_preview: str = ""
124
- extras: dict[str, Any] = field(default_factory=dict)
125
-
126
- _KNOWN_FIELDS: frozenset[str] | None = field(
127
- default=None, init=False, repr=False, compare=False, # type: ignore[assignment]
128
- )
129
-
130
- @classmethod
131
- def _get_known_fields(cls) -> frozenset[str]:
132
- if cls._KNOWN_FIELDS is None:
133
- cls._KNOWN_FIELDS = frozenset(
134
- f.name for f in dc_fields(cls)
135
- if f.name != "_KNOWN_FIELDS"
136
- )
137
- return cls._KNOWN_FIELDS
138
-
139
- @classmethod
140
- def from_dict(cls, d: dict) -> RolloutResult:
141
- known = cls._get_known_fields()
142
- extras = {k: v for k, v in d.items() if k not in known}
143
- return cls(
144
- id=str(d.get("id", "")),
145
- hard=int(d.get("hard", 0)),
146
- soft=float(d.get("soft", 0.0)),
147
- n_turns=int(d.get("n_turns", 0)),
148
- fail_reason=str(d.get("fail_reason", "")),
149
- task_type=str(d.get("task_type", "")),
150
- task_description=str(d.get("task_description", "")),
151
- predicted_answer=str(d.get("predicted_answer", "")),
152
- question=str(d.get("question", "")),
153
- reference_text=str(d.get("reference_text", "")),
154
- target_system_prompt=str(d.get("target_system_prompt", "")),
155
- target_user_prompt=str(d.get("target_user_prompt", "")),
156
- spreadsheet_preview=str(d.get("spreadsheet_preview", "")),
157
- extras=extras,
158
- )
159
-
160
- def to_dict(self) -> dict:
161
- d: dict[str, Any] = {
162
- "id": self.id,
163
- "hard": self.hard,
164
- "soft": self.soft,
165
- }
166
- for attr in (
167
- "n_turns", "fail_reason", "task_type", "task_description",
168
- "predicted_answer", "question", "reference_text",
169
- "target_system_prompt", "target_user_prompt",
170
- "spreadsheet_preview",
171
- ):
172
- val = getattr(self, attr)
173
- if val:
174
- d[attr] = val
175
- d.update(self.extras)
176
- return d
177
-
178
-
179
- # ── Stage ② REFLECT ──────────────────────────────────────────────────────
180
-
181
- @dataclass
182
- class FailureSummaryEntry:
183
- """One entry in the failure summary produced by error analysts."""
184
-
185
- failure_type: str
186
- count: int = 0
187
- description: str = ""
188
-
189
- @classmethod
190
- def from_dict(cls, d: dict) -> FailureSummaryEntry:
191
- return cls(
192
- failure_type=d.get("failure_type", ""),
193
- count=int(d.get("count", 0)),
194
- description=d.get("description", ""),
195
- )
196
-
197
- def to_dict(self) -> dict:
198
- return {
199
- "failure_type": self.failure_type,
200
- "count": self.count,
201
- "description": self.description,
202
- }
203
-
204
-
205
- @dataclass
206
- class RawPatch:
207
- """Analyst output from the Reflect stage — a patch with provenance.
208
-
209
- Wraps the dict produced by ``run_error_analyst_minibatch``
210
- and ``run_success_analyst_minibatch``.
211
- """
212
-
213
- patch: Patch
214
- source_type: Literal["failure", "success"] = "failure"
215
- batch_size: int = 0
216
- failure_summary: list[FailureSummaryEntry] = field(default_factory=list)
217
-
218
- @classmethod
219
- def from_dict(cls, d: dict | None) -> RawPatch | None:
220
- if d is None:
221
- return None
222
- inner = d.get("patch", d)
223
- if not isinstance(inner, dict):
224
- return None
225
- patch = Patch.from_dict(inner)
226
- return cls(
227
- patch=patch,
228
- source_type=d.get("source_type", "failure"),
229
- batch_size=int(d.get("batch_size", 0)),
230
- failure_summary=[
231
- FailureSummaryEntry.from_dict(fs)
232
- for fs in d.get("failure_summary", [])
233
- ],
234
- )
235
-
236
- def to_dict(self) -> dict:
237
- d: dict[str, Any] = {
238
- "patch": self.patch.to_dict(),
239
- "source_type": self.source_type,
240
- "batch_size": self.batch_size,
241
- }
242
- if self.failure_summary:
243
- d["failure_summary"] = [fs.to_dict() for fs in self.failure_summary]
244
- return d
245
-
246
-
247
- # ── Epoch-level: SLOW_UPDATE ─────────────────────────────────────────────
248
-
249
- @dataclass
250
- class SlowUpdateResult:
251
- """Output of the epoch-level slow update stage (EMA / regularization)."""
252
-
253
- reasoning: str = ""
254
- slow_update_content: str = ""
255
- action: str = ""
256
- time_s: float | None = None
257
- prev_hard: float | None = None
258
- curr_hard: float | None = None
259
- selection_hard: float | None = None
260
- selection_soft: float | None = None
261
- candidate_hash: str = ""
262
- update_origin: str = ""
263
- update_target: str = ""
264
-
265
- @classmethod
266
- def from_dict(cls, d: dict | None) -> SlowUpdateResult | None:
267
- if d is None:
268
- return None
269
- return cls(
270
- reasoning=d.get("reasoning", ""),
271
- slow_update_content=d.get("slow_update_content", ""),
272
- action=d.get("action", ""),
273
- time_s=d.get("time_s"),
274
- prev_hard=d.get("prev_hard"),
275
- curr_hard=d.get("curr_hard"),
276
- selection_hard=d.get("selection_hard"),
277
- selection_soft=d.get("selection_soft"),
278
- candidate_hash=d.get("candidate_hash", ""),
279
- update_origin=d.get("update_origin", ""),
280
- update_target=d.get("update_target", ""),
281
- )
282
-
283
- def to_dict(self) -> dict:
284
- d: dict[str, Any] = {
285
- "reasoning": self.reasoning,
286
- "slow_update_content": self.slow_update_content,
287
- }
288
- if self.action:
289
- d["action"] = self.action
290
- if self.time_s is not None:
291
- d["time_s"] = self.time_s
292
- if self.prev_hard is not None:
293
- d["prev_hard"] = self.prev_hard
294
- if self.curr_hard is not None:
295
- d["curr_hard"] = self.curr_hard
296
- if self.selection_hard is not None:
297
- d["selection_hard"] = self.selection_hard
298
- if self.selection_soft is not None:
299
- d["selection_soft"] = self.selection_soft
300
- if self.candidate_hash:
301
- d["candidate_hash"] = self.candidate_hash
302
- if self.update_origin:
303
- d["update_origin"] = self.update_origin
304
- if self.update_target:
305
- d["update_target"] = self.update_target
306
- return d
@@ -1,4 +0,0 @@
1
- """ReflACT utilities — JSON extraction, scoring, hashing."""
2
-
3
- from skillopt.utils.json_utils import extract_json, extract_json_array # noqa: F401
4
- from skillopt.utils.scoring import compute_score, skill_hash # noqa: F401
@@ -1,172 +0,0 @@
1
- """JSON extraction helpers for LLM responses."""
2
- from __future__ import annotations
3
-
4
- import json
5
- import re
6
- import warnings
7
-
8
-
9
- def _top_level_brace_objects(text: str) -> list[str]:
10
- """Return every balanced *top-level* ``{...}`` span in ``text``.
11
-
12
- Fully string/escape aware: braces inside quoted strings are ignored both
13
- when scanning for an object start AND while tracking depth inside one, so a
14
- ``{`` that appears in prose (e.g. ``'set it to {x}'``) is never mistaken for
15
- the start of a JSON object. Used to detect ambiguity: when a response carries
16
- more than one top-level object we must not let a repair pass silently pick
17
- one — it may pick the wrong (discarded) edit, strictly worse than None.
18
- """
19
- spans: list[str] = []
20
- i, n = 0, len(text)
21
- outer_in_str = False
22
- outer_esc = False
23
- while i < n:
24
- ch = text[i]
25
- # Skip over braces that live *inside* a quoted string before any object
26
- # has started — otherwise a `{` in prose like '"set it to {x}"' is wrongly
27
- # treated as an object start, and the repair pass below turns non-JSON
28
- # prose into a bogus dict (strictly worse than returning None).
29
- if outer_in_str:
30
- if outer_esc:
31
- outer_esc = False
32
- elif ch == "\\":
33
- outer_esc = True
34
- elif ch == '"':
35
- outer_in_str = False
36
- i += 1
37
- continue
38
- if ch == '"':
39
- outer_in_str = True
40
- i += 1
41
- continue
42
- if ch != "{":
43
- i += 1
44
- continue
45
- depth = 0
46
- in_str = False
47
- esc = False
48
- start = i
49
- while i < n:
50
- ch = text[i]
51
- if in_str:
52
- if esc:
53
- esc = False
54
- elif ch == "\\":
55
- esc = True
56
- elif ch == '"':
57
- in_str = False
58
- elif ch == '"':
59
- in_str = True
60
- elif ch == "{":
61
- depth += 1
62
- elif ch == "}":
63
- depth -= 1
64
- if depth == 0:
65
- spans.append(text[start:i + 1])
66
- i += 1
67
- break
68
- i += 1
69
- else:
70
- break # unterminated final object
71
- return spans
72
-
73
-
74
- def _looks_json_like(span: str) -> bool:
75
- """Heuristic: does ``span`` look like an intended JSON object (vs. prose)?
76
-
77
- A genuine JSON object's first non-space character after ``{`` is either ``"``
78
- (a string key) or ``}`` (an empty object). Prose pseudo-objects that the
79
- repair pass would otherwise fabricate into bogus dicts — ``{op: delete}``,
80
- ``{x: 1}`` quoted in single quotes or backticks, etc. — start with a bare
81
- word and are rejected. This complements the string-aware scan, which only
82
- skips *double*-quoted prose; single-quoted / backticked / unquoted prose
83
- braces are caught here instead. Legitimate repair targets (trailing commas,
84
- unescaped quotes inside string values) all begin with ``"`` and pass.
85
- """
86
- inner = span.strip()
87
- if not (inner.startswith("{") and inner.endswith("}")):
88
- return False
89
- after_brace = inner[1:].lstrip()
90
- return after_brace[:1] in ('"', '}')
91
-
92
-
93
- def extract_json(text: str) -> dict | None:
94
- """Extract a JSON object from LLM response text.
95
-
96
- Tries ```json fences first, then bare {...} patterns.
97
- """
98
- m = re.search(r"```json\s*(.*?)```", text, re.DOTALL)
99
- if m:
100
- try:
101
- return json.loads(m.group(1))
102
- except json.JSONDecodeError:
103
- pass
104
- m = re.search(r"\{.*\}", text, re.DOTALL)
105
- if m:
106
- try:
107
- return json.loads(m.group(0))
108
- except json.JSONDecodeError:
109
- pass
110
- # Tolerant fallback for non-OpenAI backends (Claude/Qwen, …) whose free-form
111
- # JSON strict json.loads rejects — unescaped ASCII quotes inside CJK string
112
- # values, trailing commas, etc. Repair so the analyst's edits aren't silently
113
- # dropped, but ONLY a single unambiguous object: never feed the greedy `{.*}`
114
- # span or the raw text, or json_repair would quietly return one of several
115
- # objects (empirically the wrong/last one) — strictly worse than None, which
116
- # the caller can detect and retry/skip.
117
- #
118
- # Pick the candidate FIRST, before importing json_repair, so the optional
119
- # dependency only matters (and only warns) when there is genuinely a single
120
- # malformed object we could have repaired. Ordinary no-JSON / prose replies
121
- # have no candidate and return None silently.
122
- candidate = None
123
- fenced = re.search(r"```json\s*(.*?)```", text, re.DOTALL)
124
- if fenced and len(_top_level_brace_objects(fenced.group(1))) == 1:
125
- candidate = fenced.group(1)
126
- else:
127
- objs = _top_level_brace_objects(text)
128
- if len(objs) == 1:
129
- candidate = objs[0]
130
- # 0 or >1 top-level objects → too ambiguous to repair safely → None
131
- if not candidate:
132
- return None
133
- # Final guard: only repair spans that actually look like an intended JSON
134
- # object. Prose pseudo-objects in single quotes / backticks / bare text
135
- # (e.g. `{op: delete}`) reach here because the scan only skips double-quoted
136
- # prose; repairing them would fabricate a wrong dict (worse than None).
137
- if not _looks_json_like(candidate):
138
- return None
139
- try:
140
- from json_repair import repair_json
141
- except ModuleNotFoundError:
142
- warnings.warn(
143
- "json_repair not installed; malformed-JSON recovery disabled — "
144
- "a non-OpenAI analyst edit may be silently dropped. pip install json_repair",
145
- RuntimeWarning,
146
- stacklevel=2,
147
- )
148
- return None
149
- try:
150
- repaired = repair_json(candidate, return_objects=True)
151
- if isinstance(repaired, dict) and repaired:
152
- return repaired
153
- except Exception: # noqa: BLE001 — repair is best-effort
154
- pass
155
- return None
156
-
157
-
158
- def extract_json_array(text: str) -> list | None:
159
- """Extract a JSON array from LLM response text."""
160
- m = re.search(r"```json\s*(.*?)```", text, re.DOTALL)
161
- if m:
162
- try:
163
- return json.loads(m.group(1))
164
- except json.JSONDecodeError:
165
- pass
166
- m = re.search(r"\[.*\]", text, re.DOTALL)
167
- if m:
168
- try:
169
- return json.loads(m.group(0))
170
- except json.JSONDecodeError:
171
- pass
172
- return None
@@ -1,28 +0,0 @@
1
- """Scoring and hashing utilities."""
2
- from __future__ import annotations
3
-
4
- import hashlib
5
-
6
-
7
- def compute_score(results: list) -> tuple[float, float]:
8
- """Compute hard and soft accuracy from a list of episode results.
9
-
10
- Accepts both plain dicts and :class: instances. hard may be continuous (0.0-1.0) when using smoothed reward.
11
- """
12
- if not results:
13
- return 0.0, 0.0
14
-
15
- def _hard(r: object) -> float:
16
- return float(r.hard if hasattr(r, "hard") else r.get("hard", 0))
17
-
18
- def _soft(r: object) -> float:
19
- return float(r.soft if hasattr(r, "soft") else r.get("soft", 0.0))
20
-
21
- hard = sum(_hard(r) for r in results) / len(results)
22
- soft = sum(_soft(r) for r in results) / len(results)
23
- return hard, soft
24
-
25
-
26
- def skill_hash(content: str) -> str:
27
- """Return a short deterministic hash of skill content (for caching)."""
28
- return hashlib.sha256(content.encode()).hexdigest()[:16]
@@ -1,20 +0,0 @@
1
- """SkillOpt-Sleep — nightly offline self-evolution for a local Claude agent.
2
-
3
- A Claude Code plugin engine that gives a user's agent a "sleep cycle":
4
- harvest the day's real session transcripts, mine recurring tasks, replay
5
- them offline, and consolidate short-term experience into long-term memory
6
- (CLAUDE.md) and skills (SKILL.md) behind a SkillOpt validation gate.
7
-
8
- Synthesizes three ideas:
9
- * SkillOpt — validation-gated bounded text optimization (this repo)
10
- * Dreams — offline memory consolidation, input never mutated
11
- * Sleep — short-term experience -> long-term competence, offline
12
-
13
- Public entry points:
14
- * skillopt_sleep.cli — `python -m skillopt_sleep ...`
15
- * skillopt_sleep.cycle.run_sleep_cycle(...)
16
- """
17
- from __future__ import annotations
18
-
19
- __all__ = ["__version__"]
20
- __version__ = "0.1.0"