Run the SkillOpt-Sleep cycle with the handoff backend — no API subprocess; this session answers the engine's model calls via prompt/answer files, in isolated fr
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-skillopt-29f547fc6af3 ,按照其中的说明把「skillopt-sleep-handoff」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
You are driving SkillOpt-Sleep in handoff mode: the Python engine runs
every deterministic stage (harvest → mine → replay scoring → gate → stage)
and outsources each model call (attempt / judge / reflect) to YOU via
prompt files. No claude -p subprocess, no API key — the model work runs
on this session's budget, but each prompt MUST be answered in a fresh,
isolated context so the validation gate stays honest.
(If $ARGUMENTS is empty, treat it as run.)
Repeat until the engine exits 0 (done) — at most 8 rounds:
Run the engine via the bundled runner. Split $ARGUMENTS into the action
and remaining options, and preserve those options on every resumed round:
"${CLAUDE_PLUGIN_ROOT}/scripts/sleep.sh" <action> --backend handoff --project "$(pwd)" --scope invoked <remaining options>
Read the batch: Read .skillopt-sleep-handoff/pending.json in the
project. Each entry has id, prompt, max_tokens, answer_file.
Answer each prompt in ISOLATION — this is the integrity rule:
prompt text verbatim. Add nothing: no summary of this session,
no mention of SkillOpt, no other prompts from the batch.Write the raw answer text (no
commentary, no code fences) to the entry's answer_file.Re-run the same engine command — it resumes from the answers directory and either finishes or stages the next batch.
run, if the engine prints a staging directory, Read its report.md
and show the user: held-out baseline → candidate score, the gate decision,
the proposed edits, and where the proposal is staged. If an accepted proposal
was staged, tell the user nothing live changed, inspect status, and offer
the exact reviewed selection: adopt --legacy, repeatable
adopt --skill NAME, or adopt --all-skills.dry-run, no staging directory or report.md is created; summarize the
final stdout instead..skillopt-sleep-handoff/ on a completed real run;
do not delete it yourself.CLAUDE.md or SKILL.md yourself — only adopt does
that, with a backup..skillopt-sleep-handoff/tasks.json on round
one, so sessions created while answering prompts cannot shift the task
set. Do not edit that file.