Skip to content

docs: SWE-Bench Qwen3-Coder-7B example (32%→76.4%, 4, one night) - #9

Closed
Protocol-zero-0 wants to merge 3 commits into
mainfrom
docs/readme-update
Closed

docs: SWE-Bench Qwen3-Coder-7B example (32%→76.4%, 4, one night)#9
Protocol-zero-0 wants to merge 3 commits into
mainfrom
docs/readme-update

Conversation

@Protocol-zero-0

Copy link
Copy Markdown
Owner

Summary

Replace the game AI example with a more compelling real-world AI benchmark scenario:

$34. One overnight run. A frozen 7B model from 32.4% to 76.4% on SWE-Bench Verified — matching 30B closed models. Zero weight changes.

The example shows 5 generations of hypothesis-driven improvement:

  • gen 02: n=5 self-consistency voting → 41.8%
  • gen 05: SWE-agent ACI file editor → 53.6%
  • gen 09: ast-grep dep scan (LLM read the ledger and diagnosed failure pattern) → 61.2%
  • gen 13: diagnose-then-retry → 68.7%
  • gen 17: TDD mode → 76.4% (exceeds Qwen3-Coder-Next 80B MoE)

Both README.md and README.zh.md updated with matching content.

Documentation-only — no code changed.

🤖 Generated with Claude Code

Protocol-zero-0 and others added 2 commits May 10, 2026 20:44
- Replace test coverage example with game AI evolution (35→72% win rate)
  — more visceral, shows self-correction on rejection, closer to AlphaEvolve spirit
- Add progress bar visual (before/after) and round-by-round terminal output
- Add callout on why Round 3 rejection matters (memory / no repeated mistakes)
- Update architecture Mermaid with emoji labels and loop subgraph label
- Full rewrite of README.zh.md as faithful Chinese translation (was stale v0)
- Fix zh-CN badge URLs and remove Token-Ignition/legacy references

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
$34, one overnight run, frozen 7B model goes from 32.4% to 76.4% on
SWE-Bench Verified — matching Mistral Medium 3.5 and Qwen3.6-27B.

Shows 5 generations of reasoned hypothesis: voting → ACI editor →
ast-grep dep scan → diagnose-then-retry → TDD mode. Gen 09 is the
tell: LLM reads the ledger, diagnoses multi-file dep failures, reaches
for ast-grep unprompted. Chinese README updated to match.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 10, 2026 21:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s documentation to replace the prior introductory example content with a SWE-Bench Verified benchmark scenario, and refreshes both English and Chinese READMEs to better explain the closed-loop “evolution” workflow, ledger artifacts, and CLI usage.

Changes:

  • Reworks the main example narrative to a SWE-Bench Verified improvement run (Qwen3-Coder-7B 32.4% → 76.4%) and updates the Quick Start accordingly.
  • Expands/modernizes the README structure: loop steps table, ledger/audit explanation, architecture diagram, CLI/install/test sections.
  • Applies corresponding updates to README.zh.md to keep it aligned with the English README.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 10 comments.

File Description
README.md Replaces the main example with a SWE-Bench scenario and restructures sections describing the loop, ledger, and CLI usage.
README.zh.md Mirrors the README restructure and SWE-Bench example content in Chinese.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated

[gen 21] STOP — 4 generations with no significant improvement

{"halted": true, "reason": "max_consecutive_failures", "iterations": 21,
Comment thread README.zh.md Outdated

[gen 21] STOP — 连续 4 代无显著改进

{"halted": true, "reason": "max_consecutive_failures", "iterations": 21,
Comment thread README.md Outdated
```
ledger/
.evolution_state.json # persisted counters (iterations, usd, tokens) — survives restarts
.evolution_state.json ← budget counters; survives restarts
Comment thread README.md
Comment on lines 175 to +181
0001/
config.json # full snapshot of your evolution.yml
observation.json # raw output of your evidence_sources commands
plan.json # LLM plan: summary, steps, expected_improvement
patch.diff # exact diff the executor applied
candidate_commit.txt # git SHA of the sandbox commit
evaluation.json # verdict + metrics + cost_usd + tokens_used
decision.json # accept / reject + reason
reflection.json # one-line summary injected into the next round's history
0002/
...
config.json ← full snapshot of your evolution.yml
observation.json ← raw output of your evidence_sources commands
plan.json ← LLM plan: summary · steps · expected_improvement
patch.diff ← exact diff the executor applied
candidate_commit.txt ← git SHA of the sandbox commit
evaluation.json ← verdict + metrics + cost_usd + tokens_used
Comment thread README.zh.md Outdated
--evaluator python3 /path/to/evaluator.py
```
ledger/
.evolution_state.json ← 预算计数器,进程重启后依然有效
Comment thread README.zh.md
Comment on lines +177 to +180
observation.json ← evidence_sources 命令的原始输出
plan.json ← LLM 方案:摘要 · 步骤 · 预期改进
patch.diff ← 执行器实际应用的 diff
candidate_commit.txt ← 沙箱 commit 的 git SHA
Comment thread README.md Outdated
evolution-kernel --config evolution.yml --repo /path/to/repo --ledger /tmp/ledger

# Reset hard-stop counters to start a fresh session
# Reset budget counters after a halt
Comment thread README.zh.md Outdated
--config examples/evolution.yml \
--repo examples/demo_target \
--ledger /tmp/ek-ledger
# 触发 halt 后重置预算计数器
Comment thread README.md Outdated
Comment on lines +245 to +246
# Required — what "better" means for your project
mission: "Evolve the game AI to win at least 60% of games"
Comment thread README.zh.md Outdated
Comment on lines +245 to +246
# 必填——"更好"对你的项目意味着什么
mission: "让游戏 AI 对内置对手的胜率达到 60% 以上"
- Halted JSON: match actual CLI output format and reason string
  ("max_consecutive_failures reached (4)", not bare key + stats)
- .evolution_state.json: label as "hard-stop state" not "budget counters"
  (also tracks iterations and consecutive_failures)
- Ledger file list: add planner_input.json, executor_input.json/output,
  evaluator_input.json; clarify halted/ contains full run stats
- --reset CLI comment: "Reset all hard-stop state" not "budget counters"
- Config reference mission: align with SWE-Bench example, drop game-AI mission

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Protocol-zero-0

Copy link
Copy Markdown
Owner Author

Closing — superseded by docs/readme-final which cherry-picks cleanly onto current main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants