FormingSkillclaude-codecodexpublished fresh until

Compound Engineering: how do I make my agent record lessons?

Summary As of November 2026, Compound Engineering's ce-compound skill (MIT, plugin v3.38.3) captures a hard fix as a test, lint rule, coding standard or repo learning when the final code does not already explain it. Refresh now lives in ce-compound; the deprecated compatibility name is ce-compound-refresh

Not for memory plugins like claude-mem; see agent-research-notes-and-memory-skills.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The options

Same job, different trade-offs. Pick one in Try it.

Option
ASkill · v3.30.5+wwfix.3ce-compound (Compound Engineering)
BSkill · v3.30.5+wwfix.2ce-compound-refresh (Compound Engineering)
How you use itYou ask for itYou ask for it
What it can dowrites files · runs shellwrites files
What's inside
ASkill · v3.30.5+wwfix.3ce-compound (Compound Engineering)
How you use it
You ask for it
What it can do
writes files · runs shell
What's inside
BSkill · v3.30.5+wwfix.2ce-compound-refresh (Compound Engineering)
How you use it
You ask for it
What it can do
writes files
What's inside

What this thread does

Capture a hard fix in the smallest durable form that prevents the next session repeating it.

Do first: Run ce-compound after the fix; use ce-compound refresh <scope> to maintain existing learnings.

The idea

Agents start each session without memory of last week's three-hour debugging. The fix is a small, committed knowledge store the next session reads. Trevin Chow, co-author of the Compound Engineering plugin, posted about this workflow on 31 Aug 2026.

ce-compound: capture

  • Runs after a problem is solved and the result has supporting evidence. One learning per run.
  • Applies a bar before writing anything: would a future engineer reading the final code, tests and docs still be likely to repeat the mistake? If not, it writes nothing and says why. Diff size or effort does not count.
  • Chooses a test, lint rule, coding-standard condition or learning under docs/solutions/ (configurable), and records vocabulary in CONCEPTS.md. A standalone learning is no longer the only outcome. Current skill.
  • Updates an existing learning instead of adding a duplicate.
  • In full mode it can look through your past local agent sessions for the errors and dead ends behind the fix; a lightweight, non-interactive mode skips that and asks no questions.

ce-compound refresh: keep it honest

As code moves, paths change and old fixes become anti-patterns. Refresh reviews learnings against the current code. The old ce-compound-refresh name is deprecated and forwards to ce-compound. For unattended refresh, pass mode:refresh mode:non-interactive; without mode:refresh, an unattended run captures a lesson instead. Compatibility skill. Run it after a refactor or rename, or when ce-compound flags an older doc.

When to use it

Projects where the same kinds of bugs come back, or where several people and agents work on the same code. Skip it for throwaway prototypes.

Alternatives

  • A plain LESSONS.md the agent appends to: no install, but it grows stale and noisy without a bar or a refresh pass.
  • For decisions and vocabulary captured while planning (not after fixes), see the thread on project glossaries and decision records.
  • Memory plugins and built-in agent memory store notes per user rather than as reviewed docs in the repo; see the thread comparing memory plugins, built-in memory and checkpoint notes.

Caveats

  • The current skills use supporting reference files; a copied SKILL.md alone omits that guidance. As of November 2026, the upstream plugin manifest lists v3.38.3.
  • Full mode reads your local agent session history to find context. Use lightweight mode if you do not want that.
  • In interactive mode ce-compound may ask to add one line to your project instruction file so agents find the store; refresh may delete docs and, in interactive mode, commit or open a PR.

Started from a post by @trevin, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in documentation

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Compound Engineering: how do I make my agent record lessons?
Summary: As of November 2026, Compound Engineering's ce-compound skill (MIT, plugin v3.38.3) captures a hard fix as a test, lint rule, coding standard or repo learning when the final code does not already explain it. Refresh now lives in ce-compound; the deprecated compatibility name is `ce-compound-refresh`

## Options
- A · ce-compound (Compound Engineering) · early, no verdict yet · writes files · runs shell
- B · ce-compound-refresh (Compound Engineering) · early, no verdict yet · writes files
Copy for agent
get the whatworks thread agent-writes-lessons-after-each-fix and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread agent-writes-lessons-after-each-fix

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · ce-compound (Compound Engineering)

Skill from EveryInc's Compound Engineering plugin (MIT) that writes one verified, non-obvious lesson from a solved problem into docs/solutions/ with validated frontmatter, grounded against the current code, and skips lessons the code and tests already make clear. Not for: logging every fix or general project memory (it skips lessons the code shows); see cross-session-memory-plugin-vs-notes.

Format
Skill
Source
github:EveryInc/compound-engineering-plugin#skills/ce-compound
Pinned
v3.30.5+wwfix.3 · 9ab8391e70d7
Content hash
9ab8391e70d739c5
Audit
scan passed
Can do
writes files · runs shell
Works with
claude-code · codex
Check
Skill is installed for Claude Code or Codex.; Validator and schema are included in every installed copy.; Bundled validator reads the skill frontmatter without writing a learning or accessing session history.
Author
@EveryInc
Kudos
0
Are you @EveryInc? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package compound-engineering-ce-compound-skill before installing

B · ce-compound-refresh (Compound Engineering)

Maintenance skill from the Compound Engineering plugin (MIT) that reviews learnings in docs/solutions/ against the current code and keeps, updates, consolidates, replaces or deletes each one, with a per-doc report. Not for: first lesson capture (use compound-engineering-ce-compound-skill) or repos with no docs/solutions yet; it only maintains existing learnings.

Format
Skill
Source
github:EveryInc/compound-engineering-plugin#skills/ce-compound-refresh
Pinned
v3.30.5+wwfix.2 · 9ab8391e70d7
Content hash
9ab8391e70d739c5
Audit
scan passed
Can do
writes files
Works with
claude-code · codex
Check
SKILL.md in .claude/skills/ce-compound-refresh/ has front matter name: ce-compound-refresh; Classify reference shipped; ce-compound-refresh/SKILL.md front matter has a description; Skill check: every file ce-compound-refresh/SKILL.md points to (references/, scripts/ and other shipped folders) exists
Author
@EveryInc
Kudos
0
Are you @EveryInc? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package compound-engineering-ce-compound-refresh-skill before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package compound-engineering-ce-compound-skill

B · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package compound-engineering-ce-compound-refresh-skill
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp