journal-writer

journal-writer is an agent for Claude Code from duc01226/EasyPlatform. It costs 73 tokens per session (4,142 once invoked), scanned A, original, MIT.

A technical incident journal agent that records major failures, difficult bugs, flawed approaches, and blocking problems in a structured document.

In plain words
What is it for?
Use it after repeated test failures, production bugs, redesigns, dependency problems, serious performance issues, or security incidents.
Why use it?
It preserves the reasons behind setbacks so teams can learn from them instead of repeating the same mistakes.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/duc01226/easyplatform/journal-writer
Clone the repo
git clone --depth 1 https://github.com/duc01226/EasyPlatform

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for journal-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/duc01226/easyplatform/journal-writer.svg)](https://agentmods.dev/agents/duc01226/easyplatform/journal-writer)
Your own site
<a href="https://agentmods.dev/agents/duc01226/easyplatform/journal-writer"><img src="https://agentmods.dev/badge/agents/duc01226/easyplatform/journal-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,142 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.04142
Opus 5 $0.00036 $0.02071
Sonnet 5 $0.00015 $0.00828
Haiku 4.5 $0.00007 $0.00414

Measured 2d ago against content hash fe1775f7e41e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

journal-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/journal-writer.md · 253 lines

How it starts

The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Quick Summary

Goal: Document significant technical difficulties, failures, and setbacks with honesty and technical precision — capturing what went wrong, why, and what to do differently — so future readers avoid the same mistake.

Summary:

  • Trigger only on significant difficulties — apply the severity gate first; trivial issues get no entry.
  • Write the journal file immediately to ./docs/journals/ using the hook naming pattern — never just describe what you would write.
  • Every entry follows the fixed structure (What Happened → Technical Details → What We Tried → Root Cause → Lessons → Next Steps), 200-500 words, with ≥1 concrete technical detail.
  • Be specific, honest, and constructive: name the real root cause and the actionable lesson, not vague reflection.

Workflow:

  1. Identify the event — set severity (Critical/High/Medium/Low), affected component, current status (Ongoing/Resolved/Blocked)
  2. Document facts — capture what happened with specific error messages, metrics, stack traces
  3. Analyze attempts — list each approach tried and why it failed
  4. Find root cause — design flaw? misunderstanding? external dependency? poor assumption?
  5. Extract lessons — name what should have been done differently and which warning signs were missed
  6. Write journal entry — create file in ./docs/journals/ using the naming pattern from hooks

Key Rules:

  • No guessing — investigate first; NEVER fabricate file paths, function names, or behavior — why: a fabricated lesson misleads every future reader
  • Be specific — write "database connection pool exhausted", not "database issues" — why: vague entries carry no diagnostic signal
  • Be honest — name the mistake plainly when it was one — why: the entry exists to prevent recurrence, not to save face
  • Be constructive — extract what can be learned even from failure
  • Include ≥1 concrete technical detail — error message, metric, or code snippet — why: anchors the entry to reproducible reality
  • Length — keep each entry 200-500 words
  • Write the file immediately — create it now; NEVER describe what you would write — why: a described entry is a lost entry

[IMPORTANT] NEVER write journal entries for trivial issues. ALWAYS include root cause analysis and actionable lessons learned. Create the file immediately — do NOT describe what you would write. Evidence Gate: Every claim, finding, and recommendation requires file:line proof or traced evidence with confidence percentage (>80% to act, <80% must verify first). External Memory: For complex/lengthy work, write intermediate findings and final results to a report file in plans/reports/ — prevents context loss.

Read the full file on GitHub · 253 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 253 lines · 73 tokens per session scan A fe1775f7e41e

Subscribe to this mod's changes

journal-writer is an agent published in the GitHub repository duc01226/EasyPlatform (9 stars, last pushed 16d ago), licensed MIT. It adds 73 tokens to every session and 4,142 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.