prompt-history

prompt-history is a command for coding agents from fusengine/agents. It costs 7 tokens per session (1,294 once invoked), scanned A, original, MIT.

A command for managing saved prompts and their versions.

In plain words
What is it for?
Use it to list, view, search, compare, roll back, export, or clean up prompt history.
Why use it?
It makes it easier to find older prompts, compare changes, restore previous versions, and remove outdated copies.

Command

Part of the fuse-prompt-engineer plugin — 6 skills, 2 commands, 7 agents shipped together

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/fusengine/agents/prompt-history
Clone the repo
git clone --depth 1 https://github.com/fusengine/agents

Or install fuse-prompt-engineer, the plugin that ships this one along with the rest of its 6 skills, 2 commands, 7 agents.

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 prompt-history

README.md
[![agentmods](https://agentmods.dev/badge/commands/fusengine/agents/prompt-history.svg)](https://agentmods.dev/commands/fusengine/agents/prompt-history)
Your own site
<a href="https://agentmods.dev/commands/fusengine/agents/prompt-history"><img src="https://agentmods.dev/badge/commands/fusengine/agents/prompt-history.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,294 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.00007 $0.01294
Opus 5 $0.00003 $0.00647
Sonnet 5 $0.00001 $0.00259
Haiku 4.5 $0.00001 $0.00129

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

Security

Grade A, and why

prompt-history 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 yesterday.

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.

plugins/prompt-engineer/commands/prompt-history.md · 247 lines

How it starts

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

/prompt history

Command for managing prompt history and versioning.

Usage

/prompt history [action] [options]

Actions

Action Description
list List all saved prompts
show <id> Display a specific prompt
search <query> Search by keyword
diff <id1> <id2> Compare two versions
rollback <id> Restore a previous version
export Export history
clean Clean old versions

Storage

Prompts are saved in:

~/.claude/prompt-history/
├── index.json                 # Prompt index
└── prompts/
    ├── 2025-01-21_code-reviewer_v1.md
    ├── 2025-01-21_code-reviewer_v2.md
    └── 2025-01-22_support-assistant_v1.md

Index Format

{
  "version": "1.0",
  "prompts": [
    {
      "id": "prompt_001",
      "name": "code-reviewer",
      "versions": [
        {
          "version": 1,
          "date": "2025-01-21T10:30:00Z",
          "file": "2025-01-21_code-reviewer_v1.md",
          "hash": "abc123",
          "notes": "Initial version"
        },
        {
          "version": 2,
          "date": "2025-01-21T14:00:00Z",
          "file": "2025-01-21_code-reviewer_v2.md",
          "hash": "def456",
          "notes": "Added security section",
          "parent": 1
        }
      ],
      "tags": ["code", "review", "quality"],
      "category": "agents"
    }
  ]
}

Examples

List History

/prompt history list

Output:

## Prompt History

| ID | Name | Versions | Last Modified | Tags |
|----|------|----------|---------------|------|
| prompt_001 | code-reviewer | 3 | 2025-01-21 | code, review |
| prompt_002 | support-assistant | 2 | 2025-01-20 | support |
| prompt_003 | summarizer | 1 | 2025-01-19 | text |

Total: 3 prompts, 6 versions

View a Prompt

/prompt history show prompt_001

Output:

## code-reviewer (prompt_001)

**Category**: agents
**Tags**: code, review, quality
**Versions**: 3

### Version History

| V | Date | Notes | Hash |
|---|------|-------|------|
| 3 | 2025-01-21 14:00 | Added OWASP | def456 |
| 2 | 2025-01-21 12:00 | Added SOLID | abc123 |
| 1 | 2025-01-21 10:00 | Initial version | 789xyz |

### Current Content (v3)

---
[Prompt content]
---

Read the full file on GitHub · 247 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. yesterday First seen · 247 lines · 7 tokens per session scan A 1b811312435e

Subscribe to this mod's changes

prompt-history is a command published in the GitHub repository fusengine/agents (25 stars, last pushed today), licensed MIT. It adds 7 tokens to every session and 1,294 once invoked, about $0.0000 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.