diary

A command that writes a short diary entry about the current agent conversation. The entry records work completed, lessons learned, recurring patterns, and reminders.

In plain words
What is it for?
Reviewing the conversation, saving a date-named Markdown file under ~/.claude/sessions/diary/, and reporting the main points recorded.
Why use it?
It keeps a dated record of useful context without requiring the agent to document the session manually.

Command

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 commands/helloruru/claude-memory-engine/diary
Clone the repo
git clone --depth 1 https://github.com/HelloRuru/claude-memory-engine
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 206 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 $0.00000 $0.00206
Opus 5 $0.00000 $0.00103
Sonnet 5 $0.00000 $0.00041
Haiku 4.5 $0.00000 $0.00021

Measured 2d ago against content hash 1b1622b34223, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

diary 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.

commands/diary.md · 33 lines

What it actually says

/diary -- Session Reflection Diary

Generate a reflection diary entry from the current conversation.

Steps

  1. Review this conversation: List the user's main requests, problems solved, and files modified
  2. Write a diary entry: Save to ~/.claude/sessions/diary/ with date-based filename
  3. Format:
# Diary {YYYY-MM-DD}

## What I did today
- {List main work items}

## What I learned
- {Pitfalls, discoveries, user preferences}

## Patterns I noticed
- {User's work patterns, recurring needs}

## Notes for next time
- {Reminders for future sessions}
  1. Report: Briefly say "Diary written, noted X key points"

Notes

  • Keep it concise and actionable, not a verbose log
  • Focus on "what I learned" and "patterns", not play-by-play
  • Each entry should be under 30 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 · 33 lines · 0 tokens per session scan A 1b1622b34223

Subscribe to this mod's changes

diary is a command published in the GitHub repository HelloRuru/claude-memory-engine (133 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 206 tokens. 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-08-30.

Related

Other commands, from other repositories

awesome-docs

Generate, convert, and maintain animated GitHub-safe Markdown documents with animated SVG diagrams. Covers four SVG patterns (architecture flow, lifecycle loop, field carousel, timeline phases), guided interview for any doc type (README, architecture guide, runbook, API reference, tutorial, RFC, post-mortem…

nitinjain999/platform-skills · 141 tokens

grill-me

Run an interactive one-question-at-a-time oral drill for research defence or active-recall study, escalating around weak answers and ending with a study sheet. Use when the user asks to be grilled, quizzed, or prepared for a viva, job talk, seminar, or exam. Not for a written critique; use $devils-advocate or a review…

flonat/flonat-research · 75 tokens

brief-compliance-check

Check a LaTeX coursework submission against the requirements in a supplied PDF assessment brief. Use when verifying format, required sections, word limits, or deliverables before submission. Not for general prose proofreading; use $proofread.

flonat/flonat-research · 45 tokens

init-project-course

Bootstrap a university course or module folder with the canonical teaching structure, guidance, and starter files. Use when creating or migrating a course workspace. Not for checking an existing course without modifying it; use $audit-project-course.

flonat/flonat-research · 44 tokens

init-project-light

Bootstrap a lightweight project with minimal guidance, context, and repository structure. Use when a small non-research project needs durable AI collaboration without the full research or course scaffold. Not for formal research projects; use $init-project-research.

flonat/flonat-research · 47 tokens

resume_handoff

Resume work from handoff document with context analysis and validation.

hoblin/claude-ruby-marketplace · 11 tokens