Skip to main content

bussola

Review pull requests one function at a time, on your own machine.

Approvals that survive rebases, an AI reviewer that ranks what it finds, and comments that go straight back to GitHub.

CI PyPI Python 3.12 and 3.13 License: MIT

Quick start · Features · AI review · Guide · FAQ

bussola splits a pull request into a function, a method, module code and another function. Three are approved one by one, the AI review adds a high severity comment with a fix, and after a force-push the two units whose code did not change stay approved while only the module code needs another look.

▶ Watch the 2-minute video tour

Why

GitHub shows a pull request as a long list of files, and every force-push makes you read them again. bussola shows it the way you read code: as the functions, methods, classes and module code it touches, each with its own diff and its own Approve button. Approvals belong to the code, not to a commit, so after a rebase you only look at what really changed.

GitHub "Files changed" bussola
You approve a file, as Viewed a function, method, class or module code
After a force-push a file is unmarked if anything in it changed only units whose code changed need another look
Approved code changes you read the file again you see the diff from the version you approved
Runs on github.com your machine, on your local clone

Bussola is Italian for compass: it helps you find your way through a large change.

Quick start

uv tool install bussola
cd path/to/your/repository
bussola serve

The browser opens on your repository. Type a branch on its card and press Start review, or paste a pull request link in Settings > Open pull request. Then n jumps to the next unit to review and a approves it.

You need Python 3.12+ and git, plus the GitHub CLI signed in with gh auth login for pull requests. pipx install bussola works too. Tested on macOS and Linux; Windows is not tested yet.

Features

Feature What you get
Review by unit Functions, methods, classes, types and module code, parsed with tree-sitter for Python, TypeScript, JavaScript and Go. Other files are reviewed whole, a few lines at a time if you like.
Approvals that follow the code After a rebase or a force-push, unchanged units stay approved, a renamed function keeps its approval, and a changed one shows the diff from what you approved.
AI reviewer Optional. Reads the whole pull request, follows the code with your same lookups, and leaves line comments ranked 🔴 Critical to 🔵 Low, each with a fix. Ask the AI chat about any line, and it adds comments when you ask.
Editor-like navigation Cmd+click (Ctrl+click) a name for its definition or usages. Library names show their documentation.
Moved code, found Moved or extracted code is linked both ways, and marked identical when it did not change. Compare any two ranges, or a range with the clipboard.
GitHub, both ways Open a pull request from its link, reply to its comments, submit Comment, Approve or Request changes, and Merge. No GitHub? Review any two local branches.
Long reading sessions Changed words marked, split or unified diffs, line wrap, your code font, a shortcut for everything, and the themes you already have in VS Code, Cursor or Windsurf.
Local and private One SQLite file on your machine, a server on 127.0.0.1 with a session token, network only when you ask.

See every feature in action, with how to use it →

Everyday use

In the review page:

Key Action
n next unit to review
j / k next / previous unit
a approve or revoke the unit, or the selected lines
c comment
r Sync: fetch new commits, send your comments to GitHub
t show or hide the conversation
Cmd/Ctrl+click go to definition or list usages

From the terminal:

Command What it does
bussola serve Register the repository in the current folder and open the browser. Options: --repo, --port, --no-open.
bussola status <branch> Refresh a branch review and print the state of each unit.
bussola refresh <branch> --fetch Fetch, then record a new revision if commits changed.
bussola install-handler Open bussola:// links from GitHub, Slack or a terminal.
bussola --install-completion Tab completion for commands, options and branch names.

Optional .bussola.toml at the repository root:

base_branch = "develop"
file_level = ["**/migrations/*.py", "*.lock", "package-lock.json", "pnpm-lock.yaml", "*.min.js"]
ignore = ["vendor/**", "docs/**"]

file_level files are reviewed whole instead of parsed (setting it replaces the defaults above), and ignore files are left out of the review.

Every option is in the guide.

AI review

