promptpit: Command for Claude Code

.claude/commands/refresh-knowledge.md

refresh-knowledge is a command for Claude Code from nirelbaz/promptpit. It costs 0 tokens per session (501 once invoked), scanned A, original, MIT.

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

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions AGENTS.md.

This is nirelbaz/promptpit's own configuration. It tells Claude Code how to work on promptpit 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 promptpit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nirelbaz/promptpit. 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/nirelbaz/promptpit/main/.claude/commands/refresh-knowledge.md
Clone the repo
git clone --depth 1 https://github.com/nirelbaz/promptpit

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/nirelbaz/promptpit/refresh-knowledge/github.svg)](https://agentmods.dev/commands/nirelbaz/promptpit/refresh-knowledge)
Your own site
<a href="https://agentmods.dev/commands/nirelbaz/promptpit/refresh-knowledge"><img src="https://agentmods.dev/badge/commands/nirelbaz/promptpit/refresh-knowledge/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 refresh-knowledge

Your own site · 80×15
<a href="https://agentmods.dev/commands/nirelbaz/promptpit/refresh-knowledge"><img src="https://agentmods.dev/badge/commands/nirelbaz/promptpit/refresh-knowledge.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 501 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.00501
Opus 5.5 $0.00000 $0.00200
Sonnet 5.5 $0.00000 $0.00100
Haiku 4.5 $0.00000 $0.00050

Measured 1mo ago against content hash 2b4cdaf49178, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 2mo 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.