journal.write
Log project events as timestamped daily entries, decisions/observations, or intent pivots. Use append for daily journal files, note for decisions, intent for topic changes.
Instructions
Write one event to the current project's journal. kind: 'append' = timestamped entry in today's daily journal file in the Knowledge Base (creates the file if it doesn't exist; both calls on the same calendar day return the same file_id; returns {file_id}). kind: 'note' = free-form decision/abandonment/observation, stored as an agent_note event in Layer 1 (surfaces in distilled task entries; returns {ok, recorded_at}). kind: 'intent' = topic/intent pivot — use when the user redirects what you're working on so the distillation step splits task buckets correctly (returns {ok, recorded_at}). Required fields depend on kind: 'append'/'note' need text; 'intent' needs summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Event kind. Selects which body fields are required and how the event is stored. | |
| tags | No | Optional for kind='note'. Tags for the note. | |
| text | No | Required for kind='append' or kind='note'. Body of the entry. | |
| summary | No | Required for kind='intent'. One-line summary of the new intent. | |
| project_id | No | Optional for kind='append'. Project ID context. |