lucius
Enables AI agents to render and interact with rich HTML one-pagers on a local canvas, with tools for rendering, commenting, selection, and status queries.
README
lucius
The canvas your AI pair draws on.
You talk. Claude ships a page. Every pass is kept.
lucius is a desktop canvas where your coding agent renders rich, self-contained HTML one-pagers — architecture explorers, product briefs, interactive explainers, brainstorm artifacts — while you steer by voice or chat. Every push is an immutable version you can scrub. Highlight any sentence to comment. Publish to your own Cloudflare Worker, invite teammates by GitHub username, and watch their comments flow back into the app while the agent's live activity orb spins.

Set it up with Claude Code
Paste this into any Claude Code session — your agent does the rest:
Set up lucius (github.com/berkantay/lucius) on this machine:
1. macOS: run curl -fsSL https://raw.githubusercontent.com/berkantay/lucius/main/install.sh | sh
Linux: git clone https://github.com/berkantay/lucius, cd in, and follow SETUP.md instead.
2. Launch the app (open /Applications/lucius.app) and poll
curl -s http://127.0.0.1:7317/api/ping until it answers {"app":"lucius","ok":true}.
3. Run ~/.lucius/src/scripts/doctor, execute every entry in missing_steps in
order, and re-run doctor after each step. Never assume a step worked.
4. Run ~/.lucius/src/scripts/verify and do not report success until it prints
VERIFY_OK and I confirm the app is showing "how lucius works".
5. Then follow the lucius-setup skill (~/.claude/skills/lucius-setup/SKILL.md)
from Phase 2: ask me what I'm working on and render my first one-pager
about it. Offer publishing and invites after.
Prefer doing it yourself? curl -fsSL https://raw.githubusercontent.com/berkantay/lucius/main/install.sh | sh,
open the app, done. From-source and manual paths: SETUP.md.
Why lucius
- Versions, not edits. Every iteration is an immutable snapshot in SQLite. The sidebar is a timeline per session; "wait, go back to the earlier one" is a click, not an apology.
- Feedback lands on the exact thing you mean. Highlight text → comment, anchored to the phrase (tdoc-style anchors that survive new versions). Or point at any element with the crosshair — the agent reads exactly what you selected.
- Sessions are workspaces. One per topic, each with its own history, comments, and a live thinking orb while an agent works it — visible to you in the sidebar and to your team on the published page.
- Publish to infrastructure you own. One click puts a session on your Cloudflare Worker + R2 (free tier). Docs default to link-visibility; flip one private and invite GitHub usernames — uninvited visitors hit a sign-in gate. Viewer comments poll back into the app within a minute, and the agent replies on the page with what it changed.
- Agent-native to the bone. A Claude Code skill encodes the artifact
quality bar (truth rules: ground in real repos, never simplify the system;
taste rules: strict monochrome, anti-slop list). An embedded MCP server
(
127.0.0.1:7317/mcp) exposes render/comment/selection/status tools to any session. Setup, repair, publishing, and invites are all driven by thelucius-setuponboarding skill — your agent operates the product, not you. - Taste is enforced, not hoped for.
skill/design.mdbans the AI-default looks by name (cream grounds, accent-color confetti, radius soup, stat-tile filler). Ink is the only accent.
The loop
1 you talk 2 claude builds 3 new version 4 you review 5 publish
voice · chat ─▶ grounds, designs ─▶ immutable, ─▶ scrub · point ─▶ share · invite
a screenshot renders instant comment
▲ │
└────────────── "actually, make it layered" ───────────┘
The unit of feedback is a sentence, not a ticket. This repo was built in one day inside its own loop — the example artifact explaining it was written by Claude, rendered on the canvas it describes, and committed as the reference for what generated pages should look like.
Architecture
Claude Code ──(CLI / MCP, bearer token)──▶ control server (Rust, tiny_http :7317)
│ SQLite: sessions · versions · comments
│ Tauri events
▼
app shell (React + Fluid Functionalism)
layered sidebar · sandboxed iframe canvas
highlight comments · selection · orbs
│
publish ──▶ your Cloudflare Worker + R2
◀── comment & status sync
| Path | What lives there |
|---|---|
src-tauri/ |
Rust: SQLite store, control server + MCP, publish, comment poller |
src/ |
React shell on Fluid Functionalism |
skill/ |
The canvas skill: SKILL.md (workflow + truth rules), design.md (taste), lucius CLI |
setup-skill/ |
The onboarding journey skill (install → first artifact → publish → invite) |
worker/ |
Publish/comments worker, vendored from tdoc (MIT) with an access-control wrapper |
scripts/ |
doctor (machine-readable state) · verify (proves the loop) · reset (replay first-run) |
examples/ |
The reference artifact |
Roadmap
- A Claude per session — spawn a dedicated agent pinned to a workspace
- In-app comment threads over the canvas (stored + anchored today; minimal UI)
- Signed/notarized builds, Linux bundles
- Own GitHub OAuth app for viewer sign-in (currently tdoc's shared client id)
Credits
Built by pairing with Claude, in one day, inside lucius itself. Standing on: tdoc (publish worker + comment overlay, MIT), Fluid Functionalism (shell components), thinking-orbs (activity orbs), Tauri and shadcn/ui.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。