Session Log
Summarize the current conversation and append to the weekly agent-log file.
Output Location
YYYY-wWW Agent Log.md
Where YYYY-wWW is the ISO week of today's date. Calculate with:
date +%Y-w%V
Format Rules
- Reverse chronological order — newest day on top
- One
## heading per day — format: ## YYYY-MM-DD
- Bullets, not subheadings — inside a day, use plain bullet
- Topic title as topic separator, not ###. No bold, no formatting on topic lines.
- Details as nested bullets — one sentence per sub-bullet, can nest if needed for details. No bold. Nesting uses a TAB.
- CHUNK markers — if a topic produced a reusable output (a plan, a summary, a framework, a draft message), add nested bullet:
CHUNK: <descriptive title>
- No explanatory text — no intros, no "in this session we discussed", no meta-commentary
- Append, don't replace — when a day heading already exists, add new bullets under it without removing existing content
Example
## 2026-02-28
- Analiza strategii X vs framework Y + moje obserwacje
- Strategia jest silna w A i B, słaba w C — brakuje fosy i horyzontu 3+lat.
- Naming produktu "Rescue" implikuje że kupujący jest ofiarą, co blokuje referencje.
- Anty-segment nie jest sprawdzalny z zewnątrz — to opis doświadczenia, nie filtr.
- CHUNK: 3-zdaniowe podsumowanie strategii
- CHUNK: Scorecard po 6 osiach
- Decyzja: follow-up z klientem
- Nie wysyłać feedbacku (nie prosił), wysłać link do artykułu jako wartość bez CTA.
Step-by-Step Workflow
1. Determine the target file
WEEK=$(date +%Y-w%V)
Target: ${WEEK} agent-log.md
2. Read existing file (if any)
The file may already have entries from earlier sessions this week. Read it first to avoid overwriting.
3. Review the full conversation and determine dates
Scan the entire conversation history. Identify:
- Topics — distinct subjects discussed (group related back-and-forth into one topic)
- Decisions — what was decided or concluded
- Outputs — any reusable artifacts (summaries, plans, draft messages, frameworks, scorecards)
Date attribution: A conversation may span multiple days. Determine the correct date for each topic using these signals (in priority order):
- System reminders about date changes ("The date has changed. Today's date is now...")
- File names with dates (e.g.,
2026-02-26 client email.md was created/discussed on that date)
- Context from session summaries — if the session was continued from a compacted conversation, the summary may mention which work happened when
- Default — if no date signal exists, use today's date
Group topics by their actual date, not just "today."
4. Write the log entry
For each date that has topics:
- If that date's heading (
## YYYY-MM-DD) already exists in the file, append new topics under it
- If the date heading is not yet in the file, add it in the correct reverse-chronological position
- If the file doesn't exist, create it
Cross-week dates: If a topic belongs to a date in a different ISO week than the target file, note this to the user and ask whether to add it to the current file or the correct week's file.
Condensation rules:
- Multiple related exchanges → one topic bullet
- Back-and-forth refinement → only the final conclusion matters
- If user edited/corrected something → use the corrected version, ignore earlier drafts
Append rules:
- If today's
## YYYY-MM-DD heading already has bullets, add new ones at the end — never delete or rewrite existing bullets
- If a topic from this session overlaps with an existing bullet, add the new details as additional nested bullets under a new topic bullet — don't merge into existing text
5. Confirm
Tell the user what was logged (topic titles only, one line).
Important Notes
- The user may have a preferred topic title style — if they edited a previous entry, match that style
- Keep bullets ruthlessly short — one sentence, no semicolons chaining multiple thoughts
- CHUNKs reference outputs that exist in the conversation, not in files — they're bookmarks for the user to find later
- Do NOT include the full chunk content in the log — just the marker
- Language: match the language the conversation was conducted in (use the user's language)
1---2name: session-log3description: Summarize the current conversation session and append results to the weekly agent-log. Use when user says "log this", "session log", "summarize this session", or asks to write results to the agent-log.4---56# Session Log78Summarize the current conversation and append to the weekly agent-log file.910## Output Location1112`YYYY-wWW Agent Log.md`1314Where `YYYY-wWW` is the ISO week of today's date. Calculate with:1516```bash17date +%Y-w%V18```1920## Format Rules21221. **Reverse chronological order** — newest day on top232. **One `##` heading per day** — format: `## YYYY-MM-DD`243. **Bullets, not subheadings** — inside a day, use plain bullet `- Topic title` as topic separator, not `###`. No bold, no formatting on topic lines.254. **Details as nested bullets** — one sentence per sub-bullet, can nest if needed for details. No bold. Nesting uses a TAB.265. **CHUNK markers** — if a topic produced a reusable output (a plan, a summary, a framework, a draft message), add nested bullet: `CHUNK: <descriptive title>`276. **No explanatory text** — no intros, no "in this session we discussed", no meta-commentary287. **Append, don't replace** — when a day heading already exists, add new bullets under it without removing existing content2930## Example3132```markdown33## 2026-02-283435- Analiza strategii X vs framework Y + moje obserwacje36 - Strategia jest silna w A i B, słaba w C — brakuje fosy i horyzontu 3+lat.37 - Naming produktu "Rescue" implikuje że kupujący jest ofiarą, co blokuje referencje.38 - Anty-segment nie jest sprawdzalny z zewnątrz — to opis doświadczenia, nie filtr.39 - CHUNK: 3-zdaniowe podsumowanie strategii40 - CHUNK: Scorecard po 6 osiach41- Decyzja: follow-up z klientem42 - Nie wysyłać feedbacku (nie prosił), wysłać link do artykułu jako wartość bez CTA.43```4445## Step-by-Step Workflow4647### 1. Determine the target file4849```bash50WEEK=$(date +%Y-w%V)51```5253Target: `${WEEK} agent-log.md`5455### 2. Read existing file (if any)5657The file may already have entries from earlier sessions this week. Read it first to avoid overwriting.5859### 3. Review the full conversation and determine dates6061Scan the entire conversation history. Identify:62- **Topics** — distinct subjects discussed (group related back-and-forth into one topic)63- **Decisions** — what was decided or concluded64- **Outputs** — any reusable artifacts (summaries, plans, draft messages, frameworks, scorecards)6566**Date attribution:** A conversation may span multiple days. Determine the correct date for each topic using these signals (in priority order):671. **System reminders** about date changes ("The date has changed. Today's date is now...")682. **File names** with dates (e.g., `2026-02-26 client email.md` was created/discussed on that date)693. **Context from session summaries** — if the session was continued from a compacted conversation, the summary may mention which work happened when704. **Default** — if no date signal exists, use today's date7172Group topics by their actual date, not just "today."7374### 4. Write the log entry7576For each date that has topics:77- If that date's heading (`## YYYY-MM-DD`) already exists in the file, append new topics under it78- If the date heading is not yet in the file, add it in the correct reverse-chronological position79- If the file doesn't exist, create it8081**Cross-week dates:** If a topic belongs to a date in a different ISO week than the target file, note this to the user and ask whether to add it to the current file or the correct week's file.8283**Condensation rules:**84- Multiple related exchanges → one topic bullet85- Back-and-forth refinement → only the final conclusion matters86- If user edited/corrected something → use the corrected version, ignore earlier drafts8788**Append rules:**89- If today's `## YYYY-MM-DD` heading already has bullets, add new ones at the end — never delete or rewrite existing bullets90- If a topic from this session overlaps with an existing bullet, add the new details as additional nested bullets under a new topic bullet — don't merge into existing text9192### 5. Confirm9394Tell the user what was logged (topic titles only, one line).9596## Important Notes9798- The user may have a preferred topic title style — if they edited a previous entry, match that style99- Keep bullets ruthlessly short — one sentence, no semicolons chaining multiple thoughts100- CHUNKs reference outputs that exist in the conversation, not in files — they're bookmarks for the user to find later101- Do NOT include the full chunk content in the log — just the marker102- Language: match the language the conversation was conducted in (use the user's language)