How the Codex Project Manager workflow turns noisy automation history into compact evidence, exact metrics, and reusable task guidance without dropping verification.
codex_usage_precheck.py fetches the newest analysis_runs row, top sessions, repo totals, and recommendation status from the metrics database.latest.json when it is under 900 seconds old, then writes compact Markdown and JSON when a refresh is needed.in_progress are logged as skipped instead of polluting totals.
analysis_runs stores the window, totals, session count, and metric quality.session_metrics stores per-session tokens, tool calls, file reads, long outputs, and repo notes.workflow_recommendations keeps every recommendation traceable to evidence and status.evidence_artifact.py with hashes and previews.
command-manifest.md points agents to canonical precheck, analyzer, evidence, and polling commands.