pev-recap
Skill3 starsChanged 5 months agoMITView on GitHub
各 phase 完了時に短い recap を .pev-artifacts/recap.log に追記。Claude Code v2.1.x の Session Recaps 機能を補完
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- empirical-prompt-tuningSkill
- frontend-designSkill
- linear-issue-workflowSkill
- linear-project-trackerSkill
- linear-project-workflowSkill
- pev-bootstrap-codexSkill
- pev-bootstrap-playwrightSkill
- pev-bootstrap-projectSkill
- pev-dual-reviewSkill
- pev-e2e-verifySkill
- pev-external-executorSkill
- pev-external-reviewerSkill
- pev-focus-modeSkill
- pev-linear-syncSkill
- pev-pipelineSkill
- pev-spec-templateSkill
- pev-subagent-memorySkill
- pev-team-conventionsSkill
- pev-test-designSkill
- skill-creatorSkill
The file
Files
pev-recap
phase完了ごとに「何をやったか / 次に何が残ってるか」の1〜3行サマリを .pev-artifacts/recap.log に追記する。長時間セッションから戻った時の context回復を最適化する。
When to Use
- v3.0+: triage agent が triage.json を書き終えた時 (= Phase 0 完了マーカー、 plan_required / plan_skip の decision を recap)
- planner が plan.md を書き終えた時 (Plan が走った場合)
- 各 executor がコード変更を終えた時
- verifier が verify.json を書き終えた時
- ユーザーが
/pev-statusを実行した時
How It Works
recap.log フォーマット
[2026-05-11T14:23:01Z] Phase 1 (Plan) done.
- Goal: Add /healthz endpoint
- Files planned: src/server.ts, tests/server.test.ts
- Next: /pev-execute or wait for Gate A
[2026-05-11T14:25:18Z] Phase 2 (Execute) done.
- Files changed: src/server.ts (+18/-0), tests/server.test.ts (+15/-0)
- Next: Stop hook will invoke verifier
[2026-05-11T14:26:42Z] Phase 3 (Verify) done.
- Verdict: PASS
- All 3 acceptance criteria met
- Next: review changes and commitClaude Code Session Recaps との関係
Claude Code本体に Session Recaps 機能がある (3分以上席を外して戻ると自動サマリ表示)。
- Claude Code Recaps: 全体的なターン進行、Claude Code側が管理
- pev-recap: PEV phaseに特化、.pev-artifacts/ に永続化、別セッションからも参照可
両者は補完関係。重複しても問題ない。
書き込みタイミング
各phase完了時、対応するagentが内部で:
APPEND_RECAP() {
local phase="$1"
local summary="$2"
echo "[$(date -u +%FT%TZ)] Phase $phase done." >> .pev-artifacts/recap.log
echo " - $summary" >> .pev-artifacts/recap.log
echo " - Next: <next step>" >> .pev-artifacts/recap.log
echo "" >> .pev-artifacts/recap.log
}agentはこのhelperをBashで呼ぶ。
/pev-status での表示
$ /pev-status
Current task: <task_id>
Phase: Verify (in progress)
Recent recap:
[14:23:01] Phase 1 (Plan) done. Goal: Add /healthz endpoint
[14:25:18] Phase 2 (Execute) done. Files: src/server.ts, tests/server.test.ts(最新3エントリのみ表示、全体は cat .pev-artifacts/recap.log)
Examples
短時間タスクの recap.log 全体
[2026-05-11T14:23:01Z] Phase 1 (Plan) done.
- Goal: Add /healthz endpoint
- Next: /pev-execute
[2026-05-11T14:25:18Z] Phase 2 (Execute) done.
- 2 files changed
- Next: Stop hook → verify
[2026-05-11T14:26:42Z] Phase 3 (Verify) done.
- Verdict: PASS
- Next: human review and commitRetry時の recap.log
[2026-05-11T15:01:00Z] Phase 3 (Verify) done.
- Verdict: FAIL (test failure in tests/server.test.ts:42)
- Next: retry #1 — planner re-invoked with diff + verify.json
[2026-05-11T15:03:20Z] Phase 1 (Plan, retry 1) done.
- Updated plan to fix off-by-one in test assertion
- Next: /pev-execute (auto-resumed)注意点
- recap.log は append only、変更しない
- タスク完了 (
/pev-status --clean) で .pev-artifacts/ ごと削除 - 長時間タスクで recap.log が肥大化する場合は
tail -n 50で対応 - recap内に PII / secret が混ざらないよう agent側で配慮
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

