Log: Work Log Entry
Append a timestamped entry to the project’s work log. When the active log exceeds 1000 lines, rotate it.
Directory
All logs live in worklog/ at the repo root.
- Active log:
worklog/WORK_LOG.md - Rotated logs:
worklog/WORK_LOG-{YYYY-MM-DD-HHMMSS}.md
Process
- Check if
worklog/WORK_LOG.mdexists. If not, create it with a# Work Logheader. - Count lines in the active log.
- If the line count exceeds 1000:
- Rename the current file to
worklog/WORK_LOG-{timestamp}.mdusing the current datetime. - Create a fresh
worklog/WORK_LOG.mdwith the# Work Logheader.
- Rename the current file to
- Determine entry content:
- If the user provides an argument, use it as the entry content.
- If the user provides no argument, summarize the most recent work from the conversation: what was done, what was decided, what’s next. Write it in the same voice as the conversation — concise, specific, no filler. Include file paths, commit messages, or prediction records if relevant.
- Append the entry to
worklog/WORK_LOG.mdwith this format:
### {HH:MM} — {short summary of the action}
{entry content}
If the last ## {date} header in the file matches today’s date, append under it. Otherwise, add a new ## {YYYY-MM-DD} header before the entry.
- Report: line count after append, and whether rotation occurred.
Rules
- Entries are append-only. Never edit or remove previous entries.
- If the user provides an argument, log it as given — don’t paraphrase.
- If the user provides no argument, auto-summarize from conversation context. Be specific: names, tickers, predictions, decisions, not vague summaries.
- Keep the
## date/### time — summaryhierarchy consistent.