ClaudeMods
☰
ZH-TW
● — 人在線上 · 瀏覽 — 次
贊助提交作品
GitHub 儲存庫 · 發布者 Every-Comment5473

終端機中 Claude Code 上的智慧 UI:真實表格、LaTeX、圖片與即時圖表。

一個 Claude Code 模組,在終端機中將回應渲染為排版後的 Typst 圖片,支援表格、LaTeX 數學公式、內嵌圖片、圖表、圖示、計畫模式以及主題。

已翻譯

關於這個 mod

CC Intelligent UI 是一個 Claude Code 模組,它透過 Typst 將每個答案渲染為排版後的圖片,使用渲染鉤子將答案列替換為以 kitty graphics 預留位置繪製的 PNG 頁面。它支援渲染後的 Markdown(標題、表格、工作清單、引用、語法高亮程式碼)、行內與獨立 LaTeX、貼上與行內圖片,以及 Claude 撰寫的圖表/圖示(CeTZ、cetz-plot、fletcher)。計畫模式會顯示渲染後的計畫,並帶有核准/編輯/拒絕控制項。主題包括 Claude Code 色彩(預設)與 VS Code Markdown 預覽變體,每個都有淺色/深色版本,並可透過 /iui theme <name> 使用自訂 JSON 主題。在 kitty、Ghostty 與 cmux 上開箱即用;iTerm2 3.6+ 需要 /iui setup;不支援 tmux 或 screen。在 macOS 上使用 Claude Code 2.1.298+,透過 brew install typst 與 /plugin install cc-intelligent-ui --marketplace razorback16/cc-intelligent-ui 安裝。增加約 450 個系統提示 token;儲存的逐字稿保持為純 Markdown;圖片中的文字無法搜尋,且渲染不是漸進式的。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add razorback16/cc-intelligent-ui
claude plugin install cc-intelligent-ui@razorback16
原文 / README

I got tired of reading Markdown tables as rows of pipes, so I made Claude Code render its answers. CC Intelligent UI is a Claude Code mod that draws each answer as a typeset picture with Typst. Tables line up, math looks like a paper, and when a picture explains more than words, Claude draws a chart or a diagram itself. What you get Rendered Markdown: headings, tables, task lists, quotes, code with syntax colours, in your terminal's font LaTeX math , inline and display Images: the images you paste into the prompt show in the transcript, and images in an answer show inline Charts and diagrams that Claude writes on the fly (CeTZ, cetz-plot, fletcher), in your theme's colours Plan mode: the plan shows rendered, with approve / edit / reject under it You can still select and copy text from the pictures with the mouse Themes: Claude Code's own colors (the default), or VS Code's Markdown preview in Modern or Dark+/Light+ colors. Each theme has a light and a dark version, and the mod follows your terminal. You can also make your own with a small JSON file ( /iui theme <name> ) Terminals: kitty, Ghostty and cmux work out of the box. iTerm2 3.6+ needs /iui setup once. No tmux or screen. Other terminals just get the normal text. Install (macOS, Claude Code 2.1.298+): brew install typst /plugin install cc-intelligent-ui --marketplace razorback16/cc-intelligent-ui No restart needed. /iui off turns it off. How it works: a render hook swaps each answer row for PNG pages that Typst compiles in 0.15–0.6 s, drawn with kitty graphics placeholders. The saved transcript stays plain Markdown. The mod adds about 450 tokens to the system prompt so Claude knows it can write typst blocks. Honest limits: I have tested it only on macOS. ssh, Linux and other OSes are not tested yet; Rendering is not progressive: while Claude writes, the block is shown, and the picture shows once Claude finishes it. Search doesn't find text inside pictures. I built most of it with Claude Code itself. Feedback and bug reports welcome. GitHub: https://github.com/razorback16/cc-intelligent-ui Independent community project, not affiliated with Anthropic. submitted by /u/Every-Comment5473 to r/ClaudeCode [link] [comments]

更多類似作品