journal — OpenAI Codex 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: codex/skills/journal/SKILL.md
- Also available on: Claude Code, GitHub Copilot CLI
In practice¶
What it does¶
Builds the same cross-harness work journal the Claude and Copilot versions do — the collector already reads all three homes read-only — but on Codex 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 dispatches the Claude CLI directly.
When to reach for it¶
- End of day, to turn today's Claude Code, Copilot CLI, and Codex CLI activity into a written record.
- Building tomorrow's runbook from open kit tasks, WIP repos, and the inbox.
- Folding a Teams/Outlook/Copilot Studio note into the journal without a real connector.
- 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 bundle must never trigger.
Worked example¶
python3 bin/journal_collect.py --print
python3 bin/journal_summarize.py --date <date> --dry-run
python3 bin/journal_plan.py build
--dry-run prints the three prompts and spawns nothing — write the documents
yourself from journal/<date>/digest.json. journal_plan.py build writes a dated,
checkable next-day plan with ready-to-paste commands for all three harnesses, priced
from each harness's own pricing file (Codex figures there are API-equivalent proxies,
never a bill); prompt enriches its What/How bodies the same in-session way.
Failure modes & fallbacks¶
journal_summarize.pyrun without--dry-run. Its headless mode dispatches the Claude CLI to write the documents — never do this from Codex; the two-pass flow above is the only sanctioned path here.- Teams/Outlook/Copilot Studio context is wanted.
journal_askpack.py --date <date> --printgenerates an offline prompt per tool — no network, OAuth, Graph, or MCP call is ever added to fetch that content; paste the results back intojournal/inbox.mdyourself. - The digest looks thin. The collector is deterministic and read-only; little activity means little to summarize, not a broken tool.
Cost & safety¶
Collecting is free, model-free, and strictly read-only over the three homes; it
writes only under the gitignored journal/ directory. Writing the summaries is what
sends the metadata-only digest — never transcript or message text — to a model.
Related¶
- Deep dive: daily journal — the full pipeline and privacy model.
- usage — Codex's own historical activity, versus this journal's cross-harness digest.
- Parity matrix — the Claude and Copilot journal skills, and where this one differs.
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 codex/skills/journal/SKILL.md.
Resolve the plugin root before running commands¶
Set POLYTROPOS_ROOT from this file's real location: in plugin mode, this file is
<root>/codex/skills/journal/SKILL.md, so ascend to <root>; in a managed copied install,
use the installer-resolved POLYTROPOS_ROOT="{{POLYTROPOS_ROOT}}". Reject a literal placeholder.
Before shelling out, verify $POLYTROPOS_ROOT/data/pricing.codex.json and every referenced
$POLYTROPOS_ROOT/bin/ engine exist. If proof fails, stop and direct the user to
python3 bin/harness_select.py doctor --harness codex; never run a guessed or stale path.
You generate the daily work journal — a read-only digest of what happened today across Claude
Code, Copilot CLI, and Codex CLI, plus git activity, turned into three plain-language summaries.
The collector engine is harness-agnostic: it already reads ~/.claude, ~/.copilot, and
~/.codex read-only, so running it from here produces the same cross-harness journal Claude
Code or Copilot CLI would produce.
Collect the digest¶
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 (repeatable) to add a git repo to scan, --journal-dir DIR
to override where it writes. The collector is deterministic and 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 today's three prompts without dispatching anything:
python3 "$POLYTROPOS_ROOT/bin/journal_summarize.py" --date <date> --dry-run
Read journal/<date>/digest.json for the facts, follow each printed prompt's required
headings exactly, and write the three documents YOURSELF — this session is already paid for,
so there is no reason to spawn a nested call. Save your drafts to
journal/<date>/narrative.md, journal/<date>/technical.md, and journal/<date>/next-day.md,
using digest facts only — no invented details, no transcript text. When done, summarize the
three documents for the user and link their paths — do not paste full drafts into chat.
Never run journal_summarize.py without --dry-run from this harness. Its headless mode
dispatches the Claude CLI directly — a cross-harness spend this bundle must never trigger.
--dry-run is the only sanctioned invocation of this script here.
Inbox & ask-the-tools¶
Drop meeting notes or to-dos into journal/inbox.md as plain lines; the next collection folds
them into the digest. For Microsoft tools with no connector here (Copilot Studio, Teams,
Outlook):
python3 "$POLYTROPOS_ROOT/bin/journal_askpack.py" --date <date> --print
This generates one ready-to-paste prompt per tool — run each inside that tool's own AI, then
paste the bullet results back into journal/inbox.md and re-collect. This is offline text
generation only: no network, OAuth, Graph, or MCP call is ever added to fetch this content.
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. Everything the journal produces stays under
the gitignored journal/ directory; nothing here is committed to git.
The root proof above applies before every journal command.