asciinema vs AgentGIF — Terminal Recording Comparison

Comparison of asciinema and AgentGIF for terminal recording: features, formats, embedding, and AI agent support.

概要

asciinema is a terminal session recorder that captures input/output as lightweight text-based recordings (.cast files). It's open-source, self-hostable, and has been the standard for terminal recording since 2012.

AgentGIF is a developer GIF hosting platform with a dual-layer architecture: every GIF has a visual layer (GIF image) for humans and a machine layer (cast + transcript) for AI agents. It uses VHS for recording and serves both GIF images and structured data.

機能比較

機能asciinemaAgentGIF
録画ライブターミナルキャプチャVHS テープファイルによるスクリプト録画
出力形式.cast (テキストベース).gif + .mp4 + .cast
ビジュアルプレビューJavaScript プレーヤーが必要インライン GIF はどこでも再生
GitHub README外部プレーヤーへのリンクインライン <img> タグ
ファイルサイズ非常に小さい (KB 範囲)中程度 (100 KB ~ 5 MB)
再生品質完璧 (ベクターテキスト)良好 (ラスタライズされたピクセル)
ターミナルからコピー可能 (テキスト選択可)不可 (画像)
テーマプレーヤー設定経由44 の組み込み VHS テーマ
AI エージェントサポートキャストファイルのみキャスト + トランスクリプト + .md + JSON API
検索タイトルのみ全文 (タイトル、コマンド、トランスクリプト、タグ)
セルフホスト可能 (asciinema-server)不可 (ホスト型プラットフォーム)
オープンソースはい (GPL-3.0)いいえ (ホスト型サービス)
API制限あり30+ REST エンドポイント + OpenAPI
埋め込み方法iframe、JavaScript プレーヤーMarkdown、HTML、iframe、oEmbed、バッジ、スクリプト
バッジサービスいいえターミナルテーマの SVG バッジ

録画

asciinema: ライブキャプチャ

asciinema は実際のターミナルセッションをリアルタイムで録画します:

asciinema rec demo.cast
# ... type commands naturally ...
# Press Ctrl+D to stop

メリット: 自然なタイピング、エラーを含む実際の出力をキャプチャ。デメリット: 再現性がない — 毎回の録画は異なります。

AgentGIF: スクリプト録画

AgentGIF は VHS テープファイルを使用します — 毎回同一の出力を生成するスクリプト録画:

# demo.tape
Output demo.gif
Set Theme "Catppuccin Mocha"
Type "docker compose up -d"
Enter
Sleep 3s

メリット: 再現可能、バージョン管理可能、CI/CD に最適。デメリット: スクリプトの記述が必要。

出力形式

形式asciinemaAgentGIF注記
.cast主要サポートテキストベース、非常に小さいサイズ、完璧な品質
.gif変換経由主要ユニバーサル表示、プレーヤー不要
.mp4変換経由自動生成GIF より小さい、ビデオプレーヤーが必要
.svgagg 経由バッジのみベクター品質

GitHub README への埋め込み

asciinema

asciinema の録画は JavaScript プレーヤーが必要です。GitHub はスクリプトを削除するため、リンクに制限されます:

[![asciicast](https://asciinema.org/a/12345.svg)](https://asciinema.org/a/12345)

これは asciinema プレーヤーページにリンクする静的 SVG プレビューを表示します。

AgentGIF

GIF 画像はプレーヤーなしでインライン表示されます:

<p align="center">
  <img src="https://media.agentgif.com/ID.gif" alt="demo" width="800">
</p>

デモは自動再生されます — クリック不要、外部ページへの訪問不要。

AI エージェントサポート

これが 2 つのプラットフォームが最も大きく異なる点です:

機能asciinemaAgentGIF
機械可読データ.cast ファイル.cast + トランスクリプト + JSON API + .md
全文検索いいえ可能 (コマンド、出力、タグ)
構造化メタデータタイトル、コマンドタイトル、コマンド、タグ、ツール、テーマ、サイズ
LLM 最適化出力いいえすべてのページに .md エンドポイント
サイトレベルのサマリーいいえllms.txt
OpenAPI 仕様いいえ完全な OpenAPI 3.1

ホスティング

側面asciinemaAgentGIF
セルフホストオプション可能 (asciinema-server)いいえ
ホスト型プラットフォームasciinema.orgagentgif.com
CDN 配信asciinema CDNCloudflare R2 (media.agentgif.com)
料金無料 (ホスト型) / セルフホストコスト無料

それぞれの使用場面

asciinema を選ぶべき場合:

AgentGIF を選ぶべき場合:

両方を組み合わせて使用

asciinema と AgentGIF は補完的です。一般的なワークフロー:

  1. 自然なインタラクションのために asciinema で 録画: asciinema rec demo.cast
  2. agg または VHS を使用して GIF に 変換: agg demo.cast demo.gif
  3. キャストファイルとともに AgentGIF に アップロード: agentgif upload demo.gif --cast demo.cast
  4. README に GIF を 埋め込む (人間向けのビジュアルレイヤー、エージェント向けのキャストレイヤー)