Record decisions, issues, and handoff notes during or after work.
This is a doc-ops helper and a supported public utility entrypoint. It may run behind the doc-ops bundle or be invoked directly when the user wants explicit session or handoff logging. It is also a default Finish / Handoff stage helper.
Purpose: Record development sessions in real time to track decisions and trial/error When to log: work start, agent switch, decisions, issues, work completion Output: Prefer
docs/daily/YYYY-MM-DD/{runtime}.mdwhen the project usesdocs/daily/README.md; otherwise fall back to{tasksRoot}/{feature-name}/session-logs/day-YYYY-MM-DD.md
| Trigger | Log Format |
|---|
| Work start | ## [HH:MM] Work started + request, branch, initial analysis |
| Agent switch | ## [HH:MM] Agent A -> Agent B + outputs, next step |
| Decision | ## [HH:MM] Decision: {topic} + reason, alternatives |
| Issue | ## [HH:MM] Issue: {problem} + cause, fix, prevention |
| Completion | ## [HH:MM] Work completed + commits, verification |
Codex-native logging and handoff should explicitly apply:
.claude/rules/docs/documentation.md.claude/rules/communication.md.claude/rules/output-format.md# {YYYY-MM-DD} {feature-name} Session
## Metadata
- Start/End: {HH:MM} - {HH:MM}
- Branch: {branch}
- Main work: {summary}
## Timeline
### [HH:MM] Event
- Details...
## Decision Log
| Time | Decision | Reason | Alternative |
|------|----------|--------|-------------|
## Issue Log
### Issue #N: {title}
- Problem / Cause / Fix / Prevention
## Fix Forward Tasks
| Issue | Severity | File | Suggestion | Status |
|-------|----------|------|------------|--------|
| {from codex-review-code fixForward.tasks[]} | HIGH | {file} | {suggestion} | ⏳ Pending |
## Retrospective
- What went well / What to improve / Lessons
When context window is over 80% full:
analysisContext.artifacts.handoffPath exists, use that path; otherwise create {tasksRoot}/{feature-name}/HANDOFF.md/clearHANDOFF.md Template:
# {Task} - Handoff
## Goal
{Current objective}
## Progress
- Done: ...
- Worked: ...
- Failed: ... (reason)
## Fix Forward Tasks (Carry Over)
| Issue | Severity | File | Suggestion |
|-------|----------|------|------------|
| {pending fix-forward tasks from this session} |
## Next Steps
1. Resolve fix-forward tasks above (if any)
2. ...
## Context
- Files: {paths}
- Branch: {branch}
- Last commit: {hash}
Preferred shared daily log structure:
docs/daily/
└── YYYY-MM-DD/
├── codex.md
├── claude.md
└── kimi.md
Task-local fallback structure:
{tasksRoot}/{feature-name}/
├── HANDOFF.md
└── session-logs/
├── day-YYYY-MM-DD.md
└── ...
Execution-bridge variant:
{tasksRoot}/{feature-name}/execution/{slice-name}/
├── SPRINT_CONTRACT.md
├── QA_REPORT.md
└── HANDOFF.md
Only active when MCP Memory is configured.
| Event | Key Pattern | Example |
|---|---|---|
| Decision | decision:{feature}:{topic} | API pattern choice |
| Progress | progress:{feature} | Phase 1 complete |
| Solution | solution:{issue-type} | snake_case fix |
When a session captures a reusable remediation pattern:
.claude/docs/solutions/README.md.claude/docs/solutions/Promote when: