For AI Agents

Give AI agents focused access to waveform context through Pi Agent integration, repeatable command workflows and bounded JSON/TUI queries.

Pi Agent integration Headless mode svw agent CLI

Pi Agent integration — visual waveform results

Pi Agent integration gives the model a compact summary while keeping the full-color waveform visible for you.

Pi Agent integration

Adds a focused waveform action for the model and presents the complete colored TUI view alongside the result.

$

One-shot CLI

svw agent <wave> … produces bounded JSON or static TUI frames for any shell harness — metadata, values, change evidence and renders, composable with pipes and scripts.

Agent skill

The shared svw-waveform skill teaches the agent how to query metadata, keep stable signal IDs for evidence, and copy exact hierarchical names into render calls.

What the model sees vs. what you see

The integration returns a concise completion summary to the model while keeping the complete colored TUI view available for you to review.

Install the extension

Install svw first from the home page, then add the Pi Agent extension with one command:

pi install npm:pi-svw-waveform

Keep the svw-waveform agent skill installed alongside. The skill helps Pi Agent inspect the right signals, retain useful evidence and request clear waveform views consistently.

Headless mode — svw --headless

Headless mode runs svw without a terminal UI: it reads : command lines from stdin, executes them exactly as the interactive TUI would, and writes result messages to stdout. Every command in the command tutorial works here unchanged — same parser, same semantics.

# pipe commands in — one per line, leading ':' optional
printf 'mark 30\nmarks\npattern top.clk=1\nq\n' | svw --headless wave.vcd

# replay a saved session, then run a check script
svw --headless -s debug.svw < checks.svwcmd

Use headless mode when you want the full interactive command surface — sessions, markers, reports, coverage — from a script or regression suite.

One-shot typed queries — svw agent

svw agent <waveform|-> <query> answers a single question and exits. Data queries write exactly one JSON object; renders write a static UTF-8 svw TUI frame with no terminal control sequences — safe to embed in tool output.

svw agent wave.fst info                          # timescale, ranges, counts
svw agent wave.fst signals clk 10                # search: name + stable ID
svw agent wave.fst value 42 125000               # value of signal 42 at a tick
svw agent wave.fst changes 42 0 200 100          # change evidence, paginated
svw agent wave.fst render 0 200 top.clk top.state \
    --width 120 --color ansi --view wave         # static waveform frame
svw agent - compare golden.vcd dut.vcd \
    --signals top.a top.b --range-fs 0 1000000   # typed compare evidence

Query families

Conventions an agent can rely on

Choosing an interface

interfaceshapebest for
Pi Agent integrationvisual waveform result Pi Agent sessions: concise model context and a full view for you
svw --headlessstdin/stdout : command scripts CI regression, replaying sessions, anything the TUI can do
svw agentone-shot typed JSON / static TUI frame short, evidence-focused agent tasks
svw mcppersistent stdio MCP server, strict schemas agent harnesses with MCP support
svw rpcJSON-RPC 2.0 over stdio, subscriptions custom automation and editor integrations