cao-agent-plugin-audit
Audit an existing Agent Plugins 1.0.0 package - check its plugin.json manifest and mcp.json against CAO's vendored schemas, and…
Author live dashboard UI from an agent via the `emit_ui` MCP tool. Emit
Claude Code
$ npx -y skills add awslabs/cli-agent-orchestrator --skill agui-author --agent claude-code
Codex
$ npx skills add awslabs/cli-agent-orchestrator --skill agui-author -a codex -y
Cursor
$ npx skills add awslabs/cli-agent-orchestrator --skill agui-author -a cursor -y
Gemini CLI
$ npx skills add awslabs/cli-agent-orchestrator --skill agui-author -a gemini-cli -y
GitHub Copilot
$ npx skills add awslabs/cli-agent-orchestrator --skill agui-author -a github-copilot -y
OpenCode
$ npx skills add awslabs/cli-agent-orchestrator --skill agui-author -a opencode -y
Windsurf
$ npx skills add awslabs/cli-agent-orchestrator --skill agui-author -a windsurf -y
name: agui-author description: Author live dashboard UI from an agent via the `emit_ui` MCP tool. Emit one of six allow-listed components (approval_card, choice_prompt, diff_summary, progress, metric, agent_card) with JSON props and it renders in any dashboard that handles CAO's `cao.generative_ui` event. Use when you want the operator to see a decision, a diff, or a status readout instead of scrolling terminal text. Arbitrary HTML/markup is refused.
CAO exposes an **AG-UI** 1.0 stream (`GET`/`POST /agui/v1/stream`) that any AG-UI client — CopilotKit, the AG-UI Dojo, or a plain `EventSource` — can consume. Your UI intents ride on it as AG-UI `CUSTOM` events named `cao.generative_ui`, so a dashboard renders them only if it handles that name (the CAO examples under `examples/ag-ui/` do). As an agent you can push a **declarative UI intent** onto that stream with the `emit_ui` MCP tool. The operator sees a rendered card, not raw text — and because every provider's intents render uniformly, they can't tell (and don't need to) which CLI agent produced which card.
The surface must be enabled on the server (`CAO_AGUI_ENABLED=true` or `CAO_MCP_APPS_ENABLED=true` — the two surfaces share one event source). When it is disabled, `emit_ui` returns `{"ok": false, "reason": "AG-UI surface disabled…"}` — treat that as a no-op, not an error.
You may emit **only** a closed allow-list of named components with JSON props. There is **no HTML, no script, no `eval`, no iframe**. The intent is validated **server-side** against the allow-list before it reaches the stream:
raises a `ValueError`; nothing is rendered.
or non-serializable payload is **rejected** at the `emit_ui` boundary (HTTP 400, the tool raises a `ValueError`), so a bad payload never reaches the bus.
(no error) — so calling it is never fatal.
credentials, or file contents in props. Reference paths, not contents.
emit_ui(component: str, props: dict) -> {"ok", "event_id", "component"}`component` must be one of: `approval_card`, `choice_prompt`, `diff_summary`, `progress`, `metric`, `agent_card`.
Props below are what a conformant client renderer will display; unknown extra keys are ignored, not refused.
| Component | Use it when… | Props | |---|---|---| | `approval_card` | you need a human to approve/reject a risky action before you proceed | `title` (str), `detail` (str, optional), `risk` (`"low"`/`"medium"`/`"high"`, optional) | | `choice_prompt` | you want the operator to pick among options | `question` (str), `choices` (list of `{"label", "value"}` or plain strings) | | `diff_summary` | you changed files and want a compact review | `title` (str), `files` (list of `{"path", "additions", "deletions"}`) | | `progress` | a long step is running | `label` (str), `value` (0.0–1.0; omit for an indeterminate bar) | | `metric` | you want to surface a single number | `label` (str), `value` (str/number), `unit` (str, optional) | | `agent_card` | you want to advertise your identity/status in the fleet view | `name` (str), `provider` (str), `status` (str, optional) |
# Gate a risky action on human approval.
emit_ui("approval_card", {
"title": "Deploy to production?",
"detail": "3 files changed, 1 DB migration",
"risk": "high",
})
# Ask the operator to choose.
emit_ui("choice_prompt", {
"question": "Which base branch?",
"choices": [{"label": "main", "value": "main"},
{"label": "release", "value": "release"}],
})
# Summarize a change set.
emit_ui("diff_summary", {
"title": "Refactor auth",
"files": [{"path": "security/auth.py", "additions": 74, "deletions": 3}],
})
# Show progress / a metric / your identity.
emit_ui("progress", {"label": "Indexing repository", "value": 0.42})
emit_ui("metric", {"label": "tokens used", "value": 12840, "unit": "tok"})
emit_ui("agent_card", {"name": "reviewer", "provider": "claude_code", "status": "working"})The AG-UI surface also exposes **L2 constructs** — higher-level projections that fold the raw event stream into structured views. As an agent you don't author L2 constructs, but you should know they exist because your `emit_ui` intents feed them:
`agent_card` emits into a live fleet hierarchy view.
from `TOOL_CALL` lifecycle events.
→ reason classification → interrupt → approve/deny/edit → delivery.
The **run plane** (`POST /agui/v1/run`) returns the run lifecycle and the approval interrupts as stock AG-UI wire frames; live construct frames are on `GET /agui/v1/stream`. Interrupts (approval prompts) route through `POST /agui/v1/interrupts/{id}/resume`.
For details: [references/l2-constructs.md](references/l2-constructs.md) and [references/run-plane.md](references/run-plane.md).
1. **Emitting to a disabled surface** — if `CAO_AGUI_ENABLED` is unset, `emit_ui` returns `{"ok": false}` gracefully. Don't treat this as an error or retry — it's a no-op by design. The fix: always check `ok` in the return but never fail on it.
2. **Props over 8 KB are rejected** — the tool raises a `ValueError` and nothing renders. The fix: reference file paths instead of embedding content. Keep props to metadata (paths
CLI Agent Orchestrator (CAO) coordinates multiple AI coding CLIs so a supervisor can delegate work to specialist agents in parallel or sequence. 📚 Documentation — guides, reference, and two interactive courses.
Audit an existing Agent Plugins 1.0.0 package - check its plugin.json manifest and mcp.json against CAO's vendored schemas, and…
Author a new Agent Plugins 1.0.0 package from an empty directory - write the plugin.json manifest, lay out skills/, optionally…
Contribute changes to the CAO (CLI Agent Orchestrator) codebase — the local
Create a new CAO (CLI Agent Orchestrator) plugin. Use this skill whenever the user wants to add a plugin that reacts to CAO…
Create a new CLI agent provider for CAO (CLI Agent Orchestrator). Use this skill whenever the user wants to add support for a new…
Find and select the best installed CAO agent profile for a task before
Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…