self-evolve-framework 1.4.0 → 1.6.0

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 (171) hide show
  1. package/package.json +1 -1
  2. package/template/rules/ponytail.mdc +98 -23
  3. package/template/skills/skillopt-sleep/SKILL.md +42 -0
  4. package/template/skills/skillopt-sleep/configs/_base_/default.yaml +103 -0
  5. package/template/skills/skillopt-sleep/configs/alfworld/default.yaml +29 -0
  6. package/template/skills/skillopt-sleep/configs/docvqa/default.yaml +28 -0
  7. package/template/skills/skillopt-sleep/configs/features/soft_gate.yaml +47 -0
  8. package/template/skills/skillopt-sleep/configs/livemathematicianbench/default.yaml +22 -0
  9. package/template/skills/skillopt-sleep/configs/officeqa/default.yaml +34 -0
  10. package/template/skills/skillopt-sleep/configs/searchqa/default.yaml +32 -0
  11. package/template/skills/skillopt-sleep/configs/spreadsheetbench/default.yaml +34 -0
  12. package/template/skills/skillopt-sleep/scripts/framework/skillopt/__init__.py +28 -0
  13. package/template/skills/skillopt-sleep/scripts/framework/skillopt/config.py +282 -0
  14. package/template/skills/skillopt-sleep/scripts/framework/skillopt/datasets/__init__.py +7 -0
  15. package/template/skills/skillopt-sleep/scripts/framework/skillopt/datasets/base.py +512 -0
  16. package/template/skills/skillopt-sleep/scripts/framework/skillopt/engine/__init__.py +9 -0
  17. package/template/skills/skillopt-sleep/scripts/framework/skillopt/engine/trainer.py +2379 -0
  18. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/__init__.py +1 -0
  19. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/README.md +43 -0
  20. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/config_template.yaml +55 -0
  21. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/env_template.py +151 -0
  22. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/_template/loader_template.py +87 -0
  23. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/__init__.py +5 -0
  24. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/adapter.py +428 -0
  25. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/dataloader.py +123 -0
  26. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/analyst_error.md +55 -0
  27. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/analyst_success.md +33 -0
  28. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/rollout_no_history.md +8 -0
  29. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/rollout_with_history.md +9 -0
  30. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/prompts/rollout_with_memory.md +16 -0
  31. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/reflect.py +4 -0
  32. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/rollout.py +366 -0
  33. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/skills/initial.md +45 -0
  34. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/__init__.py +9 -0
  35. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/alfworld_envs.py +221 -0
  36. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/alfworld_projection.py +60 -0
  37. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/alfworld_prompts.py +8 -0
  38. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/config_tw.yaml +145 -0
  39. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/env_base.py +84 -0
  40. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/env_manager.py +139 -0
  41. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/alfworld/vendor/memory.py +87 -0
  42. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/base.py +329 -0
  43. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/__init__.py +1 -0
  44. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/adapter.py +90 -0
  45. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/dataloader.py +61 -0
  46. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/evaluator.py +113 -0
  47. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/prompts/analyst_error.md +35 -0
  48. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/prompts/analyst_success.md +24 -0
  49. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/prompts/rollout_system.md +12 -0
  50. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/rollout.py +391 -0
  51. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/docvqa/skills/initial.md +11 -0
  52. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/__init__.py +1 -0
  53. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/adapter.py +129 -0
  54. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/dataloader.py +308 -0
  55. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/evaluator.py +62 -0
  56. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/prompts/analyst_error.md +37 -0
  57. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/prompts/analyst_success.md +25 -0
  58. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/prompts/rollout_system.md +12 -0
  59. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/reflect.py +4 -0
  60. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/rollout.py +434 -0
  61. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/livemathematicianbench/skills/initial.md +16 -0
  62. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/__init__.py +1 -0
  63. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/adapter.py +112 -0
  64. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/dataloader.py +71 -0
  65. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/evaluator.py +46 -0
  66. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/prompts/analyst_error.md +37 -0
  67. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/prompts/analyst_success.md +25 -0
  68. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/prompts/rollout_system.md +15 -0
  69. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/rollout.py +799 -0
  70. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/skills/initial.md +15 -0
  71. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/officeqa/tool_runtime.py +552 -0
  72. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/__init__.py +1 -0
  73. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/adapter.py +96 -0
  74. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/dataloader.py +42 -0
  75. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/evaluator.py +100 -0
  76. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/prompts/analyst_error.md +46 -0
  77. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/prompts/analyst_success.md +32 -0
  78. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/prompts/rollout_system.md +13 -0
  79. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/reflect.py +4 -0
  80. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/rollout.py +494 -0
  81. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/searchqa/skills/initial.md +3 -0
  82. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/__init__.py +5 -0
  83. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/adapter.py +159 -0
  84. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/codegen_agent.py +731 -0
  85. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/dataloader.py +37 -0
  86. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/evaluator.py +158 -0
  87. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/executor.py +67 -0
  88. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/analyst_error.md +46 -0
  89. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/analyst_success.md +32 -0
  90. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/codegen_system.md +1 -0
  91. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/critical_rules.md +9 -0
  92. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/prompts/react_system.md +21 -0
  93. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/react_agent.py +395 -0
  94. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/reflect.py +4 -0
  95. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/rollout.py +979 -0
  96. package/template/skills/skillopt-sleep/scripts/framework/skillopt/envs/spreadsheetbench/skills/initial.md +56 -0
  97. package/template/skills/skillopt-sleep/scripts/framework/skillopt/evaluation/__init__.py +13 -0
  98. package/template/skills/skillopt-sleep/scripts/framework/skillopt/evaluation/gate.py +148 -0
  99. package/template/skills/skillopt-sleep/scripts/framework/skillopt/gradient/__init__.py +15 -0
  100. package/template/skills/skillopt-sleep/scripts/framework/skillopt/gradient/aggregate.py +253 -0
  101. package/template/skills/skillopt-sleep/scripts/framework/skillopt/gradient/reflect.py +635 -0
  102. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/__init__.py +514 -0
  103. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/azure_openai.py +915 -0
  104. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/backend_config.py +185 -0
  105. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/claude_backend.py +371 -0
  106. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/codex_backend.py +666 -0
  107. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/codex_harness.py +1057 -0
  108. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/common.py +229 -0
  109. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/minimax_backend.py +277 -0
  110. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/qwen_backend.py +456 -0
  111. package/template/skills/skillopt-sleep/scripts/framework/skillopt/model/router.py +236 -0
  112. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/__init__.py +15 -0
  113. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/appendix.py +156 -0
  114. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/clip.py +109 -0
  115. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/lr_autonomous.py +108 -0
  116. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/meta_skill.py +79 -0
  117. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/rewrite.py +59 -0
  118. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/scheduler.py +127 -0
  119. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/select.py +4 -0
  120. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/skill.py +201 -0
  121. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/skill_aware.py +206 -0
  122. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/slow_update.py +396 -0
  123. package/template/skills/skillopt-sleep/scripts/framework/skillopt/optimizer/update_modes.py +135 -0
  124. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/__init__.py +63 -0
  125. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_error.md +41 -0
  126. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_error_full_rewrite.md +32 -0
  127. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_error_rewrite.md +44 -0
  128. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_success.md +36 -0
  129. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_success_full_rewrite.md +30 -0
  130. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/analyst_success_rewrite.md +33 -0
  131. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/lr_autonomous.md +20 -0
  132. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_failure.md +30 -0
  133. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_failure_full_rewrite.md +28 -0
  134. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_failure_rewrite.md +26 -0
  135. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_final.md +33 -0
  136. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_final_full_rewrite.md +28 -0
  137. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_final_rewrite.md +25 -0
  138. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_success.md +28 -0
  139. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_success_full_rewrite.md +28 -0
  140. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/merge_success_rewrite.md +25 -0
  141. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/meta_skill.md +40 -0
  142. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/ranking.md +20 -0
  143. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/ranking_rewrite.md +15 -0
  144. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/rewrite_skill.md +25 -0
  145. package/template/skills/skillopt-sleep/scripts/framework/skillopt/prompts/slow_update.md +60 -0
  146. package/template/skills/skillopt-sleep/scripts/framework/skillopt/scheduler/__init__.py +8 -0
  147. package/template/skills/skillopt-sleep/scripts/framework/skillopt/types.py +306 -0
  148. package/template/skills/skillopt-sleep/scripts/framework/skillopt/utils/__init__.py +4 -0
  149. package/template/skills/skillopt-sleep/scripts/framework/skillopt/utils/json_utils.py +172 -0
  150. package/template/skills/skillopt-sleep/scripts/framework/skillopt/utils/scoring.py +28 -0
  151. package/template/skills/ponytail/SKILL.md +0 -133
  152. package/template/skills/ponytail/scripts/hooks/claude-codex-hooks.json +0 -44
  153. package/template/skills/ponytail/scripts/hooks/copilot-hooks.json +0 -21
  154. package/template/skills/ponytail/scripts/hooks/ponytail-activate.js +0 -91
  155. package/template/skills/ponytail/scripts/hooks/ponytail-config.js +0 -122
  156. package/template/skills/ponytail/scripts/hooks/ponytail-instructions.js +0 -94
  157. package/template/skills/ponytail/scripts/hooks/ponytail-mode-tracker.js +0 -55
  158. package/template/skills/ponytail/scripts/hooks/ponytail-runtime.js +0 -68
  159. package/template/skills/ponytail/scripts/hooks/ponytail-statusline.ps1 +0 -21
  160. package/template/skills/ponytail/scripts/hooks/ponytail-statusline.sh +0 -12
  161. package/template/skills/ponytail/scripts/hooks/ponytail-subagent.js +0 -22
  162. package/template/skills/ponytail/scripts/mcp/README.md +0 -46
  163. package/template/skills/ponytail/scripts/mcp/index.js +0 -48
  164. package/template/skills/ponytail/scripts/mcp/instructions.js +0 -26
  165. package/template/skills/ponytail/scripts/mcp/package.json +0 -13
  166. package/template/skills/ponytail/scripts/mcp/test/instructions.test.js +0 -22
  167. package/template/skills/ponytail-audit/SKILL.md +0 -41
  168. package/template/skills/ponytail-debt/SKILL.md +0 -44
  169. package/template/skills/ponytail-gain/SKILL.md +0 -50
  170. package/template/skills/ponytail-help/SKILL.md +0 -69
  171. package/template/skills/ponytail-review/SKILL.md +0 -57
