Find the failing layer
| Symptom | First check |
|---|---|
mini-a is not found |
Use opack exec mini-a, or define the shell alias |
| Model authentication or model-not-found error | Provider URL, available model ID, and credential configuration |
| A tool is missing | useutils, MCP connection, and tool allow/deny lists |
| File access is denied | Current directory, server-side path, utilsroot, and fileallow |
| Web access is rejected | The authenticated URL from the current server run |
| The conversation is too large | /context, then context controls |
| Wiki results are empty | Source import, selected wiki, and the published search generation |
mini-a warnunknownargs=true
Use /show to inspect effective settings. After a failed goal, /debug problems narrows the event trace to problems. Capture a minimal reproduction with public sample data before changing several settings at once. See the FAQ for installation and provider questions.
Debugging
Tools and techniques for diagnosing issues with mini-a.
Debug Mode
Enable verbose logging to see every decision the agent makes, including model calls, tool invocations, and internal routing:
mini-a debug=true
Debug output includes timestamps, model selection decisions, token counts, and the full request/response payloads for each LLM call.
Full Debug — Audit + LLM Payloads to Files
To capture everything — agent activity audit trail, main-model LLM payloads, and low-cost model payloads — write each stream to a separate JSON file:
mini-a goal="your goal here" \
auditch="(type: file, options: (file: audit.json))" \
debugch="(type: file, options: (file: debug.json))" \
debuglcch="(type: file, options: (file: debuglc.json))"
| File | Contents |
|---|---|
audit.json |
Structured agent activity log — every tool call, shell command, and goal event with arguments and results |
debug.json |
Full request/response payloads for the main model (prompt + completion on every step) |
debuglc.json |
Full request/response payloads for the low-cost model |
All three files are written in NDJSON (one JSON object per line), so you can stream or filter them:
# Show only failed tool calls from the audit log
ojob - code='$from(io.readFileNDJSON("audit.json")).equals("type","tool_call").equals("status","error").select()'
# Show main-model prompts only
ojob - code='$from(io.readFileNDJSON("debug.json")).equals("type","prompt").select(r => r.content)'
If you also have a validation model configured, add debugvalch to capture its payloads:
mini-a goal="deep research task" deepresearch=true \
auditch="(type: file, options: (file: audit.json))" \
debugch="(type: file, options: (file: debug.json))" \
debuglcch="(type: file, options: (file: debuglc.json))" \
debugvalch="(type: file, options: (file: debugval.json))"
Lightweight Alternative — debugfile
To redirect only the noisy raw LLM blocks (prompts/responses) to a file while keeping normal agent events on screen:
mini-a goal="summarize README.md" debugfile=debug.log useshell=true
This implies debug=true and writes one JSON object per line to debug.log. Normal agent output still appears in the console.
See Channels for full backend options and query examples.
Usage Metrics
Use the /stats command in interactive mode to view real-time usage statistics:
/stats
This displays token counts, model call counts, cost estimates, and elapsed time for the current session.
Common Debugging Patterns
- Unexpected tool selection — Enable
debug=trueand check the routing decisions. The light model may be misclassifying the task. Try adjusting the goal wording or switching to a more capable light model. - Slow responses — Check
/statsfor token counts. If context is very large, use/compactto reduce it. Consider settingmaxcontextto prevent unbounded growth. - MCP connection failures — Verify the MCP server is running and reachable. Use
debug=trueto see connection attempts and error messages. For remote MCPs, check firewall rules and network connectivity. - Planning loops — If the agent keeps replanning without executing, try switching
planstylefromlegacytosimple(the default). Phase-based planning can stall on ambiguous goals where a flat sequential plan works better.