Ultimate Bug Scanner — CLI for Claude Code and Codex

Ultimate Bug Scanner finds over a thousand common bug patterns across 15 languages and outputs JSON, SARIF or TOON.

Install in Claude Code, Codex and Cursor

Manual install

curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/ultimate_bug_scanner/main/install.sh?$(date +%s)" \
  | bash -s --

The first command from the README. A macOS and Linux option is `brew install dicklesworthstone/tap/ubs`.

Access and checks

How we review

Extended access. The tool runs code or makes network calls and only reads external data.

  • The installer changes the system: it adds git and Claude Code hooks and appends to `AGENTS.md`, and the script is downloaded from the network.

This is third-party code. Review the repository files before installing.

What it does

Ultimate Bug Scanner (`ubs`) is a static scanner that checks a repository for common mistakes often seen in AI-agent code: null access, XSS, a missing `await`, comparison with `NaN`, `.unwrap()` in Rust and goroutine leaks. The language is detected automatically. JavaScript and TypeScript, Python, C and C++, Rust, Go, Java, Kotlin, Ruby, Swift, C#, Elixir, Bash, PHP, PostgreSQL SQL and Terraform HCL are supported. It has machine-readable output for agents: `ubs . --format=json` prints one document to stdout while diagnostics go to stderr. There are `jsonl`, `sarif` and token-efficient `toon` formats. Exit code 0 means success, and a `partial` or `error` status gives 2. The `ubs robot-docs` command prints help and schemas as one JSON, and `ubs explain <rule>` explains a rule. The `--staged` flag checks only staged changes, and the `--profile=strict` profile with `--fail-on-warning` fits CI. The installer can set up git hooks and Claude Code hooks that scan a file on save and add a note to `AGENTS.md`.

Who it is for. Developers whose agents write a lot of code and who need a quick check before commit, in a hook or in CI.

Good fit when

  • An agent finished edits and only staged files should be scanned before commit.
  • A script parses the result, so a single JSON with a schema is needed.
  • A multi-language monorepo is checked with one command.
  • A CI build fails on any warning under the strict profile.

Not a fit when

  • Deep data-flow analysis is needed rather than quick heuristics.
  • Changing dotfiles and adding hooks is not allowed, and the installer does exactly that.
  • You look for vulnerabilities beyond common ones: the scanner finds patterns and does not prove bugs are absent.

Example request

Scan the staged changes with ubs in JSON format and fix critical findings before commit.

Limitations

Findings rest on rules and heuristics, so false positives and misses occur. JavaScript and TypeScript scanning needs `ast-grep`, and `jq` is needed to merge reports. The installer changes the system: it installs the `ubs` command and dependencies, adds git hooks and Claude Code hooks and appends to `AGENTS.md`; `--easy-mode` does this without questions and `--dry-run` shows the steps in advance. The licence is MIT with a rider for OpenAI and Anthropic, so read the terms. The last commit dates from November 2026.

How to disable. Uninstall the way you installed, for example `brew uninstall ubs`. Remove git and Claude Code hooks and the `AGENTS.md` block by hand.

FAQ

How do I get output for an agent?

Run `ubs . --format=json`: one JSON document goes to stdout and diagnostics to stderr. `ubs --schema=json` shows the schema.

How do I scan only fresh edits?

Use `ubs --staged --format=json`; the command takes only changes staged in git.

What does exit code 2 mean?

A `partial` or `error` result status: a scanner did not finish. With `UBS_ALLOW_PARTIAL=1` a partial run exits by its findings.

How do I check the environment?

`ubs doctor` checks curl or wget, the cache and module integrity. With `--fix` it redownloads corrupted modules.

Can I install it with Homebrew?

Yes, on macOS and Linux there is `brew install dicklesworthstone/tap/ubs`. The README's primary option uses the `install.sh` installer.

Is Ultimate Bug Scanner safe to install?

Extended access. The tool runs code or makes network calls and only reads external data.

Discussion

No questions or reviews yet.

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialRepository starsMain difference
Ultimate Bug Scanner (this card)no320
Semgrep Skillsyes352three Semgrep skills with OWASP rules; ubs is a standalone command for 15 languages with JSON and agent hooks
Bugpatrolno150a team of AI testers finds bugs by using the app; ubs scans code statically

README in short

A meta-runner assembles per-language checks, loads modules with SHA-256 verification and merges reports into one. Built for Claude Code, Cursor, Windsurf, Aider, Continue and Copilot, and the installer detects local agents.

README badge

Report a problem