You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,13 @@ broomsticks does two things: it **cleans** secrets already sitting in your local
14
14
# scan every transcript for secrets (read-only)
15
15
npx broomsticks scan
16
16
17
-
# preview redactions, then apply them (each touched file is backed up first)
17
+
# preview redactions, then sweep them away (each touched file is backed up first)
18
18
npx broomsticks clean
19
-
npx broomsticks clean --apply
19
+
npx broomsticks sweep
20
20
```
21
21
22
+
Run `broom` with no arguments in a terminal for an interactive menu.
23
+
22
24
Prefer a global command? `npm install -g broomsticks` gives you `broom` (used throughout this README). Requires **Node ≥ 22.13** — it reads Cursor's SQLite store with the built-in `node:sqlite`, unflagged as of 22.13.0, so there are no native modules to build.
23
25
24
26
## What it does
@@ -41,15 +43,20 @@ broom scan # report secrets; exits 1 if any (CI-fri
41
43
broom scan --source cursor # limit to one source (repeatable)
42
44
broom sources # list discovered transcript files
43
45
broom clean # preview redactions (dry-run)
44
-
broom clean --apply # redact in place, backing up first
46
+
broom sweep # redact in place, backing up first (= clean --apply)
47
+
broom scan --verbose # list every finding, not just per-file counts
45
48
broom scan --json # machine-readable output
46
-
broom clean --apply --extra ./leaked.txt # also scrub your own known values
49
+
broom sweep --extra ./leaked.txt# also scrub your own known values
47
50
```
48
51
52
+
By default the report is a compact summary — grouped by AI client, showing how many chats are affected and how many **distinct** secrets are exposed (the same key echoed many times across a transcript counts once; the total occurrence count is shown alongside). Add `--verbose` to list every occurrence with its rule and line. Colour is used on a terminal and disabled automatically when piped or when `NO_COLOR` is set. `sweep` (and `clean --apply`) asks for confirmation on a terminal; pass `--yes` to skip it, and in a pipe/CI it proceeds without prompting.
53
+
49
54
| Flag | Meaning |
50
55
| --- | --- |
51
56
|`--source <id>`| Restrict to `claude-code`, `codex`, or `cursor` (repeatable; default: all) |
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "broomsticks",
3
-
"version": "0.1.1",
3
+
"version": "0.2.0",
4
4
"description": "Sweep leaked secrets out of your AI coding-assistant chat transcripts (Claude Code, Codex, Cursor). Dry-run by default, backups before every write, zero runtime dependencies.",
0 commit comments