Problem
ClawMetry's users delegate work to coding agents by definition — that is what the product observes. Yet the only setup paths we ship are "run the installer" and "read a doc". There is no artefact aimed at the thing the user actually drives.
Bronto ships a copy-paste prompt per scenario and it is the strongest door on their onboarding screen. Instructive detail: half of their prompt is negative space — "do not use /v1/logs, that path rejects direct JSON with 400 Invalid content provided", "use text/plain;charset=UTF-8, not application/json", "headers all lowercase". They wrote down the mistakes agents actually make, which is what makes the prompt work on the first attempt instead of the fourth.
Their own OpenClaw page then spends a boxed warning on the failure mode: coding agents "mis-substitute secrets (drop characters from the API key, wrap it in extra quotes, or leave the literal placeholder <YOUR_API_KEY> in place)" and "hallucinate config keys, env-var names, CLI flags, or endpoint paths that look plausible but don't exist". A prompt that anticipates those is worth more than one that doesn't.
Scope
- A generator, not a folder of markdown. Render each prompt from the same constants the server validates against — header names, accepted content types, size caps, the runtime list from
entitlements.ALL_RUNTIMES, the endpoint from clawmetry/endpoints.py. A hand-written prompt drifts the first time a header is renamed, and a drifted setup prompt is worse than none: it teaches the agent a wrong answer confidently.
- Serve it at
GET /api/setup-prompt?runtime=<r>&target=<local|cloud>, rendered into the onboarding "Ask your agent" door with a copy button, and printed by clawmetry setup-prompt <runtime>.
- Write the negative space in. Each prompt states explicitly: the key goes in
x-clawmetry-key and nowhere else (not a query param, not Authorization: Bearer); the placeholder must be replaced verbatim; protobuf and json are both accepted so don't "fix" the content type; do not invent config keys — if a key isn't in this prompt it doesn't exist.
- A verification step inside the prompt. End every prompt with "then confirm:
curl <endpoint>/api/onboarding/ingest-status, and report the event count back to the user." An agent that can check its own work fails loudly instead of silently.
Non-goals
Not a general "configure ClawMetry with AI" feature. These are narrow, single-purpose, verifiable prompts for one task: get telemetry flowing.
Acceptance
Depends on the ingest-key issue (the prompt needs a key to reference).
Part of the ingest-gap plan (phase 1, item 4 of 5).
Problem
ClawMetry's users delegate work to coding agents by definition — that is what the product observes. Yet the only setup paths we ship are "run the installer" and "read a doc". There is no artefact aimed at the thing the user actually drives.
Bronto ships a copy-paste prompt per scenario and it is the strongest door on their onboarding screen. Instructive detail: half of their prompt is negative space — "do not use
/v1/logs, that path rejects direct JSON with400 Invalid content provided", "usetext/plain;charset=UTF-8, notapplication/json", "headers all lowercase". They wrote down the mistakes agents actually make, which is what makes the prompt work on the first attempt instead of the fourth.Their own OpenClaw page then spends a boxed warning on the failure mode: coding agents "mis-substitute secrets (drop characters from the API key, wrap it in extra quotes, or leave the literal placeholder
<YOUR_API_KEY>in place)" and "hallucinate config keys, env-var names, CLI flags, or endpoint paths that look plausible but don't exist". A prompt that anticipates those is worth more than one that doesn't.Scope
entitlements.ALL_RUNTIMES, the endpoint fromclawmetry/endpoints.py. A hand-written prompt drifts the first time a header is renamed, and a drifted setup prompt is worse than none: it teaches the agent a wrong answer confidently.GET /api/setup-prompt?runtime=<r>&target=<local|cloud>, rendered into the onboarding "Ask your agent" door with a copy button, and printed byclawmetry setup-prompt <runtime>.x-clawmetry-keyand nowhere else (not a query param, notAuthorization: Bearer); the placeholder must be replaced verbatim;protobufandjsonare both accepted so don't "fix" the content type; do not invent config keys — if a key isn't in this prompt it doesn't exist.curl <endpoint>/api/onboarding/ingest-status, and report the event count back to the user." An agent that can check its own work fails loudly instead of silently.Non-goals
Not a general "configure ClawMetry with AI" feature. These are narrow, single-purpose, verifiable prompts for one task: get telemetry flowing.
Acceptance
Depends on the ingest-key issue (the prompt needs a key to reference).
Part of the ingest-gap plan (phase 1, item 4 of 5).