verify-agent-tty
Drive the real agent-tty CLI built from this checkout, the way a user or agent does, and capture proof - JSON envelopes, rendered snapshots, PNG screenshots…
от coder★ 33 звезды на GitHub
Установить verify-agent-tty в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Verify agent-tty by driving the CLI
agent-tty is a CLI. Users and agents touch three surfaces: the agent-tty commands with --json envelopes (the main one), the agent-tty dashboard TUI, and the artifacts that commands write (PNG, .cast, .webm, snapshot JSON). The library export in src/index.ts is not covered here.
There is no server to keep alive. Each verification run builds dist/ once and then drives the built CLI against its own Home. Two runs of the same build can work side by side, because each one has its own Home, its own Home Registry and its own socket folder. All runs of a checkout share its dist/, and start-run.sh rebuilds it (and can delete it first), so do not start a run while another run of this checkout is still driving sessions on an older build.
The feature map in features/README.md is the maintained list of user-facing features and how to drive each one. Read it before you drive anything, and drive every entry point that the map lists for the feature you verify.
Launch
ENV=$(.agents/skills/verify-agent-tty/scripts/start-run.sh <name>)
. "$ENV"
start-run.sh does this, from an empty folder to a usable CLI:
- It runs
pnpm install --frozen-lockfile, which bringsnode_modulesup to date after a change topnpm-lock.yaml, repairs a partial install that lacksnode_modules/.bin, and returns at once when nothing changed. Without that, a run after a dependency change builds and runs the old packages. - It runs
npm run build. Ifstale-dist.shthen finds a module ofsrc/without its built module indist/, or a.tsor.tsxfile insrc/newer thandist/cli/main.js, it removes.tsconfig.build.tsbuildinfoanddist/and builds again. A stale build info file makestscexit 0 and write nothing, also when only one built module was deleted. - It makes the run folder
<root>/<UTC time>-<name>-<random>/withmktemp -d, andhome/,state/andevidence/in it. The root is$VERIFY_ROOT, or${TMPDIR:-/tmp}/verify-agent-tty-<uid>. The script refuses a root that is a symlink or that you do not own, and sets it to mode 700, so another user on a shared machine cannot plant files there. - It writes
env.shthere and prints its path.
env.sh sets AGENT_TTY_HOME (the run's home/), XDG_STATE_HOME (the run's state/, so the Home Registry is private), EVIDENCE, VERIFY_RUN, AGENT_TTY_REPO, and NODE_OPTIONS=--disable-warning=DEP0205, as the tests set it. It turns on set -o pipefail, so att ... | tee file keeps the CLI's exit status. It also defines att, which runs node $AGENT_TTY_REPO/dist/cli/main.js, exactly what the agent-tty bin runs, with HISTFILE=/dev/null. So an interactive bash in a session that att create starts saves no history, and none of it reaches your ~/.bash_history, while your own shell keeps its history file. The session's events.jsonl records every input. HOME stays yours, so other programs that keep a history file still write it there. A ~/.bashrc that sets HISTFILE overrides this for an interactive bash session. It also overrides att create --env HISTFILE=<path>, because bash reads ~/.bashrc after its environment. To keep that history out of your file, or to verify bash's own history, skip the startup files and give the session its own file: att create --env HISTFILE=<path> -- bash --noprofile --norc.
Every bash call is a new shell, so start each one with . "$ENV" (keep the path from the first call). The CLI is ready when doctor.sh passes. Rebuild with a new start-run.sh after every change to src/: att runs dist/, not the source.
To drive the source without a build, use node --import tsx src/cli/main.ts instead of att. Public skill text must still say agent-tty ....
Doctor
Run this first, and again whenever a result looks wrong:
.agents/skills/verify-agent-tty/scripts/doctor.sh "$ENV"
It checks that the Home and the Home Registry are this run's and not ~/.agent-tty, that dist/ has a built module for every module of src/ and is newer than src/, that att version --json reports the package.json version, and that att doctor --json passes (PTY spawn, socket, atomic writes, Playwright Chromium, ghostty-web, libghostty-vt). It prints the sessions in the run's Home and the processes the run started. It fails when run-pids.sh fails, since cleanup.sh would then keep the run's folders. On macOS, where run-pids.sh always exits 2 (no /proc), it only notes that the list is unknown. Exit 0 means the run is worth driving. agent-tty doctor creates and removes one probe session in the run's Home. Nothing outside the run folder changes.
Drive
The harness is the CLI itself, run as att <command> ... --json, with jq to read the envelope. Every envelope has ok, command, timestamp, and result or error.code. The exit code comes from src/cli/exitCodes.ts (for example 3 SESSION_NOT_FOUND, 4 `SES
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- features/README.md
- features/artifacts.md
- features/batch.md
- features/dashboard.md
- features/mouse.md
- features/run-and-wait.md
- features/session-lifecycle.md
- scripts/cleanup.sh
- scripts/dependabot-resolve.sh
- scripts/doctor.sh
- scripts/run-pids.sh
- scripts/stale-dist.sh
- scripts/start-run.sh
FAQ
Что делает скилл verify-agent-tty?
Drive the real agent-tty CLI built from this checkout, the way a user or agent does, and capture proof - JSON envelopes, rendered snapshots, PNG screenshots, recordings, and the session files on disk - in an isolated Home that never touches ~/.agent-tty. Use it to verify a change to any agent-tty command (create, run, wait, batch, mouse, snapshot, screenshot, record, gc, dashboard) end to end before you call it done, or to reproduce a reported CLI or TUI bug.
Как установить скилл verify-agent-tty?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл verify-agent-tty запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…