Session Logs
AgentUse automatically tracks every agent execution with detailed logs, providing full visibility into what happened during each run.Quick Start
What Gets Tracked
Each session captures:CLI Reference
List Sessions
-s, --subagents- Include subagent sessions-n, --limit <n>- Limit results (default: 10)-j, --json- Output as JSON--all- Show sessions across all projects--project [path]- Show sessions for a project path; defaults to the current project--no-mock- Hide mock/test runs. The CLI lists them by default, marked· mock
agentuse sessions list --all when you are looking for a session but are not sure which project owns it.
Show Session Details
-f, --full- Show complete tool input/output (not truncated)-j, --json- Output as JSON--project [path]- Search a project path; defaults to the current project--all-search- Search all projects if not found in the selected project
Show Storage Path
Subagent Sessions
Use--subagents to include subagent sessions in listings:
Use Cases
Debugging Failed Runs
Cost Tracking
Audit Logging
Session logs provide a complete audit trail:- What prompts were sent
- Which tools were called with what inputs
- What outputs were generated
- Token usage and costs
- Error details and stack traces
Browse Sessions in the Browser
Whenagentuse serve is running, the same sessions are browsable as web pages:
/sessionslists every run, newest first. Filter the list with?agent=<id>,?status=running|suspended|completed|error|incomplete(incompletematches only runs blocked on a person; other incomplete runs are listed undererror),?trigger=scheduled|manual|slack|api,?days=<n|all>, and?mock=include|only. Mock/test runs are hidden by default;includeadds them to the list andonlyshows nothing else. A mock session’s detail page is always reachable by id, filter or not./sessions/<id>is the per-session page: the full run log, and when the session is suspended on an approval gate, the approve / reject / comment and resume controls.
Internal agent-revision sessions
A completed, failed, or approval-paused run can start a reviewable agent revision. The original session remains the launch point and durable history, with a link to each revision. An agent that has never run can instead start from its detail page and use the current agent file as evidence. The revision session links back to its origin when one exists and holds the diagnosis, source proposal or no-change result, reviewer feedback, apply decision, and restore action. The Sessions list and feed label these AgentUse-owned jobs asinternal revision, group them under Internal revisions, and name them Revising
agent. They are distinct from delegated subagents and automated Judge
sessions. See Agent Revisions for the full review and
write-safety workflow.
For delegated runs, the parent timeline also surfaces important work from nested
descendants. Reviewer comments appear as timestamped feedback; a child working
on that feedback is labeled revising, and its next gate is labeled
awaiting-approval. Judge sessions are identified as automated pre-review
attempts so they are not mistaken for human decisions.
The /agents page opens each agent’s detail hub, where you can inspect source,
recent runs and revisions, and start a run. Schedule rows also link to the agent
detail hub; last-run badges still link to the matching session page.
When the model streams its reasoning, it renders inline in the log as dimmed
“Reasoning” entries (the model’s “why”, subordinate to the visible answer it
precedes). This is on by default for reasoning-capable OpenAI models; for Claude
it requires opting into extended thinking. See
model configuration for the
openai.reasoningSummary and anthropic.thinking options.
running long after its process is gone, usually after a crashed daemon or a killed container, settle it with agentuse sessions reconcile. Runs that are still executing are never touched.
On an exposed host these pages require the API key, or a per-session token on the
session page link. See Approval Gates.
Related
- Session Storage Reference - Directory structure and data schemas
- Environment Variables - Configure storage location with
AGENTUSE_DATA_DIR