feat(bootstrap): add shared session bootstrap and machine-alias resolver

This commit is contained in:
hotwa
2026-03-10 19:02:26 +08:00
parent 3e5f7fdc2e
commit 5e5344ae31
5 changed files with 341 additions and 3 deletions

View File

@@ -1,5 +1,16 @@
# New Agent Onboarding Template
## 0) Register MCP once per client
- Codex:
```bash
codex mcp add memory-gateway --url http://100.64.0.45:8787/mcp
```
- Claude/Cursor: 在对应客户端 MCP 配置中添加同一 URL
- `http://100.64.0.45:8787/mcp`
## 1) Create agent lane
```bash
@@ -19,7 +30,20 @@ scripts/add-agent.sh kimi-helper
scripts/add-agent.sh <agent-id> --openclaw-config ~/.openclaw/openclaw.json
```
## 3) Commit and push
## 3) Session first message (recommended)
```bash
cd /Users/lingyuzeng/project/collective-memory-repo
scripts/print-session-bootstrap.sh --tool codex --branch main
```
任务会话示例:
```bash
scripts/print-session-bootstrap.sh --tool codex --branch task/openclawd-migration-2026-03 --task-id openclawd-migration-2026-03
```
## 4) Commit and push
```bash
git add agents/<agent-id>
@@ -27,7 +51,7 @@ git commit -m "feat(agent): add <agent-id> memory lane"
git push
```
## 4) Verify memory-gateway visibility
## 5) Verify memory-gateway visibility
```bash
curl -fsS http://100.64.0.45:8787/health
@@ -36,7 +60,7 @@ printf '{"branch":"main","require_latest":true}' \
http://100.64.0.45:8787/memory/status
```
## 5) Query smoke test
## 6) Query smoke test
```bash
printf '{"query":"<agent-id>","branch":"main","require_latest":true,"top_k":3}' \