self-evolve-framework 1.3.0 → 1.5.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.
- package/package.json +1 -1
- package/template/rules/ponytail.mdc +98 -23
- package/template/skills/skillopt-sleep/SKILL.md +48 -34
- package/template/skills/skillopt-sleep/scripts/python/__init__.py +20 -0
- package/template/skills/skillopt-sleep/scripts/python/__main__.py +343 -0
- package/template/skills/skillopt-sleep/scripts/python/backend.py +1371 -0
- package/template/skills/skillopt-sleep/scripts/python/budget.py +75 -0
- package/template/skills/skillopt-sleep/scripts/python/config.py +162 -0
- package/template/skills/skillopt-sleep/scripts/python/consolidate.py +238 -0
- package/template/skills/skillopt-sleep/scripts/python/cycle.py +291 -0
- package/template/skills/skillopt-sleep/scripts/python/dream.py +138 -0
- package/template/skills/skillopt-sleep/scripts/python/experiments/__init__.py +1 -0
- package/template/skills/skillopt-sleep/scripts/python/experiments/gbrain_bench.py +119 -0
- package/template/skills/skillopt-sleep/scripts/python/experiments/personas.py +86 -0
- package/template/skills/skillopt-sleep/scripts/python/experiments/report.py +132 -0
- package/template/skills/skillopt-sleep/scripts/python/experiments/run_experiment.py +178 -0
- package/template/skills/skillopt-sleep/scripts/python/experiments/run_gbrain.py +209 -0
- package/template/skills/skillopt-sleep/scripts/python/experiments/run_transfer.py +155 -0
- package/template/skills/skillopt-sleep/scripts/python/experiments/sweep.py +164 -0
- package/template/skills/skillopt-sleep/scripts/python/gate.py +50 -0
- package/template/skills/skillopt-sleep/scripts/python/harvest.py +304 -0
- package/template/skills/skillopt-sleep/scripts/python/harvest_codex.py +253 -0
- package/template/skills/skillopt-sleep/scripts/python/harvest_sources.py +41 -0
- package/template/skills/skillopt-sleep/scripts/python/judges.py +84 -0
- package/template/skills/skillopt-sleep/scripts/python/llm_miner.py +134 -0
- package/template/skills/skillopt-sleep/scripts/python/memory.py +129 -0
- package/template/skills/skillopt-sleep/scripts/python/mine.py +312 -0
- package/template/skills/skillopt-sleep/scripts/python/replay.py +146 -0
- package/template/skills/skillopt-sleep/scripts/python/rollout.py +153 -0
- package/template/skills/skillopt-sleep/scripts/python/scheduler.py +138 -0
- package/template/skills/skillopt-sleep/scripts/python/slow_update.py +142 -0
- package/template/skills/skillopt-sleep/scripts/python/staging.py +103 -0
- package/template/skills/skillopt-sleep/scripts/python/state.py +96 -0
- package/template/skills/skillopt-sleep/scripts/python/tasks_file.py +81 -0
- package/template/skills/skillopt-sleep/scripts/python/types.py +146 -0
- package/template/skills/skillopt-sleep/scripts/shell/__init__.py +0 -0
- package/template/skills/skillopt-sleep/scripts/shell/eval_only.py +466 -0
- package/template/skills/skillopt-sleep/scripts/shell/materialize_searchqa.py +148 -0
- package/template/skills/skillopt-sleep/scripts/shell/run_alfworld.sh +60 -0
- package/template/skills/skillopt-sleep/scripts/shell/run_searchqa.sh +40 -0
- package/template/skills/skillopt-sleep/scripts/shell/run_spreadsheetbench.sh +39 -0
- package/template/skills/skillopt-sleep/scripts/shell/train.py +556 -0
- package/template/skills/ponytail/SKILL.md +0 -117
- package/template/skills/ponytail-audit/SKILL.md +0 -41
- package/template/skills/ponytail-debt/SKILL.md +0 -44
- package/template/skills/ponytail-gain/SKILL.md +0 -50
- package/template/skills/ponytail-help/SKILL.md +0 -69
- 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.
|