Context Commit
context_commitTurn-end batch: assistant summary + durable writes + optional close.
One call replaces the end-of-turn memory_session_append +
memory_remember (+ memory_session_close + memory_state_set) sequence.
The append self-heals expired sessions; the response's session_id
is authoritative. Returns {session_id, turn_count, reopened, memories, closed}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Workspace slug; scopes fact tags and the state pointer. | |
| agent | No | Override agent identity | |
| close | No | Close the session (queueing distillation) and clear the state pointer. Pass true when the task is done or the user says goodbye. | |
| facts | No | Durable memories to write in the same call: [{"content": "...", "kind": "fact|preference|event|note|outreach", "subject": "...", "tags": [...]}]. Only include things still true next week. | |
| github | No | GitHub owner/repo tag for the facts. | |
| summary | Yes | Faithful summary of your reply — appended as the assistant turn. | |
| session_id | No | Working-memory session to commit to. Omit to resolve it from the conversation/active-session state pointer (requires repo). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||