log_agent_run
Record agent task executions to SQLite for audit trails and dashboard analytics, capturing details like token usage, model, and run status.
Instructions
Log an agent run to the SQLite database.
Records that an agent executed a task, for audit and dashboard tracking.
Args:
agent_slug: Which agent performed the work.
task_summary: Brief description of what was done.
input_path: Path to input file(s), if any.
output_path: Path to output file(s), if any.
complexity: Run status stored in the `status` column -- "completed", "partial", or "failed".
input_tokens: Input tokens consumed (for cost tracking).
output_tokens: Output tokens produced (for cost tracking).
model: Model used (e.g. "claude-sonnet-4-6", "claude-haiku-4-5").
session_id: Pipeline session ID from session_bootstrap(), if any.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_slug | Yes | ||
| task_summary | Yes | ||
| input_path | No | ||
| output_path | No | ||
| complexity | No | standard | |
| input_tokens | No | ||
| output_tokens | No | ||
| model | No | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |