rdc-cli

Used for handling RenderDoc capture files (.rdc), analyzing GPU frames, tracing shaders, inspecting draw calls, or running CI assertions on GPU captures. Trigger phrases include “open capture,” “rdc file,” “renderdoc,” “shader debug,” “pixel trace,” “draw calls,” “GPU frame,” “assert pixel,” and “export render target.”

Last repository push
GitHub Stars
200
Forks
38
Issues / PRs
3

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "rdc-cli" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-cc2c2d271f10bb0ae175f63185955c8bd7aec0af8c8b86c11197b55b22fc885d. Verify the upstream source and version against https://github.com/BANANASJIM/rdc-cli before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Used for handling RenderDoc capture files (.rdc), analyzing GPU frames, tracing shaders, inspecting draw calls, or running CI assertions on GPU captures. Trigger phrases include “open capture,” “rdc file,” “renderdoc,” “shader debug,” “pixel trace,” “draw calls,” “GPU frame,” “assert pixel,” and “export render target.”

0 Downloads

Introduction source: third_party · BANANASJIM · 0.0.1 Reference

SkillPi interpretation

Tasks
rdc-cli is a Unix-friendly command-line interface for RenderDoc GPU captures. It provides a daemon-backed architecture using JSON-RPC over TCP, a virtual filesystem (VFS) path namespace for navigating capture internals, and composable commands designed for shell pipelines, scripting, and CI assertions.
Inputs and outputs
All list/table commands default to TSV (tab-separated values) with a header row, suitable for `cut`, `awk`, and `sort`. | Flag | Format | Use Case | |------|--------|----------| | *(default)* | TSV with header | Human reading, shell pipelines | | `--no-header` | TSV without header | Piping to `awk`/`cut` without stripping | | `--json` | JSON array | Structured processing with `jq` | | `--jsonl` | Newline-delimited JSON | Streaming processing, large datasets | | `-q` / `--quiet` | Minimal (single column) | Extracting IDs for loops | Example -- get all draw call EIDs as a plain list: Example -- JSON pipeline with jq:
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: rdc-cli
description: >
  Use this skill when working with RenderDoc capture files (.rdc), analyzing GPU frames,
  tracing shaders, inspecting draw calls, or running CI assertions against GPU captures.
  Trigger phrases: "open capture", "rdc file", ".rdc", "renderdoc", "shader debug",
  "pixel trace", "draw calls", "GPU frame", "assert pixel", "export render target".

rdc-cli Skill

Overview

rdc-cli is a Unix-friendly command-line interface for RenderDoc GPU captures. It provides a daemon-backed architecture using JSON-RPC over TCP, a virtual filesystem (VFS) path namespace for navigating capture internals, and composable commands designed for shell pipelines, scripting, and CI assertions.

Install: pip install rdc-cli (requires a local RenderDoc build with Python bindings). Check setup: rdc doctor.

Core Workflow

Follow this session lifecycle for any capture analysis task:

  1. Open a capture:
    • Local: rdc open path/to/capture.rdc
    • Remote replay (Proxy): rdc open capture.rdc --proxy host:port
    • Split thin-client: rdc open --connect host:port --token TOKEN
    • Android device: rdc open capture.rdc --android [--serial SERIAL]
  2. Inspect metadata: rdc info, rdc stats, rdc events
  3. Navigate the VFS: rdc ls /, rdc ls /textures, rdc cat /draws/0/pipeline/summary
  4. Analyze specifics: rdc shaders, rdc pipeline, rdc resources, rdc bindings
  5. Debug shaders: rdc debug pixel EID X Y, rdc debug vertex EID VTXID, rdc debug thread EID GX GY GZ
  6. Export data: rdc texture ID -o out.png, rdc rt EID, rdc buffer ID -o buf.bin, rdc cbuffer EID --stage ps --binding 0, rdc log
  7. Close the session: rdc close

Session Management

  • Default session name: default (or value of $RDC_SESSION).
  • Override per-command: rdc --session myname open capture.rdc.
  • Check active session: rdc status.
  • Navigate to a specific event: rdc goto EID.

Output Formats

All list/table commands default to TSV (tab-separated values) with a header row, suitable for cut, awk, and sort.

Flag Format Use Case
(default) TSV with header Human reading, shell pipelines
--no-header TSV without header Piping to awk/cut without stripping
--json JSON array Structured processing with jq
--jsonl Newline-delimited JSON Streaming processing, large datasets
-q / --quiet Minimal (single column) Extracting IDs for loops

Example -- get all draw call EIDs as a plain list:

rdc draws -q

Example -- JSON pipeline with jq:

rdc events --json | jq '.[] | select(.type == "DrawIndexed")'

Render Pass Analysis

List passes (Phase 8 columns)

rdc passes outputs 6 columns: NAME, DRAWS, DISPATCHES, TRIANGLES, BEGIN_EID, END_EID.

