@c-d-cc/reap 0.16.4 → 0.16.6
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.de.md +19 -8
- package/README.ja.md +19 -8
- package/README.ko.md +19 -8
- package/README.md +103 -52
- package/README.zh-CN.md +19 -8
- package/RELEASE_NOTICE.md +6 -0
- package/dist/adapters/claude-code/skills/reap.early-close.md +5 -0
- package/dist/adapters/claude-code/skills/reap.evolve.md +2 -0
- package/dist/adapters/opencode/plugin/reap-plugin.ts +69 -0
- package/dist/adapters/opencode/templates/agents.md +40 -0
- package/dist/cli/index.js +5516 -3832
- package/dist/templates/agents/reap-evaluate.md +199 -0
- package/dist/templates/agents/reap-evolve.md +7 -0
- package/dist/templates/claude-md-section.md +29 -11
- package/dist/templates/reap-guide.md +67 -2
- package/package.json +2 -1
package/README.de.md
CHANGED
|
@@ -19,16 +19,16 @@ REAP ist eine generationsbasierte Entwicklungspipeline, in der KI und Menschen z
|
|
|
19
19
|
|
|
20
20
|
- [Was ist REAP?](#was-ist-reap)
|
|
21
21
|
- [Installation](#installation)
|
|
22
|
-
- [Schnellstart](#schnellstart)
|
|
22
|
+
- [Schnellstart](#schnellstart-)
|
|
23
23
|
- [Lebenszyklus](#lebenszyklus-)
|
|
24
24
|
- [Kernkonzepte](#kernkonzepte-)
|
|
25
25
|
- [Merge-Lebenszyklus](#merge-lebenszyklus-)
|
|
26
26
|
- [Selbstentwickelnde Funktionen](#selbstentwickelnde-funktionen-)
|
|
27
|
-
- [Slash Commands](#slash-commands)
|
|
27
|
+
- [Slash Commands](#slash-commands-)
|
|
28
28
|
- [Agentenintegration](#agentenintegration-)
|
|
29
29
|
- [Projektstruktur](#projektstruktur)
|
|
30
30
|
- [Konfiguration](#konfiguration-)
|
|
31
|
-
- [Upgrade von v0.15](#upgrade-von-v015)
|
|
31
|
+
- [Upgrade von v0.15](#upgrade-von-v015-)
|
|
32
32
|
|
|
33
33
|
## Was ist REAP? [↗](https://reap.cc/docs/introduction)
|
|
34
34
|
|
|
@@ -57,11 +57,13 @@ REAP löst diese Probleme mit einem **selbstentwickelnden Generationsmodell**:
|
|
|
57
57
|
npm install -g @c-d-cc/reap
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
> **Voraussetzungen**: [Node.js](https://nodejs.org) v18
|
|
60
|
+
> **Voraussetzungen**: [Node.js](https://nodejs.org) v18+ und ein unterstützter KI-Agent:
|
|
61
|
+
> - [Claude Code](https://claude.ai/claude-code) CLI (Standard)
|
|
62
|
+
> - [OpenCode](https://opencode.ai) — setzen Sie `agentClient: opencode` in `.reap/config.yml` nach `/reap.init`
|
|
61
63
|
|
|
62
64
|
## Schnellstart [↗](https://reap.cc/docs/quick-start)
|
|
63
65
|
|
|
64
|
-
Öffnen Sie Ihren KI-Agenten (Claude Code) und verwenden Sie Slash Commands:
|
|
66
|
+
Öffnen Sie Ihren KI-Agenten (Claude Code oder OpenCode) und verwenden Sie Slash Commands:
|
|
65
67
|
|
|
66
68
|
```bash
|
|
67
69
|
# REAP in Ihrem Projekt initialisieren (erkennt automatisch Greenfield vs. bestehende Codebasis)
|
|
@@ -73,6 +75,8 @@ npm install -g @c-d-cc/reap
|
|
|
73
75
|
|
|
74
76
|
`/reap.evolve` steuert den gesamten Generationslebenszyklus — vom Lernen bis zum Abschluss. Die KI erkundet das Projekt, plant die Arbeit, implementiert sie, validiert und reflektiert. Dies ist der primäre Befehl für die tägliche Entwicklung.
|
|
75
77
|
|
|
78
|
+
> **OpenCode-Benutzer**: Nach `/reap.init` setzen Sie `agentClient: opencode` in `.reap/config.yml` und führen `reap update` aus, um client-spezifische Assets neu zu generieren (`opencode.json`, `.opencode/plugins/reap-plugin.ts`, `AGENTS.md` und Slash-Befehle unter `~/.config/opencode/commands/`).
|
|
79
|
+
|
|
76
80
|
> **Hinweis:** Benutzer interagieren mit REAP über `/reap.*` Slash Commands in ihrem KI-Agenten. Die CLI ist die interne Engine, die diese Befehle antreibt.
|
|
77
81
|
|
|
78
82
|
## Lebenszyklus [↗](https://reap.cc/docs/lifecycle)
|
|
@@ -210,6 +214,7 @@ N Generationen für autonome Ausführung vorab genehmigen:
|
|
|
210
214
|
| `/reap.start` | Eine neue Generation starten |
|
|
211
215
|
| `/reap.next` | Zur nächsten Phase vorrücken |
|
|
212
216
|
| `/reap.back` | Zu einer vorherigen Phase zurückkehren |
|
|
217
|
+
| `/reap.early-close` | Schlankes Beenden — bewahrt Teilwerte, verschiebt unvollständige Aufgaben automatisch |
|
|
213
218
|
| `/reap.abort` | Aktuelle Generation abbrechen |
|
|
214
219
|
| `/reap.knowledge` | Genome/Environment überprüfen und verwalten |
|
|
215
220
|
| `/reap.merge` | Merge-Lebenszyklus-Operationen |
|
|
@@ -223,13 +228,19 @@ N Generationen für autonome Ausführung vorab genehmigen:
|
|
|
223
228
|
|
|
224
229
|
## Agentenintegration
|
|
225
230
|
|
|
226
|
-
REAP integriert sich über
|
|
231
|
+
REAP integriert sich über eine Adapterschicht, die auf dem `agentClient`-Konfigurationsfeld basiert, mit KI-Agenten. Aktuell unterstützte Clients:
|
|
232
|
+
|
|
233
|
+
- **Claude Code** (`agentClient: claude-code`, Standard) — statisches Wissen über `@`-Imports in `CLAUDE.md`; dynamischer Zustand über den `SessionStart`-Hook (`reap load-context`); Slash-Befehle installiert unter `~/.claude/commands/reap.*.md`.
|
|
234
|
+
- **OpenCode** (`agentClient: opencode`) — statisches Wissen über das `instructions`-Feld von `opencode.json`; dynamischer Zustand über `.reap/.session-state.md`, automatisch aktualisiert vom gebündelten OpenCode-Plugin (`.opencode/plugins/reap-plugin.ts`) bei `session.created` / `tool.execute.before`; Slash-Befehle installiert unter `~/.config/opencode/commands/reap.*.md`.
|
|
235
|
+
|
|
236
|
+
Wechseln Sie Clients, indem Sie `.reap/config.yml` bearbeiten, dann `reap install-skills` gefolgt von `reap update` ausführen. REAP regeneriert die Entry-Point-Datei (CLAUDE.md vs AGENTS.md), die Session-Integration und alle client-spezifischen Assets. Das Präfix `reap.` in Slash-Befehlsverzeichnissen ist reserviert — Installationen sind cleanup-then-copy und überschreiben alle `reap.*.md`-Dateien an diesen Orten. Verwenden Sie für benutzerdefinierte Befehle ein anderes Präfix (`mytool.md`, `team.md` usw.).
|
|
227
237
|
|
|
228
238
|
### Funktionsweise
|
|
229
239
|
|
|
230
|
-
1. **CLAUDE.md
|
|
231
|
-
2. **Slash
|
|
240
|
+
1. **Entry-Point-Datei** (`CLAUDE.md` für claude-code, `AGENTS.md` für opencode) weist die KI an, Genome, Environment und reap-guide beim Sitzungsstart zu laden
|
|
241
|
+
2. **Slash-Befehle** — `/reap.start`, `/reap.status`, `/reap.evolve` usw. funktionieren in Claude Code und OpenCode; jeder ruft `reap run <cmd>` auf, das strukturierte JSON-Anweisungen an die KI zurückgibt
|
|
232
242
|
3. **Signaturbasiertes Locking** (Nonce-Chain) erzwingt die Phasenreihenfolge auf Code-Ebene — kein Überspringen, keine Fälschung, kein Replay
|
|
243
|
+
4. **Dynamischer Zustands-Dump** — jeder REAP-Lebenszyklusbefehl schreibt synchron in `.reap/.session-state.md`, sodass OpenCode-Benutzer in der nächsten Sitzung immer den Zustand nach dem Befehl sehen
|
|
233
244
|
|
|
234
245
|
### Subagent-Modus
|
|
235
246
|
|
package/README.ja.md
CHANGED
|
@@ -19,16 +19,16 @@ REAPは、AIと人間が協力してソフトウェアを構築・進化させ
|
|
|
19
19
|
|
|
20
20
|
- [REAPとは?](#reapとは)
|
|
21
21
|
- [インストール](#インストール)
|
|
22
|
-
- [クイックスタート](
|
|
22
|
+
- [クイックスタート](#クイックスタート-)
|
|
23
23
|
- [ライフサイクル](#ライフサイクル-)
|
|
24
24
|
- [コアコンセプト](#コアコンセプト-)
|
|
25
25
|
- [マージライフサイクル](#マージライフサイクル-)
|
|
26
26
|
- [自己進化機能](#自己進化機能-)
|
|
27
|
-
- [スラッシュコマンド](
|
|
27
|
+
- [スラッシュコマンド](#スラッシュコマンド-)
|
|
28
28
|
- [エージェント統合](#エージェント統合-)
|
|
29
29
|
- [プロジェクト構造](#プロジェクト構造)
|
|
30
30
|
- [設定](#設定-)
|
|
31
|
-
- [v0.15からのアップグレード](#v015
|
|
31
|
+
- [v0.15からのアップグレード](#v015からのアップグレード-)
|
|
32
32
|
|
|
33
33
|
## REAPとは? [↗](https://reap.cc/docs/introduction)
|
|
34
34
|
|
|
@@ -57,11 +57,13 @@ REAPはこれらを**自己進化型ジェネレーションモデル**で解決
|
|
|
57
57
|
npm install -g @c-d-cc/reap
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
> **要件**: [Node.js](https://nodejs.org) v18
|
|
60
|
+
> **要件**: [Node.js](https://nodejs.org) v18以上、およびサポートされるAIエージェントの1つ:
|
|
61
|
+
> - [Claude Code](https://claude.ai/claude-code) CLI(デフォルト)
|
|
62
|
+
> - [OpenCode](https://opencode.ai) — `/reap.init` 後に `.reap/config.yml` で `agentClient: opencode` に設定
|
|
61
63
|
|
|
62
64
|
## クイックスタート [↗](https://reap.cc/docs/quick-start)
|
|
63
65
|
|
|
64
|
-
AIエージェント(Claude Code)を開き、スラッシュコマンドを使います:
|
|
66
|
+
AIエージェント(Claude Code または OpenCode)を開き、スラッシュコマンドを使います:
|
|
65
67
|
|
|
66
68
|
```bash
|
|
67
69
|
# プロジェクトにREAPを初期化(新規/既存コードベースを自動判別)
|
|
@@ -73,6 +75,8 @@ AIエージェント(Claude Code)を開き、スラッシュコマンドを
|
|
|
73
75
|
|
|
74
76
|
`/reap.evolve` はジェネレーションライフサイクル全体を駆動します — 学習から完了まで。AIがプロジェクトを探索し、作業を計画し、実装し、検証し、振り返ります。日常の開発で使うメインコマンドです。
|
|
75
77
|
|
|
78
|
+
> **OpenCodeユーザー**: `/reap.init` 後、`.reap/config.yml` で `agentClient: opencode` に設定し、`reap update` を実行してクライアント固有のアセット(`opencode.json`、`.opencode/plugins/reap-plugin.ts`、`AGENTS.md`、`~/.config/opencode/commands/` のスラッシュコマンド)を再生成してください。
|
|
79
|
+
|
|
76
80
|
> **注意:** ユーザーはAIエージェント内の `/reap.*` スラッシュコマンドを通じてREAPとやり取りします。CLIはそれらのコマンドを動かす内部エンジンです。
|
|
77
81
|
|
|
78
82
|
## ライフサイクル [↗](https://reap.cc/docs/lifecycle)
|
|
@@ -210,6 +214,7 @@ N世代分の自律実行を事前承認:
|
|
|
210
214
|
| `/reap.start` | 新しいジェネレーションを開始 |
|
|
211
215
|
| `/reap.next` | 次のステージへ進む |
|
|
212
216
|
| `/reap.back` | 前のステージに戻る |
|
|
217
|
+
| `/reap.early-close` | 軽量終了 — 部分的な価値を保存、未完了タスクを自動的に次世代へ繰り越し |
|
|
213
218
|
| `/reap.abort` | 現在のジェネレーションを中止 |
|
|
214
219
|
| `/reap.knowledge` | genome/environment のレビューと管理 |
|
|
215
220
|
| `/reap.merge` | マージライフサイクル操作 |
|
|
@@ -223,13 +228,19 @@ N世代分の自律実行を事前承認:
|
|
|
223
228
|
|
|
224
229
|
## エージェント統合
|
|
225
230
|
|
|
226
|
-
REAP
|
|
231
|
+
REAPは`agentClient` configフィールドをキーとするアダプタレイヤーを通じてAIエージェントと統合します。現在サポートされているクライアント:
|
|
232
|
+
|
|
233
|
+
- **Claude Code** (`agentClient: claude-code`, デフォルト) — `CLAUDE.md`の`@`インポートで静的ナレッジ; SessionStartフック(`reap load-context`)で動的状態を注入; スラッシュコマンドは`~/.claude/commands/reap.*.md`にインストール。
|
|
234
|
+
- **OpenCode** (`agentClient: opencode`) — `opencode.json`の`instructions`フィールドで静的ナレッジ; `.reap/.session-state.md`で動的状態を伝達、バンドルされたOpenCodeプラグイン(`.opencode/plugins/reap-plugin.ts`)が`session.created` / `tool.execute.before`時に自動更新; スラッシュコマンドは`~/.config/opencode/commands/reap.*.md`にインストール。
|
|
235
|
+
|
|
236
|
+
`.reap/config.yml`を編集してから`reap install-skills`に続いて`reap update`を実行することでクライアントを切り替えます。REAPはエントリーポイントファイル(CLAUDE.md vs AGENTS.md)、セッション統合、およびクライアント固有のアセットを再生成します。スラッシュコマンドディレクトリの`reap.`プレフィックスは予約されています — インストールはcleanup-then-copy方式で、その場所の`reap.*.md`ファイルを上書きします。カスタムコマンドには別のプレフィックス(`mytool.md`、`team.md`など)を使用してください。
|
|
227
237
|
|
|
228
238
|
### 仕組み
|
|
229
239
|
|
|
230
|
-
1.
|
|
231
|
-
2. **スラッシュコマンド**
|
|
240
|
+
1. **エントリーポイントファイル** (claude-codeでは`CLAUDE.md`、opencodeでは`AGENTS.md`)がセッション開始時にgenome、environment、reap-guideをロードするようAIに指示
|
|
241
|
+
2. **スラッシュコマンド** — `/reap.start`、`/reap.status`、`/reap.evolve`などはClaude CodeとOpenCodeの両方で動作; それぞれが`reap run <cmd>`を呼び出し、AIに構造化されたJSON指示を返す
|
|
232
242
|
3. **署名ベースのロック**(nonceチェーン)がコードレベルでステージの順序を強制 — スキップ・偽造・リプレイ不可
|
|
243
|
+
4. **動的状態ダンプ** — すべてのREAPライフサイクルコマンドが同期的に`.reap/.session-state.md`に書き込むため、OpenCodeユーザーは次のセッションで常にコマンド後の状態を確認可能
|
|
233
244
|
|
|
234
245
|
### Subagent Mode
|
|
235
246
|
|
package/README.ko.md
CHANGED
|
@@ -19,16 +19,16 @@ REAP는 AI와 인간이 협력하여 소프트웨어를 구축하고 진화시
|
|
|
19
19
|
|
|
20
20
|
- [REAP란 무엇인가?](#reap란-무엇인가)
|
|
21
21
|
- [설치](#설치)
|
|
22
|
-
- [빠른 시작](
|
|
22
|
+
- [빠른 시작](#빠른-시작-)
|
|
23
23
|
- [생명 주기](#생명-주기-)
|
|
24
24
|
- [핵심 개념](#핵심-개념-)
|
|
25
25
|
- [병합 생명 주기](#병합-생명-주기-)
|
|
26
26
|
- [자기 진화 기능](#자기-진화-기능-)
|
|
27
|
-
- [슬래시 명령어](
|
|
27
|
+
- [슬래시 명령어](#슬래시-명령어-)
|
|
28
28
|
- [에이전트 통합](#에이전트-통합-)
|
|
29
29
|
- [프로젝트 구조](#프로젝트-구조)
|
|
30
30
|
- [설정](#설정-)
|
|
31
|
-
- [v0.15에서 업그레이드](#v015
|
|
31
|
+
- [v0.15에서 업그레이드](#v015에서-업그레이드-)
|
|
32
32
|
|
|
33
33
|
## REAP란 무엇인가? [↗](https://reap.cc/docs/introduction)
|
|
34
34
|
|
|
@@ -57,11 +57,13 @@ REAP는 이러한 문제를 **자기 진화 세대 모델**로 해결합니다:
|
|
|
57
57
|
npm install -g @c-d-cc/reap
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
> **요구 사항**: [Node.js](https://nodejs.org) v18
|
|
60
|
+
> **요구 사항**: [Node.js](https://nodejs.org) v18+ 및 지원되는 AI 에이전트 중 하나:
|
|
61
|
+
> - [Claude Code](https://claude.ai/claude-code) CLI (기본값)
|
|
62
|
+
> - [OpenCode](https://opencode.ai) — `/reap.init` 후 `.reap/config.yml`에서 `agentClient: opencode`로 설정
|
|
61
63
|
|
|
62
64
|
## 빠른 시작 [↗](https://reap.cc/docs/quick-start)
|
|
63
65
|
|
|
64
|
-
AI 에이전트(Claude Code)를 열고 슬래시 명령어를 사용하세요:
|
|
66
|
+
AI 에이전트(Claude Code 또는 OpenCode)를 열고 슬래시 명령어를 사용하세요:
|
|
65
67
|
|
|
66
68
|
```bash
|
|
67
69
|
# 프로젝트에 REAP 초기화 (신규 프로젝트 vs 기존 코드베이스 자동 감지)
|
|
@@ -73,6 +75,8 @@ AI 에이전트(Claude Code)를 열고 슬래시 명령어를 사용하세요:
|
|
|
73
75
|
|
|
74
76
|
`/reap.evolve`는 학습부터 완료까지 전체 세대 생명 주기를 주도합니다. AI가 프로젝트를 탐색하고, 작업을 계획하고, 구현하고, 검증하고, 회고합니다. 일상적인 개발에서 사용하는 주요 명령어입니다.
|
|
75
77
|
|
|
78
|
+
> **OpenCode 사용자**: `/reap.init` 후 `.reap/config.yml`에서 `agentClient: opencode`로 설정하고 `reap update`를 실행하여 클라이언트별 자산(`opencode.json`, `.opencode/plugins/reap-plugin.ts`, `AGENTS.md`, `~/.config/opencode/commands/`의 슬래시 명령)을 재생성하세요.
|
|
79
|
+
|
|
76
80
|
> **참고:** 사용자는 AI 에이전트에서 `/reap.*` 슬래시 명령어를 통해 REAP와 상호작용합니다. CLI는 이러한 명령어를 구동하는 내부 엔진입니다.
|
|
77
81
|
|
|
78
82
|
## 생명 주기 [↗](https://reap.cc/docs/lifecycle)
|
|
@@ -210,6 +214,7 @@ N개 세대를 사전 승인하여 자율 실행:
|
|
|
210
214
|
| `/reap.start` | 새 세대 시작 |
|
|
211
215
|
| `/reap.next` | 다음 단계로 진행 |
|
|
212
216
|
| `/reap.back` | 이전 단계로 돌아감 |
|
|
217
|
+
| `/reap.early-close` | 경량 종료 — 부분 가치 보존, 미완 task 자동 승계 |
|
|
213
218
|
| `/reap.abort` | 현재 세대 중단 |
|
|
214
219
|
| `/reap.knowledge` | genome/environment 검토 및 관리 |
|
|
215
220
|
| `/reap.merge` | 병합 생명 주기 작업 |
|
|
@@ -223,13 +228,19 @@ N개 세대를 사전 승인하여 자율 실행:
|
|
|
223
228
|
|
|
224
229
|
## 에이전트 통합
|
|
225
230
|
|
|
226
|
-
REAP는
|
|
231
|
+
REAP는 `agentClient` config 필드를 기준으로 adapter layer를 통해 AI 에이전트와 통합됩니다. 현재 지원되는 클라이언트:
|
|
232
|
+
|
|
233
|
+
- **Claude Code** (`agentClient: claude-code`, 기본값) — `CLAUDE.md`의 `@` import로 정적 knowledge 로드; SessionStart hook(`reap load-context`)으로 동적 상태 주입; 슬래시 명령은 `~/.claude/commands/reap.*.md`에 설치.
|
|
234
|
+
- **OpenCode** (`agentClient: opencode`) — `opencode.json`의 `instructions` 필드로 정적 knowledge 로드; `.reap/.session-state.md`로 동적 상태 전달, 번들된 OpenCode plugin(`.opencode/plugins/reap-plugin.ts`)이 `session.created` / `tool.execute.before` 시점에 자동 갱신; 슬래시 명령은 `~/.config/opencode/commands/reap.*.md`에 설치.
|
|
235
|
+
|
|
236
|
+
`.reap/config.yml`을 편집한 뒤 `reap install-skills`와 `reap update`를 실행하면 클라이언트 전환이 완료됩니다. REAP가 entry-point 파일(CLAUDE.md vs AGENTS.md), 세션 통합, 클라이언트별 자산을 재생성합니다. 슬래시 명령 디렉토리의 `reap.` 접두사는 예약되어 있으며 — 설치는 cleanup-then-copy 방식이라 해당 디렉토리의 `reap.*.md` 파일을 덮어씁니다. 사용자 정의 명령은 다른 접두사(`mytool.md`, `team.md` 등)를 사용하세요.
|
|
227
237
|
|
|
228
238
|
### 동작 방식
|
|
229
239
|
|
|
230
|
-
1. **CLAUDE.md
|
|
231
|
-
2. **슬래시
|
|
240
|
+
1. **Entry-point 파일** (claude-code는 `CLAUDE.md`, opencode는 `AGENTS.md`)이 세션 시작 시 genome, environment, reap-guide를 로딩하도록 AI에 지시
|
|
241
|
+
2. **슬래시 명령** — `/reap.start`, `/reap.status`, `/reap.evolve` 등은 Claude Code와 OpenCode 모두에서 작동; 각각 `reap run <cmd>`를 호출하여 AI에 구조화된 JSON 지시 반환
|
|
232
242
|
3. **서명 기반 잠금** (nonce 체인)이 코드 수준에서 단계 순서를 강제 — 건너뛰기, 위조, 재생 불가
|
|
243
|
+
4. **동적 상태 dump** — 모든 REAP 라이프사이클 명령이 동기적으로 `.reap/.session-state.md`에 기록하므로, OpenCode 사용자는 다음 세션에서 항상 명령 직후 상태를 확인 가능
|
|
233
244
|
|
|
234
245
|
### 서브에이전트 모드
|
|
235
246
|
|
package/README.md
CHANGED
|
@@ -21,16 +21,16 @@ REAP is a generation-based development pipeline where AI and humans collaborate
|
|
|
21
21
|
|
|
22
22
|
- [What is REAP?](#what-is-reap)
|
|
23
23
|
- [Installation](#installation)
|
|
24
|
-
- [Quick Start](#quick-start)
|
|
24
|
+
- [Quick Start](#quick-start-)
|
|
25
25
|
- [Life Cycle](#life-cycle-)
|
|
26
26
|
- [Core Concepts](#core-concepts-)
|
|
27
27
|
- [Merge Lifecycle](#merge-lifecycle-)
|
|
28
28
|
- [Self-Evolving Features](#self-evolving-features-)
|
|
29
|
-
- [Slash Commands](#slash-commands)
|
|
29
|
+
- [Slash Commands](#slash-commands-)
|
|
30
30
|
- [Agent Integration](#agent-integration-)
|
|
31
31
|
- [Project Structure](#project-structure)
|
|
32
32
|
- [Configuration](#configuration-)
|
|
33
|
-
- [Upgrading from v0.15](#upgrading-from-v015)
|
|
33
|
+
- [Upgrading from v0.15](#upgrading-from-v015-)
|
|
34
34
|
|
|
35
35
|
## What is REAP? [↗](https://reap.cc/docs/introduction)
|
|
36
36
|
|
|
@@ -59,11 +59,13 @@ REAP solves these with a **self-evolving generation model**:
|
|
|
59
59
|
npm install -g @c-d-cc/reap
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
> **Requirements**: [Node.js](https://nodejs.org) v18
|
|
62
|
+
> **Requirements**: [Node.js](https://nodejs.org) v18+ and one supported AI agent:
|
|
63
|
+
> - [Claude Code](https://claude.ai/claude-code) CLI (default)
|
|
64
|
+
> - [OpenCode](https://opencode.ai) — set `agentClient: opencode` in `.reap/config.yml` after `/reap.init`
|
|
63
65
|
|
|
64
66
|
## Quick Start [↗](https://reap.cc/docs/quick-start)
|
|
65
67
|
|
|
66
|
-
Open your AI agent (Claude Code) and use slash commands:
|
|
68
|
+
Open your AI agent (Claude Code or OpenCode) and use slash commands:
|
|
67
69
|
|
|
68
70
|
```bash
|
|
69
71
|
# Initialize REAP in your project (auto-detects greenfield vs existing codebase)
|
|
@@ -75,6 +77,8 @@ Open your AI agent (Claude Code) and use slash commands:
|
|
|
75
77
|
|
|
76
78
|
`/reap.evolve` drives the entire generation lifecycle — from learning through completion. The AI explores the project, plans the work, implements it, validates, and reflects. This is the primary command for day-to-day development.
|
|
77
79
|
|
|
80
|
+
> **OpenCode users**: After `/reap.init`, edit `.reap/config.yml` to set `agentClient: opencode`, then run `reap update` to regenerate client-specific assets (`opencode.json`, `.opencode/plugins/reap-plugin.ts`, `AGENTS.md`, and slash commands at `~/.config/opencode/commands/`).
|
|
81
|
+
|
|
78
82
|
> **Note:** Users interact with REAP through `/reap.*` slash commands in their AI agent. The CLI is the internal engine that powers those commands.
|
|
79
83
|
|
|
80
84
|
## Life Cycle [↗](https://reap.cc/docs/lifecycle)
|
|
@@ -85,13 +89,13 @@ Each generation follows a five-stage lifecycle.
|
|
|
85
89
|
learning → planning → implementation ⟷ validation → completion
|
|
86
90
|
```
|
|
87
91
|
|
|
88
|
-
| Stage
|
|
89
|
-
|
|
90
|
-
| **Learning**
|
|
91
|
-
| **Planning**
|
|
92
|
-
| **Implementation** | Build with AI-human collaboration
|
|
93
|
-
| **Validation**
|
|
94
|
-
| **Completion**
|
|
92
|
+
| Stage | What happens | Artifact |
|
|
93
|
+
| ------------------ | ----------------------------------------------------------------- | ---------------------- |
|
|
94
|
+
| **Learning** | Explore the project, build context, review genome and environment | `01-learning.md` |
|
|
95
|
+
| **Planning** | Define goal, decompose tasks, map dependencies | `02-planning.md` |
|
|
96
|
+
| **Implementation** | Build with AI-human collaboration | `03-implementation.md` |
|
|
97
|
+
| **Validation** | Run tests, verify completion criteria | `04-validation.md` |
|
|
98
|
+
| **Completion** | Reflect, collect fitness feedback, adapt genome, archive | `05-completion.md` |
|
|
95
99
|
|
|
96
100
|
## Core Concepts [↗](https://reap.cc/docs/core-concepts)
|
|
97
101
|
|
|
@@ -152,6 +156,7 @@ DAG metadata is preserved for branch-aware lineage traversal.
|
|
|
152
156
|
### Hooks [↗](https://reap.cc/docs/hooks)
|
|
153
157
|
|
|
154
158
|
File-based lifecycle event hooks in `.reap/hooks/`:
|
|
159
|
+
|
|
155
160
|
- `.md` files: AI prompts executed by the agent
|
|
156
161
|
- `.sh` files: Shell scripts executed directly
|
|
157
162
|
|
|
@@ -170,14 +175,14 @@ When multiple developers or agents work in parallel, REAP provides a genome-firs
|
|
|
170
175
|
detect → mate → merge → reconcile → validation → completion
|
|
171
176
|
```
|
|
172
177
|
|
|
173
|
-
| Stage
|
|
174
|
-
|
|
175
|
-
| **Detect**
|
|
176
|
-
| **Mate**
|
|
177
|
-
| **Merge**
|
|
178
|
-
| **Reconcile**
|
|
179
|
-
| **Validation** | Run tests
|
|
180
|
-
| **Completion** | Commit merged result and archive
|
|
178
|
+
| Stage | Purpose |
|
|
179
|
+
| -------------- | ---------------------------------------------- |
|
|
180
|
+
| **Detect** | Identify divergence between branches |
|
|
181
|
+
| **Mate** | Resolve genome conflicts first (human decides) |
|
|
182
|
+
| **Merge** | Merge source code guided by finalized genome |
|
|
183
|
+
| **Reconcile** | Verify genome-source consistency |
|
|
184
|
+
| **Validation** | Run tests |
|
|
185
|
+
| **Completion** | Commit merged result and archive |
|
|
181
186
|
|
|
182
187
|
## Self-Evolving Features [↗](https://reap.cc/docs/self-evolving)
|
|
183
188
|
|
|
@@ -200,42 +205,77 @@ The AI adjusts its communication style based on how well-defined the current con
|
|
|
200
205
|
### Cruise Mode
|
|
201
206
|
|
|
202
207
|
Pre-approve N generations for autonomous execution:
|
|
208
|
+
|
|
203
209
|
- The AI selects goals from vision gaps and runs the full lifecycle autonomously
|
|
204
210
|
- If uncertainty or risk is detected, cruise pauses and requests human feedback
|
|
205
211
|
- After all N generations complete, human reviews the batch
|
|
206
212
|
|
|
207
213
|
## Slash Commands [↗](https://reap.cc/docs/command-reference)
|
|
208
214
|
|
|
209
|
-
| Command
|
|
210
|
-
|
|
211
|
-
| `/reap.evolve`
|
|
212
|
-
| `/reap.start`
|
|
213
|
-
| `/reap.next`
|
|
214
|
-
| `/reap.back`
|
|
215
|
-
| `/reap.
|
|
216
|
-
| `/reap.
|
|
217
|
-
| `/reap.
|
|
218
|
-
| `/reap.
|
|
219
|
-
| `/reap.
|
|
220
|
-
| `/reap.
|
|
221
|
-
| `/reap.
|
|
222
|
-
| `/reap.
|
|
223
|
-
| `/reap.
|
|
224
|
-
| `/reap.
|
|
215
|
+
| Command | Description |
|
|
216
|
+
| ----------------- | -------------------------------------- |
|
|
217
|
+
| `/reap.evolve` | Run an entire generation (recommended) |
|
|
218
|
+
| `/reap.start` | Start a new generation |
|
|
219
|
+
| `/reap.next` | Advance to the next stage |
|
|
220
|
+
| `/reap.back` | Return to a previous stage |
|
|
221
|
+
| `/reap.early-close` | Lightweight termination — preserves partial value, auto-defers incomplete tasks |
|
|
222
|
+
| `/reap.abort` | Abort current generation |
|
|
223
|
+
| `/reap.knowledge` | Review and manage genome/environment |
|
|
224
|
+
| `/reap.merge` | Merge lifecycle operations |
|
|
225
|
+
| `/reap.pull` | Fetch + merge lifecycle |
|
|
226
|
+
| `/reap.push` | Validate + push |
|
|
227
|
+
| `/reap.status` | Check current state |
|
|
228
|
+
| `/reap.help` | Show available commands |
|
|
229
|
+
| `/reap.init` | Initialize REAP in a project |
|
|
230
|
+
| `/reap.run` | Execute a lifecycle command directly |
|
|
231
|
+
| `/reap.config` | View/edit project configuration |
|
|
232
|
+
| `/reap.report` | Submit a bug report or feature request |
|
|
225
233
|
|
|
226
234
|
## Agent Integration
|
|
227
|
-
|
|
235
|
+
|
|
236
|
+
REAP integrates with AI agents through an adapter layer keyed by the `agentClient` config field. Currently supported clients:
|
|
237
|
+
|
|
238
|
+
- **Claude Code** (`agentClient: claude-code`, default) — static knowledge via `@` imports in `CLAUDE.md`; dynamic state via `SessionStart` hook (`reap load-context`); slash commands installed to `~/.claude/commands/reap.*.md`.
|
|
239
|
+
- **OpenCode** (`agentClient: opencode`) — static knowledge via `opencode.json`'s `instructions` field; dynamic state via `.reap/.session-state.md`, auto-refreshed by the bundled OpenCode plugin (`.opencode/plugins/reap-plugin.ts`) on `session.created` / `tool.execute.before`; slash commands installed to `~/.config/opencode/commands/reap.*.md`.
|
|
240
|
+
|
|
241
|
+
Switch clients by editing `.reap/config.yml`, then run `reap install-skills` followed by `reap update`. REAP regenerates the entry-point file (CLAUDE.md vs AGENTS.md), the session integration, and any client-specific assets. The `reap.` prefix in slash command directories is reserved — installs are cleanup-then-copy and will overwrite any `reap.*.md` file in those locations. Use a different prefix (`mytool.md`, `team.md`, etc.) for custom commands.
|
|
228
242
|
|
|
229
243
|
### How It Works
|
|
230
244
|
|
|
231
|
-
1. **CLAUDE.md
|
|
232
|
-
2. **Slash commands**
|
|
245
|
+
1. **Entry-point file** (`CLAUDE.md` for claude-code, `AGENTS.md` for opencode) instructs the AI to load genome, environment, and reap-guide at session start
|
|
246
|
+
2. **Slash commands** — `/reap.start`, `/reap.status`, `/reap.evolve`, etc. work in both Claude Code and OpenCode; each invokes `reap run <cmd>`, which returns structured JSON instructions for the AI
|
|
233
247
|
3. **Signature-based locking** (nonce chain) enforces stage ordering at the code level — no skipping, no forgery, no replay
|
|
248
|
+
4. **Dynamic state dump** — every REAP lifecycle command synchronously writes `.reap/.session-state.md`, so OpenCode users always see the post-command state on the next session
|
|
234
249
|
|
|
235
250
|
### Subagent Mode
|
|
236
251
|
|
|
237
252
|
`/reap.evolve` can delegate the entire generation to a subagent that runs autonomously through all stages, surfacing only when genuinely blocked.
|
|
238
253
|
|
|
254
|
+
### Evaluator Agent (opt-in)
|
|
255
|
+
|
|
256
|
+
REAP ships a second subagent definition, `reap-evaluate`, that runs as an **independent reviewer** of the builder's work. It is read-only (Read/Glob/Grep/Bash only), produces qualitative assessments (no scores), and acts as an **advisor** — its concerns surface to you, but the builder owns the final lifecycle verdict.
|
|
257
|
+
|
|
258
|
+
Enable it by adding one line to `.reap/config.yml`:
|
|
259
|
+
|
|
260
|
+
```yaml
|
|
261
|
+
evaluator: true # default: false
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
When enabled, the validation stage instructs the builder to launch `reap-evaluate` as a subagent before declaring pass/partial/fail. The evaluator:
|
|
265
|
+
|
|
266
|
+
- runs typecheck, build, and the full test suite independently,
|
|
267
|
+
- cross-checks completion criteria from `02-planning.md` against the implementation,
|
|
268
|
+
- surfaces concerns about genome convention drift, sycophancy red flags, and regression risk,
|
|
269
|
+
- escalates per a confidence × impact matrix.
|
|
270
|
+
|
|
271
|
+
If the subagent invocation fails for any reason, the builder continues normal validation — the evaluator is opt-in advice, not a gate.
|
|
272
|
+
|
|
273
|
+
Agent definitions are installed automatically by `reap install-skills` **and** `reap update`:
|
|
274
|
+
- Claude Code → `~/.claude/agents/reap-*.md`
|
|
275
|
+
- OpenCode → `~/.config/opencode/agent/reap-*.md`
|
|
276
|
+
|
|
277
|
+
**Fitness phase + cruise mode** (gen-067): the evaluator also runs during the fitness phase. After receiving its reply, the builder persists the verdict on the generation state via `reap run validation --phase report-evaluator --severity <high|low|none> --summary "..."`. High-severity concerns recorded during validation **automatically abort cruise mode** when the next fitness phase runs — `cruiseCount` is cleared from `config.yml`, the cruise prompt is replaced with a supervised fallback, and the human reviews the concern before composing fitness feedback. Cruise can be resumed manually with `reap cruise <N>` once the concern is resolved. Low-severity concerns surface in the prompt's "Prior Evaluator Concerns" section without aborting cruise.
|
|
278
|
+
|
|
239
279
|
## Project Structure
|
|
240
280
|
|
|
241
281
|
```
|
|
@@ -269,20 +309,23 @@ my-project/
|
|
|
269
309
|
Project settings in `.reap/config.yml`:
|
|
270
310
|
|
|
271
311
|
```yaml
|
|
272
|
-
project: my-project
|
|
273
|
-
language: english
|
|
274
|
-
autoSubagent: true
|
|
275
|
-
strictEdit: false
|
|
276
|
-
strictMerge: false
|
|
277
|
-
agentClient: claude-code
|
|
312
|
+
project: my-project # Project name
|
|
313
|
+
language: english # Artifact/prompt language
|
|
314
|
+
autoSubagent: true # Auto-delegate to subagent in evolve
|
|
315
|
+
strictEdit: false # Restrict code changes to REAP lifecycle
|
|
316
|
+
strictMerge: false # Restrict direct git pull/push/merge
|
|
317
|
+
agentClient: claude-code # AI agent client
|
|
278
318
|
# cruiseCount: 1/5 # Present = cruise mode (current/total)
|
|
319
|
+
# evaluator: true # Opt-in: launch reap-evaluate during validation
|
|
279
320
|
```
|
|
280
321
|
|
|
281
322
|
Key settings:
|
|
323
|
+
|
|
282
324
|
- **`cruiseCount`**: When present, enables cruise mode. Format `current/total`. Removed after cruise completes.
|
|
283
325
|
- **`strictEdit`**: Restricts code changes to the implementation stage within the planned scope.
|
|
284
326
|
- **`strictMerge`**: Restricts direct git pull/push/merge — use `/reap.pull`, `/reap.push`, `/reap.merge` instead.
|
|
285
327
|
- **`agentClient`**: Determines which adapter is used for skill deployment.
|
|
328
|
+
- **`evaluator`**: Opt-in independent reviewer. When `true`, the validation stage launches the `reap-evaluate` subagent as an advisor (read-only, qualitative-only). Default `false` keeps validation byte-identical to pre-gen-066 behaviour. See [Evaluator Agent](#evaluator-agent-opt-in) above.
|
|
286
329
|
|
|
287
330
|
## Upgrading from v0.15 [↗](https://reap.cc/docs/migration-guide)
|
|
288
331
|
|
|
@@ -291,25 +334,28 @@ REAP v0.16 is a complete rewrite built on the [Self-Evolving Pipeline](https://r
|
|
|
291
334
|
### Migration Steps
|
|
292
335
|
|
|
293
336
|
1. **Install v0.16:**
|
|
337
|
+
|
|
294
338
|
```bash
|
|
295
339
|
npm install -g @c-d-cc/reap
|
|
296
340
|
```
|
|
341
|
+
|
|
297
342
|
This automatically installs v0.16 skills to `~/.claude/commands/` and removes legacy v0.15 project-level skills.
|
|
298
343
|
|
|
299
344
|
2. **Open Claude Code in your project** and run:
|
|
345
|
+
|
|
300
346
|
```
|
|
301
347
|
/reap.update
|
|
302
348
|
```
|
|
303
349
|
|
|
304
350
|
3. **Follow the multi-phase migration:**
|
|
305
351
|
|
|
306
|
-
| Phase
|
|
307
|
-
|
|
308
|
-
| **Confirm**
|
|
309
|
-
| **Execute**
|
|
310
|
-
| **Genome Convert** | AI reconstructs genome from v0.15 files into new 3-file structure | Review AI's work
|
|
311
|
-
| **Vision**
|
|
312
|
-
| **Complete**
|
|
352
|
+
| Phase | What happens | Your role |
|
|
353
|
+
| ------------------ | ----------------------------------------------------------------- | ------------------------- |
|
|
354
|
+
| **Confirm** | Shows what will change, creates backup at `.reap/v15/` | Review and confirm |
|
|
355
|
+
| **Execute** | Restructures directories, migrates config/hooks/lineage/backlog | Automatic |
|
|
356
|
+
| **Genome Convert** | AI reconstructs genome from v0.15 files into new 3-file structure | Review AI's work |
|
|
357
|
+
| **Vision** | Set up vision/goals.md and memory | Provide project direction |
|
|
358
|
+
| **Complete** | Summary of migration results | Verify |
|
|
313
359
|
|
|
314
360
|
4. **Verify** your project works:
|
|
315
361
|
```
|
|
@@ -330,27 +376,32 @@ All v0.15 files are preserved at `.reap/v15/`. After verifying the migration, yo
|
|
|
330
376
|
### What Changed
|
|
331
377
|
|
|
332
378
|
**Lifecycle redesigned:**
|
|
379
|
+
|
|
333
380
|
- The first stage is now `learning` (was `objective`). The AI explores the project before setting goals.
|
|
334
381
|
- Completion is now 4 phases: `reflect` → `fitness` → `adapt` → `commit` (was 5 phases).
|
|
335
382
|
- New concepts: embryo generations, cruise mode, vision-driven planning.
|
|
336
383
|
|
|
337
384
|
**Vision layer added:**
|
|
385
|
+
|
|
338
386
|
- `vision/goals.md` — long-term objectives, gap-driven goal selection at adapt phase
|
|
339
387
|
- `vision/memory/` — 3-tier memory (longterm, midterm, shortterm) for cross-generation context
|
|
340
388
|
- `vision/design/` — planning documents and specs
|
|
341
389
|
|
|
342
390
|
**Genome restructured (3 files):**
|
|
391
|
+
|
|
343
392
|
- `application.md` — project identity, architecture, conventions, constraints
|
|
344
393
|
- `evolution.md` — AI behavior guide, evolution direction, soft lifecycle rules
|
|
345
394
|
- `invariants.md` — absolute constraints (human-only edits)
|
|
346
395
|
|
|
347
396
|
**New features:**
|
|
397
|
+
|
|
348
398
|
- Clarity-driven interaction: AI adjusts communication depth based on context clarity
|
|
349
399
|
- Cruise mode: pre-approve N generations, AI runs autonomously with self-assessment
|
|
350
400
|
- Merge lifecycle with reconcile stage for genome-source consistency verification
|
|
351
401
|
- Vision system with 3-tier memory for cross-generation context
|
|
352
402
|
|
|
353
403
|
**Deprecated commands:**
|
|
404
|
+
|
|
354
405
|
- `/reap.sync` → `/reap.knowledge`
|
|
355
406
|
- `/reap.refreshKnowledge` → `/reap.knowledge`
|
|
356
407
|
|
package/README.zh-CN.md
CHANGED
|
@@ -19,16 +19,16 @@ REAP 是一个基于代际迭代的开发管道,AI 与人类协作构建和进
|
|
|
19
19
|
|
|
20
20
|
- [什么是 REAP?](#什么是-reap)
|
|
21
21
|
- [安装](#安装)
|
|
22
|
-
- [快速开始](
|
|
22
|
+
- [快速开始](#快速开始-)
|
|
23
23
|
- [生命周期](#生命周期-)
|
|
24
24
|
- [核心概念](#核心概念-)
|
|
25
25
|
- [合并生命周期](#合并生命周期-)
|
|
26
26
|
- [自进化特性](#自进化特性-)
|
|
27
|
-
- [斜杠命令](
|
|
27
|
+
- [斜杠命令](#斜杠命令-)
|
|
28
28
|
- [智能体集成](#智能体集成-)
|
|
29
29
|
- [项目结构](#项目结构)
|
|
30
30
|
- [配置](#配置-)
|
|
31
|
-
- [从 v0.15 升级](#从-v015
|
|
31
|
+
- [从 v0.15 升级](#从-v015-升级-)
|
|
32
32
|
|
|
33
33
|
## 什么是 REAP? [↗](https://reap.cc/docs/introduction)
|
|
34
34
|
|
|
@@ -57,11 +57,13 @@ REAP 通过**自进化代际模型**解决这些问题:
|
|
|
57
57
|
npm install -g @c-d-cc/reap
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
> **前提条件**:[Node.js](https://nodejs.org) v18
|
|
60
|
+
> **前提条件**:[Node.js](https://nodejs.org) v18+ 以及以下任一受支持的 AI 智能体:
|
|
61
|
+
> - [Claude Code](https://claude.ai/claude-code) CLI(默认)
|
|
62
|
+
> - [OpenCode](https://opencode.ai) — `/reap.init` 后在 `.reap/config.yml` 中设置 `agentClient: opencode`
|
|
61
63
|
|
|
62
64
|
## 快速开始 [↗](https://reap.cc/docs/quick-start)
|
|
63
65
|
|
|
64
|
-
打开你的 AI 智能体(Claude Code)并使用斜杠命令:
|
|
66
|
+
打开你的 AI 智能体(Claude Code 或 OpenCode)并使用斜杠命令:
|
|
65
67
|
|
|
66
68
|
```bash
|
|
67
69
|
# 在你的项目中初始化 REAP(自动检测是全新项目还是已有代码库)
|
|
@@ -73,6 +75,8 @@ npm install -g @c-d-cc/reap
|
|
|
73
75
|
|
|
74
76
|
`/reap.evolve` 驱动整个代际迭代生命周期——从学习到完成。AI 探索项目、规划工作、实施、验证并反思。这是日常开发的主要命令。
|
|
75
77
|
|
|
78
|
+
> **OpenCode 用户**:`/reap.init` 后,在 `.reap/config.yml` 中设置 `agentClient: opencode`,然后运行 `reap update` 以重新生成客户端特定的资产(`opencode.json`、`.opencode/plugins/reap-plugin.ts`、`AGENTS.md` 以及 `~/.config/opencode/commands/` 中的斜杠命令)。
|
|
79
|
+
|
|
76
80
|
> **注意:** 用户通过 AI 智能体中的 `/reap.*` 斜杠命令与 REAP 交互。CLI 是驱动这些命令的内部引擎。
|
|
77
81
|
|
|
78
82
|
## 生命周期 [↗](https://reap.cc/docs/lifecycle)
|
|
@@ -210,6 +214,7 @@ AI 根据当前上下文的明确程度调整其沟通风格:
|
|
|
210
214
|
| `/reap.start` | 开始一个新的代际迭代 |
|
|
211
215
|
| `/reap.next` | 推进到下一阶段 |
|
|
212
216
|
| `/reap.back` | 返回上一阶段 |
|
|
217
|
+
| `/reap.early-close` | 轻量级终止 — 保留部分价值,自动延迟未完成任务 |
|
|
213
218
|
| `/reap.abort` | 中止当前代际迭代 |
|
|
214
219
|
| `/reap.knowledge` | 审阅和管理 genome/environment |
|
|
215
220
|
| `/reap.merge` | 合并生命周期操作 |
|
|
@@ -223,13 +228,19 @@ AI 根据当前上下文的明确程度调整其沟通风格:
|
|
|
223
228
|
|
|
224
229
|
## 智能体集成
|
|
225
230
|
|
|
226
|
-
REAP
|
|
231
|
+
REAP 通过基于 `agentClient` 配置字段的适配器层与 AI 智能体集成。当前支持的客户端:
|
|
232
|
+
|
|
233
|
+
- **Claude Code** (`agentClient: claude-code`,默认) — 通过 `CLAUDE.md` 中的 `@` 导入加载静态知识;通过 SessionStart 钩子 (`reap load-context`) 注入动态状态;斜杠命令安装到 `~/.claude/commands/reap.*.md`。
|
|
234
|
+
- **OpenCode** (`agentClient: opencode`) — 通过 `opencode.json` 的 `instructions` 字段加载静态知识;通过 `.reap/.session-state.md` 传递动态状态,捆绑的 OpenCode 插件 (`.opencode/plugins/reap-plugin.ts`) 在 `session.created` / `tool.execute.before` 时自动刷新;斜杠命令安装到 `~/.config/opencode/commands/reap.*.md`。
|
|
235
|
+
|
|
236
|
+
通过编辑 `.reap/config.yml`,然后运行 `reap install-skills` 和 `reap update` 即可切换客户端。REAP 会重新生成入口点文件 (CLAUDE.md vs AGENTS.md)、会话集成以及任何客户端特定的资产。斜杠命令目录中的 `reap.` 前缀已保留 — 安装为先清理后复制方式,将覆盖这些位置中的任何 `reap.*.md` 文件。自定义命令请使用其他前缀 (`mytool.md`、`team.md` 等)。
|
|
227
237
|
|
|
228
238
|
### 工作原理
|
|
229
239
|
|
|
230
|
-
1.
|
|
231
|
-
2. **斜杠命令**
|
|
240
|
+
1. **入口点文件** (claude-code 为 `CLAUDE.md`,opencode 为 `AGENTS.md`) 指示 AI 在会话开始时加载 genome、environment 和 reap-guide
|
|
241
|
+
2. **斜杠命令** — `/reap.start`、`/reap.status`、`/reap.evolve` 等在 Claude Code 和 OpenCode 中均可工作;每个命令调用 `reap run <cmd>`,向 AI 返回结构化的 JSON 指令
|
|
232
242
|
3. **基于签名的锁定**(nonce 链)在代码层面强制执行阶段顺序——不可跳过、不可伪造、不可重放
|
|
243
|
+
4. **动态状态转储** — 每个 REAP 生命周期命令同步写入 `.reap/.session-state.md`,因此 OpenCode 用户在下次会话中始终能看到命令执行后的状态
|
|
233
244
|
|
|
234
245
|
### Subagent 模式
|
|
235
246
|
|
package/RELEASE_NOTICE.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Release Notices
|
|
2
2
|
|
|
3
|
+
## v0.16.6
|
|
4
|
+
### en
|
|
5
|
+
Evaluator Agent integration (opt-in `evaluator: true`): independent `reap-evaluate` subagent runs during validation and fitness phases as an advisor. High-severity concerns automatically abort cruise mode for human review.
|
|
6
|
+
### ko
|
|
7
|
+
Evaluator Agent 통합 (opt-in `evaluator: true`): `reap-evaluate` 서브에이전트가 validation/fitness 단계에서 독립 검토자로 실행됨 (advisor 모델). high-severity concern 발생 시 cruise mode 자동 중단.
|
|
8
|
+
|
|
3
9
|
## v0.16.4
|
|
4
10
|
### en
|
|
5
11
|
Restore missing npm metadata (license, author, repository, homepage, keywords). Fix GitHub Releases showing empty release notes.
|
|
@@ -3,3 +3,5 @@ description: "REAP Evolve — Run the full lifecycle for a Generation"
|
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
Run `reap run evolve` and follow the stdout instructions exactly.
|
|
6
|
+
|
|
7
|
+
IMPORTANT: The subagent is the sole lifecycle executor. If it returns before completion (e.g., needing user input), use SendMessage to resume the same subagent after collecting the user's response. Never execute lifecycle commands directly.
|