feat(agent): add onboarding template and bootstrap script

This commit is contained in:
hotwa
2026-03-10 17:53:24 +08:00
parent 2567ce4eda
commit 3e5f7fdc2e
2 changed files with 218 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
# New Agent Onboarding Template
## 1) Create agent lane
```bash
cd /Users/lingyuzeng/project/collective-memory-repo
scripts/add-agent.sh <agent-id>
```
Example:
```bash
scripts/add-agent.sh kimi-helper
```
## 2) (Optional) Auto update OpenClaw qmd paths
```bash
scripts/add-agent.sh <agent-id> --openclaw-config ~/.openclaw/openclaw.json
```
## 3) Commit and push
```bash
git add agents/<agent-id>
git commit -m "feat(agent): add <agent-id> memory lane"
git push
```
## 4) Verify memory-gateway visibility
```bash
curl -fsS http://100.64.0.45:8787/health
printf '{"branch":"main","require_latest":true}' \
| curl -fsS -H 'content-type: application/json' -d @- \
http://100.64.0.45:8787/memory/status
```
## 5) Query smoke test
```bash
printf '{"query":"<agent-id>","branch":"main","require_latest":true,"top_k":3}' \
| curl -fsS -H 'content-type: application/json' -d @- \
http://100.64.0.45:8787/memory/search
```