journal — GitHub Copilot CLI¶
Generate the daily work journal — collect today's AI usage across Claude Code, Copilot CLI, and Codex CLI plus git activity into a digest, then write the narrative, technical, and next-day-plan summaries. Use when the user asks for their work journal, daily summary, "what did I do today", or to plan tomorrow.
- Source: copilot/.github/skills/journal/SKILL.md
- Also available on: Claude Code, OpenAI Codex CLI
In practice¶
What it does¶
Builds the same cross-harness work journal the Claude and Codex versions do — the collector already reads all three homes read-only — but on Copilot there is exactly one sanctioned way to write the summaries: print the prompts and write the documents yourself, in this session, because the headless path would dispatch a different CLI entirely.
When to reach for it¶
- End of day, to turn today's Claude Code, Copilot CLI, and Codex CLI activity into a written record.
- You've already run this session for other work and don't want to spend a second dispatch just to summarize it.
- Comparing today against an earlier day's journal.
- Not a source of headless, unattended summaries from this harness — that mode exists in the engine but dispatches the Claude CLI, a cross-harness spend this skill must never trigger.
Worked example¶
python3 bin/journal_collect.py --print
python3 bin/journal_summarize.py --date <date> --dry-run
The collector writes journal/<date>/digest.json, read-only and model-free. --dry-run
prints the three prompts (narrative, technical, next-day-plan) and spawns nothing — read
the digest, follow each prompt's required headings, and write the three documents yourself
to journal/<date>/, then link their paths rather than pasting full drafts into chat.
Failure modes & fallbacks¶
journal_summarize.pyrun without--dry-run. Its headless mode dispatches the Claude CLI to write the documents — never do this from a Copilot session; the two-pass flow above is the only sanctioned path here.- The digest looks empty or thin. The collector is deterministic and read-only; an empty window means little activity was found, not a broken tool.
- A repo isn't being scanned. Pass
--repo PATH(repeatable) to add it explicitly.
Cost & safety¶
Collecting is free, model-free, and strictly read-only over the three homes; it writes
only under the gitignored journal/<date>/ directory. Writing the summaries is what sends
the digest — metadata only, never transcript text — to a model, and that model is
whichever one this session is already running on.
Related¶
- Deep dive: daily journal — the full pipeline, including the harness-agnostic next-day planning tool this skill's own card doesn't cover.
- route — which model to run the rest of this session on, if that wasn't already decided.
- Parity matrix — the Claude and Codex journal skills, which document that planning tool directly.
The skill card — what the model reads¶
This is the SKILL.md body the model reads, transformed for this page: the source's own leading title, if it had one, is removed; every remaining heading is demoted one level to nest under this section; and relative links are rewritten to site or GitHub URLs. ${CLAUDE_PLUGIN_ROOT} and {{POLYTROPOS_ROOT}} are install-time path variables, left intact exactly as the model sees them. The unmodified original is copilot/.github/skills/journal/SKILL.md.
You produce the user's daily work journal from local, read-only sources. The journal engine is harness-agnostic — it already reads Claude Code, Copilot CLI, and Codex CLI history — so the journal you produce here is the same cross-harness journal any of the three surfaces would make.
Collect the digest¶
Run the collector to build today's digest deterministically:
python3 {{POLYTROPOS_ROOT}}/bin/journal_collect.py --print
Flags (the real argparse surface — do not invent others): --date YYYY-MM-DD for a specific
day (default: today), --repo PATH to add a git repo to scan (repeatable), --journal-dir DIR
to point elsewhere. The collector is cheap, model-free, and strictly read-only over the three
homes — it never calls a model and never touches the network. It writes only under the
gitignored journal/<date>/ directory (digest.json), nowhere else.
Write the summaries in-session — the ONLY mode from this harness¶
Print the exact prompts for today's digest without dispatching anything:
python3 {{POLYTROPOS_ROOT}}/bin/journal_summarize.py --date <date> --dry-run
--dry-run prints the three prompts (narrative, technical, next-day-plan) and spawns nothing.
Read journal/<date>/digest.json for the facts, follow each printed prompt's required headings
exactly, and use digest facts only — no invented details. Write the three documents YOURSELF
(this session is already paid for) to journal/<date>/narrative.md, journal/<date>/technical.md,
and journal/<date>/next-day.md. Then summarize the three documents for the user and link their
paths — don't paste full drafts back into chat.
Never run journal_summarize.py without --dry-run from this harness. Its headless mode
dispatches the Claude CLI to write the documents itself — a cross-harness spend this skill must
never trigger. The two-pass flow above (collect, then print-and-write-yourself) is the only
sanctioned path here.
Next-day runbook¶
python3 {{POLYTROPOS_ROOT}}/bin/journal_plan.py build
writes a dated, checkable next-day plan at journal/plan/<date>.md — one card per planned
task, drawn from open kit tasks, WIP repos, the inbox, and journal/plan/seed.md, each with a
What/How, an ideal-harness line, and ready-to-paste commands for Claude Code, Copilot CLI, and
Codex CLI, priced from the pricing data files (Codex figures there are API-equivalent proxies,
never a bill). Enrich the What/How bodies in-session (the summaries precedent — this session is
already paid for):
python3 {{POLYTROPOS_ROOT}}/bin/journal_plan.py prompt
follow the printed prompt exactly (rewrite ONLY the What/How bodies; keep every other line
byte-identical), then save the revised document back over the same path. Track cards with
check, done <id>, and defer <id> --to <date>. Advisory only — the runbook prepares and
tracks; it never schedules or executes anything.
Privacy¶
The digest is metadata-only — project and repo names, commit subjects, kit task titles, and any
inbox text, never transcript or message text. Writing the summaries sends the digest to a model
(this session, in the in-session flow above). Everything the journal produces stays under the
gitignored journal/ directory.
Same-named agent¶
For persona-isolated runs — a separate dispatch that should carry its own model pin
instead of this session's model — use the journal custom agent: pick it in the /agent
picker, or run copilot --agent journal -p "<task>". This skill and that agent are the
same capability on two surfaces; the agent's frontmatter carries the model pin, this
skill runs on whatever model the session already uses.
Installed?¶
If the literal {{POLYTROPOS_ROOT}} text is still visible above, the bundle is not
installed — tell the user to run python3 bin/harness_select.py install --harness copilot
(then /skills reload picks the skills up in-session).