unifiles-mcp: Command for Claude Code

.cursor/commands/update-history.md

update-history is a command for Claude Code, Cursor from Asheng008/unifiles-mcp. It costs 0 tokens per session (771 once invoked), scanned A, original, MIT.

A development command that records the current conversation in HISTORY.md, a project file containing past instruction rounds. It keeps the existing format and adds the new entry at the end.

In plain words
What is it for?
Use it to create or update HISTORY.md with a short round title, user instructions, results, and changed file paths.
Why use it?
It preserves what users asked for and what was done, so the project has a running conversation history.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

This is Asheng008/unifiles-mcp's own configuration. It tells Claude Code and Cursor how to work on unifiles-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything unifiles-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Asheng008/unifiles-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Asheng008/unifiles-mcp/main/.cursor/commands/update-history.md
Clone the repo
git clone --depth 1 https://github.com/Asheng008/unifiles-mcp

Made for: Claude Code, Cursor.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/asheng008/unifiles-mcp/update-history/github.svg)](https://agentmods.dev/commands/asheng008/unifiles-mcp/update-history)
Your own site
<a href="https://agentmods.dev/commands/asheng008/unifiles-mcp/update-history"><img src="https://agentmods.dev/badge/commands/asheng008/unifiles-mcp/update-history/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 update-history

Your own site · 80×15
<a href="https://agentmods.dev/commands/asheng008/unifiles-mcp/update-history"><img src="https://agentmods.dev/badge/commands/asheng008/unifiles-mcp/update-history.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 771 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.00771
Opus 5 $0.00000 $0.00385
Sonnet 5 $0.00000 $0.00154
Haiku 4.5 $0.00000 $0.00077

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

Security

Grade A, and why

update-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 11d 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.

.cursor/commands/update-history.md · 71 lines

What it actually says

更新 HISTORY.md 文档

根据当前对话中的用户指令,更新 HISTORY.md 文件,添加新的一轮对话记录。

目标

  • HISTORY.md 文件末尾添加新的一轮对话记录
  • 使用「当前对话的简短描述」作为该轮的标题(二级标题 ##
  • 按时间顺序记录该轮对话中用户发出的所有指令
  • 保持与现有格式一致(编号、引用块、说明等)

必做步骤

  1. 若 HISTORY.md 不存在则创建

    • 若项目根目录下不存在 HISTORY.md,则先创建该文件
    • 写入与现有格式一致的初始结构:一级标题与简短说明、分隔线 ---、文末的「使用说明」小节(二级标题 ## 使用说明 及 1~2 条说明性列表项)
    • 创建完成后,再执行下面的步骤(首次追加时编号从 1 开始)
  2. 读取当前 HISTORY.md

    • 查看文件开头的说明和格式(格式已修改,参考示例格式)
    • 查看已有轮次的标题格式(如「unifiles 项目规划与文档搭建」)
    • 确认最后一条记录的编号,以便继续编号
  3. 分析当前对话

    • 回顾整个对话历史,识别用户发出的所有指令
    • 为当前对话生成一个简短、描述性的标题(2-10 字,概括本轮主要任务)
    • 按时间顺序列出所有用户指令
  4. 添加新轮次记录

    • 在文件末尾(「使用说明」之前)添加分隔线 ---
    • 添加二级标题:## [简短描述]
    • 按顺序添加每条指令:
      • 使用三级标题:### N. [指令的简短描述]
      • 使用引用块 > 记录用户的原始指令内容
      • 如果指令很长,保留核心部分,必要时可截断
      • 简要列出执行结果(1~3 条)
      • 若有新建/修改文件,写出路径与说明
  5. 格式要求

    • 标题使用中文
    • 指令内容保留用户的原始表述(或重要片段)
    • 编号从上一轮的最后一条继续递增
    • 保持与现有格式一致

输出

  • HISTORY.md 不存在,则先创建该文件(含标题、说明与「使用说明」小节),再追加新轮次
  • 直接修改并保存 HISTORY.md
  • 新轮次添加在文件末尾,位于「使用说明」之前
  • 确保格式与现有内容一致

示例格式

---

## [当前对话的简短描述]

### 15. [指令1的简短描述]
> [用户的原始指令内容]
**执行结果**:
- 简要列出执行结果(1~3 条)
- 若有新建/修改文件,写出路径与说明

### 16. [指令2的简短描述]
> [用户的原始指令内容]
**执行结果**:
- 简要列出执行结果(1~3 条)
- 若有新建/修改文件,写出路径与说明
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. 11d ago First seen · 71 lines · 0 tokens per session scan A 334ba9940b29

Subscribe to this mod's changes

update-history is a command published in the GitHub repository Asheng008/unifiles-mcp (0 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 771 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.