agent-html turns semantic .agent.html documents into stable, shareable HTML artifacts for dense agent work.
Docs: agent-html.pages.dev/docs
Desktop workbench source: apps/agent-html-app
npm install -g @agent-html/ahtml
ahtmlIf you use the skills CLI with Codex or other agents, install the ahtml skill:
npx skills add Sayhi-bzb/Agent-HTML --skill ahtmlahtml prompt<meta-agent style-ref="report-default" />
<page title="Review">
<card title="Summary">
This review is a stable HTML artifact instead of a long Markdown note.
</card>
</page>ahtml build artifact.agent.html
ahtml preview artifact.agent.html
ahtml galleryOpen the preview URL printed by ahtml preview to review the output.
Use ahtml gallery when you want to open the style editor and showcase canvas, manage local style ids, and pick the current default style for later preview/build.
agent work
-> semantic .agent.html
-> public agent contract
-> runtime contract
-> portable HTML artifactThe schema is the public contract. Agents write content structure, not raw HTML, CSS, JavaScript, Tailwind classes, or renderer props.
Public visual choice is limited to approved document style config choices, selected through style-ref values such as report-default or ops-compact, not free-form theme, density, tone, or width inputs.
Published npm package: @agent-html/ahtml
Shared schema, sanitization, and contract code still live in packages/core inside this repository, and the published CLI carries the internal runtime pieces it needs.
╭────── Roadmap
│
● ·Architecture optimization
├──╮
● │ ·Support more UI foundations
│ │
│ ● ·app
│ │
● │ ·Separation of static and interactive component data structures
│ │
│ ● ·request-response -> interact-interact
│ │
│ ● ·Custom component panel
╭──╯
● ·Cloud service
│
╰──────────────
thanks:
