corgi agent lesson promote
corgi agent lesson promote
Write lesson n into the workspace's CLAUDE.md, where every session reads it
Synopsis
Takes lesson n from corgi agent lesson list and adds it as a line under a "## Lessons" heading in the workspace's CLAUDE.md — once. Without --pr the file in your checkout is edited and left for you to commit. With --pr the line goes on a corgi/lesson-… branch in a worktree of its own, is pushed, and becomes a pull request (gh); your checkout is not touched.
corgi agent lesson list corgi agent lesson promote 2 corgi agent lesson promote 2 --pr
corgi agent lesson promote <n> [--pr] [flags]
Options
-h, --help help for promote
--pr On a branch of its own, pushed, as a pull request
--workspace string The workspace (default: the one this directory is in)
Options inherited from parent commands
--describe Describe contents of corgi-compose file
--dockerContext string Specify docker context to use, can be default,orbctl,colima (default "default")
-l, --exampleList List examples to choose from. Click on any example to download it
-f, --filename string Custom filepath for for corgi-compose
--fromScratch Clean the .corgi/corgi_services folder before running
-t, --fromTemplate string Create corgi service from template url
--fromTemplateName string Create corgi service from template name and url
-g, --global Use global path to one of the services
--interactive Force interactive prompts even when no TTY/agent detected
--isolate string Run this workspace under a named lease: own port block, own database names, own containers
--json Emit machine-readable JSON output
--privateToken string Private token for private repositories to download files
-o, --runOnce Run corgi once and exit
--silent Hide all welcome messages
SEE ALSO
- corgi agent lesson - What this workspace learned the hard way — read by every new session