Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

asciinema

$ asciinema Official Med Risk
asciinema · AI & Media · GPL-3.0-or-later · macos / linux

asciinema captures terminal sessions into compact, time-stamped NDJSON .cast files instead of heavy video. Agents can record scripted commands with asciinema rec -c, strip ANSI sequences into plain text via asciinema convert -f txt, and concatenate casts with asciinema cat.

FCRS-1.0 Score
78 /100
Good
Medium Confidence
Zero-Friction Install
brew install asciinema
CLI vs MCP Decision CLI Only

Recording non-interactive -c sessions and extracting plain transcripts via asciinema convert -f txt are local shell workflows.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 17 / 25

.cast files are native NDJSON and convert -f txt produces clean text, but rec without -c spawns an interactive shell and play requires a TTY.

  • .cast output is native NDJSON; convert -f txt strips escape codes
  • rec without filename prompts to upload; play is interactive
Trust & Safety 18 / 25

Default asciinema rec without a path prompts to upload sessions to asciinema.org, risking accidental leakage of terminal secrets.

  • upload and interactive rec can send terminal captures to remote servers
Setup & Portability 13 / 15

Available via Homebrew, Cargo, and Linux distros, though native Windows is unsupported (POSIX PTYs required).

  • macOS and Linux support only; requires POSIX PTY
Utility & Efficiency 13 / 15

Tiny text-based .cast artifacts replace multi-megabyte screen recordings and convert cleanly to text, raw streams, or v2/v3 formats.

  • Supports rec, convert, cat, play, and stream
Maintenance & Lineage 9 / 10

Official asciinema CLI (asciinema/asciinema), rewritten in Rust in v3 under GPL-3.0-or-later.

  • Official asciinema/asciinema GitHub repository
Docs & Verifiability 8 / 10

Clean docs.asciinema.org manual and built-in --help, though v2 (Python) vs v3 (Rust) subcommand differences exist across older Linux distros.

  • Official CLI docs at docs.asciinema.org/manual/cli/usage

Security, Auth & Guardrails

Auth Modes
No Auth Config File OAuth Browser
Credential Storage

Stores optional asciinema.org install-ID/auth in ~/.config/asciinema/config.toml (only needed for asciinema upload / auth).

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Free GPL-3.0-or-later open-source Rust CLI (asciinema v3+).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# asciinema Agent Rules
- Always pass an explicit local `<filename>.cast` and `-c "<command>"` on `asciinema rec` so it neither spawns an interactive shell nor prompts to upload.
- Never run `asciinema upload` or `asciinema stream` without explicit user consent, as terminal output may contain secrets.

Agent-Ready Command Recipes

Safe Read-Only Queries

Convert a .cast recording to clean plain text
asciinema convert -f txt demo.cast -

Strips ANSI escape codes and timing metadata, emitting readable transcript text to stdout.

Controlled Writes & Previews

Record a non-interactive command into a local .cast file
asciinema rec --overwrite -c "ls -la" demo.cast

Captures the exact output and timing of ls -la into demo.cast without prompting or uploading.

Strengths for Agents

  • + Native NDJSON .cast format and asciinema convert -f txt make terminal recordings trivially inspectable.
  • + asciinema rec -c "..." out.cast automates command capture cleanly.

Caveats & Pitfalls

  • ! No Windows support (requires POSIX PTY); older Linux distros still ship v2 where cat behaves differently from v3.
  • ! Running asciinema rec without a filename or -c launches an interactive shell and prompts for upload.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI