ask codex to save this in the global agents.md
- In every project where an agent performs material work, maintain the project's own
worklog.mdas durable operational memory. Prefer explicit repository instructions for its name and location; otherwise useworklog.mdat the repository root and create it with# Worklogif it is absent. Read-only inspection or advice alone does not require creating or changing a worklog. - Read the worklog before starting material work. Keep newest entries on top. Re-read it immediately before editing and merge with concurrent agent changes; preserve existing entries verbatim and never overwrite another agent's fresh entry.
- Record what changed, why it changed, key decisions, failed attempts that redirected the work, verification results, runtime assumptions, and genuine remaining blockers. Keep entries factual and concise; omit routine command output, speculation, secrets, and unrelated discussion.
- Treat commits as completed-state snapshots and
worklog.mdas between-commit history. Update it after each coherent unit of work and before handoff, commit, a long pause, or the final response whenever project state changed. - If multiple repositories are materially changed, update each repository's worklog unless a parent workspace worklog explicitly owns the cross-repository history.