Phase 2 of building a Claude Managed Agent — turn a validated build sheet into exact API payloads and a resumable BYOK curl launch script, then launch (environm
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-stage-launch-0ffe6ed6cd05 ,按照其中的说明把「stage-launch」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Turn the build sheet into runnable artifacts, then let the founder launch with
their own key. No script here touches the network or the key — the user runs
launch.sh.
python3 scripts/payload_generator.py \
--sheet ./my-agent/build-sheet.json --out-dir ./my-agent
# -> ./my-agent/payloads/{01-environment,02-agent,03-session,04-kickoff}.json
Agent toolset → always_allow; every MCP toolset → always_ask (baked into
the agent payload's permission_policies).python3 scripts/launch_script_writer.py --out-dir ./my-agent
launch.sh creates environment → agent → session → kickoff in order,
chaining IDs, and resumes on re-run (each step skips if its *.id file
exists). It reads $ANTHROPIC_API_KEY at runtime.python3 scripts/payload_validator.py --dir ./my-agent
FAIL blocks — especially a key_leak finding. Fix and re-run.[ -n "$ANTHROPIC_API_KEY" ] && echo "key present" || echo "export ANTHROPIC_API_KEY=... first"
Point the founder to platform.claude.com → API keys. Never print the key to
chat, never write it to a file.export ANTHROPIC_API_KEY=... # in their shell, not in chat
./my-agent/launch.sh
Mark checkpoints with Console deep links. Then goal_state.py set --phase grade-iterate and advance.launch.sh reads it
from the environment; payload_validator.py scans for sk-ant-… leaks and FAILs.launch.sh continues from the last created ID.$ANTHROPIC_API_KEY
before anything. Cite: this SKILL, key-safety rules.always_ask. Cite:
cma-primitives.md (permissions).scripts/payload_generator.py — build sheet → 4 ordered API payloads.scripts/launch_script_writer.py — resumable BYOK curl launcher (no key handling).scripts/payload_validator.py — pre-launch check + API-key-leak scan.