@@ -1,41 +0,0 @@
1
- ---
2
- name: ponytail-audit
3
- description: >
4
- Whole-repo audit for over-engineering. Like ponytail-review, but scans the
5
- entire codebase instead of a diff: a ranked list of what to delete, simplify,
6
- or replace with stdlib/native equivalents. Use when the user says "audit this
7
- codebase", "audit for over-engineering", "what can I delete from this repo",
8
- "find bloat", "ponytail-audit", or "/ponytail-audit". One-shot report, does
9
- not apply fixes.
10
- ---
11
-
12
- ponytail-review, repo-wide. Scan the whole tree instead of a diff. Rank
13
- findings biggest cut first.
14
-
15
- ## Tags
16
-
17
- Same as ponytail-review:
18
-
19
- - `delete:` dead code, unused flexibility, speculative feature. Replacement: nothing.
20
- - `stdlib:` hand-rolled thing the standard library ships. Name the function.
21
- - `native:` dependency or code doing what the platform already does. Name the feature.
22
- - `yagni:` abstraction with one implementation, config nobody sets, layer with one caller.
23
- - `shrink:` same logic, fewer lines. Show the shorter form.
24
-
25
- ## Hunt
26
-
27
- Deps the stdlib or platform already ships, single-implementation interfaces,
28
- factories with one product, wrappers that only delegate, files exporting one
29
- thing, dead flags and config, hand-rolled stdlib.
30
-
31
- ## Output
32
-
33
- One line per finding, ranked: `<tag> <what to cut>. <replacement>. [path]`.
34
- End with `net: -<N> lines, -<M> deps possible.` Nothing to cut: `Lean already. Ship.`
35
-
36
- ## Boundaries
37
-
38
- Scope: over-engineering and complexity only. Correctness bugs, security holes,
39
- and performance are explicitly out of scope. Route them to a normal review
40
- pass. Lists findings, applies nothing. One-shot.
41
- "stop ponytail-audit" or "normal mode" to revert.
@@ -1,44 +0,0 @@
1
- ---
2
- name: ponytail-debt
3
- description: >
4
- Harvest every `ponytail:` comment in the codebase into a debt ledger, so the
5
- deliberate shortcuts and deferrals ponytail leaves behind get tracked instead
6
- of rotting into "later means never". Use when the user says "ponytail debt",
7
- "/ponytail-debt", "what did ponytail defer", "list the shortcuts", "ponytail
8
- ledger", or "what did we mark to do later". One-shot report, changes nothing.
9
- ---
10
-
11
- Every deliberate ponytail shortcut is marked with a `ponytail:` comment naming
12
- its ceiling and upgrade path. This collects them into one ledger so a deferral
13
- can't quietly become permanent.
14
-
15
- ## Scan
16
-
17
- Grep the repo for comment markers, skipping `node_modules`, `.git`, and build
18
- output:
19
-
20
- `grep -rnE '(#|//) ?ponytail:' .` (add other comment prefixes if your stack uses them)
21
-
22
- Each hit is one ledger row. The comment prefix keeps prose that merely mentions
23
- the convention out of the ledger.
24
-
25
- ## Output
26
-
27
- One row per marker, grouped by file:
28
-
29
- `<file>:<line>, <what was simplified>. ceiling: <the limit named>. upgrade: <the trigger to revisit>.`
30
-
31
- The convention is `ponytail: <ceiling>, <upgrade path>`, so pull the ceiling
32
- and the trigger straight from the comment. Want an owner per row too? add
33
- `git blame -L<line>,<line>`.
34
-
35
- Flag the rot risk: any `ponytail:` comment that names no upgrade path or
36
- trigger gets a `no-trigger` tag, those are the ones that silently rot.
37
-
38
- End with `<N> markers, <M> with no trigger.` Nothing found: `No ponytail: debt. Clean ledger.`
39
-
40
- ## Boundaries
41
-
42
- Reads and reports only, changes nothing. To persist it, ask and it writes the
43
- ledger to a file (e.g. `PONYTAIL-DEBT.md`). One-shot. "stop ponytail-debt" or
44
- "normal mode" to revert.
@@ -1,50 +0,0 @@
1
- ---
2
- name: ponytail-gain
3
- description: >
4
- Show ponytail's measured impact as a compact scoreboard: less code, less
5
- cost, more speed, from the benchmark medians. One-shot display, not a
6
- persistent mode, and not a per-repo number. Trigger: /ponytail-gain,
7
- "ponytail gain", "what does ponytail save", "show ponytail impact",
8
- "ponytail scoreboard".
9
- ---
10
-
11
- # Ponytail Gain
12
-
13
- Display this scoreboard when invoked. One-shot: do NOT change mode, write flag
14
- files, or persist anything.
15
-
16
- The figures are the published benchmark medians (5 everyday tasks: email
17
- validator, debounce, CSV sum, countdown timer, rate limiter; three models:
18
- Haiku, Sonnet, Opus). They are measured, not computed from the current repo.
19
- Source: `benchmarks/` and the README.
20
-
21
- ## Scoreboard
22
-
23
- Render plain ASCII bars. The bar length shows the measured range; the label
24
- carries the exact figure:
25
-
26
- ```
27
- ponytail gain benchmark median · 5 tasks · 3 models
28
-
29
- Lines of code no-skill ████████████████████ 100%
30
- ponytail ██▌················· 6–20% ▼ 80–94%
31
- Cost no-skill ████████████████████ 100%
32
- ponytail █████▌·············· 23–53% ▼ 47–77%
33
- Speed ponytail ▸ 3–6× faster
34
-
35
- This repo: /ponytail-debt (shortcuts you deferred)
36
- /ponytail-audit (what's still cuttable)
37
- ```
38
-
39
- ## Honesty boundary
40
-
41
- These are benchmark medians, not this repo. NEVER print a per-repo savings
42
- number ("you saved X lines/tokens here"): the unbuilt version was never
43
- written, so there is no real baseline to subtract from in a live repo. The
44
- only real per-repo figures come from `/ponytail-debt` (a counted ledger), and
45
- this card points there instead of inventing one.
46
-
47
- ## Boundaries
48
-
49
- One-shot display. Edits nothing, changes no mode.
50
- "stop ponytail" or "normal mode": revert.
@@ -1,69 +0,0 @@
1
- ---
2
- name: ponytail-help
3
- description: >
4
- Quick-reference card for all ponytail modes, skills, and commands.
5
- One-shot display, not a persistent mode. Trigger: /ponytail-help,
6
- "ponytail help", "what ponytail commands", "how do I use ponytail".
7
- ---
8
-
9
- # Ponytail Help
10
-
11
- Display this reference card when invoked. One-shot, do NOT change mode,
12
- write flag files, or persist anything.
13
-
14
- ## Levels
15
-
16
- | Level | Trigger | What change |
17
- |-------|---------|-------------|
18
- | **Lite** | `/ponytail lite` | Build what's asked, name the lazier alternative in one line. |
19
- | **Full** | `/ponytail` | The ladder enforced: YAGNI → stdlib → native → one line → minimum. Default. |
20
- | **Ultra** | `/ponytail ultra` | YAGNI extremist. Deletion before addition. Challenges requirements before building. |
21
-
22
- Level sticks until changed or session end.
23
-
24
- ## Skills
25
-
26
- | Skill | Trigger | What it does |
27
- |-------|---------|--------------|
28
- | **ponytail** | `/ponytail` | Lazy mode itself. Simplest solution that works. |
29
- | **ponytail-review** | `/ponytail-review` | Over-engineering review: `L42: yagni: factory, one product. Inline.` |
30
- | **ponytail-gain** | `/ponytail-gain` | Measured-impact scoreboard: less code, less cost, more speed. |
31
- | **ponytail-help** | `/ponytail-help` | This card. |
32
-
33
- Codex uses `@ponytail`, `@ponytail-review`, and `@ponytail-help`; Claude Code
34
- and OpenCode use the slash-command forms above (OpenCode ships `/ponytail` and
35
- `/ponytail-review`).
36
-
37
- ## Deactivate
38
-
39
- Say "stop ponytail" or "normal mode". Resume anytime with `/ponytail`.
40
- `/ponytail off` also works.
41
-
42
- ## Configure Default Mode
43
-
44
- Default mode = `full`, auto-active every session. Change it:
45
-
46
- **Environment variable** (highest priority):
47
- ```bash
48
- export PONYTAIL_DEFAULT_MODE=ultra
49
- ```
50
-
51
- **Config file** (`~/.config/ponytail/config.json`, Windows: `%APPDATA%\ponytail\config.json`):
52
- ```json
53
- { "defaultMode": "lite" }
54
- ```
55
-
56
- Set `"off"` to disable auto-activation on session start, activate manually
57
- with `/ponytail` when wanted.
58
-
59
- Resolution: env var > config file > `full`.
60
-
61
- ## Update
62
-
63
- Enable auto-update once: open `/plugin`, go to Marketplaces, pick ponytail, Enable auto-update. Claude Code then pulls new versions at startup (run `/reload-plugins` when it prompts). Manual refresh: `/plugin marketplace update ponytail` then `/reload-plugins`.
64
-
65
- If `/plugin` is not recognized, your Claude Code is out of date. Update it (`npm install -g @anthropic-ai/claude-code@latest`, or `brew upgrade claude-code`) and restart. Other hosts use their own update flow.
66
-
67
- ## More
68
-
69
- Full docs + examples: https://github.com/DietrichGebert/ponytail
@@ -1,57 +0,0 @@
1
- ---
2
- name: ponytail-review
3
- description: >
4
- Code review focused exclusively on over-engineering. Finds what to delete:
5
- reinvented standard library, unneeded dependencies, speculative abstractions,
6
- dead flexibility. One line per finding: location, what to cut, what replaces
7
- it. Use when the user says "review for over-engineering", "what can we
8
- delete", "is this over-engineered", "simplify review", or invokes
9
- /ponytail-review. Complements correctness-focused review, this one only
10
- hunts complexity.
11
- ---
12
-
13
- Review diffs for unnecessary complexity. One line per finding: location, what
14
- to cut, what replaces it. The diff's best outcome is getting shorter.
15
-
16
- ## Format
17
-
18
- `L<line>: <tag> <what>. <replacement>.`, or `<file>:L<line>: ...` for
19
- multi-file diffs.
20
-
21
- Tags:
22
-
23
- - `delete:` dead code, unused flexibility, speculative feature. Replacement: nothing.
24
- - `stdlib:` hand-rolled thing the standard library ships. Name the function.
25
- - `native:` dependency or code doing what the platform already does. Name the feature.
26
- - `yagni:` abstraction with one implementation, config nobody sets, layer with one caller.
27
- - `shrink:` same logic, fewer lines. Show the shorter form.
28
-
29
- ## Examples
30
-
31
- ❌ "This EmailValidator class might be more complex than necessary, have you
32
- considered whether all these validation rules are needed at this stage?"
33
-
34
- ✅ `L12-38: stdlib: 27-line validator class. "@" in email, 1 line, real validation is the confirmation mail.`
35
-
36
- ✅ `L4: native: moment.js imported for one format call. Intl.DateTimeFormat, 0 deps.`
37
-
38
- ✅ `repo.py:L88: yagni: AbstractRepository with one implementation. Inline it until a second one exists.`
39
-
40
- ✅ `L52-71: delete: retry wrapper around an idempotent local call. Nothing replaces it.`
41
-
42
- ✅ `L30-44: shrink: manual loop builds dict. dict(zip(keys, values)), 1 line.`
43
-
44
- ## Scoring
45
-
46
- End with the only metric that matters: `net: -<N> lines possible.`
47
-
48
- If there is nothing to cut, say `Lean already. Ship.` and stop.
49
-
50
- ## Boundaries
51
-
52
- Scope: over-engineering and complexity only. Correctness bugs, security holes,
53
- and performance are explicitly out of scope. Route them to a normal review
54
- pass, not this one. A single smoke test or `assert`-based
55
- self-check is the ponytail minimum, not bloat, never flag it for deletion.
56
- Does not apply the fixes, only lists them.
57
- "stop ponytail-review" or "normal mode": revert to verbose review style.