rdc passes                          # TSV table
rdc passes --json                   # includes load_ops/store_ops per pass
rdc passes --deps --table           # per-pass READS/WRITES/LOAD/STORE

Inspect a single pass

rdc pass <name> shows enriched attachments: resource name, format, dimensions, and load/store ops.

rdc pass GBuffer
rdc pass GBuffer --json
rdc pass 0                          # by 0-based index

Detect dead render targets

rdc unused-targets finds render targets written but never consumed by visible output. Columns: ID, NAME, WRITTEN_BY, WAVE.

rdc unused-targets                  # TSV
rdc unused-targets --json           # structured
rdc unused-targets -q               # one resource ID per line (for scripting)

Frame statistics

rdc stats outputs three sections: Per-Pass Breakdown, Top Draws by Triangle Count, and Largest Resources.

rdc stats                           # all three sections
rdc stats --json                    # includes largest_resources array

GL/GLES/D3D11 captures without native BeginPass/EndPass markers get synthetic pass inference automatically — no extra flags needed.

Common Tasks

Find all draw calls

rdc draws
rdc draws --pass "GBuffer" --json

Trace a pixel

rdc debug pixel 1024 512 384            # EID first, then X Y
rdc debug pixel 1024 512 384 --json     # structured output
rdc debug pixel 1024 512 384 --trace    # full step-by-step trace

Search shaders by name or source

rdc search "main"                  # regex search over shader disassembly
rdc search "Sample" --stage ps -C 2
rdc shaders --name "GBuffer*"

Export render targets

rdc rt EID -o output.png
rdc rt EID --depth -o depth.png      # export the raw depth attachment
rdc texture ID -o tex.png            # export a texture by resource ID (PNG)

Decode a constant buffer

rdc cbuffer EID --stage ps --binding 0           # decode to JSON
rdc cbuffer EID --stage vs --binding 0 --raw -o cbuffer.bin

Browse VFS paths

rdc ls /
rdc ls /textures -l
rdc tree /draws/42/pipeline --depth 2     # pipeline state lives under /draws/<eid>/pipeline/
rdc cat /draws/42/pipeline/summary
rdc cat /events/42

Inspect pipeline state at a draw call

rdc goto EID
rdc pipeline --json
rdc bindings --json

Compare state before/after a pass

rdc goto 100 && rdc pipeline --json > before.json
rdc goto 200 && rdc pipeline --json > after.json
diff before.json after.json

CI Assertions

rdc-cli provides assertion commands that exit non-zero on failure, designed for automated testing pipelines:

Command Purpose
rdc assert-pixel EID X Y --expect "R G B A" Assert pixel RGBA (4 space-separated floats) at EID/coordinates
rdc assert-clean Assert no validation errors in capture
rdc assert-count <what> --expect N [--op CHOICE] Assert a capture metric (e.g. draws) satisfies a comparison
rdc assert-state EID KEY-PATH --expect VALUE Assert pipeline state value at EID matches expected
rdc assert-image EXPECTED ACTUAL [--threshold FLOAT] Compare two image files pixel-by-pixel

Example CI script:

#!/bin/bash
set -e
rdc open test_capture.rdc
rdc assert-clean
rdc assert-count draws --expect 10 --op ge
rdc assert-pixel 1024 256 256 --expect "1.0 0.0 0.0 1.0"
rdc close

Shader Edit-Replay

Modify and replay shaders without recompiling the application:

rdc shader-encodings                       # list available encodings
rdc shader EID ps --source > s.frag        # extract shader source
# ... edit s.frag ...
rdc shader-build s.frag --stage ps         # compile; prints the built shader ID
rdc shader-replace EID ps --with <ID>      # hot-swap built shader ID into capture
rdc shader-restore EID ps                  # revert single shader (STAGE required)
rdc shader-restore-all                     # revert all modifications

Remote Capture Workflow

rdc-cli wraps renderdoccmd remoteserver to support PC-to-PC remote captures.

  • rdc serve [--port PORT] [--allow-ips CIDR] [--no-exec] [--daemon] — launch remoteserver on the target machine
  • rdc remote connect <host:port> — save remote connection state
  • rdc remote list — enumerate capturable apps on the remote
  • rdc remote capture <app> -o frame.rdc [--args ...] [--frame N] [--keep-remote] — inject, capture, and transfer back. --keep-remote skips the transfer and prints the remote path; replay it with rdc open <path> --proxy host:port. (The CLI's own next: hint currently still references the deprecated --remote alias for --proxy.)
  • rdc open frame.rdc --proxy host:port — remote-backed replay (daemon local, GPU remote)

remote_state.py persists the last connected host so subsequent rdc remote list can omit --url.

Split Mode (thin client)

Split mode decouples CLI and daemon — run the daemon where the GPU is and connect from a machine that doesn't need the renderdoc module. Useful when the analyst's laptop is macOS/Windows and the GPU is on a Linux server.

  • Server side: rdc open capture.rdc --listen [ADDR[:PORT]]
    • Prints these four labeled lines to stdout (among other status output): host: ADDR, port: PORT, token: TOKEN, connect with: rdc open --connect ADDR:PORT --token TOKEN
  • Client side: rdc open --connect HOST:PORT --token TOKEN

SSH tunnel tip (use the port from --listen, or rdc serve's default 39920): ssh -L 39920:localhost:39920 user@server, then connect to localhost:39920.

Every normal command (rdc draws, rdc rt, ...) works transparently in Split mode. Binary exports use file_read RPC with raw binary frames — no base64 overhead.

Android Workflow

  • Prerequisite: the RenderDoc APK must already be installed on the host via rdc setup-renderdoc --android (upstream) or --android --arm (ARM PS fork for Mali). rdc android setup does not push the APK itself.
  • rdc android setup [--serial SERIAL] — starts remoteserver on the device via RenderDoc's Device Protocol API (StartRemoteServer), sets adb forward, saves remote state.
  • rdc android capture <activity> [--serial SERIAL] [--timeout N] [--port PORT] [-o out.rdc] — GPU debug layers based capture (works around EMUI/Mali injection limitations).
  • rdc android stop [--serial SERIAL] — stops the remoteserver and cleans state.
  • For remote replay: rdc open frame.rdc --android [--serial SERIAL] — this is the only form that rewrites the saved adb://SERIAL to the forwarded localhost:PORT. Passing --proxy adb://SERIAL directly bypasses the rewrite and is known to crash the daemon (see session.py:_resolve_android_url).

Hardware matrix: Adreno is the happy path; Mali may need the ARM Performance Studio fork (see rdc setup-renderdoc --android --arm).

Troubleshooting

Always run rdc doctor first. It reports status for renderdoc module, renderdoccmd, adb, Android APK, and platform-specific toolchains. Only the missing-renderdoc-module case emits a dedicated build-hint block; other checks surface inline hints in the detail column, so read each failing line rather than relying on a uniform next-step list.

Common failure categories (conceptual, not literal error strings — map from the text the tool actually emits):

  • network / connect failed — remote host unreachable, firewall, wrong port. Verify rdc serve is running on the target.
  • version mismatch — host and target RenderDoc versions differ. Re-run rdc setup-renderdoc or rdc setup-renderdoc --android to align.
  • inject failed / ident=0 — injection blocked (Android EMUI, macOS SIP, Windows privilege). Run rdc doctor and check the platform-specific detail.
  • OpenCapture unsupported — local GPU can't replay the capture's API surface; switch to --proxy or --android remote replay.
  • duplicate Vulkan layer — rdc doctor warns when more than one VK_LAYER_RENDERDOC_Capture Vulkan layer is registered (a system-installed RenderDoc plus the rdc-managed one create a split-brain). The loader then picks one non-deterministically and capture can silently time out; unregister the extra manifest so only one remains.
  • not loaded / no session — forgot rdc open; use rdc status to inspect.

For long operations (large capture transfers, remote replay init), the CLI has limited progress feedback — this is a known UX gap, not a hang. Wait up to the --timeout value before concluding failure.

Command Reference

For the complete list of all commands with their arguments, options, types, and defaults, see references/commands-quick-ref.md.

Version history

  1. v0.7.0 GitHub ↗
    Original release notes

    ## Security fixes - Keep the daemon running after malformed unauthenticated requests and connection resets. Validate request envelopes before dispatch, and require authentication before a shutdown request can stop the daemon. - Upgrade Pillow to 13.0.0 and update the Python dependency lockfile. - Update the static documentation site's Astro and build dependencies to patched versions, retaining the existing Tailwind styles. - Require dependency auditing to succeed before package publication, and align AUR dependency requirements with the Python package. ## Compatibility and upgrade **Python 3.11 or newer is now required.** Pillow 13 does not support Python 3.10. Upgrade Python before upgrading rdc-cli; if the Python minor version changes, rebuild or reinstall the matching RenderDoc Python bindings. The documentation development environment now requires Node.js 22.23.4 or newer; CI uses Node.js 24. This does not add a Node.js requirement for the CLI. ## Validation The security fixes include regression coverage using isolated TCP daemon subprocesses. The local complete suite passed 3,096 tests with 92.35% coverage; documentation build and validation passed 407 checks. The audited Python and documentation lockfiles had no known advisory matches at release preparation time. Release CI passed Linux, Windows and macOS tests and wheel/sdist installation checks. A fresh Python 3.11 installation from PyPI was also verified. **Full changelog:** https://github.com/BANANASJIM/rdc-cli/compare/v0.6.3...v0.7.0

  2. v0.6.3 GitHub ↗
    Original release notes

    ## What's Changed * fix(texture): export requested 3d texture slice by @Misaka-Mikoto-Tech in https://github.com/BANANASJIM/rdc-cli/pull/271 ## New Contributors * @Misaka-Mikoto-Tech made their first contribution in https://github.com/BANANASJIM/rdc-cli/pull/271 **Full Changelog**: https://github.com/BANANASJIM/rdc-cli/compare/v0.6.2...v0.6.3

  3. v0.6.2 GitHub ↗
    Original release notes

    ## What's Changed * fix(daemon): support Texture3D depth slices by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/269 * fix(ci): update audited dependencies by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/270 **Full Changelog**: https://github.com/BANANASJIM/rdc-cli/compare/v0.6.1...v0.6.2

  4. v0.6.1 GitHub ↗
    Original release notes

    ## What's Changed * fix(cbuffer): handle D3D raw export and vs-in fallback by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/265 * fix mesh vs-in position selection by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/266 * fix(shader): decode reflected value lanes by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/267 **Full Changelog**: https://github.com/BANANASJIM/rdc-cli/compare/v0.6.0...v0.6.1

  5. v0.6.0 GitHub ↗
    Original release notes

    ## What's Changed * fix(remote): repair startup deadlock, idle cleanup, and android adb:// crash by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/238 * feat(remote): support texture/RT/depth export in remote replay mode by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/237 * feat(export): add --depth flag to rdc rt for depth target export by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/239 * feat(remote): decode R11G11B10F and R9G9B9E5 packed HDR formats in remote export by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/240 * fix(export): unify depth export decode path across local and remote modes by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/242 * test(discover): isolate fallback tests from RENDERDOC_PYTHON_PATH env leak by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/243 * chore: archive openspec changes for #237 #239 #240 by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/241 * chore: archive openspec changes for #242 #243 by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/244 * fix(remote): normalize localhost to 127.0.0.1 for IPv4-only remote servers by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/245 * chore: archive openspec change for #245 by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/246 * chore: remove dead request builders, recv_binary, and query_both_sync by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/247 * fix(diff): emit event_count from stats RPC so summary events delta is real by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/248 * test(mock-sync): assert mock controller/pipe-state/capture-file method surfaces match real renderdoc by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/249 * Fix Windows Vulkan capture launch environment by @Lin-WeiChen-Taiwan in https://github.com/BANANASJIM/rdc-cli/pull/254 * fix(capture): use platform-appropriate cmdline quoting for child app args by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/258 * fix(setup): substitute Vulkan layer manifest template vars and detect duplicate layers by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/259 * build: add renderdoc pin-consistency test locking RDOC_TAG/SWIG_SHA256 to a single source by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/250 * test(capture): cover launch-env helpers and add EnvironmentModification mock by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/255 * test: add RDC_DATA_DIR seam and centralize unit/e2e home isolation by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/251 * chore: remove openspec design docs by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/261 * refactor(formatters): extract render_list helper and normalize quiet-key handling by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/252 * docs: fix stale command signatures and add cbuffer/rt-depth/--gpu coverage by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/262 * feat(descriptors): resolve bindless array index to texture from the CLI by @K1ngst0m in https://github.com/BANANASJIM/rdc-cli/pull/264 ## New Contributors * @Lin-WeiChen-Taiwan made their first contribution in https://github.com/BANANASJIM/rdc-cli/pull/254 **Full Changelog**: https://github.com/BANANASJIM/rdc-cli/compare/v0.5.6...v0.6.0

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 专业级GPU调试工具,直接解决RenderDoc捕获文件分析的核心任务痛点
  • 提供完整的端到端工作流:从打开捕获到导出数据的全流程支持
  • 支持CI断言和自动化测试,显著提升开发效率
Trigger Precision85/100

Areas to improve

  • description写错位置 Reported severity: Minor

    description内容出现在skill_body内部而非顶层frontmatter

    Recommendation: 将description移至顶层frontmatter位置

Highlights

  • 触发词覆盖全面:包含open capture、rdc file、renderdoc等核心术语
  • 支持多种变体表达:.rdc、着色器调试、像素追踪等专业术语
Structure and Standards90/100

Areas to improve

  • 缺少When to Use章节 Reported severity: Minor

    文档结构完整但缺少明确的When to Use使用场景说明

    Recommendation: 添加When to Use章节明确使用场景

Highlights

  • Phase清晰:7步完整工作流从打开到关闭
  • 包含丰富的端到端示例和CI脚本
  • 输出格式说明完整,支持多种数据格式
Execution Reliability80/100

Highlights

  • 提供完整的异常处理指南和troubleshooting章节
  • CI断言命令设计完善,支持非零退出码
  • 支持远程调试和Android工作流
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 16

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.