Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,41 @@

---

> ### ▶ Try in 10 minutes
>
> ```bash
> pip install -e . && pip install ruff
> bash examples/quickstart/setup.sh
> evolution-kernel \
> --config examples/quickstart/evolution.yml \
> --repo /tmp/ek-quickstart-target \
> --ledger /tmp/ek-quickstart-ledger \
> --loop
> ```
>
> Closes the full loop in **~1 second**, **\$0**, **no API key**. See [examples/quickstart/](examples/quickstart/) for what just happened. For the LLM-driven version on a real OSS target, see [examples/oss_fix_demo/](examples/oss_fix_demo/).

### How the loop works

```
┌─ Observe ─┐ ┌─ Plan ─┐ ┌─ Execute ─┐ ┌─ Evaluate ─┐
│ metrics │ → │ LLM │ → │ worktree │ → │ re-run │
│ ruff/test │ │ + hist │ │ + agent │ │ metric │
└─────┬─────┘ └────────┘ └─────┬─────┘ └──────┬─────┘
│ │ │
│ ┌─────────────────┴──────────────────┘
│ ▼
│ ✅ accept → real git commit on evolution/accepted
│ ❌ reject → worktree discarded, experiment branch kept for audit
│ │
└────────────┴────► ledger: goal · obs · plan · diff · eval · decision · reflection
(every step replayable, every change rollback-able)
```

Each pass writes a complete forensic record to `runs/<id>/`. Nothing the kernel decides is held in memory; everything is reconstructable from the ledger alone.

---

## Motivation

Frontier-class agent behavior is the joint product of *the model* and *the harness that runs it* — prompt structure, tool loop, sampling and best-of-N, verifier, retry policy. Today that harness is hand-tuned by senior engineers at every serious AI lab, and the resulting code is usually the actual ceiling against which the base model is judged.
Expand Down
35 changes: 35 additions & 0 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,41 @@

---

> ### ▶ 10 分钟跑通
>
> ```bash
> pip install -e . && pip install ruff
> bash examples/quickstart/setup.sh
> evolution-kernel \
> --config examples/quickstart/evolution.yml \
> --repo /tmp/ek-quickstart-target \
> --ledger /tmp/ek-quickstart-ledger \
> --loop
> ```
>
> 整个闭环 **~1 秒** 跑完,**\$0**,**无需 API key**。详见 [examples/quickstart/](examples/quickstart/)。需要 LLM 驱动的真实 OSS 修复案例,见 [examples/oss_fix_demo/](examples/oss_fix_demo/)。

### 闭环工作流

```
┌─ Observe ─┐ ┌─ Plan ─┐ ┌─ Execute ─┐ ┌─ Evaluate ─┐
│ 指标 │ → │ LLM + │ → │ worktree │ → │ 重跑指标 │
│ ruff/test │ │ 历史 │ │ + agent │ │ │
└─────┬─────┘ └────────┘ └─────┬─────┘ └──────┬─────┘
│ │ │
│ ┌─────────────────┴──────────────────┘
│ ▼
│ ✅ accept → evolution/accepted 上的真实 git commit
│ ❌ reject → worktree 销毁,实验分支保留供审计
│ │
└────────────┴────► ledger: goal · obs · plan · diff · eval · decision · reflection
(每一步可重放,每个变更可回滚)
```

每一轮都把完整的取证记录写进 `runs/<id>/`。内核不在内存里保留任何决策状态,所有信息都能从 ledger 重建。

---

## 动机

旗舰级 agent 能力是 *模型* 和 *运行它的 harness* 的联合产出——prompt 结构、工具循环、采样和 best-of-N、验证器、重试策略。今天这套 harness 在每家严肃的 AI 实验室都靠资深工程师手调,最终结果通常就是评判基座模型时实际的能力上限。
Expand Down
Loading