secrets-scanner-fix

secrets-scanner-fix is a command for Claude Code from EchoingVesper/mcp-task-orchestrator. It costs 0 tokens per session (1,544 once invoked), scanned A, original, MIT.

A command that removes fake secrets, such as test API keys or tokens, from a repository's Git history. Git history is the record of earlier versions and commits, not just the files currently on disk.

In plain words
What is it for?
Use it to identify affected commits, rewrite history with safer test values, preserve test behavior, verify the cleanup, and prepare the repository for pushing again.
Why use it?
It addresses GitHub push protection when secret scanning blocks a push because sensitive-looking text appears in commits.

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/echoingvesper/mcp-task-orchestrator/secrets-scanner-fix
Clone the repo
git clone --depth 1 https://github.com/EchoingVesper/mcp-task-orchestrator

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 secrets-scanner-fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/echoingvesper/mcp-task-orchestrator/secrets-scanner-fix.svg)](https://agentmods.dev/commands/echoingvesper/mcp-task-orchestrator/secrets-scanner-fix)
Your own site
<a href="https://agentmods.dev/commands/echoingvesper/mcp-task-orchestrator/secrets-scanner-fix"><img src="https://agentmods.dev/badge/commands/echoingvesper/mcp-task-orchestrator/secrets-scanner-fix.svg" alt="Measured on agentmods" 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 1,544 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.01544
Opus 5 $0.00000 $0.00772
Sonnet 5 $0.00000 $0.00309
Haiku 4.5 $0.00000 $0.00154

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

Security

Grade A, and why

secrets-scanner-fix 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 5d 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/git-operations/secrets-scanner-fix.md · 178 lines

How it starts

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

Git Secrets Scanner Fix Command

Usage: /git-operations:secrets-scanner-fix

Purpose: Fix GitHub secret scanning issues by rewriting git history to remove fake secrets from test files while preserving all functionality.

Command Description

This command resolves GitHub push protection violations caused by fake secrets in test files. It uses git filter-branch to rewrite commit history, replacing problematic patterns with safe alternatives that don't trigger secret scanning.

When to Use

  • GitHub blocks pushes due to "Push cannot contain secrets"
  • Secret scanning detects fake API keys, tokens, or credentials in test files
  • Need to clean up commit history without losing work
  • Want to maintain test functionality while avoiding security warnings

How It Works

The command will:

  1. Analyze the Problem: Identify which commits contain problematic patterns
  2. Plan the Fix: Determine the scope of history rewriting needed
  3. Execute Filter-Branch: Rewrite commit history to replace fake secrets
  4. Verify Results: Confirm the fix worked and push is now possible

Interactive Process

The command will guide you through:

# 1. Identify problematic commits and patterns
git log --grep="commit_hash" --oneline

# 2. Backup current state
git branch backup-before-secrets-fix

# 3. Apply history rewriting
git filter-branch --tree-filter [replacement_script] [commit_range]

# 4. Verify and push
git push origin [branch_name]

Common Secret Patterns Fixed

The command automatically replaces these patterns:

Original Pattern Format Safe Replacement
OpenAI API keys (sk-* format) FAKE-SK-REDACTED-FOR-TESTING
GitHub tokens (ghp_* format) FAKE-GHP-REDACTED-FOR-TESTING
Slack bot tokens (xoxb-* format) FAKE-XOXB-REDACTED-FOR-TESTING
Google OAuth tokens (ya29.* format) FAKE-YA29-REDACTED-FOR-TESTING
JWT Bearer tokens Bearer FAKE-JWT-REDACTED-FOR-TESTING
AWS access keys (AKIA* format) FAKE-AKIA-REDACTED-FOR-TESTING
Custom test keys REDACTED-FAKE-KEY-FOR-TESTING

Read the full file on GitHub · 178 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. 5d ago First seen · 178 lines · 0 tokens per session scan A 5174e315d8b4

Subscribe to this mod's changes

secrets-scanner-fix is a command published in the GitHub repository EchoingVesper/mcp-task-orchestrator (28 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,544 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-30.