Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.1 KB

agent-run-logs.md

File metadata and controls

41 lines (28 loc) · 1.1 KB

Agent run logs (local only — gitignored under local/)

Temporal workflows write structured events here for chat review and repair sweeps.

File Purpose
latest.json Most recent run or repair event
events.jsonl Append-only stream of all run events
repair-log.jsonl Repair sweep actions (restart, escalate, log_for_fix)

After a run

cat local/agent-runs/latest.json

Or in Cursor chat: “review last agent run”

Repair sweep

Scans failed AgentRunWorkflow executions:

./scripts/temporal/repair-sweep.sh 5
Failure class Action
transient (Ollama down, connection refused) Start new run with same goal
code (sqlite, guardrails, NotImplementedError) Log to repair-log.jsonl for Cursor SDK fix
max attempts escalate_human — stops auto-loop

Wait for completion

./scripts/temporal/start-agent.sh --wait "your goal" workflow-id

Cursor SDK auto-fix (future)

Set CURSOR_API_KEY and wire scripts/repair/cursor-fix.ts to invoke_cursor_repair activity.