end_session
CALL AT END OF EVERY SESSION — mandatory handoff tool. Saves summary + any remaining decisions/insights not yet stored via add_knowledge(). Updates project status and next steps so the next agent starts with current context. Pass completedTaskIds for tasks finished this session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | Concrete summary: what was built/fixed/decided? Include what still needs doing. This is the primary handoff document for the next agent. | |
| insights | No | Gotchas, workarounds, non-obvious facts discovered this session that were NOT yet saved via add_knowledge() | |
| newTasks | No | New tasks that emerged this session | |
| decisions | No | Architecture/approach decisions made this session that were NOT yet saved via add_knowledge() | |
| nextSteps | No | What should the next agent tackle first? | |
| projectId | Yes | Project ID | |
| statusSummary | No | Updated one-liner: where does the project stand NOW after this session? | |
| completedTaskIds | No | IDs of tasks completed this session — get IDs from list_tasks() if needed |