guard_brief
Generates a compact pre-agent brief from the project store so scripts, CI jobs, or plain MCP clients can reuse the same context injected before each turn.
Instructions
The compact pre-agent brief, built from this project's store.
Use it when you need the same context the pi extension re-injects before a
turn and no extension is running (another runtime, a script, a CI job, or a
plain MCP client): the owner task, the contract with both additive budgets
(owner rows, then seed rows), the newest owner statements, durable
precedents, trusted decisions and corrections, unverified agent notes, tag-
matched recall, open loops, and the last verify run with its trust label.
Anything a cap dropped is announced with a +N more … line naming the read
path, so the brief never silently omits context. Every line is rendered by
the same functions the extension uses (protect_context.brief), so the two
runtimes cannot drift. It returns the brief as one newline-separated
string. limit is an int, default 20. Side effects: none — it does not
create .agent-guard/, does not append, and does not change state.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "guard_brief"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many brief lines to return. Integer. Default 20. Clamped to at least 1; the brief itself is already capped by section, so this only bounds the view. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |