refresh-knowledge

A command workflow for refreshing the knowledge files used by the AI Stack Expert, an agent that tracks how coding tools are configured.

In plain words
What is it for?
Use it to refresh one named tool or all tool records in docs/knowledge, including configuration files, supported features, MCP support, and cross-tool instruction behavior.
Why use it?
It provides an ordered process for checking old documentation against current official information and recording updates.

Command for Claude Code

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/nirelbaz/promptpit/refresh-knowledge
Clone the repo
git clone --depth 1 https://github.com/nirelbaz/promptpit

Made for: Claude Code.

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 501 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.00501
Opus 5 $0.00000 $0.00251
Sonnet 5 $0.00000 $0.00100
Haiku 4.5 $0.00000 $0.00050

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

Security

Grade A, and why

refresh-knowledge 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.

.claude/commands/refresh-knowledge.md · 52 lines

How it starts

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

Read the AI Stack Expert agent definition at .claude/agents/ai-stack-expert.md to understand your role, expertise, and methodology. Then execute the following refresh workflow.

Scope

$ARGUMENTS

If a specific tool name was provided above (e.g., "cursor"), refresh only that tool's knowledge file. Otherwise, refresh all tools in docs/knowledge/.

Workflow

Step 0: Inventory

Read all files in docs/knowledge/ and sort by last-verified date (oldest first). This is your refresh priority order.

Step 1: Per-Tool Refresh

For each tool (or the specified tool):

  1. Read current knowledge file from docs/knowledge/<tool>.md
  2. Check freshness — if last-verified is less than 7 days old and no specific tool was requested, skip it
  3. Research current state using WebSearch and WebFetch:
    • Search the tool's official documentation (URLs in the doc-urls frontmatter)
    • Check for recent changelog entries, blog posts, or release notes
    • Search for configuration documentation: file paths, formats, supported features
    • Search for MCP server support, agent support, rules/instructions support
    • Search for any cross-tool reading behavior (does it read AGENTS.md, .mcp.json, etc.?)
  4. Update the knowledge file with verified findings:
    • Fill in or update all sections: Configuration, Cross-Tool Reading, Behavior, Ecosystem, Edge Cases
    • For tools with status: adapter-exists, update the Promptpit Gaps section by comparing what the tool supports vs what the adapter implements
    • Update last-verified to today's date
    • Add or update doc-urls with any new documentation sources discovered
  5. Do NOT modify any source code — this command only updates knowledge files

Step 2: Summary

After refreshing, print a summary:

## Knowledge Refresh Summary — YYYY-MM-DD

### Refreshed
- <tool>: <what changed or was verified>

### Skipped (recently verified)
- <tool>: last verified YYYY-MM-DD

### Breaking Changes Detected
- <any changes that affect promptpit adapters>

### New Tools Discovered
- <any new AI coding tools worth tracking>

Read the full file on GitHub · 52 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 · 52 lines · 0 tokens per session scan A 2b4cdaf49178

Subscribe to this mod's changes

refresh-knowledge is a command published in the GitHub repository nirelbaz/promptpit (6 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 501 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.

Related

Other commands, from other repositories

fix-layout

Command "fix-layout" from OpenRaiser/PaperFit, covering /fix-layout — 启动完整 vto 排版优化, 用户入口说明, 工具调用约定, 用法 and 直接执行入口.

OpenRaiser/PaperFit · 0 tokens

paperfit

作用: /paperfit 是 Claude Code 中的 PaperFit 主入口。用户可以直接用自然语言描述任务,例如排版分析、完整修复、模板迁移、长度调整、局部表格修复、视觉检查或状态查询。Agent 负责解析意图、识别主 .tex、判断是否需要画像、并自动进入对应的 PaperFit 子流程。.

OpenRaiser/PaperFit · 0 tokens

paperfit-undo

作用: 恢复最近一次 PaperFit 自动写回前的备份版本,优先回滚主 .tex,必要时一并恢复 data/state.json。.

OpenRaiser/PaperFit · 0 tokens

show-status

作用: 显示当前 PaperFit 任务的运行状态、缺陷消除进度、视觉优先级、修复计划摘要和下一步行动;这是当前默认的“摘要 / 解释”入口。.

OpenRaiser/PaperFit · 0 tokens

adjust-length

作用: 尝试通过排版微调或受控语义改写逼近目标页数。它是专家快捷入口;普通自然语言如“把正文压到 8 页,尽量不要改语义”也应能触发同类任务。.

OpenRaiser/PaperFit · 0 tokens

repair-table

作用: 针对指定表格或当前论文中的表格问题执行修复闭环。它是专家快捷入口;普通自然语言如“修 Table 2 太挤的问题”也应能触发同类任务。.

OpenRaiser/PaperFit · 0 tokens