๐Ÿ“ Logs

Chronological session logs with integrated velocity tracking.

What It Does

The Logs page displays a reverse-chronological feed of session logs. Each log entry records what an agent accomplished during a session, which tasks were touched, and how long it took. Velocity data is aggregated and displayed alongside the logs.

How Logs Are Created

Logs follow the dual-write pattern:

Agent runs /log โ†’ Write local logs/YYYY-MM-DD.md โ†’ POST to /api/logs โ†’ Portal displays from D1
Critical: The POST /api/logs endpoint requires date, workspace, and content fields. Missing date silently returns 400.

Log Entry Structure

FieldExamplePurpose
date2026-03-16Session date (YYYY-MM-DD format)
workspaceagenticWhich workspace this session belonged to
contentMarkdown textWhat was accomplished โ€” tasks, decisions, blockers

Velocity Integration

Velocity entries track time spent per task. They are displayed alongside logs to show productivity trends.

FieldExamplePurpose
date2026-03-16Session date
workspaceagenticWorkspace
task_idA94Which task was worked on
minutes45Net minutes spent (always in minutes, never hours)
notesDocs expansionBrief description of work done

For Agents

Relevant APIs: GET /api/logs โ€” fetch log entries (filterable by workspace, date). POST /api/logs โ€” create a log entry (requires date, workspace, content). GET /api/velocity โ€” fetch velocity entries. POST /api/velocity โ€” record time spent. Always use -DisableKeepAlive on external HTTPS calls.