Skip to content

Preview Agent Prompt

GET /agents/{agent_id}/prompt-preview

The assembled prompt plan, its cache boundary, and the static analysis over it.

The review-time half of I-19 (annex 07 §4.3). A rendered timestamp above the boundary invalidates the prefix on every single request and has no other symptom; warnings is what turns that into something a reviewer can see before it ships.

NameInTypeNotes
agent_idpathstring (uuid)required—
StatusDescriptionBody
200Successful ResponsePromptPreview
422Validation ErrorHTTPValidationError
Terminal window
curl -X GET https://your-deployment.example.com/agents/{agent_id}/prompt-preview \
-H "Authorization: Bearer $COBRE_TOKEN"
FieldTypeNotes
model_refstringrequired—
segmentsSegmentPreview[]optional—
cache_boundary_afterstring | nulloptional—
prefix_charsintegeroptionalDefault 0.
prefix_tokensintegeroptionalDefault 0.
prefix_meets_cache_minimumbooleanoptionalDefault true.
cache_min_tokensinteger | nulloptional—
warningsstring[]optional—