ClaudeMods
☰
ZH-CN
● — 人在线 · 浏览 — 次
赞助提交作品
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]

更多类似作品