brain_session
Open or close an agent's working session: start loads context, brief, executive state and recovery; end archives the session, updates state and syncs cross-agent notes.
Instructions
Open or close the agent's working session. Call phase='start' once at the beginning of every conversation, before any other brain tool; call phase='end' once when the user signals they are done. Not for single facts (brain_remember).
start returns the whole context block: the cron daily brief with a stale flag,
executive state (objective, missions, pending decisions), the configured Hindsight
mental models, a recall per top mission, the staged-inbox count, and `recovery` when
the previous session never closed.
end drains the Hindsight queue, appends a close line to today's session archive,
replaces executive_state, session_critique and the cross-agent sync file with the
bodies you pass (or a stub built from this session's brain_remember calls), reports
which trait signals moved, and writes the clean-close marker. A second end overwrites
the first.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sync | No | end only: full markdown body of the cross-agent sync note. | |
| phase | Yes | 'start' or 'end'. | |
| critique | No | end only: full markdown body that replaces session_critique. | |
| session_id | No | Caller's session id; omit to keep the one the server opened. | |
| executive_state | No | end only: full markdown body that replaces executive_state. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||