thinking-log

thinking-log is a command for Claude Code from mduongvandinh/claude-thinking-log-plugin. It costs 0 tokens per session (534 once invoked), scanned A, original, MIT.

A command for keeping a THINKINGLOG.md file that records implementation reasoning, decisions, actions, and results. It can store the log in the project or in Claude's project settings directory.

In plain words
What is it for?
Use it to initialize a log, add a timestamped decision entry, add a session summary, or view the log's location and recent entries.
Why use it?
It gives a project or session a written record of why implementation choices were made. The input does not establish whether the log is intended for team documentation or private notes.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the thinking-log plugin — 1 skill, 1 command shipped together

Good fit Use it to initialize a log, add a timestamped decision entry, add a session summary, or view the log's location and recent entries.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mduongvandinh/claude-thinking-log-plugin/thinking-log
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.

Clone the repo
git clone --depth 1 https://github.com/mduongvandinh/claude-thinking-log-plugin

Made for: Claude Code.

Or install thinking-log, the plugin that ships this one along with the rest of its 1 skill, 1 command.

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 thinking-log

README.md
[![agentmods](https://agentmods.dev/badge/commands/mduongvandinh/claude-thinking-log-plugin/thinking-log/github.svg)](https://agentmods.dev/commands/mduongvandinh/claude-thinking-log-plugin/thinking-log)
Your own site
<a href="https://agentmods.dev/commands/mduongvandinh/claude-thinking-log-plugin/thinking-log"><img src="https://agentmods.dev/badge/commands/mduongvandinh/claude-thinking-log-plugin/thinking-log/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for thinking-log

Your own site · 80×15
<a href="https://agentmods.dev/commands/mduongvandinh/claude-thinking-log-plugin/thinking-log"><img src="https://agentmods.dev/badge/commands/mduongvandinh/claude-thinking-log-plugin/thinking-log.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 534 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.00534
Opus 5 $0.00000 $0.00267
Sonnet 5 $0.00000 $0.00107
Haiku 4.5 $0.00000 $0.00053

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

Security

Grade A, and why

thinking-log 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 8d 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/thinking-log.md · 90 lines

How it starts

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

/thinking-log

Create or update a THINKING_LOG.md file that documents Claude's reasoning process during implementation tasks.

Usage

/thinking-log [action] [options]

Actions

  • init - Initialize a new THINKING_LOG.md file for the current project
  • add - Add a new entry to the existing log
  • summary - Add a session summary to the log
  • show - Display the current thinking log location and recent entries

Options

  • --project - Store in project directory (default: outside project in ~/.claude/projects/)
  • --title "Entry title" - Specify the entry title

Examples

# Initialize a new thinking log
/thinking-log init

# Add an entry about a decision
/thinking-log add --title "Chose PostgreSQL over MongoDB"

# Add session summary
/thinking-log summary

# Show current log status
/thinking-log show

Behavior

When invoked:

  1. init: Creates THINKING_LOG.md using the starter template. Asks user for preferred location (project vs ~/.claude/).

  2. add: Appends a new entry with:

    • Current timestamp
    • Mermaid flow diagram placeholder
    • Thinking section
    • Decision/Action/Result fields
  3. summary: Adds end-of-session summary including:

    • Completed tasks
    • Key decisions made
    • Files changed
    • Lessons learned
  4. show: Displays:

    • Current log file path
    • Last 3 entries (titles only)
    • Total entry count

Default Behavior (no action)

If called without an action, Claude will:

  1. Check if THINKING_LOG.md exists for current project
  2. If not, offer to create one
  3. If yes, show status and ask what to add

File Location Logic

Default: ~/.claude/projects/{project-name}/docs/THINKING_LOG.md

If --project flag:
  {project-root}/docs/THINKING_LOG.md

The default location keeps AI-related files outside the project source code, which is useful when:

  • Project has policies against committing AI-generated files
  • Multiple developers work on the same project
  • You want to keep thinking logs private

Read the full file on GitHub · 90 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. 8d ago First seen · 90 lines · 0 tokens per session scan A f08913b6b05b

Subscribe to this mod's changes

thinking-log is a command published in the GitHub repository mduongvandinh/claude-thinking-log-plugin (2 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 534 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-31.