cao-event-plugin

cao-event-plugin is a skill for Claude Code from awslabs/cli-agent-orchestrator. It costs 97 tokens per session (2,853 once invoked), scanned A, original, Apache-2.0.

A guide for creating plugins for CAO, a command-line tool that coordinates coding agents. These plugins are Python packages that react to events such as messages or agent lifecycle changes.

In plain words
What is it for?
It helps scaffold CAO plugins and connect agent activity to services such as Discord, Slack, dashboards, logging, metrics, and alerts.
Why use it?
It removes the need to work out the plugin structure, event hooks, discovery, configuration, and failure handling from scratch.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cao-contributor plugin — 3 skills shipped together

Good fit It helps scaffold CAO plugins and connect agent activity to services such as Discord, Slack, dashboards, logging, metrics, and alerts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/awslabs/cli-agent-orchestrator/cao-event-plugin
About the project

CLI Agent Orchestrator is a tool that coordinates multiple AI coding command-line programs by running them as separate workers in isolated terminal sessions. A supervisor uses it to delegate software tasks to specialist agents in parallel or in sequence while the workers retain their normal command-line capabilities. The catalogue skills operate this orchestration workflow.

awslabs/cli-agent-orchestrator · 1,756 stars · on GitHub · awslabs.github.io

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.

Any agent
npx skills add awslabs/cli-agent-orchestrator --skill cao-event-plugin
Clone the repo
git clone --depth 1 https://github.com/awslabs/cli-agent-orchestrator

Made for: Claude Code.

Or install cao-contributor, the plugin that ships this one along with the rest of its 3 skills.

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 cao-event-plugin

README.md
[![agentmods](https://agentmods.dev/badge/skills/awslabs/cli-agent-orchestrator/cao-event-plugin/github.svg)](https://agentmods.dev/skills/awslabs/cli-agent-orchestrator/cao-event-plugin)
Your own site
<a href="https://agentmods.dev/skills/awslabs/cli-agent-orchestrator/cao-event-plugin"><img src="https://agentmods.dev/badge/skills/awslabs/cli-agent-orchestrator/cao-event-plugin/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cao-event-plugin

Your own site · 80×15
<a href="https://agentmods.dev/skills/awslabs/cli-agent-orchestrator/cao-event-plugin"><img src="https://agentmods.dev/badge/skills/awslabs/cli-agent-orchestrator/cao-event-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,853 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00097 $0.02853
Opus 5.5 $0.00039 $0.01141
Sonnet 5.5 $0.00019 $0.00571
Haiku 4.5 $0.00010 $0.00285

Measured 6d ago against content hash 937e58718c9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cao-event-plugin 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 6d 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.

agent-plugin/cao-contributor/skills/cao-event-plugin/SKILL.md · 265 lines

How it starts

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

CAO Plugin Creator

Guide for creating a new CAO plugin. A "plugin" is a Python package installed alongside CAO that subscribes to CAO lifecycle and messaging events via typed async hooks.

What You're Building

A CAO plugin is a standalone Python package that:

  1. Subclasses CaoPlugin from cli_agent_orchestrator.plugins
  2. Registers async hook methods with @hook("<event_type>") decorators
  3. Is discovered via the cao.plugins Python entry-point group at cao-server startup
  4. Runs fire-and-forget — plugin exceptions are caught and logged as warnings, never propagated back into CAO

Typical uses: forwarding inter-agent messages to chat apps, logging/observability, external dashboards, metrics export, alerting on session or terminal lifecycle.

Before You Start

Gather this information:

  • Which events do you need? See references/hook-events.md for the full catalog.
  • Does the plugin need persistent state across events? (HTTP client, DB connection, buffer) — if so, use setup() / teardown().
  • How is it configured? v1 has no injected config API — read env vars in setup(), optionally via python-dotenv.
  • What are the failure semantics of your integration? Remember CAO swallows hook exceptions — you must decide whether to log, retry, or drop on your own.

Hard Requirements

These are the non-negotiable contracts a plugin must satisfy to be loaded and dispatched to. Verify each one before calling your plugin complete.

1. Package layout

Minimum viable layout:

my-cao-plugin/
├── pyproject.toml          # Build config + entry-point declaration
├── my_cao_plugin/
│   ├── __init__.py         # Can be empty
│   └── plugin.py           # Contains the CaoPlugin subclass
├── tests/                  # Optional but strongly recommended
│   └── test_plugin.py
├── env.template            # Optional; only if the plugin reads env vars
└── README.md               # Optional; install + config instructions for users

See examples/plugins/cao-discord/ in this repo for a complete reference implementation.

Read the full file on GitHub · 265 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 265 lines · 97 tokens per session scan A 937e58718c9a

Subscribe to this mod's changes

cao-event-plugin is a skill published in the GitHub repository awslabs/cli-agent-orchestrator (1,756 stars, last pushed today), licensed Apache-2.0. It adds 97 tokens to every session and 2,853 once invoked, about $0.0004 per session on Opus 5.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-11-24.

Related

cao-event-plugin compared with skills from other repositories

cao-event-plugin next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cao-event-pluginawslabs/cli-agent-orchestratorSkill1.8ktodayApache-2.0A97Claude Code
tool-selectionlakpriya1s/agent-rackSkill33mo agoMITA53Claude Code
reviewlakpriya1s/agent-rackSkill33mo agoMITA18Claude Code
session-sendlakpriya1s/agent-rackSkill33mo agoMITA15Claude Code
review-handlinglakpriya1s/agent-rackSkill33mo agoMITA38Claude Code
runlakpriya1s/agent-rackSkill33mo agoMITA19Claude Code
session-logslakpriya1s/agent-rackSkill33mo agoMITA19Claude Code