Commands
ody compact
Archive completed tasks and progress
Synopsis
ody compactFlags
This command has no flags.
Behavior
ody compact performs two archival operations:
Task archival
- Scans
.ody/tasks/for.code-task.mdfiles withstatus: completedin their YAML frontmatter. - Generates a
tasks.mdsummary containing each task's title, completion date, and description. - Writes the summary to
.ody/history/<YYYY-MM-DD>/tasks.md. - Deletes the original completed task files from
.ody/tasks/.
Progress archival
- Reads
.ody/progress.txtif it exists and has content. - Writes the content to
.ody/history/<YYYY-MM-DD>/progress.md. - Clears the original
progress.txtfile.
If neither completed tasks nor progress entries are found, the command reports that there is nothing to compact and exits.
Output structure
After running ody compact, the archive is organized by date:
progress.md -- Archived progress log
tasks.md -- Archived completed tasks
Example
$ ody compactOutput:
Archived 3 completed task(s) to .ody/history/2026-02-15/tasks.md
Archived progress log to .ody/history/2026-02-15/progress.md
Compaction complete