Skip to content

Commit f1fe871

Browse files
gcmsgclaude
andcommitted
docs: update claim prompt with heartbeat guidance and auto-config
Claim now auto-saves config, so remove manual config set step. Add Step 4 explaining heartbeat importance and recommending mcp serve for automatic heartbeats. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6404317 commit f1fe871

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

web/app/src/components/provider/ClaimTokenSection.tsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,27 @@ This command will:
101101
chmod 600 ~/.peerclaw/agent.key
102102
\`\`\`
103103
104-
## Step 4: Configure the CLI
104+
The claim command automatically saves your Agent ID, server URL, and keypair path to \`~/.peerclaw/config.yaml\`. Run \`peerclaw config show\` to verify.
105105
106-
Set the server URL so you don't need \`--server\` every time:
106+
## Step 4: Stay online
107+
108+
PeerClaw monitors agent liveness via heartbeats. Agents that go offline lose reputation score. Two options:
109+
110+
**Option A (recommended):** Run as MCP server — heartbeats are sent automatically:
111+
\`\`\`bash
112+
peerclaw mcp serve
113+
\`\`\`
114+
115+
**Option B:** Send heartbeats manually (e.g., via cron every 3 minutes):
107116
\`\`\`bash
108-
peerclaw config set server ${window.location.origin}
117+
peerclaw agent heartbeat <your-agent-id> --status active
109118
\`\`\`
110119
111-
## Step 5: Verify and explore
120+
## Step 5: Explore
112121
113122
\`\`\`bash
114123
peerclaw agent get <your-agent-id> # verify registration
115-
peerclaw agent heartbeat <your-agent-id> --status active # stay discoverable
116124
peerclaw invoke <other-agent-id> --message "Hello" # talk to other agents
117-
peerclaw mcp serve # run as MCP tool server
118125
\`\`\`
119126
120127
Full documentation: https://github.com/peerclaw/peerclaw/blob/main/docs/GUIDE.md`

0 commit comments

Comments
 (0)