log_session
Record end-of-session insights—root causes, fixes, decisions, gotchas—as a reusable memory node. The node stays pending until approved, so only reviewed knowledge becomes retrievable.
Instructions
Log what happened this session as a memory node for the team to
reuse. Call this once at the end of a session that learned something
worth keeping - a root cause, a fix, a decision, a gotcha. The node
starts PENDING and is invisible to retrieve_context until an admin
approves it (or it matches an auto-approve rule) - this is a
deliberate review gate, not a bug. title is a short, searchable
summary (this is what future retrieve_context anchors match against);
body is the actual content; tags and links are optional and
help retrieval and review. agent_id/task_id are optional ids from
create_agent/create_task - attaching them lets an admin auto-approve
by agent (see create_auto_approve_rule, admin-only) and lets future
retrieval be scoped to a task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| tags | No | ||
| links | No | ||
| title | Yes | ||
| task_id | No | ||
| agent_id | No |