Off until you choose a provider in Settings > AI. AI review comments on the whole pull request, AI chat answers your questions and adds comments when you ask, Describe explains a unit, Rate impact sorts units by High, Medium or Low impact, and you can rewrite the prompts.

Provider Key
Claude Code CLI none: the claude you are signed in to runs in safe mode in an empty folder, so it cannot touch your files
Anthropic API ANTHROPIC_API_KEY default model claude-opus-5-5
OpenAI-compatible optional Ollama, LM Studio, vLLM or a hosted endpoint
  • Nothing leaves your machine until you start an AI action, and then only the code it works on. The first time, bussola names the provider and waits for Send code.
  • Keys stay in environment variables. bussola never writes them anywhere.
  • Only you pick the provider. A repository can turn AI off in its .bussola.toml, never on or somewhere else.

Models, endpoints, limits and prompts: AI providers.

Privacy and security

  • Local. Reviews, approvals and comments live in one SQLite file on your machine. Code is read only from git, never from your working tree.
  • Locked to you. The server listens on 127.0.0.1, every call needs a session token, and requests for other hosts are rejected.
  • Quiet. The network is used only for git fetch, gh (when you sync, or every few minutes while a pull request review is open) and the AI provider you chose.
  • No tokens stored. GitHub goes through your own gh login.

Details: Security and Data. Report vulnerabilities privately: SECURITY.md.

Status

Used on real pull requests, but young: until 1.0, commands, options and the UI may change between minor versions. Your data is kept across upgrades, and the database migrates itself at startup. What changed: CHANGELOG.md.

FAQ

Does my code leave my machine?

No. bussola reads your local clone, talks to your git remote when you sync and to GitHub through your gh login. With an AI provider, the code of an AI action goes to that provider when you start it: see what leaves your machine.

Do I need GitHub?

No. Any two branches of a local repository can be reviewed. GitHub adds pull request listing, comment import and sending comments back.

Does it replace GitHub's review UI?

It is a place to do the reading. Approvals stay with you and follow the code across force-pushes; comments go back to the pull request, where your team discusses them.

Can several people review the same branch?

Yes. Each person runs bussola on their own machine with their own approvals, and comments are shared through the pull request.

What about other languages?

Files that are not parsed are still reviewed, as whole files with line selections. A new language is a tree-sitter extractor in src/bussola/units/extractors/: see CONTRIBUTING.md.

Contributing

Bug reports, ideas and pull requests are welcome. CONTRIBUTING.md has the setup and the checks, docs/design.md how units, approvals, threads and the GitHub sync work.

License

MIT. Not affiliated with GitHub; GitHub is a trademark of GitHub, Inc. The UI bundles third-party libraries, listed in THIRD_PARTY_LICENSES.md next to the app; diagrams use elkjs (EPL-2.0).

Metadata

Release files for bussola 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bussola 0.4.0
File Size Uploaded Provenance Actions
bussola-0.4.0.tar.gz 2.1 MB Without provenance Details for bussola-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bussola 0.4.0
File Interpreter ABI Platform Actions
bussola-0.4.0-py3-none-any.whl Python 3 none any Details for bussola-0.4.0-py3-none-any.whl

Total release size: 4.4 MB

Release files / bussola-0.4.0.tar.gz

Download URL bussola-0.4.0.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
474d385838d8cc219b3658b52ec6c66d16c475115b7f3ae2109512ef8d1d1fe5
BLAKE2b-256 checksum
How to use checksums
909441628e0a7d659c56e92516465e1e61e267a951608dd68ee4e531356a547c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / bussola-0.4.0-py3-none-any.whl

Download URL bussola-0.4.0-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7f3f122fee398e5c704ac69a3b71399f602c44a38eab9d605ac6201af76a3dfb
BLAKE2b-256 checksum
How to use checksums
e5cefc5dfdf3f0301ae4666fa2adf14a7129b254c517e5277f4305577edffe21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for bussola 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page