log_agent_event
Report work events to record decisions, blockers, and open loops for session continuity.
Instructions
Report a work event to Threadline — call this as you work.
Parse and ingest a single AgentEventIn JSON payload. Returns a
summary of what was derived (decision count, open-loop count).
WHEN TO CALL
At significant checkpoints (code written, tests passing, a decision made).
When you encounter a blocker.
When you notice something deferred (open loop).
EVENT SHAPE (compact example)
{
"event_type": "checkpoint",
"project_key": "my-project",
"agent": {"name": "claude_code"},
"session_id": "<from start_session>",
"summary": "Implemented login route; all tests pass.",
"details": {
"decisions": ["Use JWT over session cookies for stateless auth"],
"open_loops": ["Rate limiting not yet implemented"],
"files_changed": ["src/auth.py", "tests/test_auth.py"],
"verification": ["uv run pytest -q"]
}
}Returns
dict with keys: event_id, session_id, decisions_created,
open_loops_created. On parse/validation error:
{"error": true, "message": "..."} — fix and retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||