Ask for a format, then check the result
Mini-a can stream a response, save the final answer, and report usage. Visual options guide the model to produce formats that the selected interface can render; they do not guarantee a correct chart or diagram.
mini-a goal="List three documentation checks with a name and purpose." \
format=json outfile=checks.json
Open checks.json and validate it before another program consumes it. Use valgoal for a model-based acceptance check, or an external parser for deterministic JSON validation. In the console, /stats shows usage and /save writes the last answer.
Use usestream=true to display tokens as they arrive. Audit and debug channels are separate from the final answer and can contain sensitive request content; store them deliberately. See channel storage and output options.
Streaming, Debugging, and Safety
Recent releases added several runtime improvements that are useful in production setups:
planner_streamSSE events distinguish planning tokens from normal answer tokens whenusestream=true.showthinking=truesurfaces XML-tagged<thinking>...</thinking>blocks as thought logs for providers that emit them.debugfile=<path>writes debug output as NDJSON instead of flooding the console with raw blocks.debugvalchroutes validation-model debugging to its own channel;debugdecchcaptures stateless decision-model traffic.maxpromptcharscaps inbound web prompt size before any model call is made.- Untrusted input blocks and prompt normalization reduce prompt-injection risk from goals, chat text, and attachments.
mini-a workermode=true onport=9090
Other agents or applications can then delegate tasks to this worker instance.
Streaming Responses
mini-a supports real-time token streaming in both the console and web interfaces. Responses appear word by word as the model generates them, rather than waiting for the full response.
mini-a usestream=true
Streaming is enabled by default in most configurations. It provides a more responsive experience, especially for long-form outputs.
When usestream=true and the agent is in the planning phase, tokens are emitted as planner_stream events (distinct from regular stream events). In the console these render in a different color; in the web UI clients can handle the planner_stream SSE event type to display planner output in a separate pane.
Metrics & Usage Tracking
Track exactly how many tokens you are using and what they cost with built-in metrics and usage tracking.
> /stats
The /stats command displays:
- Token counts — Input and output tokens for the current session
- Prompt-cache tokens — Cache writes, reads, and cached-token figures reported by the provider, shown separately because providers account for them differently
- Cost estimates — Estimated cost based on provider pricing
- Model usage — Breakdown by main model vs. light model
- Request counts — Number of API calls made
This data helps you understand usage patterns, optimize model selection, and budget API costs.
Visual Outputs
mini-a can generate rich visual outputs directly in the terminal or web UI by enabling the appropriate flags.
| Parameter | Output Type | Example Use |
|---|---|---|
useascii=true |
ASCII art | Banners, logos, decorative text |
usesvg=true |
SVG visuals | Infographics, custom diagrams, UI mock visuals |
usediagrams=true |
Diagrams | Flowcharts, architecture diagrams, sequence diagrams |
usecharts=true |
Charts | Bar charts, histograms, data visualizations |
usevectors=true |
Vector bundle | Prefer Mermaid for structural diagrams and SVG for infographics/custom visuals |
usemaps=true |
Maps | Geographic data, network topology |
usemath=true |
Math rendering | Inline or block LaTeX formulas rendered via KaTeX in web UI |
# Enable all visual outputs
mini-a useascii=true usevectors=true usecharts=true usemaps=true usemath=true
These features instruct the LLM to include visual representations in its responses when appropriate, making outputs more informative and easier to understand at a glance. usevectors=true is the convenient bundle for vector-first output because it enables both SVG and diagram guidance together.
Real-Time Progress Messages (showMessage)
When useutils=true, the agent can call the showMessage utility to display progress updates, status messages, and notifications directly in the console during execution — before the final answer.
Five display levels are supported, each with a distinct color and icon: info (cyan), warn (yellow ⚠️), error (red ❌), success (green ✅), debug (faint 🪳). An optional title field prints a bold header above the message.
mini-a goal="analyze project and report findings" useutils=true
# Agent emits real-time status updates as it works
Visual-output skill and browser controls
Enable useskills=true plus the renderer your response needs: usecharts=true, usediagrams=true (alias usemermaid=true), usemath=true or usemaps=true. The bundled mini-a-visual-output skill supplies instructions and focused references; it does not enable renderers itself.
mini-a useskills=true skillsautosearch=false usecharts=true \
goal='Use $local:mini-a-visual-output. Plot these supplied order counts: North 12, South 18.'
Chart/map fences contain static JSON, Mermaid fences contain diagram syntax, and math uses $...$ or $$...$$ outside fences. Keep a complete display equation on one source line with blank lines around it. Use supplied/retrieved data; label illustrative data. Console transcripts retain source text; useasciiviz=true renders oafPrintChart fences separately, including pie, donut, stacked columns, diverging bars, treemap and dashboard types. /last md and saved Markdown retain original JSON.
In Web responses, ⋯ Chart actions offers zoom, reset, PNG download and full screen. Tooltips and legend toggles remain active; PNG captures the full current canvas, with transparency unless the chart paints a background. Mermaid has pan/zoom and full-screen controls. Close viewers with × or Escape. Rich rendering uses CDN assets and maps use OpenStreetMap tiles; local instructions do not guarantee offline rendering. Keep a table or readable text fallback.
For an SVG or Mermaid diagram in Simple or Advanced Web, open the diagram’s ⋯ menu. Choose SVG for a scalable copy or PNG for a transparent image at 2× or 4× the displayed width. Zoom changes PNG dimensions. Panning still exports the complete diagram. Large exports are capped at 8,192 pixels per side and about 16 megapixels overall. Diagram downloads run in the browser.
Downloadable web artifacts
webartifacts=true enables generated-file downloads through a separate private worker configured by artifactworkerurl (ending in /artifact-worker). artifactdir holds private output with a 24-hour expiry. This is a Web-only opt-in, separate from ordinary outfile=.
The worker job is mini-a-artifact-worker.yaml. It requires Linux, a shared MINIA_ARTIFACT_WORKER_TOKEN of at least 32 characters, usable bubblewrap isolation, cgroup limits (at most 512 MiB RAM, zero swap, 128 processes and one CPU), and /jobs on tmpfs capped at 128 MiB. Startup runs a real sandbox probe and refuses missing isolation. This is not a native macOS worker.
Available formats depend on installed validators/converters: text, Markdown, CSV, JSON, PNG/JPEG/SVG; DOCX needs mdconvert, XLSX/PPTX need plugin-XLS, and PDF also needs PDFBox. Generation produces candidates in a networkless sandbox; publishing selected candidate IDs makes validated files available to the conversation. A requested extension alone does not prove a valid document. See the pinned worker and broker implementation for deployment.