corgi agent watch prune
corgi agent watch prune
Remove the worktrees of finished isolated runs
Synopsis
An isolated run leaves its worktrees behind so undo has something to remove and a follow-up lands in the same place. On a machine that runs unattended they add up. This removes the worktrees of runs finished more than --older-than ago; the branch stays, and a worktree with uncommitted work stays and is named.
corgi agent watch prune # runs finished more than 7 days ago corgi agent watch prune --older-than 2d corgi agent watch prune --dry-run
The daemon does the same on its own for a workspace enabled with --prune-after.
corgi agent watch prune [flags]
Options
--dry-run Say what it would remove and change nothing
-h, --help help for prune
--older-than string Only runs finished at least this long ago, e.g. 7d or 48h (default "7d")
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 watch - Watch the tracker and your pull requests: new issues, new comments, reviews — notify, or fix