Codex Learning Loop is a file-based maintenance system for ~/.codex.
codex-add-global-learning-notewrites candidate notes to~/.codex/learning-inbox/.codex-global-learning-maintenanceruns Codex against~/.codexonly.- The LaunchAgent schedules maintenance daily and at load.
- Markdown files store durable rules, memories, workflows, and error patterns.
- TSV files store run state and source-processing index data.
- A normal Codex session notices a reusable lesson.
- The helper creates a candidate note in the inbox.
- Daily maintenance reads allowed Codex-owned sources.
- The prompt rubric classifies the candidate.
- The note is promoted, kept, or archived.
- A report and log are written.
The system is global, not repo-specific. It is intentionally limited to ~/.codex and does not scan unrelated folders or project repositories.