Scripts and utilities
The buddhi scripts command groups standalone utilities. Run buddhi scripts --help for the installed version’s available subcommands and options.
Accessibility and contrast
Section titled “Accessibility and contrast”buddhi scripts contrast "#000000" "#ffffff"buddhi scripts contrast --bg "#ffffff" --fg "#000000"buddhi scripts contrast --css src/styles/global.cssbuddhi scripts contrast --selftestbuddhi scripts verify-a11yContrast checks use WCAG 2.x thresholds and can inspect multiple color pairs, CSS files, or named strictness profiles. The self-test recomputes the reference table. verify-a11y runs the A11Y.md static gate against project artifacts, freshness, contrast calculations, and source patterns.
Repository checks
Section titled “Repository checks”buddhi scripts check-file-size --allbuddhi scripts receipts report.mdbuddhi scripts visual-parity-diffcheck-file-size checks source files against a token limit. receipts verifies report measurement claims and artifact hashes. visual-parity-diff calculates scene metrics or compares candidate and reference screenshots.
RTK output filtering
Section titled “RTK output filtering”RTK can filter output from supported developer commands while preserving the original exit code and error lines:
buddhi scripts rtk run -- pytestbuddhi scripts rtk run --raw -- pytestbuddhi scripts rtk rewrite -- pnpm run buildbuddhi scripts rtk gainbuddhi scripts rtk filters listbuddhi scripts rtk filters test <filter-name>On command failure, RTK saves full raw output under .buddhi/rtk/raw/. Antigravity can use an RTK PreToolUse hook to rewrite supported commands; check workspace command permissions before enabling that integration.
Anti-slop mode
Section titled “Anti-slop mode”buddhi scripts antislop-modebuddhi scripts antislop-mode duringbuddhi scripts antislop-mode afterbuddhi scripts antislop-mode askThe setting controls when the bundled anti-slop workflow runs. On Windows, the user setting is stored under %APPDATA%\\antislop\\settings.json; macOS and Linux use ~/.config/antislop/settings.json.
Run buddhi scripts <subcommand> --help for other options, including project paths and report directories.