noirdoc-redact

noirdoc-redact is a command for Claude Code from noirdoc-ai/mask-claude-plugin. It costs 21 tokens per session (250 once invoked), scanned A, original, MIT.

A command that creates a cleaned copy of a local file by redacting sensitive content with noirdoc. The copy is stored in a cache directory rather than replacing the original.

In plain words
What is it for?
Use it to redact a file after checking that the repository has noirdoc configuration, then use the generated clean copy.
Why use it?
It removes sensitive information before the file is shared or analyzed while keeping the original file unchanged.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the noirdoc plugin — 1 skill, 4 commands, 1 hook shipped together

Good fit Use it to redact a file after checking that the repository has noirdoc configuration, then use the generated clean copy.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/noirdoc-ai/mask-claude-plugin/noirdoc-redact
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.

Clone the repo
git clone --depth 1 https://github.com/noirdoc-ai/mask-claude-plugin

Made for: Claude Code.

Or install noirdoc, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 1 hook.

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 noirdoc-redact

README.md
[![agentmods](https://agentmods.dev/badge/commands/noirdoc-ai/mask-claude-plugin/noirdoc-redact/github.svg)](https://agentmods.dev/commands/noirdoc-ai/mask-claude-plugin/noirdoc-redact)
Your own site
<a href="https://agentmods.dev/commands/noirdoc-ai/mask-claude-plugin/noirdoc-redact"><img src="https://agentmods.dev/badge/commands/noirdoc-ai/mask-claude-plugin/noirdoc-redact/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 noirdoc-redact

Your own site · 80×15
<a href="https://agentmods.dev/commands/noirdoc-ai/mask-claude-plugin/noirdoc-redact"><img src="https://agentmods.dev/badge/commands/noirdoc-ai/mask-claude-plugin/noirdoc-redact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 250 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.00021 $0.00250
Opus 5 $0.00010 $0.00125
Sonnet 5 $0.00004 $0.00050
Haiku 4.5 $0.00002 $0.00025

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

Security

Grade A, and why

noirdoc-redact 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 9d 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.

noirdoc/commands/noirdoc-redact.md · 21 lines

What it actually says

Redact the file at $ARGUMENTS using the namespace from .noirdoc/config.toml.

Steps:

  1. Verify .noirdoc/config.toml exists. If not, run /noirdoc-setup first (do not prompt — just tell the user and stop).
  2. Read the noirdoc.namespace value from the config.
  3. Compute a 12-char sha256 hash of the input path to name the clean copy (.noirdoc/cache/<hash>.<ext>).
  4. Ensure .noirdoc/cache/ exists.
  5. Run:
    noirdoc redact --namespace <ns> "$ARGUMENTS" -o .noirdoc/cache/<hash>.<ext>
    
  6. Report the path of the clean copy to the user. Do not read the original file afterwards.

If the user wants to also summarize/analyze/translate, this command does not do that — follow the round-trip workflow in the noirdoc skill from this point onward.

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. 9d ago First seen · 21 lines · 21 tokens per session scan A 4eac530b2064

Subscribe to this mod's changes

noirdoc-redact is a command published in the GitHub repository noirdoc-ai/mask-claude-plugin (2 stars, last pushed 3mo ago), licensed MIT. It adds 21 tokens to every session and 250 once invoked, about $0.0001 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-08-31.

Related

Other commands, from other repositories

venue-guidelines-compliance

Audit a paper and submission package against current official venue requirements for its venue, track, article type, cycle, and stage. Use when checking templates, limits, anonymity, declarations, or required files before submission or inside $pre-submission-report. Not for venue recommendations.

flonat/flonat-research · 54 tokens

brief-compliance-check

Check a LaTeX coursework submission against the requirements in a supplied PDF assessment brief. Use when verifying format, required sections, word limits, or deliverables before submission. Not for general prose proofreading; use $proofread.

flonat/flonat-research · 45 tokens

latex-posters

Create a large-format academic poster in LaTeX using beamerposter, tikzposter, or baposter. Use when the requested deliverable is a conference or research poster rather than sequential presentation slides. For slide decks, use $beamer-deck.

flonat/flonat-research · 52 tokens

latex-scaffold

Convert an existing Markdown manuscript draft into a buildable LaTeX project with canonical structure and build configuration. Use when prose already exists but no LaTeX source tree does. Not for checking template drift in an existing project; use $latex-template.

flonat/flonat-research · 50 tokens

split-pdf

Download, split, and deeply read an academic PDF that is not available through Paperpile. Use when a long external PDF needs page-wise ingestion. For Paperpile items, use the Paperpile text-extraction route instead.

flonat/flonat-research · 44 tokens

pipeline-minutar-pdf

Pipeline completo de sentença judicial a partir de PDF (conversão, linha-tempo, relatório, análise, fundamentação, merge).

georgemarmelstein/superjurista-dev · 27 tokens