cao-learning

cao-learning is a skill for Claude Code, Codex from awslabs/cli-agent-orchestrator. It costs 63 tokens per session (1,148 once invoked), scanned A, original, Apache-2.0.

A workflow for recording task results and turning them into lessons for future similar work. It is optional and can be disabled through the system's memory settings.

In plain words
What is it for?
Reporting whether work succeeded, recording problems after a work unit, passing lessons between agents, and applying stored lessons in later runs.
Why use it?
Repeated workflows can preserve useful conclusions instead of making the same mistakes on every run.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Reporting whether work succeeded, recording problems after a work unit, passing lessons between agents, and applying stored lessons in later runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/awslabs/cli-agent-orchestrator/cao-learning
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,456 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-learning
Clone the repo
git clone --depth 1 https://github.com/awslabs/cli-agent-orchestrator

Made for: Claude Code, Codex.

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-learning

README.md
[![agentmods](https://agentmods.dev/badge/skills/awslabs/cli-agent-orchestrator/cao-learning/github.svg)](https://agentmods.dev/skills/awslabs/cli-agent-orchestrator/cao-learning)
Your own site
<a href="https://agentmods.dev/skills/awslabs/cli-agent-orchestrator/cao-learning"><img src="https://agentmods.dev/badge/skills/awslabs/cli-agent-orchestrator/cao-learning/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-learning

Your own site · 80×15
<a href="https://agentmods.dev/skills/awslabs/cli-agent-orchestrator/cao-learning"><img src="https://agentmods.dev/badge/skills/awslabs/cli-agent-orchestrator/cao-learning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,148 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00063 $0.01148
Opus 5.5 $0.00025 $0.00459
Sonnet 5.5 $0.00013 $0.00230
Haiku 4.5 $0.00006 $0.00115

Measured 1mo ago against content hash d8d5f7c4f681, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cao-learning 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 1mo 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.

skills/cao-learning/SKILL.md · 120 lines

How it starts

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

CAO Self-Learning

CAO workflows can improve as they repeat: outcomes you report feed a retrospector agent that distills durable lessons into memory, and those lessons reach future sessions automatically. Your job depends on your role.

All of this is opt-in infrastructure. If report_outcome or a memory tool returns disabled: true, skip it silently and continue your task — learning is off for this run (often deliberately, e.g. a control run) and that is expected, not an error.

A bare error with no disabled key is different: say so, don't skip it. That shape means the tool could not reach a verdict — cao-server is unreachable, or its settings.json could not be read — so learning may well be ON while nothing is being recorded. Mention it in your response and carry on with the task.

If you are a SUPERVISOR

Report an outcome after each meaningful unit of work

One report_outcome call per completed step, delegated task, or work item — after validation/review, not before:

report_outcome(
    task_label="convert package CustomerETL (iteration 2)",
    success=false,
    workflow_name="ssis-migration",
    agent_profile="transformer",           # who did the work (defaults to you)
    score=40,                              # optional 0-100 metric if you have one
    friction_notes="Lookup with partial cache emitted an invalid join; "
                   "improver patched the cache-mode mapping."
)

Rules for friction_notes:

  • 1–3 sentences, conclusions only — the root cause, not the story.
  • NEVER paste transcripts, logs, stack traces, file contents, or secrets.
  • Empty string on a clean pass is fine; the success flag already carries signal.

Report failures faithfully — failed iterations are the most valuable learning signal. Do not skip reporting because a step went badly.

Dispatch the retrospector at natural boundaries

After each completed work item (a package, a feature, a review cycle) — not after every step — hand off to the retrospector agent:

Read the full file on GitHub · 120 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. 1mo ago Changed · +6 lines d8d5f7c4f681
  2. 1mo ago First seen · 114 lines · 63 tokens per session scan A c6877010b2cb

Subscribe to this mod's changes

cao-learning is a skill published in the GitHub repository awslabs/cli-agent-orchestrator (1,456 stars, last pushed today), licensed Apache-2.0. It adds 63 tokens to every session and 1,148 once invoked, about $0.0003 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-08-30.