VeloQ
Pure CLI in / JSON contract out; no GUI required.
Agent-friendly profile-query CLI family. JSON by default, with
CSV/table projections where useful. One command answers one question.
VeloQ is designed for coding agents and scripts that need GPU profile
evidence without opening a GUI.
VeloQ covers three profile sources today — Nsight Systems (timeline
traces), Nsight Compute (kernel reports), and experimental
PyTorch/Kineto Chrome traces — through a single binary with a shared
envelope and a pluggable ProfileSource trait. The PyTorch/Kineto source
covers the Perfetto-style Chrome trace shape used by PyTorch profiler.
Status
- 17 NSys verbs, including timeline analysis, static SVG figures,
kernel overlap, NCU handoff, prep/cache helpers, and schema.
- 11 NCU verbs:
summary, launches, inspect, metrics, disasm,
ranges, graphs, sources, source-metrics, warp-stalls,
and schema.
- 10 experimental PyTorch verbs:
summary, search, inspect,
stats, correlate, timeline, slices, collectives, prep,
and schema.
- Six root meta verbs:
info, sources, clean, recipes, agent,
and self-update.
JSON output uses one v1 envelope on stdout. List responses use
canonical data.rows[] with a stable per-row key; NSys trace
responses also carry top-level trace_span for per-second normalization.
Errors use the same envelope shape and a non-zero exit code.
NSys ingestion
NSys traces are read through nsys export -t parquetdir. Minimum
required nsys version is 2024.6 (the release that introduced the
parquetdir --type). All VeloQ-generated products live under one
<report>.veloq/ artifact root; the NSys parquet cache is its
parquetdir/ child with ctime invalidation.
How it compares
For a GPU-profile question an agent usually reaches for one of three
interfaces. VeloQ focuses on the agent-facing axes: a stable typed
contract, token economy, and scriptability. It does not replace
nsys or ncu; it reads their exported evidence.
| Nsight GUI | Raw nsys/ncu text in context | Hand-rolled SQLite + jq | VeloQ |
|---|
| Scriptable / one-shot | ✗ | ~ ad hoc | ✓ | ✓ |
| Token-efficient for an agent | n/a | ✗ broad dumps | ~ | ✓ shaped rows + truncation signals |
| Stable typed contract | ✗ | ✗ free text | ✗ schema you own | ✓ versioned JSON envelope |
| Cross-capture diffable | ✗ | ✗ | ~ | ✓ stable per-row key |
| Zero setup per query | ✓ | ✓ | ✗ | ✓ |
Use the Nsight GUI for interactive timeline exploration or one-off visual
inspection. Use VeloQ for programmatic, repeatable, agent- or
script-driven querying.
Install
For Linux and macOS, the install script is the shortest path: it installs
both the veloq binary and the bundled Agent Skills.
# Linux x86_64 / aarch64 and macOS x86_64 / arm64
curl -fsSL https://raw.githubusercontent.com/lucifer1004/veloq/main/scripts/install.sh | bash
Installs the veloq binary under ~/.local/bin and the Agent Skills
for profile analysis (nsys-profile-analysis, ncu-profile-analysis,
pytorch-profile-analysis) under
~/.agents/skills/. Pass --no-skills to install just the
binary, or --no-binary to refresh the skills when you manage the
VeloQ CLI separately. The skills are VeloQ-backed: they can be
installed separately, but profile evidence extraction still requires a
veloq binary on PATH. --bin-dir <path> overrides the binary
install location.
For Windows, use cargo binstall veloq below or grab
veloq-x86_64-windows.exe from the
Releases page directly.
Cargo binstall (binary only)
If you use cargo-binstall,
install the prebuilt veloq binary from the GitHub release:
cargo binstall veloq
cargo binstall installs only the executable. To fetch the bundled
skills from the latest release without replacing the binstall-managed
VeloQ binary, run:
veloq self-update --no-binary
Use --skills-dir <path> on that second command to install skills under a
non-default root such as .claude/skills/.
veloq self-update --no-binary --skills-dir .claude