macaron-webui

macaron-webui is a skill for Claude Code, Codex from mindverse-ltd/macaron-artifacts. It costs 207 tokens per session (1,339 once invoked), scanned A, original, Apache-2.0.

A skill for opening Macaron WebUI, a local browser app that lists Codex workspaces and sessions and previews generated interfaces.

In plain words
What is it for?
Use it to open Macaron, continue Codex sessions, browse workspaces, and view generated-interface previews.
Why use it?
It prevents confusing the Macaron session manager with a development server for the project currently open.

Skill for Claude CodeCodex

Part of the macaron plugin — 5 skills, 1 command shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mindverse-ltd/macaron-artifacts/macaron-webui
Any agent
npx skills add mindverse-ltd/macaron-artifacts --skill macaron-webui
Clone the repo
git clone --depth 1 https://github.com/mindverse-ltd/macaron-artifacts

Made for: Claude Code, Codex.

Or install macaron, the plugin that ships this one along with the rest of its 5 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for macaron-webui

README.md
[![agentmods](https://agentmods.dev/badge/skills/mindverse-ltd/macaron-artifacts/macaron-webui.svg)](https://agentmods.dev/skills/mindverse-ltd/macaron-artifacts/macaron-webui)
Your own site
<a href="https://agentmods.dev/skills/mindverse-ltd/macaron-artifacts/macaron-webui"><img src="https://agentmods.dev/badge/skills/mindverse-ltd/macaron-artifacts/macaron-webui.svg" alt="Measured on agentmods" height="20"></a>
Per session 207 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,339 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00207 $0.01339
Opus 5 $0.00103 $0.00669
Sonnet 5 $0.00041 $0.00268
Haiku 4.5 $0.00021 $0.00134

Measured 4d ago against content hash 6da3d515d017, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

macaron-webui scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

codex-skills/macaron-webui/SKILL.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Macaron WebUI

Use this skill when the user wants to open the Macaron WebUI — a local browser app that lists Codex workspaces + sessions from ~/.codex/sessions/, lets them continue any turn, and streams GenUI TSX previews.

"macaron web ui" is a proper noun, not a task. Phrases like "open macaron web ui" / "打开 macaron web ui" / "launch the macaron ui" always mean launch this WebUI. They do NOT mean "deploy the current project", "build the repo I'm in", or "start a dev server for the surrounding codebase" — regardless of what project the user currently has open. If you're tempted to deploy or serve the current directory in response to one of these phrases, that's the misread this skill exists to prevent: run the bootstrap below instead.

Resolving the plugin root

Resolve the plugin root from this SKILL.md file by going two directories up from codex-skills/macaron-webui/. The launcher script is at <plugin root>/start.sh.

Bootstrap

Run this exactly once. Two env vars matter:

  • MACARON_ENGINE=codex — flips the SPA served at / from the Claude-focused UI to the Codex-focused one. Never omit this. Without it the user sees the Claude Code UI, not Codex.
  • MACARON_FOREGROUND=1 — makes start.sh exec node into the foreground instead of nohup-backgrounding. Backgrounded children get killed when the outer script returns inside your Bash tool, so the server would disappear seconds after launch. Foreground keeps the process anchored to the tool session and the URL is printed asynchronously before exec blocks.
MACARON_ENGINE=codex MACARON_FOREGROUND=1 MACARON_PORT=7979 bash "<plugin root>/start.sh"

Port 7979 is the Codex-side default so it doesn't collide with the Claude Code plugin (which uses 7878). Both can run at once. If 7979 is busy, tell the user to override with MACARON_PORT=<n>.

The script:

  • Mirrors itself out of the plugin cache on first launch. ~/.codex/plugins/cache/… is not a stable working directory — Codex prunes it on version sync, which erases node_modules + web/dist + server/dist while any surviving server still listens on 7979 and returns 404s. start.sh detects the cache path and rsyncs source into ~/.macaron/runtime/<version>/, then installs/builds/runs from there. Subsequent launches re-rsync (fast) and reuse the same stable runtime.
  • Uses corepack pnpm (Node 22+ ships corepack) to install workspace deps + build on first launch (~60s). If frozen install fails, it retries without the lock. If build fails, it prints a [macaron] fix: <command> line — run the printed command and retry.
  • Skips the install/build on subsequent launches if node_modules is present and no source file is newer than the current build.
  • Frees the port if a stale mcx / mcc is bound (lsofkill).
  • Prints Macaron WebUI (engine=codex): http://localhost:7979 once /api/health answers, THEN blocks on exec node.
  • Stays in the foreground indefinitely. This is expected — do NOT kill it after launch. The Bash tool can move on while this shell keeps the server alive.

Read the full file on GitHub · 59 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 59 lines · 207 tokens per session scan A 6da3d515d017

Subscribe to this mod's changes

macaron-webui is a skill published in the GitHub repository mindverse-ltd/macaron-artifacts (10 stars, last pushed 11d ago), licensed Apache-2.0. It adds 207 tokens to every session and 1,339 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

archscribe

Create premium hand-drawn architecture, workflow, and swimlane diagrams in a dark neon or light paper style, with editable Excalidraw sources, PNG/SVG previews, animated GIF/MP4 output, and interactive HTML. Use whenever the user asks for 岚叔动态架构图、手绘架构图、Excalidraw 风格图、DailyDoseOfDS 风格技术图、动态流程图、泳道图、系统可视化,或希望复刻并提升参考架构图。.

lazypay/Archscribe · 110 tokens

artifact-styler

Restyle an artifact (an Artifact Organizer HTML/JSON output, or any content you can express as a component envelope) into a chosen visual theme — notion, linear, vercel, stripe, supabase, apple, or tailwind. Use when the user says "restyle this", "make it look like apple/tailwind/stripe", "apply the X theme", "change…

keepYaoung/artifact-organizer · 119 tokens

design-standards

Data visualization design standards and 100-point scoring rubric for dashboards — visual hierarchy, color discipline, spacing, chart hygiene. Derived from Tableau Viz of the Day winners. Use when designing a dashboard layout or lint-scoring a rendered dashboard screenshot.

blakefeiza/vizwright · 53 tokens

Explainer

Generate dense, visual-first HTML explainers in a signature dark aesthetic — diagrams carry the design, prose is captions only. Every section has a custom inline-SVG visualization: pipeline DAGs, archetype grids, hub-and-spoke diagrams, decision trees, risk matrices, gantt timelines, layer cakes, palette swatches…

Angelopvtac/explainer-pack · 209 tokens

html-artifact-guide

Use when creating, reviewing, or improving standalone single-file HTML artifacts for comparison matrices, dashboards, timelines, review surfaces, visual explainers, research synthesis, or interactive checklists. Do not use for simple documentation, meeting notes, knowledge base articles, or content where Markdown…

ClawEnable/html-artifact-best-practices · 62 tokens

json-render-catalog

Skill "json-render-catalog" from yonatangross/orchestkit, covering json-render component catalogs, storybook → catalog import (#1529, 2026-04), new in 2026-04 → 2026-08 (json-render 0.14 → 0.20), directives — @json-render/directives (0.19) and registration.

yonatangross/orchestkit · 99 tokens