VHS
$ vhs 官方出品 中风险Charmbracelet 出品的 vhs 可通过无头 Chromium、ttyd 与 ffmpeg 将声明式 .tape 脚本(模拟键入、等待、按键)渲染为可复现的 GIF、MP4、WebM 或 PNG 帧序列演示。内置 vhs validate 用于语法预演校验,以及 vhs new 用于快速生成模板。
brew install vhs 编写 .tape 脚本、使用 vhs validate 校验以及渲染可复现演示均在本地 shell 完成。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
声明式 .tape 工作流配合 vhs validate 语法检查、--quiet 标志及非交互执行,但缺少 JSON 输出。
- Supports
vhs validatedry-run parsing and-q/--quiet - Declarative
.tapescripts avoid interactive recording
vhs validate 可安全校验语法,但 vhs <file.tape> 会在真实伪终端中执行脚本内的 shell 命令,且 vhs publish 会上传至外部服务。
- Executes typed shell commands during render;
vhs publishperformsremote_write
虽为单一 Go 二进制,但运行时依赖外部的 ttyd、ffmpeg 与 Chromium/Chrome。
- Requires
ttyd,ffmpeg, and Chromium installed on PATH
将 CLI 演示转化为可版本控制的脚本代码,支持统一字体、主题与 GIF/MP4/WebM 输出。
- Produces reproducible GIF, MP4, WebM, and PNG frame sequences from
.tapefiles
Charmbracelet 官方工具(charmbracelet/vhs),采用 MIT 协议,社区生态活跃。
- Maintained by Charmbracelet on GitHub
.tape 指令、vhs manual 与 vhs --help 文档清晰完善。
- Built-in
vhs manualand comprehensive README
安全边界、鉴权与放权指南
本地渲染无需凭据;vhs publish 会将 GIF 匿名上传至 vhs.charm.sh。
免费,基于 MIT 协议的开源 Go 二进制(运行时依赖 ttyd、ffmpeg 与 Chromium)。
# VHS Agent Rules - Run `vhs validate <file.tape>` after editing `.tape` files before rendering. - Never invoke `vhs publish` unless the user explicitly asks to upload media to `vhs.charm.sh`. - Remember `.tape` scripts actually execute shell commands—sanitize commands and avoid secrets inside tapes.
Agent 高频安全命令配方
只读查询(安全推荐)
vhs validate demo.tape
作为零执行的预演检查,解析并验证 demo.tape 的语法与指令。
受控写入与预演
vhs demo.tape
在隔离终端中执行 demo.tape 并写出脚本中配置的 Output 媒体文件。
核心优势
- +
vhs validate无需启动 Chromium 或ffmpeg即可捕获.tape语法错误。 - + 声明式
.tape文件让 Agent 能以版本化、可复现的方式持续生成 CLI 演示。
注意事项与踩坑点
- ! 需要系统额外具备
ttyd、ffmpeg与 Chromium(brew install vhs会自动拉取,其余平台需自行配置)。 - ! 渲染过程会实际执行脚本中的 shell 命令;
vhs publish会将媒体公开上传到vhs.charm.sh。