pastewatch

pastewatch is a skill for Claude Code from ppiankov/pastewatch. It costs 16 tokens per session (7,485 once invoked), scanned B, original, MIT.

A deterministic scanner for finding and obfuscating sensitive text such as email addresses, API keys, credentials, and high-entropy strings. It uses regular expressions and does not use machine learning or network calls.

In plain words
What is it for?
Use it to scan text, configure detected secret types, maintain allowlists and ignore files, and create a baseline of findings that are already known.
Why use it?
It helps prevent secrets and other private values from being pasted or shared accidentally, while allowing project-specific exceptions and ignored paths.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code.

Good fit Use it to scan text, configure detected secret types, maintain allowlists and ignore files, and create a baseline of findings that are already known.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ppiankov/pastewatch/docs
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.

Any agent
npx skills add ppiankov/pastewatch --skill docs
Clone the repo
git clone --depth 1 https://github.com/ppiankov/pastewatch

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 pastewatch

README.md
[![agentmods](https://agentmods.dev/badge/skills/ppiankov/pastewatch/docs/github.svg)](https://agentmods.dev/skills/ppiankov/pastewatch/docs)
Your own site
<a href="https://agentmods.dev/skills/ppiankov/pastewatch/docs"><img src="https://agentmods.dev/badge/skills/ppiankov/pastewatch/docs/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 pastewatch

Your own site · 80×15
<a href="https://agentmods.dev/skills/ppiankov/pastewatch/docs"><img src="https://agentmods.dev/badge/skills/ppiankov/pastewatch/docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,485 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 7 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 131
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 524
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Rogue Agent · line 217
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • high Privilege Escalation · line 476
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 478
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 481
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 484
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00016 $0.07485
Opus 5.5 $0.00006 $0.02994
Sonnet 5.5 $0.00003 $0.01497
Haiku 4.5 $0.00002 $0.00749

Measured 1mo ago against content hash 090212d3e995, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

pastewatch scanned grade B with 1 finding 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.

The scan reads SKILL.md. This mod also ships 4 executable files (examples/claude-code/pastewatch-guard.sh, examples/cline/pastewatch-hook.sh, examples/cursor/pastewatch-guard.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

To verify whether a value would be blocked or redacted, pipe it to `check`; never pass secrets as arguments. Input is stdin or `--file` only. Interactive stdin uses a no-echo prompt. Shell literals in examples are placeh
docs/SKILL.md · 681 lines

How it starts

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

pastewatch-cli

Sensitive data scanner. Deterministic regex-based detection and obfuscation for text content. No ML, no network calls.

For AI agent setup with secret redaction, see agent-integration.md.

When MCP and the guard disagree

The current guard is authoritative. Compare the block's decided by pastewatch-cli <version> line with the MCP result's _meta.server_version. A mismatch means the MCP server is stale, not that the guard is wrong. Reconnect the pastewatch MCP server (for example /mcp reconnect pastewatch) and repeat the operation. Do not file a detection bug from a disagreement until the versions match. A replaced executable can be stale even if its version string is unchanged.

Servers with the executable-identity check refuse tool calls after their installed binary changes: _meta.stale is true, with the running server_version, and no scan verdict, file content or write. This is a fail-closed fallback, not automatic restart. Older servers may lack that check; use pastewatch-cli doctor and reconnect them before trusting a clean result.

Install

brew install ppiankov/tap/pastewatch

Configuration

Config files

File Location Purpose Created By
/etc/pastewatch/config.json System Administrator-pinned config; highest precedence Administrator
.pastewatch.json Project root ($CWD) Project-level config pastewatch-cli init
~/.config/pastewatch/config.json Home User-level defaults Manual / GUI app
.pastewatch-allow Project root Value allowlist (one per line, # comments) pastewatch-cli init
.pastewatchignore Project root Path exclusion patterns (glob, like .gitignore) Manual
.pastewatch-baseline.json Project root Known findings baseline (SHA256 fingerprints) pastewatch-cli baseline create

Read the full file on GitHub · 681 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 Changed · +47 lines 090212d3e995
  2. 1mo ago Changed · +16 lines 87521c5585f2
  3. 1mo ago Changed · -1 lines e05e60ebbf52
  4. 1mo ago Changed · +15 lines 988100810a91
  5. 1mo ago Changed · +50 lines scan A → B d5e57f381029
  6. 3mo ago First seen · 554 lines · 16 tokens per session scan A 63c0c9f28ef4

Subscribe to this mod's changes

pastewatch is a skill published in the GitHub repository ppiankov/pastewatch (6 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 7,485 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

pastewatch compared with skills from other repositories

pastewatch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pastewatchppiankov/pastewatchSkill61mo agoMITB16Claude Code
claudexorrazzant/claudexorSkill531todayMITA22Claude Code, Codex
openkakao-cliJungHoonGhae/openkakao-cliSkill1515d agoMITA304Codex
rem-cliBRO3886/remSkill1591mo agoMITA55Claude Code
findmyomarshahine/findmy-cliSkill6410d agoMITA74Claude Code
macvisjunmo-kim/mac-local-visionSkill6429d agoMITA319Claude Code
use-peekalexmx/peekSkill627d agoMITA51Claude Code