正在打开每日关注
正在打开每日关注
Lavish 用本地交互式评审面,将 AI 生成 HTML 的问题精准回传给 Agent。
Claude writes an HTML artifact. Instead of eyeballing it in a chat window, I open it in an actual local review surface, click the exact element that’s wrong, and queue that feedback for the agent to pick up. It’s called Lavish. A local CLI that turns any agent-generated HTML file into an interactive review page, so you’re not scrolling through raw markdown to catch a mistake. → Opens agent-generated HTML in your own browser, click any element or highlight any text, and it captures the precise target, not just “somewhere in this file” → Edit rendered Mermaid diagrams like a whiteboard, then queue that exact change as feedback for the agent → Runs entirely local. No cloud round-trip to view or annotate an artifact, session state stays on your machine under .lavish-axi/ → Ships built-in playbooks for diagrams, tables, comparisons, plans, code diffs, input collection, and slides, so the agent knows how to structure what it’s showing you before it writes the HTML → Session hooks plug directly into Claude Code, Codex, OpenCode, and GitHub Copilot CLI, so it triggers automatically instead of being a separate tool you have to remember to open → Runs a layout audit before it even shows you the artifact, catching overflow, clipped text, and broken elements before you waste time reviewing a broken render No install required, it runs on demand through npx -y lavish-axi. Every AI coding tool generates plans, diagrams, and comparisons buried in chat text you have to parse manually. Lavish turns that output into something you can actually click on and correct. MIT License. Built by Kun Chen.
是什么 Lavish(lavish-axi)是本地 CLI 与浏览器评审面:把 Agent 生成的 HTML 变成可点击、可标注的页面,直接针对元素或选中文本反馈,避免在聊天或 Markdown 中靠截图猜位置。内置 playbook 规范计划、图表、表格、对比、代码差异和幻灯片等输出。
架构与核心设计
README 与截图呈现“渲染→定位→批注→排队→回传 Agent”闭环。会话可用本地文件、SQLite 或 Postgres 存储,反馈通过 long-poll API 等待,状态保存在 .lavish-axi/;Mermaid 图可白板式编辑,layout audit 先检查溢出、裁切和损坏元素。Hooks 可接入 Claude Code、Codex、OpenCode 与 GitHub Copilot CLI。
值得借鉴 技术计划画布旁置 Conversation panel,Annotate、范围锚点和 Send to Agent 把模糊意见变成带上下文的任务;local-first 减少核心评审的云依赖。其关键不是展示 HTML,而是把视觉判断纳入 Agent 的可执行反馈回路。
边界与风险 定位依赖稳定 DOM 与渲染状态,动态页面或重载可能使锚点失效;图形编辑、长轮询和会话生命周期会增加成本。它不能替代内容正确性、无障碍和跨浏览器检查,网络绑定与共享模式也需谨慎配置。