wrap_auto
Persist a session wrap without interactive review when context is about to be lost, applying low-risk updates immediately and staging high-risk changes for user confirmation.
Instructions
Tier 2 of auto-wrap: persist a session wrap WITHOUT interactive review, when context is about to be lost (compaction, session end) or the user declined to review. Use the normal interactive /wrap when the user is present and reviewing — only reach for this as a safety net. The agent supplies the synthesized wrap; this tool applies LOW-RISK fields (next_move, open_questions, evidence_of_progress) immediately and STAGES high-risk changes (status, mode, blocked, decisions) as an unconfirmed record for /start to surface and the user to confirm. Always logs a session_wrapped marker. Never put a status change or a decision in pending_review expecting it to take effect now — staged items are proposals, not writes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity_id": "<entity_id>",
"summary": "<summary>"
},
"name": "wrap_auto"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | One-line synthesized summary of what happened this session. | |
| trigger | No | What triggered it: precompact | sessionend | manual-no-review. | |
| entity_id | Yes | Entity being wrapped. | |
| next_move | No | LOW-RISK, applied now — the concrete next action. | |
| session_id | No | Host session id, when known. | |
| open_questions | No | LOW-RISK, merged now — unresolved threads. | |
| pending_review | No | HIGH-RISK — staged for review, NOT applied. Surfaced at next /start for confirm/edit/discard. | |
| evidence_of_progress | No | LOW-RISK, appended now — what actually shipped or moved. |