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.
- package/README.md +33 -23
- package/bin/cli.js +24 -67
- package/package.json +1 -1
- package/template/rules/knowledge/README.md +56 -0
- package/template/rules/knowledge/ant-design-vue.mdc +54 -0
- package/template/rules/knowledge/general.mdc +56 -0
- package/template/rules/knowledge/rust.mdc +55 -0
- package/template/rules/knowledge/shadcn-svelte.mdc +64 -0
- package/template/rules/knowledge/svelte.mdc +135 -0
- package/template/rules/knowledge/tailwind.mdc +66 -0
- package/template/rules/knowledge/tauri.mdc +65 -0
- package/template/rules/knowledge/typescript.mdc +41 -0
- package/template/rules/knowledge/vue.mdc +48 -0
- package/template/rules/ponytail.mdc +23 -98
- package/template/rules/self-evolve.mdc +24 -0
- package/template/skills/impeccable/SKILL.md +47 -174
- package/template/skills/skillopt-sleep/SKILL.md +32 -88
- package/template/skills/impeccable/agents/impeccable_asset_producer.toml +0 -92
- package/template/skills/impeccable/agents/impeccable_manual_edit_applier.toml +0 -95
- package/template/skills/impeccable/agents/openai.yaml +0 -4
- package/template/skills/impeccable/reference/adapt.md +0 -311
- package/template/skills/impeccable/reference/animate.md +0 -201
- package/template/skills/impeccable/reference/audit.md +0 -133
- package/template/skills/impeccable/reference/bolder.md +0 -113
- package/template/skills/impeccable/reference/brand.md +0 -108
- package/template/skills/impeccable/reference/clarify.md +0 -288
- package/template/skills/impeccable/reference/codex.md +0 -105
- package/template/skills/impeccable/reference/colorize.md +0 -257
- package/template/skills/impeccable/reference/craft.md +0 -123
- package/template/skills/impeccable/reference/critique.md +0 -790
- package/template/skills/impeccable/reference/delight.md +0 -302
- package/template/skills/impeccable/reference/distill.md +0 -111
- package/template/skills/impeccable/reference/document.md +0 -429
- package/template/skills/impeccable/reference/extract.md +0 -69
- package/template/skills/impeccable/reference/harden.md +0 -347
- package/template/skills/impeccable/reference/hooks.md +0 -90
- package/template/skills/impeccable/reference/init.md +0 -172
- package/template/skills/impeccable/reference/interaction-design.md +0 -189
- package/template/skills/impeccable/reference/layout.md +0 -161
- package/template/skills/impeccable/reference/live.md +0 -720
- package/template/skills/impeccable/reference/onboard.md +0 -234
- package/template/skills/impeccable/reference/optimize.md +0 -258
- package/template/skills/impeccable/reference/overdrive.md +0 -130
- package/template/skills/impeccable/reference/polish.md +0 -241
- package/template/skills/impeccable/reference/product.md +0 -60
- package/template/skills/impeccable/reference/quieter.md +0 -99
- package/template/skills/impeccable/reference/shape.md +0 -165
- package/template/skills/impeccable/reference/typeset.md +0 -279
- package/template/skills/impeccable/scripts/command-metadata.json +0 -94
- package/template/skills/impeccable/scripts/context-signals.mjs +0 -225
- package/template/skills/impeccable/scripts/context.mjs +0 -961
- package/template/skills/impeccable/scripts/critique-storage.mjs +0 -242
- package/template/skills/impeccable/scripts/detect-csp.mjs +0 -198
- package/template/skills/impeccable/scripts/detect.mjs +0 -21
- package/template/skills/impeccable/scripts/detector/browser/injected/index.mjs +0 -1937
- package/template/skills/impeccable/scripts/detector/cli/main.mjs +0 -290
- package/template/skills/impeccable/scripts/detector/design-system.mjs +0 -750
- package/template/skills/impeccable/scripts/detector/detect-antipatterns-browser.js +0 -5138
- package/template/skills/impeccable/scripts/detector/detect-antipatterns.mjs +0 -50
- package/template/skills/impeccable/scripts/detector/engines/browser/detect-url.mjs +0 -277
- package/template/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs +0 -568
- package/template/skills/impeccable/scripts/detector/engines/static-html/css-cascade.mjs +0 -1015
- package/template/skills/impeccable/scripts/detector/engines/static-html/detect-html.mjs +0 -234
- package/template/skills/impeccable/scripts/detector/engines/visual/screenshot-contrast.mjs +0 -189
- package/template/skills/impeccable/scripts/detector/findings.mjs +0 -12
- package/template/skills/impeccable/scripts/detector/node/file-system.mjs +0 -198
- package/template/skills/impeccable/scripts/detector/profile/profiler.mjs +0 -166
- package/template/skills/impeccable/scripts/detector/registry/antipatterns.mjs +0 -448
- package/template/skills/impeccable/scripts/detector/rules/checks.mjs +0 -2671
- package/template/skills/impeccable/scripts/detector/shared/color.mjs +0 -124
- package/template/skills/impeccable/scripts/detector/shared/constants.mjs +0 -101
- package/template/skills/impeccable/scripts/detector/shared/inline-ignores.mjs +0 -148
- package/template/skills/impeccable/scripts/detector/shared/page.mjs +0 -7
- package/template/skills/impeccable/scripts/hook-admin.mjs +0 -661
- package/template/skills/impeccable/scripts/hook-before-edit.mjs +0 -476
- package/template/skills/impeccable/scripts/hook-lib.mjs +0 -1632
- package/template/skills/impeccable/scripts/hook.mjs +0 -61
- package/template/skills/impeccable/scripts/lib/design-parser.mjs +0 -842
- package/template/skills/impeccable/scripts/lib/impeccable-config.mjs +0 -638
- package/template/skills/impeccable/scripts/lib/impeccable-paths.mjs +0 -128
- package/template/skills/impeccable/scripts/lib/is-generated.mjs +0 -69
- package/template/skills/impeccable/scripts/lib/target-args.mjs +0 -42
- package/template/skills/impeccable/scripts/live/browser-script-parts.mjs +0 -49
- package/template/skills/impeccable/scripts/live/completion.mjs +0 -19
- package/template/skills/impeccable/scripts/live/event-validation.mjs +0 -137
- package/template/skills/impeccable/scripts/live/insert-ui.mjs +0 -458
- package/template/skills/impeccable/scripts/live/manual-apply.mjs +0 -939
- package/template/skills/impeccable/scripts/live/manual-edit-routes.mjs +0 -357
- package/template/skills/impeccable/scripts/live/manual-edits-buffer.mjs +0 -152
- package/template/skills/impeccable/scripts/live/session-store.mjs +0 -289
- package/template/skills/impeccable/scripts/live/svelte-component.mjs +0 -826
- package/template/skills/impeccable/scripts/live/sveltekit-adapter.mjs +0 -274
- package/template/skills/impeccable/scripts/live/ui-core.mjs +0 -180
- package/template/skills/impeccable/scripts/live/vocabulary.mjs +0 -36
- package/template/skills/impeccable/scripts/live-accept.mjs +0 -812
- package/template/skills/impeccable/scripts/live-browser-dom.js +0 -146
- package/template/skills/impeccable/scripts/live-browser-session.js +0 -123
- package/template/skills/impeccable/scripts/live-browser.js +0 -11173
- package/template/skills/impeccable/scripts/live-commit-manual-edits.mjs +0 -1241
- package/template/skills/impeccable/scripts/live-complete.mjs +0 -75
- package/template/skills/impeccable/scripts/live-copy-edit-agent.mjs +0 -683
- package/template/skills/impeccable/scripts/live-discard-manual-edits.mjs +0 -51
- package/template/skills/impeccable/scripts/live-inject.mjs +0 -583
- package/template/skills/impeccable/scripts/live-insert.mjs +0 -272
- package/template/skills/impeccable/scripts/live-manual-edit-evidence.mjs +0 -363
- package/template/skills/impeccable/scripts/live-poll.mjs +0 -384
- package/template/skills/impeccable/scripts/live-resume.mjs +0 -94
- package/template/skills/impeccable/scripts/live-server.mjs +0 -1135
- package/template/skills/impeccable/scripts/live-status.mjs +0 -61
- package/template/skills/impeccable/scripts/live-target.mjs +0 -30
- package/template/skills/impeccable/scripts/live-wrap.mjs +0 -894
- package/template/skills/impeccable/scripts/live.mjs +0 -297
- package/template/skills/impeccable/scripts/modern-screenshot.umd.js +0 -14
- package/template/skills/impeccable/scripts/palette.mjs +0 -633
- package/template/skills/impeccable/scripts/pin.mjs +0 -214
- package/template/skills/skillopt-sleep/configs/_base_/default.yaml +0 -103
- package/template/skills/skillopt-sleep/configs/alfworld/default.yaml +0 -29
- package/template/skills/skillopt-sleep/configs/docvqa/default.yaml +0 -28
- package/template/skills/skillopt-sleep/configs/features/soft_gate.yaml +0 -47
- package/template/skills/skillopt-sleep/configs/livemathematicianbench/default.yaml +0 -22
- package/template/skills/skillopt-sleep/configs/officeqa/default.yaml +0 -34
- package/template/skills/skillopt-sleep/configs/searchqa/default.yaml +0 -32
- package/template/skills/skillopt-sleep/configs/spreadsheetbench/default.yaml +0 -34
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/__init__.py +0 -28
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/config.py +0 -282
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/datasets/__init__.py +0 -7
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/datasets/base.py +0 -512
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/engine/__init__.py +0 -9
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/engine/trainer.py +0 -2379
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/__init__.py +0 -1
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/README.md +0 -43
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/config_template.yaml +0 -55
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/env_template.py +0 -151
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/loader_template.py +0 -87
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/__init__.py +0 -5
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/adapter.py +0 -428
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/dataloader.py +0 -123
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/analyst_error.md +0 -55
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/analyst_success.md +0 -33
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/rollout_no_history.md +0 -8
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/rollout_with_history.md +0 -9
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/rollout_with_memory.md +0 -16
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/reflect.py +0 -4
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/rollout.py +0 -366
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/skills/initial.md +0 -45
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/__init__.py +0 -9
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/alfworld_envs.py +0 -221
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/alfworld_projection.py +0 -60
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/alfworld_prompts.py +0 -8
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/config_tw.yaml +0 -145
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/env_base.py +0 -84
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/env_manager.py +0 -139
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/memory.py +0 -87
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/base.py +0 -329
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/__init__.py +0 -1
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/adapter.py +0 -90
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/dataloader.py +0 -61
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/evaluator.py +0 -113
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/prompts/analyst_error.md +0 -35
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/prompts/analyst_success.md +0 -24
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/prompts/rollout_system.md +0 -12
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/rollout.py +0 -391
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/skills/initial.md +0 -11
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/__init__.py +0 -1
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/adapter.py +0 -129
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/dataloader.py +0 -308
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/evaluator.py +0 -62
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/prompts/analyst_error.md +0 -37
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/prompts/analyst_success.md +0 -25
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/prompts/rollout_system.md +0 -12
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/reflect.py +0 -4
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/rollout.py +0 -434
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/skills/initial.md +0 -16
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/__init__.py +0 -1
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/adapter.py +0 -112
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/dataloader.py +0 -71
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/evaluator.py +0 -46
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/prompts/analyst_error.md +0 -37
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/prompts/analyst_success.md +0 -25
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/prompts/rollout_system.md +0 -15
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/rollout.py +0 -799
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/skills/initial.md +0 -15
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/tool_runtime.py +0 -552
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/__init__.py +0 -1
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/adapter.py +0 -96
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/dataloader.py +0 -42
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/evaluator.py +0 -100
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/prompts/analyst_error.md +0 -46
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/prompts/analyst_success.md +0 -32
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/prompts/rollout_system.md +0 -13
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/reflect.py +0 -4
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/rollout.py +0 -494
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/skills/initial.md +0 -3
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/__init__.py +0 -5
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/adapter.py +0 -159
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/codegen_agent.py +0 -731
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/dataloader.py +0 -37
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/evaluator.py +0 -158
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/executor.py +0 -67
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/analyst_error.md +0 -46
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/analyst_success.md +0 -32
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/codegen_system.md +0 -1
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/critical_rules.md +0 -9
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/react_system.md +0 -21
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/react_agent.py +0 -395
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/reflect.py +0 -4
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/rollout.py +0 -979
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/skills/initial.md +0 -56
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/evaluation/__init__.py +0 -13
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/evaluation/gate.py +0 -148
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/gradient/__init__.py +0 -15
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/gradient/aggregate.py +0 -253
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/gradient/reflect.py +0 -635
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/__init__.py +0 -514
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/azure_openai.py +0 -915
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/backend_config.py +0 -185
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/claude_backend.py +0 -371
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/codex_backend.py +0 -666
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/codex_harness.py +0 -1057
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/common.py +0 -229
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/minimax_backend.py +0 -277
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/qwen_backend.py +0 -456
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/router.py +0 -236
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/__init__.py +0 -15
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/appendix.py +0 -156
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/clip.py +0 -109
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/lr_autonomous.py +0 -108
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/meta_skill.py +0 -79
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/rewrite.py +0 -59
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/scheduler.py +0 -127
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/select.py +0 -4
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/skill.py +0 -201
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/skill_aware.py +0 -206
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/slow_update.py +0 -396
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/update_modes.py +0 -135
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/__init__.py +0 -63
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_error.md +0 -41
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_error_full_rewrite.md +0 -32
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_error_rewrite.md +0 -44
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_success.md +0 -36
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_success_full_rewrite.md +0 -30
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_success_rewrite.md +0 -33
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/lr_autonomous.md +0 -20
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_failure.md +0 -30
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_failure_full_rewrite.md +0 -28
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_failure_rewrite.md +0 -26
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_final.md +0 -33
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_final_full_rewrite.md +0 -28
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_final_rewrite.md +0 -25
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_success.md +0 -28
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_success_full_rewrite.md +0 -28
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_success_rewrite.md +0 -25
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/meta_skill.md +0 -40
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/ranking.md +0 -20
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/ranking_rewrite.md +0 -15
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/rewrite_skill.md +0 -25
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/slow_update.md +0 -60
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/scheduler/__init__.py +0 -8
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/types.py +0 -306
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/utils/__init__.py +0 -4
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/utils/json_utils.py +0 -172
- package/template/skills/skillopt-sleep/scripts/framework/skillopt/utils/scoring.py +0 -28
- package/template/skills/skillopt-sleep/scripts/python/__init__.py +0 -20
- package/template/skills/skillopt-sleep/scripts/python/__main__.py +0 -343
- package/template/skills/skillopt-sleep/scripts/python/backend.py +0 -1371
- package/template/skills/skillopt-sleep/scripts/python/budget.py +0 -75
- package/template/skills/skillopt-sleep/scripts/python/config.py +0 -162
- package/template/skills/skillopt-sleep/scripts/python/consolidate.py +0 -238
- package/template/skills/skillopt-sleep/scripts/python/cycle.py +0 -291
- package/template/skills/skillopt-sleep/scripts/python/dream.py +0 -138
- package/template/skills/skillopt-sleep/scripts/python/experiments/__init__.py +0 -1
- package/template/skills/skillopt-sleep/scripts/python/experiments/gbrain_bench.py +0 -119
- package/template/skills/skillopt-sleep/scripts/python/experiments/personas.py +0 -86
- package/template/skills/skillopt-sleep/scripts/python/experiments/report.py +0 -132
- package/template/skills/skillopt-sleep/scripts/python/experiments/run_experiment.py +0 -178
- package/template/skills/skillopt-sleep/scripts/python/experiments/run_gbrain.py +0 -209
- package/template/skills/skillopt-sleep/scripts/python/experiments/run_transfer.py +0 -155
- package/template/skills/skillopt-sleep/scripts/python/experiments/sweep.py +0 -164
- package/template/skills/skillopt-sleep/scripts/python/gate.py +0 -50
- package/template/skills/skillopt-sleep/scripts/python/harvest.py +0 -304
- package/template/skills/skillopt-sleep/scripts/python/harvest_codex.py +0 -253
- package/template/skills/skillopt-sleep/scripts/python/harvest_sources.py +0 -41
- package/template/skills/skillopt-sleep/scripts/python/judges.py +0 -84
- package/template/skills/skillopt-sleep/scripts/python/llm_miner.py +0 -134
- package/template/skills/skillopt-sleep/scripts/python/memory.py +0 -129
- package/template/skills/skillopt-sleep/scripts/python/mine.py +0 -312
- package/template/skills/skillopt-sleep/scripts/python/replay.py +0 -146
- package/template/skills/skillopt-sleep/scripts/python/rollout.py +0 -153
- package/template/skills/skillopt-sleep/scripts/python/scheduler.py +0 -138
- package/template/skills/skillopt-sleep/scripts/python/slow_update.py +0 -142
- package/template/skills/skillopt-sleep/scripts/python/staging.py +0 -103
- package/template/skills/skillopt-sleep/scripts/python/state.py +0 -96
- package/template/skills/skillopt-sleep/scripts/python/tasks_file.py +0 -81
- package/template/skills/skillopt-sleep/scripts/python/types.py +0 -146
- package/template/skills/skillopt-sleep/scripts/shell/__init__.py +0 -0
- package/template/skills/skillopt-sleep/scripts/shell/eval_only.py +0 -466
- package/template/skills/skillopt-sleep/scripts/shell/materialize_searchqa.py +0 -148
- package/template/skills/skillopt-sleep/scripts/shell/run_alfworld.sh +0 -60
- package/template/skills/skillopt-sleep/scripts/shell/run_searchqa.sh +0 -40
- package/template/skills/skillopt-sleep/scripts/shell/run_spreadsheetbench.sh +0 -39
- package/template/skills/skillopt-sleep/scripts/shell/train.py +0 -556
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Pin/unpin sub-commands as standalone skill shortcuts.
|
|
4
|
-
*
|
|
5
|
-
* Usage:
|
|
6
|
-
* node <scripts_path>/pin.mjs pin <command>
|
|
7
|
-
* node <scripts_path>/pin.mjs unpin <command>
|
|
8
|
-
*
|
|
9
|
-
* `pin audit` creates a lightweight /audit skill that redirects to /impeccable audit.
|
|
10
|
-
* `unpin audit` removes that shortcut.
|
|
11
|
-
*
|
|
12
|
-
* The script discovers harness directories (.claude/skills, .cursor/skills, etc.)
|
|
13
|
-
* in the project root and creates/removes the pin in all of them.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
import { existsSync, readFileSync, writeFileSync, mkdirSync, rmSync, readdirSync } from 'node:fs';
|
|
17
|
-
import { join, resolve, dirname } from 'node:path';
|
|
18
|
-
import { fileURLToPath } from 'node:url';
|
|
19
|
-
|
|
20
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
21
|
-
|
|
22
|
-
// All known harness directories
|
|
23
|
-
const HARNESS_DIRS = [
|
|
24
|
-
'.claude', '.cursor', '.gemini', '.codex', '.agents',
|
|
25
|
-
'.trae', '.trae-cn', '.pi', '.opencode', '.kiro', '.rovodev',
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
// Valid sub-command names
|
|
29
|
-
const VALID_COMMANDS = [
|
|
30
|
-
'craft', 'init', 'extract', 'document', 'shape',
|
|
31
|
-
'critique', 'audit',
|
|
32
|
-
'polish', 'bolder', 'quieter', 'distill', 'harden', 'onboard', 'live',
|
|
33
|
-
'animate', 'colorize', 'typeset', 'layout', 'delight', 'overdrive',
|
|
34
|
-
'clarify', 'adapt', 'optimize',
|
|
35
|
-
];
|
|
36
|
-
|
|
37
|
-
// Marker to identify pinned skills (so unpin doesn't delete user skills)
|
|
38
|
-
const PIN_MARKER = '<!-- impeccable-pinned-skill -->';
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Walk up from startDir to find a project root.
|
|
42
|
-
*/
|
|
43
|
-
function findProjectRoot(startDir = process.cwd()) {
|
|
44
|
-
let dir = resolve(startDir);
|
|
45
|
-
while (dir !== '/') {
|
|
46
|
-
if (
|
|
47
|
-
existsSync(join(dir, 'package.json')) ||
|
|
48
|
-
existsSync(join(dir, '.git')) ||
|
|
49
|
-
existsSync(join(dir, 'skills-lock.json'))
|
|
50
|
-
) {
|
|
51
|
-
return dir;
|
|
52
|
-
}
|
|
53
|
-
const parent = resolve(dir, '..');
|
|
54
|
-
if (parent === dir) break;
|
|
55
|
-
dir = parent;
|
|
56
|
-
}
|
|
57
|
-
return resolve(startDir);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Find harness skill directories that have an impeccable skill installed.
|
|
62
|
-
*/
|
|
63
|
-
function findHarnessDirs(projectRoot) {
|
|
64
|
-
const dirs = [];
|
|
65
|
-
for (const harness of HARNESS_DIRS) {
|
|
66
|
-
const skillsDir = join(projectRoot, harness, 'skills');
|
|
67
|
-
// Only pin in harness dirs that already have impeccable installed
|
|
68
|
-
const impeccableDir = join(skillsDir, 'impeccable');
|
|
69
|
-
if (existsSync(impeccableDir) || existsSync(join(skillsDir, 'i-impeccable'))) {
|
|
70
|
-
dirs.push(skillsDir);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return dirs;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Load command metadata (descriptions for pinned skills).
|
|
78
|
-
*/
|
|
79
|
-
function loadCommandMetadata() {
|
|
80
|
-
const metadataPath = join(__dirname, 'command-metadata.json');
|
|
81
|
-
if (existsSync(metadataPath)) {
|
|
82
|
-
return JSON.parse(readFileSync(metadataPath, 'utf-8'));
|
|
83
|
-
}
|
|
84
|
-
return {};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Generate a pinned skill's SKILL.md content.
|
|
89
|
-
*/
|
|
90
|
-
function generatePinnedSkill(command, metadata) {
|
|
91
|
-
const desc = metadata[command]?.description || `Shortcut for /impeccable ${command}.`;
|
|
92
|
-
const hint = metadata[command]?.argumentHint || '[target]';
|
|
93
|
-
|
|
94
|
-
return `---
|
|
95
|
-
name: ${command}
|
|
96
|
-
description: "${desc}"
|
|
97
|
-
argument-hint: "${hint}"
|
|
98
|
-
user-invocable: true
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
${PIN_MARKER}
|
|
102
|
-
|
|
103
|
-
This is a pinned shortcut for \`{{command_prefix}}impeccable ${command}\`.
|
|
104
|
-
|
|
105
|
-
Invoke {{command_prefix}}impeccable ${command}, passing along any arguments provided here, and follow its instructions.
|
|
106
|
-
`;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Pin a command: create shortcut skill in all harness dirs.
|
|
111
|
-
*/
|
|
112
|
-
function pin(command, projectRoot) {
|
|
113
|
-
const metadata = loadCommandMetadata();
|
|
114
|
-
const harnessDirs = findHarnessDirs(projectRoot);
|
|
115
|
-
|
|
116
|
-
if (harnessDirs.length === 0) {
|
|
117
|
-
console.log('No harness directories with impeccable installed found.');
|
|
118
|
-
return false;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const content = generatePinnedSkill(command, metadata);
|
|
122
|
-
let created = 0;
|
|
123
|
-
|
|
124
|
-
for (const skillsDir of harnessDirs) {
|
|
125
|
-
// Check if skill already exists (and isn't a pin)
|
|
126
|
-
const skillDir = join(skillsDir, command);
|
|
127
|
-
if (existsSync(skillDir)) {
|
|
128
|
-
const existingMd = join(skillDir, 'SKILL.md');
|
|
129
|
-
if (existsSync(existingMd)) {
|
|
130
|
-
const existing = readFileSync(existingMd, 'utf-8');
|
|
131
|
-
if (!existing.includes(PIN_MARKER)) {
|
|
132
|
-
console.log(` SKIP: ${skillDir} (non-pinned skill already exists)`);
|
|
133
|
-
continue;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
mkdirSync(skillDir, { recursive: true });
|
|
139
|
-
writeFileSync(join(skillDir, 'SKILL.md'), content, 'utf-8');
|
|
140
|
-
console.log(` + ${skillDir}`);
|
|
141
|
-
created++;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
if (created > 0) {
|
|
145
|
-
console.log(`\nPinned '${command}' as a standalone shortcut in ${created} location(s).`);
|
|
146
|
-
console.log(`You can now use /${command} directly.`);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
return created > 0;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Unpin a command: remove shortcut skill from all harness dirs.
|
|
154
|
-
*/
|
|
155
|
-
function unpin(command, projectRoot) {
|
|
156
|
-
const harnessDirs = findHarnessDirs(projectRoot);
|
|
157
|
-
let removed = 0;
|
|
158
|
-
|
|
159
|
-
for (const skillsDir of harnessDirs) {
|
|
160
|
-
const skillDir = join(skillsDir, command);
|
|
161
|
-
if (!existsSync(skillDir)) continue;
|
|
162
|
-
|
|
163
|
-
const skillMd = join(skillDir, 'SKILL.md');
|
|
164
|
-
if (!existsSync(skillMd)) continue;
|
|
165
|
-
|
|
166
|
-
// Safety: only remove if it's a pinned skill
|
|
167
|
-
const content = readFileSync(skillMd, 'utf-8');
|
|
168
|
-
if (!content.includes(PIN_MARKER)) {
|
|
169
|
-
console.log(` SKIP: ${skillDir} (not a pinned skill)`);
|
|
170
|
-
continue;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
rmSync(skillDir, { recursive: true, force: true });
|
|
174
|
-
console.log(` - ${skillDir}`);
|
|
175
|
-
removed++;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
if (removed > 0) {
|
|
179
|
-
console.log(`\nUnpinned '${command}' from ${removed} location(s).`);
|
|
180
|
-
console.log(`Use /impeccable ${command} to access it.`);
|
|
181
|
-
} else {
|
|
182
|
-
console.log(`No pinned '${command}' shortcut found.`);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return removed > 0;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
// --- CLI ---
|
|
189
|
-
const [,, action, command] = process.argv;
|
|
190
|
-
|
|
191
|
-
if (!action || !command) {
|
|
192
|
-
console.log('Usage: node pin.mjs <pin|unpin> <command>');
|
|
193
|
-
console.log(`\nAvailable commands: ${VALID_COMMANDS.join(', ')}`);
|
|
194
|
-
process.exit(1);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
if (action !== 'pin' && action !== 'unpin') {
|
|
198
|
-
console.error(`Unknown action: ${action}. Use 'pin' or 'unpin'.`);
|
|
199
|
-
process.exit(1);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
if (!VALID_COMMANDS.includes(command)) {
|
|
203
|
-
console.error(`Unknown command: ${command}`);
|
|
204
|
-
console.error(`Available commands: ${VALID_COMMANDS.join(', ')}`);
|
|
205
|
-
process.exit(1);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
const root = findProjectRoot();
|
|
209
|
-
|
|
210
|
-
if (action === 'pin') {
|
|
211
|
-
pin(command, root);
|
|
212
|
-
} else {
|
|
213
|
-
unpin(command, root);
|
|
214
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
# SkillOpt default configuration — base for all environments.
|
|
2
|
-
# Environment configs should inherit via: _base_: default.yaml
|
|
3
|
-
|
|
4
|
-
model:
|
|
5
|
-
backend: azure_openai
|
|
6
|
-
optimizer: gpt-5.5
|
|
7
|
-
target: gpt-5.5
|
|
8
|
-
optimizer_backend: openai_chat
|
|
9
|
-
target_backend: openai_chat
|
|
10
|
-
reasoning_effort: medium
|
|
11
|
-
rewrite_reasoning_effort: ""
|
|
12
|
-
rewrite_max_completion_tokens: 64000
|
|
13
|
-
codex_exec_path: codex
|
|
14
|
-
codex_exec_sandbox: workspace-write
|
|
15
|
-
codex_exec_profile: ""
|
|
16
|
-
codex_exec_full_auto: false
|
|
17
|
-
codex_exec_reasoning_effort: none
|
|
18
|
-
codex_exec_use_sdk: auto
|
|
19
|
-
codex_exec_network_access: false
|
|
20
|
-
codex_exec_web_search: false
|
|
21
|
-
codex_exec_approval_policy: never
|
|
22
|
-
claude_code_exec_path: claude
|
|
23
|
-
claude_code_exec_profile: ""
|
|
24
|
-
claude_code_exec_use_sdk: auto
|
|
25
|
-
claude_code_exec_effort: medium
|
|
26
|
-
claude_code_exec_max_thinking_tokens: 16384
|
|
27
|
-
codex_trace_to_optimizer: true
|
|
28
|
-
azure_openai_endpoint: "" # e.g. "https://your-resource.openai.azure.com/"
|
|
29
|
-
azure_openai_api_version: "2024-12-01-preview"
|
|
30
|
-
azure_openai_api_key: "" # Fill locally if you do not export AZURE_OPENAI_API_KEY
|
|
31
|
-
azure_openai_auth_mode: "" # empty → fall back to AZURE_OPENAI_AUTH_MODE env (default "azure_cli")
|
|
32
|
-
azure_openai_ad_scope: "https://cognitiveservices.azure.com/.default"
|
|
33
|
-
azure_openai_managed_identity_client_id: ""
|
|
34
|
-
optimizer_azure_openai_endpoint: "" # e.g. "https://your-resource.openai.azure.com/"
|
|
35
|
-
optimizer_azure_openai_api_version: "2024-12-01-preview"
|
|
36
|
-
optimizer_azure_openai_api_key: ""
|
|
37
|
-
optimizer_azure_openai_auth_mode: "" # empty → fall back to OPTIMIZER_AZURE_OPENAI_AUTH_MODE env, then shared
|
|
38
|
-
optimizer_azure_openai_ad_scope: "https://cognitiveservices.azure.com/.default"
|
|
39
|
-
optimizer_azure_openai_managed_identity_client_id: ""
|
|
40
|
-
target_azure_openai_endpoint: "" # e.g. "https://your-resource.openai.azure.com/"
|
|
41
|
-
target_azure_openai_api_version: "2024-12-01-preview"
|
|
42
|
-
target_azure_openai_api_key: ""
|
|
43
|
-
target_azure_openai_auth_mode: "" # empty → fall back to TARGET_AZURE_OPENAI_AUTH_MODE env, then shared
|
|
44
|
-
target_azure_openai_ad_scope: "https://cognitiveservices.azure.com/.default"
|
|
45
|
-
target_azure_openai_managed_identity_client_id: ""
|
|
46
|
-
|
|
47
|
-
# MiniMax backend settings (minimax_chat target)
|
|
48
|
-
minimax_base_url: "" # https://api.minimax.io/v1 if blank
|
|
49
|
-
minimax_api_key: ""
|
|
50
|
-
minimax_model: "MiniMax-M2.7"
|
|
51
|
-
minimax_temperature: "0.7"
|
|
52
|
-
minimax_max_tokens: "8000"
|
|
53
|
-
minimax_enable_thinking: "false"
|
|
54
|
-
optimizer_minimax_base_url: "" # per-role override
|
|
55
|
-
target_minimax_base_url: "" # per-role override
|
|
56
|
-
optimizer_minimax_api_key: ""
|
|
57
|
-
target_minimax_api_key: ""
|
|
58
|
-
|
|
59
|
-
train:
|
|
60
|
-
num_epochs: 4
|
|
61
|
-
train_size: 0 # 0 = derive from dataset split when available
|
|
62
|
-
batch_size: 40
|
|
63
|
-
accumulation: 1
|
|
64
|
-
seed: 42
|
|
65
|
-
|
|
66
|
-
gradient:
|
|
67
|
-
minibatch_size: 8
|
|
68
|
-
merge_batch_size: 8
|
|
69
|
-
analyst_workers: 16
|
|
70
|
-
max_analyst_rounds: 3
|
|
71
|
-
failure_only: false
|
|
72
|
-
|
|
73
|
-
optimizer:
|
|
74
|
-
learning_rate: 4 # max edits per step (edit_budget)
|
|
75
|
-
min_learning_rate: 2 # min edits for decay schedulers
|
|
76
|
-
lr_scheduler: cosine # constant / linear / cosine / autonomous
|
|
77
|
-
lr_control_mode: fixed # fixed / autonomous / none
|
|
78
|
-
skill_update_mode: patch # patch / rewrite_from_suggestions / full_rewrite_minibatch
|
|
79
|
-
use_slow_update: true
|
|
80
|
-
slow_update_samples: 20
|
|
81
|
-
slow_update_gate_with_selection: false
|
|
82
|
-
longitudinal_pair_policy: mixed # mixed / changed / unchanged
|
|
83
|
-
use_meta_skill: true
|
|
84
|
-
use_skill_aware_reflection: false # EmbodiSkill: split failures into SKILL_DEFECT (edit body) vs EXECUTION_LAPSE (protected appendix)
|
|
85
|
-
skill_aware_appendix_source: both # both = success+failure emit appendix notes; failure_only = only EXECUTION_LAPSE (paper-faithful)
|
|
86
|
-
skill_aware_consolidate_threshold: 0 # 0 = off; >0 = LLM-consolidate the appendix when its note count exceeds N
|
|
87
|
-
|
|
88
|
-
evaluation:
|
|
89
|
-
use_gate: true
|
|
90
|
-
sel_env_num: 0
|
|
91
|
-
test_env_num: 0
|
|
92
|
-
eval_test: true
|
|
93
|
-
|
|
94
|
-
env:
|
|
95
|
-
name: ""
|
|
96
|
-
skill_init: ""
|
|
97
|
-
split_mode: ratio # ratio = build deterministic split from data_path; split_dir = use pre-split train/val/test
|
|
98
|
-
split_seed: 42
|
|
99
|
-
split_dir: ""
|
|
100
|
-
data_path: ""
|
|
101
|
-
split_output_dir: ""
|
|
102
|
-
exec_timeout: 120 # per target model/code-agent call timeout in seconds
|
|
103
|
-
out_root: ""
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
_base_: ../_base_/default.yaml
|
|
2
|
-
|
|
3
|
-
train:
|
|
4
|
-
train_size: 0
|
|
5
|
-
accumulation: 1
|
|
6
|
-
|
|
7
|
-
gradient:
|
|
8
|
-
minibatch_size: 8
|
|
9
|
-
merge_batch_size: 8
|
|
10
|
-
|
|
11
|
-
optimizer:
|
|
12
|
-
learning_rate: 4
|
|
13
|
-
|
|
14
|
-
evaluation:
|
|
15
|
-
sel_env_num: 0
|
|
16
|
-
test_env_num: 0
|
|
17
|
-
|
|
18
|
-
env:
|
|
19
|
-
name: alfworld
|
|
20
|
-
skill_init: skillopt/envs/alfworld/skills/initial.md
|
|
21
|
-
split_mode: split_dir
|
|
22
|
-
split_dir: data/alfworld_path_split
|
|
23
|
-
data_path: ""
|
|
24
|
-
split_output_dir: ""
|
|
25
|
-
max_steps: 50
|
|
26
|
-
max_completion_tokens: 16384
|
|
27
|
-
workers: 8
|
|
28
|
-
max_api_workers: 8
|
|
29
|
-
limit: 0
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
_base_: ../_base_/default.yaml
|
|
2
|
-
|
|
3
|
-
model:
|
|
4
|
-
reasoning_effort: medium
|
|
5
|
-
|
|
6
|
-
train:
|
|
7
|
-
batch_size: 40
|
|
8
|
-
accumulation: 1
|
|
9
|
-
|
|
10
|
-
gradient:
|
|
11
|
-
minibatch_size: 8
|
|
12
|
-
merge_batch_size: 8
|
|
13
|
-
|
|
14
|
-
optimizer:
|
|
15
|
-
learning_rate: 4
|
|
16
|
-
|
|
17
|
-
env:
|
|
18
|
-
name: docvqa
|
|
19
|
-
skill_init: skillopt/envs/docvqa/skills/initial.md
|
|
20
|
-
split_mode: split_dir
|
|
21
|
-
split_dir: data/docvqa/splits
|
|
22
|
-
data_path: ""
|
|
23
|
-
split_output_dir: ""
|
|
24
|
-
max_turns: 1
|
|
25
|
-
max_completion_tokens: 16384
|
|
26
|
-
workers: 16
|
|
27
|
-
image_detail: auto
|
|
28
|
-
limit: 0
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# ─────────────────────────────────────────────────────────────────────────────
|
|
2
|
-
# Feature: soft / mixed validation-gate metric (community-contributed, PR #25)
|
|
3
|
-
# ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
-
#
|
|
5
|
-
# This is NOT a default SkillOpt setting and was NOT used to produce the
|
|
6
|
-
# numbers reported in the paper. It is provided as a reference for users
|
|
7
|
-
# who encounter a specific scenario where the default `hard` gate is too
|
|
8
|
-
# coarse to drive training.
|
|
9
|
-
#
|
|
10
|
-
# When to consider this:
|
|
11
|
-
# - You are running on a custom environment.
|
|
12
|
-
# - Your held-out *selection* split has very few items (e.g. ≤ ~10).
|
|
13
|
-
# - Your reward function is continuous / partial-credit (e.g. F1, BLEU,
|
|
14
|
-
# soft match) rather than purely binary 0/1.
|
|
15
|
-
#
|
|
16
|
-
# Symptom this addresses:
|
|
17
|
-
# With a small selection split + continuous rewards, candidate skills
|
|
18
|
-
# often improve per-item soft scores (e.g. 0.06 → 0.26 on one item) but
|
|
19
|
-
# never flip the discrete hard outcome. The default `hard` gate then
|
|
20
|
-
# rejects every candidate and training stalls. Switching the gate to
|
|
21
|
-
# `soft` or `mixed` lets these partial improvements be accepted.
|
|
22
|
-
#
|
|
23
|
-
# When NOT to use this:
|
|
24
|
-
# - When reproducing the paper. The paper-reported numbers were obtained
|
|
25
|
-
# under the default `hard` gate.
|
|
26
|
-
# - When your selection split is large (dozens+ items) and / or your
|
|
27
|
-
# reward is already binary — `hard` is the more conservative choice
|
|
28
|
-
# and matches the design described in the paper.
|
|
29
|
-
#
|
|
30
|
-
# To use: inherit your env config from this file, e.g.
|
|
31
|
-
# _base_: ../features/soft_gate.yaml
|
|
32
|
-
# or copy the `evaluation:` block below into your config.
|
|
33
|
-
# ─────────────────────────────────────────────────────────────────────────────
|
|
34
|
-
|
|
35
|
-
_base_: ../_base_/default.yaml
|
|
36
|
-
|
|
37
|
-
evaluation:
|
|
38
|
-
# Three options:
|
|
39
|
-
# 'hard' — default; exact-match accuracy. Use this to reproduce the paper.
|
|
40
|
-
# 'soft' — per-item soft / partial-credit score (recommended for the
|
|
41
|
-
# small-split + continuous-reward scenario described above).
|
|
42
|
-
# 'mixed' — weighted average: (1 - w) * hard + w * soft, with `w` set by
|
|
43
|
-
# `gate_mixed_weight` below.
|
|
44
|
-
gate_metric: soft
|
|
45
|
-
|
|
46
|
-
# Only used when gate_metric == 'mixed'. Ignored otherwise.
|
|
47
|
-
gate_mixed_weight: 0.5
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
_base_: ../_base_/default.yaml
|
|
2
|
-
|
|
3
|
-
train:
|
|
4
|
-
train_size: 0
|
|
5
|
-
batch_size: 40
|
|
6
|
-
accumulation: 1
|
|
7
|
-
|
|
8
|
-
env:
|
|
9
|
-
name: livemathematicianbench
|
|
10
|
-
skill_init: skillopt/envs/livemathematicianbench/skills/initial.md
|
|
11
|
-
split_mode: split_dir
|
|
12
|
-
split_dir: data/livemathematicianbench_split
|
|
13
|
-
data_path: ""
|
|
14
|
-
split_output_dir: ""
|
|
15
|
-
max_turns: 1
|
|
16
|
-
max_completion_tokens: 16384
|
|
17
|
-
exec_timeout: 300
|
|
18
|
-
workers: 64
|
|
19
|
-
limit: 0
|
|
20
|
-
shuffle_choices: true
|
|
21
|
-
use_theorem: false
|
|
22
|
-
use_sketch: false
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
_base_: ../_base_/default.yaml
|
|
2
|
-
|
|
3
|
-
model:
|
|
4
|
-
reasoning_effort: medium
|
|
5
|
-
|
|
6
|
-
train:
|
|
7
|
-
batch_size: 40
|
|
8
|
-
accumulation: 1
|
|
9
|
-
|
|
10
|
-
gradient:
|
|
11
|
-
minibatch_size: 8
|
|
12
|
-
merge_batch_size: 8
|
|
13
|
-
|
|
14
|
-
optimizer:
|
|
15
|
-
learning_rate: 4
|
|
16
|
-
|
|
17
|
-
env:
|
|
18
|
-
name: officeqa
|
|
19
|
-
skill_init: skillopt/envs/officeqa/skills/initial.md
|
|
20
|
-
split_mode: split_dir
|
|
21
|
-
split_dir: data/officeqa_split
|
|
22
|
-
data_dirs:
|
|
23
|
-
- data/officeqa_docs_official
|
|
24
|
-
workers: 4
|
|
25
|
-
max_tool_turns: 24
|
|
26
|
-
max_completion_tokens: 16384
|
|
27
|
-
search_mode: offline
|
|
28
|
-
max_queries_per_turn: 4
|
|
29
|
-
search_api_url: http://apisix.westus2.cloudapp.azure.com/search_tool/search
|
|
30
|
-
search_auth_env: OFFICEQA_CUSTOM_SEARCH_AUTH
|
|
31
|
-
search_provider: duckduckgo
|
|
32
|
-
search_max_num_results: 4
|
|
33
|
-
search_timeout_seconds: 20
|
|
34
|
-
limit: 0
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
_base_: ../_base_/default.yaml
|
|
2
|
-
|
|
3
|
-
model:
|
|
4
|
-
reasoning_effort: medium
|
|
5
|
-
|
|
6
|
-
train:
|
|
7
|
-
train_size: 400
|
|
8
|
-
batch_size: 40
|
|
9
|
-
accumulation: 1
|
|
10
|
-
|
|
11
|
-
gradient:
|
|
12
|
-
minibatch_size: 8
|
|
13
|
-
merge_batch_size: 8
|
|
14
|
-
|
|
15
|
-
optimizer:
|
|
16
|
-
learning_rate: 4
|
|
17
|
-
|
|
18
|
-
evaluation:
|
|
19
|
-
sel_env_num: 0
|
|
20
|
-
test_env_num: 0
|
|
21
|
-
|
|
22
|
-
env:
|
|
23
|
-
name: searchqa
|
|
24
|
-
skill_init: skillopt/envs/searchqa/skills/initial.md
|
|
25
|
-
split_mode: split_dir
|
|
26
|
-
split_dir: data/searchqa_split
|
|
27
|
-
data_path: ""
|
|
28
|
-
split_output_dir: ""
|
|
29
|
-
max_turns: 1
|
|
30
|
-
max_completion_tokens: 16384
|
|
31
|
-
workers: 24
|
|
32
|
-
limit: 0
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
_base_: ../_base_/default.yaml
|
|
2
|
-
|
|
3
|
-
model:
|
|
4
|
-
reasoning_effort: medium
|
|
5
|
-
|
|
6
|
-
train:
|
|
7
|
-
train_size: 80
|
|
8
|
-
batch_size: 40
|
|
9
|
-
accumulation: 1
|
|
10
|
-
|
|
11
|
-
gradient:
|
|
12
|
-
minibatch_size: 8
|
|
13
|
-
merge_batch_size: 8
|
|
14
|
-
|
|
15
|
-
optimizer:
|
|
16
|
-
learning_rate: 4
|
|
17
|
-
|
|
18
|
-
evaluation:
|
|
19
|
-
sel_env_num: 0
|
|
20
|
-
test_env_num: 0
|
|
21
|
-
|
|
22
|
-
env:
|
|
23
|
-
name: spreadsheetbench
|
|
24
|
-
skill_init: skillopt/envs/spreadsheetbench/skills/initial.md
|
|
25
|
-
split_mode: split_dir
|
|
26
|
-
split_dir: data/spreadsheetbench_split
|
|
27
|
-
data_path: ""
|
|
28
|
-
split_output_dir: ""
|
|
29
|
-
data_root: data/spreadsheetbench_verified_400
|
|
30
|
-
mode: multi
|
|
31
|
-
max_turns: 30
|
|
32
|
-
max_completion_tokens: 16384
|
|
33
|
-
exec_timeout: 600
|
|
34
|
-
workers: 24
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"""ReflACT: Reflective Agent Tuning.
|
|
2
|
-
|
|
3
|
-
A general-purpose framework for iteratively optimizing LLM agent skills
|
|
4
|
-
through structured reflection and self-improvement.
|
|
5
|
-
|
|
6
|
-
Pipeline stages:
|
|
7
|
-
1. Rollout — execute episodes with current skill
|
|
8
|
-
2. Reflect — analyze trajectories, generate patches
|
|
9
|
-
3. Aggregate — hierarchical merge of patches
|
|
10
|
-
4. Select — rank and select top edits
|
|
11
|
-
5. Update — apply edits to skill document
|
|
12
|
-
6. Evaluate — validate candidate skill, accept/reject
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
__version__ = "0.1.0"
|
|
16
|
-
|
|
17
|
-
from skillopt.types import ( # noqa: F401
|
|
18
|
-
BatchSpec,
|
|
19
|
-
Edit,
|
|
20
|
-
EditOp,
|
|
21
|
-
FailureSummaryEntry,
|
|
22
|
-
GateAction,
|
|
23
|
-
GateResult,
|
|
24
|
-
Patch,
|
|
25
|
-
RawPatch,
|
|
26
|
-
RolloutResult,
|
|
27
|
-
SlowUpdateResult,
|
|
28
|
-
)
|