Local opsec auditor. Scans a filesystem tree for leaked secrets and credential-file permission violations, and wipes the local data AI tooling leaves behind. Emits structured reports with concrete remedy commands.
Written in Clojure on the hive-* libraries (hive-dsl, hive-weave,
hive-test) from the hive-agi ecosystem.
;; deps.edn
io.github.buddhilw/cleanx {:mvn/version "RELEASE"}
Replace RELEASE with the version on the Clojars badge. Run it straight from
Clojars without cloning:
clojure -Sdeps '{:deps {io.github.buddhilw/cleanx {:mvn/version "RELEASE"}}}' \
-M -m cleanx.core scan ~/PP/some-project
scan
~/.ssh/*, ~/.gnupg/*, **/kubeconfig*, **/*.pem, …).--rules FILE swaps in any gitleaks-format rules file.wipe
claude, aider,
ollama.shell keeps ~/.bash_history / ~/.zsh_history but strips the lines
that match a secret rule.--apply acts, after a tar.zst backup unless
--no-backup.report re-renders a saved EDN scan result.
Not yet:
git log history walking (working tree only).From a checkout, the bb tasks wrap clojure -M -m cleanx.core:
bb scan ~/PP/some-project # report to ./cleanx-report-<ts>.md
bb scan ~ --out /tmp/home.md # audit the whole home directory
bb scan . --format json # JSON report
bb wipe # dry run over every tool
bb wipe claude aider --apply # back up, then delete
bb test # run the test suite
bb repl # nREPL on :7921
scan flags: --out, --format md|json|edn, --concurrency (8),
--timeout-ms (10000), --max-size (2 MiB), --rules. Pass --help to any
subcommand for the full list.
cli → scan/engine (parallel file walk via hive-weave bounded-pmap) →
findings → report/markdown or report/json. wipe/engine plans per tool,
then applies with an optional backup. All I/O returns a hive-dsl.result
Result; errors are collected, not thrown.
Every push to main that touches src/, resources/, test/, deps.edn,
version.edn or the workflow runs the suite, bumps the patch version, tags
v<VERSION> and deploys to Clojars (hive-build).
Documentation-only commits do not release. CI commits VERSION and
CHANGELOG.md, so pull before your next change.
Source: EPL-1.0 (LICENSE).
Vendored data: resources/rules/gitleaks.toml is MIT, upstream notice preserved
in resources/rules/NOTICE.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |