Claude Code Prompt Recorder banner
irmowan irmowan

Claude Code Prompt Recorder

Development community

Description

A Claude Code hook plugin that records every user prompt with a timestamp

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Claude Code Prompt Recorder

A Claude Code plugin that records every user prompt with a timestamp to `prompt_log.txt` in the project directory. Useful for reviewing your interaction history, tracking prompt patterns, and building a personal prompt knowledge base.

What It Does

Intercepts every prompt submitted to Claude Code via the `UserPromptSubmit` hook, and appends it with a timestamp to `prompt_log.txt` in the current working directory. The prompt is passed through unchanged — recording is completely transparent with zero impact on your workflow.

**Log format:**

[2026-02-07 14:30:15] 帮我写一个排序函数
[2026-02-07 14:32:08] Fix the TypeError in src/utils.ts line 42
[2026-02-07 14:35:22] Refactor the auth module to use async/await

Installation

Option 1: Via Marketplace (Recommended)

  1. Add the marketplace:
claude plugin marketplace add irmowan/claude-code-prompt-recorder
  1. Install the plugin:
claude plugin install prompt-recorder@claude-code-prompt-recorder
  1. Restart Claude Code

Verify installation with `/plugin` command. You should see the `prompt-recorder` plugin listed.

Option 2: Direct Install

claude plugin install /path/to/claude-code-prompt-recorder

Then restart Claude Code.

Usage

No configuration needed. Once installed, every prompt you submit is automatically recorded.

# Just use Claude Code as usual
claude "fix the bug in auth.ts"
# → [2026-02-07 10:00:01] fix the bug in auth.ts  is appended to prompt_log.txt

claude "add unit tests for the User model"
# → [2026-02-07 10:05:33] add unit tests for the User model  is appended to prompt_log.txt

The `prompt_log.txt` file is created in the current working directory (the project root where Claude Code is running).

Log File Location

  • Path: /prompt_log.txt
  • Format: [YYYY-MM-DD HH:MM:SS]
  • Encoding: UTF-8
  • Mode: Append-only (existing logs are never overwritten)

Architectu