Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    memory secret sweep

    1

    AI agents often store everything you tell them in memory notes, instruction files, and conversation logs.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    memory secret sweep

    memory secret sweep

    Example session with this skill installed

    I think I accidentally pasted my Stripe secret key into a chat with Claude Code earlier. Can you check my memory and logs for any leaked tokens and help me clean them up?

    • Read your context and instructions
    • Compiled the memory secret sweep

    I have completed a scan of your Claude Code memory, instruction files, and conversation logs. I found 1 high-confidence secret and 3 test values.

    Secret Scan Results

    IDTypeMasked ValueLocationReason
    1Stripe Secret Keysk_live_...5h9Z~/.claude/projects/vault/memory/notes.mdFound in a memory note labeled "api-access".
    2Test Keysk_test_...v92btests/fixtures/stripe_mock.jsonAppears in a test fixture folder; marked as sample data.
    3PlaceholderYOUR_API_KEY.env.exampleGeneric placeholder string in a template file.

    I also found 12 low-entropy strings in your transcript logs that appear to be internal tool IDs (e.g., toolu_...) which were ignored.

    Next steps

    1. Run python3 scripts/redact.py --ids 1 to mask the Stripe key in your memory notes.
    2. Follow the guide in references/rotation.md to revoke the existing Stripe key and generate a new one, as it has already been exposed to the model provider.
    3. Once confirmed, run python3 scripts/redact.py --purge [backup_name] to permanently delete the local backup containing the plain-text secret.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    AI agents often store everything you tell them in memory notes, instruction files, and conversation logs. If you accidentally paste a password or API key into a chat, it persists in plain text across your local agent configs and history. This skill identifies those leaked credentials and redacts them at your command.

    What it does

    • Multi-agent scanning searches memory and logs for Claude Code, Cursor, Windsurf, Gemini CLI, and Copilot.
    • Pattern detection recognizes tokens for over 30 services including GitHub, OpenAI, AWS, Stripe, and Slack.
    • Contextual analysis distinguishes between live production secrets and test fixtures, demo data, or public keys.
    • Secure redaction masks confirmed secrets with [REDACTED] while maintaining local backups for recovery.
    • Pre-commit integration identifies secrets in staged changes or repository history to prevent leaks before they happen.

    How it works

    1. Initiate scan by specifying the target folders or requesting a full sweep of agent transcripts and git history.
    2. Review findings in a generated report that categorizes potential leaks by confidence level and type without revealing the full secret.
    3. Confirm targets by selecting specific IDs or confidence thresholds for the redaction script to process.
    4. Finalize and rotate by executing the masking command and following the provided rotation guide for any compromised keys.

    Frameworks & tools

    Python 3.9+. Supports Claude Code, Codex, Gemini CLI, Cursor, Windsurf, and standard Git workflows.

    Why this beats prompting it yourself

    Generic prompts often miss secrets hidden in large JSONL log files or nested agent memory directories. This skill uses specialized Python scripts to perform high-entropy scanning and pattern matching locally, ensuring no sensitive data is sent back to the LLM during the discovery phase.

    Use cases

    • Cleanse agent memory after accidentally pasting a production credential into a chat session.
    • Audit local agent instruction files (e.g., CLAUDE.md, .cursorrules) for hardcoded keys.
    • Prevent secrets from entering a repository by setting up a local git pre-commit hook.
    • Scan multi-gigabyte conversation transcripts for historical leaks before sharing logs.

    Known limitations

    Masking is skipped for logs modified in the last 15 minutes to avoid write conflicts. It cannot redact secrets from Git history or active .env files, as doing so would break your environment.

    Requires Python 3.9+. Does not redact secrets from git history or .env files. Recent logs (<15 mins) are skipped. Heuristic detection may miss unlabelled random strings without --entropy flag.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 10 days ago

    Requires

    Git

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables
    Listed10 days ago

    What's inside

    Frequently Asked Questions

    This skill detects and redacts accidentally pasted passwords and API keys within agent-specific files like memory notes, instruction docs (e.g., .cursorrules), and local conversation transcripts that standard antivirus or git-scanners often miss.

    It is compatible with Python 3.9+ and offers native support for leading AI tools including Claude Code, Cursor, Windsurf, Gemini CLI, and GitHub Copilot logs.

    To ensure maximum privacy, the high-entropy scanning and pattern matching are performed entirely locally on your machine; no sensitive log data or potential secrets are sent back to an LLM for analysis.

    Each purchase includes the core Python scanning engine, specialized regex patterns for over 30 services, a git pre-commit hook template, and a guided rotation manual for compromised keys.

    The skill creates local backups of any file before redaction, allowing you to recover data if a legitimate string was accidentally masked during a high-confidence sweep.

    While it can identify secrets in your current repository state, it does not rewrite Git history or modify active .env files to avoid breaking your development environment or deployment pipeline.

    New in Security