Skip to content

Runs and artifacts

Every task gets a run directory. Artifacts are plain Markdown and JSON, so they are easy to read, diff, archive, and parse.

runs/
<run-id>/
FINAL.md
run.json
01-<agent>.md
01-<agent>.json
02-<agent>.md
02-<agent>.json
...
sessions/
<session-id>.md
error-logs/
...

run-id is a timestamp plus a short random suffix, for example 2026-12-06T09-14-22-1a2b. Stages are numbered in execution order.

Read this first. It contains:

  • The run id, mode, start and finish times.
  • Agent calls, token totals (in/out/total), and summed stage latency.
  • A stage ledger table: role, provider, model, tokens, milliseconds, status.
  • Any incidents (failures, aborts, fallbacks).
  • The final report body.

Status values are OK, ERROR, or SKIPPED. A skipped stage includes the reason, for example a failed retry budget or a planner that declared no research needed.

When a side effect is pending approval, FINAL.md is replaced with a PENDING HUMAN APPLYMENT report describing the agent, tool, arguments, and reason.

When a run is aborted, the report is replaced with RUN ABORTED, the incident, the number of completed stages, and the artifacts directory.

The structured form of the same run. Useful for dashboards and scripts. It includes:

Field Meaning
runId Run identifier.
task The original task text.
mode single or multi.
startedAt, finishedAt ISO timestamps.
stages Per-stage records (see below).
finalReport The final text.
totals agentCalls, inputTokens, outputTokens, totalTokens, latencyMs.
incidents Human-readable failure descriptions.
artifactsDir Absolute path to the run directory.
reportPath Path to FINAL.md.
pendingApproval The pending action, if any, else null.
errorLogPaths Temporary error logs referenced by this run.

Each stage has a Markdown and a JSON file:

  • NN-<agent>.md — a readable stage record: title, metadata, tool trace, and output.
  • NN-<agent>.json — the raw AgentRunRecord, including provider trail and finish reason.

The Markdown includes:

  • role, provider, and model,
  • latency, tool rounds, attempts,
  • finish reason and skills used,
  • a tool trace (OK/ERR plus arguments),
  • a SKIPPED note when applicable,
  • the stage output.

This is the best place to see why a stage failed: look at finishReason, providerTrail, and the tool trace together.

The stage record keeps the sequence of provider attempts. A stage that fell back shows each failed attempt and the provider that finally answered. This makes failover visible instead of hidden.

Interactive sessions append a transcript to runs/sessions/<session-id>.md. The file starts with a header and then a ## User / ## Tapplack pair per turn. It is a readable record of the conversation, not a replayable state file.

Failures that happen outside a stage’s normal record — a thrown invocation, a provider chain failure — are written to runs/error-logs/, or to runtime.errorLogsDir when set.

The path is passed into retries so the agent can read the root cause and adapt. The status bar and log inspector show the latest path. These files may contain stack traces and request context; treat them as sensitive.

Output Location
Run artifacts runtime.runsDir (default ./runs).
Files the agent wrote runtime.workspaceDir (default ./workspace).
Session transcripts <runsDir>/sessions/.
Error logs runtime.errorLogsDir or <runsDir>/error-logs/.

Both directories are created on startup if missing.

PowerShell:

Terminal window
Get-ChildItem runs | Sort-Object LastWriteTime -Descending | Select-Object -First 5
Get-Content runs\<run-id>\FINAL.md

Bash:

Terminal window
ls -t runs | head
less runs/<run-id>/FINAL.md

To extract totals with Node:

Terminal window
node -e "const r=require('./runs/<run-id>/run.json');console.log(r.totals)"

Runs are never deleted automatically. They accumulate, including large outputs and error logs. Prune deliberately:

Terminal window
rm -rf runs/2026-11-*

Keep run.json and FINAL.md if you need an audit trail and drop the per-stage bodies. Do not commit runs/; the repository ignores it by default.