ClaudeMods
☰
JA
● — 人がオンライン ・閲覧 — 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 No-Creme2531

Claude Code にターミナル内で mermaid 図、数式、動画をインライン描画させた

Claude Code 用の mod セット(reply-media、reply-markdown、ステータスライン)。mermaid 図、数式、画像、動画の先頭フレームをターミナル内にインライン描画し、コンテキスト、コスト、毎秒トークン数、キャッシュヒット率、git 状態、使用ウィンドウを表示するリッチなステータスラインを追加します。アーリーアクセスの function-hook プラグイン API を使用し、kitty グラフィック対応ターミナル(Ghostty または kitty)が必要で、macOS のみ、CLAUDE.md への追記も必要です。

翻訳済み

この mod について

著者は Claude Code 用に 3 つの mod を作成しました。reply-media は mermaid フェンス、数式、ローカル画像をターミナル内の実際の画像として描画し、ローカル動画の先頭フレームと再生ボタンを表示してその場で再生します。reply-markdown は見出し、リスト、コールアウト、表を色付きで描画し、各コードフェンスをコピーボタン付きのカードに入れます。ステータスラインは使用済みコンテキスト、コスト、毎秒トークン数、キャッシュヒット率、git 状態、使用ウィンドウ、他のセッションが何をしているかを表示します。Claude Code のアーリーアクセス mod API(function-hook プラグイン)に依存し、macOS のみで、Ghostty や kitty などの kitty グラフィック対応ターミナルが必要です。Claude は README が提供する数行を CLAUDE.md に追加した後にのみ、mod が描画するフォームを書きます。MIT ライセンスで、Claude Code 自体を使って構築されています。デモ GIF とスクリーンショットは README(https://github.com/NateCC0902/NeonCoat)にあります。

インストール

インストール方法は元のソースをご確認ください。

原文 / README

A reply in Claude Code is plain text, so a mermaid block stays code and a formula stays raw LaTeX. I wanted them drawn, so I wrote a few mods: reply-media draws mermaid fences, math formulas and local images as real pictures in the terminal. A local video shows its first frame with a play button and plays in place. reply-markdown draws headings, lists, callouts and tables in color, and puts each code fence in a card with a copy button. a status line with context used, cost, tokens per second, cache hit rate, git state, usage windows, and what my other sessions are doing. Demo GIF and screenshots are in the README: https://github.com/NateCC0902/NeonCoat Before you try it: It uses Claude Code's mod API (function-hook plugins). That API is early access, so it can break. macOS only, and the pictures need a terminal with kitty graphics (Ghostty or kitty). Claude writes the forms the mods draw only if you add a few lines to your CLAUDE.md. The README has them. MIT licensed, and built with Claude Code itself. Tell me what breaks. submitted by /u/No-Creme2531 [link] [comments]

関連作品