write_session_log
Stores a structured session log after each work session, recording tasks, decisions, and next steps to build institutional memory for future decision searches.
Instructions
Write a structured session log to .agents/logs/YYYY-MM-DD/. Called by the Documenter at the end of every session. Feeds search_decisions() with institutional memory.
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": {
"session_id": "<session_id>",
"task": "<task>",
"phase": "<phase>",
"files_changed": "<files_changed>",
"decisions": "<decisions>",
"next_steps": "<next_steps>"
},
"name": "write_session_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Original developer prompt | |
| phase | Yes | phase | |
| decisions | Yes | ||
| skill_ids | No | IDs of skills you actually applied this session. Feeds the outcomes fan-out that reinforces or retires a skill based on whether its session's work survived in git. | |
| task_type | No | What KIND of work this session was. Skill induction clusters sessions by task_type — without it a session can never contribute to a learned skill, which is why induction has yielded zero across every project to date. | |
| next_steps | Yes | ||
| session_id | Yes | Short ID (8-char slug) | |
| files_changed | Yes |