scan-for-secrets 0.1
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Anyone publishing AI coding-agent logs, like Claude Code transcripts, now has a one-command way to catch accidentally exposed API keys before release.
Programmer Simon Willison released scan-for-secrets 0.1, a free Python tool that checks files for accidentally exposed secret passwords, like API keys, before you share them. You hand it your actual keys and a folder, and it scans not only for the exact keys but also for common disguised forms, such as backslash or JSON escaping. It is useful for anyone publishing detailed logs from AI coding sessions, such as transcripts made with his claude-code-transcripts tool. It was built largely by the Claude Code AI assistant from a detailed README, following red/green test-driven development.
Simon Willison has released scan-for-secrets 0.1, a free open-source utility addressing a real reputational risk: leaking API credentials when publishing logs or transcripts of AI coding sessions. Run via 'uvx scan-for-secrets' against a directory, it detects secrets in literal and common escaped (JSON, backslash) forms. Teams that share agent transcripts can adopt it immediately. A config file lets users permanently protect a standard set of keys, including AWS credentials.
scan-for-secrets 0.1 scans a directory for supplied secret strings, matching not only literal values but also common escaping schemes (backslash, JSON) documented in its README. Invocation is 'uvx scan-for-secrets $OPENAI_API_KEY -d logs-to-publish/', defaulting to the current directory without '-d'. Persistent secret sets are configured via shell echo commands in '~/.scan-for-secrets.conf.sh', e.g. 'llm keys get openai' or awk extraction of AWS keys. Willison developed it with README-driven development, delegating implementation to Claude Code using red/green TDD.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
scan-for-secrets 0.1 claude-code-transcripts Claude Code uvx AWS credentials ~/.scan-for-secrets.conf.sh
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.