NVIDIA/boro
Rust
Captured source
source ↗NVIDIA/boro
Description: Linux patch review and testing CLI with a multi-stage agentic workflow
Language: Rust
License: Apache-2.0
Stars: 65
Forks: 9
Open issues: 3
Created: 2026-06-23T17:56:09Z
Pushed: 2026-09-19T21:20:01Z
Default branch: main
Fork: no
Archived: no
README:
Boro
What Boro is for
Boro is an AI-assisted kernel development CLI for developers working inside their own git tree. It is meant for the stages before a patch series is posted publicly, or for downstream work that may never follow the normal mailing-list review path: backports, distro kernel maintenance, security-fix integration, and other local patch-stack iteration.
The project is inspired by Sashiko. The two tools share the same underlying review prompts, but target different moments in the patch lifecycle. Sashiko is optimized for reviewing patch series after they appear on public mailing lists; Boro is optimized for interactive local review and repair while the developer is still shaping the series or carrying it downstream.
TL;DR
Install boro from this checkout:
cargo install --force --path .
Point it at any OpenAI-compatible chat/completions endpoint:
export BORO_URL=https://api.example.com/v1 export BORO_KEY= export BORO_MODEL=
Run a review from a Linux kernel git tree:
cd /path/to/linux boro review origin/master..HEAD
Passing a single commit ID is interpreted as abc123^..abc123.
Apply a series posted to lore, then review the commits created locally:
boro --source /path/to/linux apply \ --message-id 20260620192214.923500-1-oliver@liuxiaozhen.dev boro --source /path/to/linux review BASE..HEAD
This requires b4. Boro imports the posted series in a disposable worktree, applies each commit through the normal boro apply workflow, removes the worktree, and prints the exact BASE..HEAD range for boro review. b4 reconstructs the series at its declared or inferred base before boro applies it to the selected source HEAD.
Demo
https://github.com/user-attachments/assets/d4dc2533-9928-48b0-aca4-dbd9197398cb
Design and workflow
Synchronous execution
The whole pipeline runs synchronously in one process. A live multi-row status shows per-worker state and per-stage token counts as work happens.
Model roles and token accounting
Boro separates the bulk-of-work model from the strong-validator model.
BORO_MODEL drives regular broad and specialist discovery. In a normal review, BORO_VALIDATION_MODEL drives the initial complete-context fast review, validates only new regular-stage candidates, and renders the report. With --fast, the fast review instead uses BORO_MODEL.
The intended workflow is to keep the broad and specialist passes cheap while using a stronger model for the protected baseline, validation, and reporting.
For example, run a local model on the broad and specialist stages and point the validation stages at a stronger remote model. Token usage is broken out per stage in the run summary so you can see exactly where the budget went.
Review, build and test
Boro supports optional build and test validation: it can build each commit and, when requested, boot the resulting kernel under virtme-ng to run an AI-selected targeted test.
Subcommands:
boro review COMMIT_RANGE: multi-stage agent code review using kernel-focused
prompts (subsystem notes, patterns, checklists), with an LKML-style narrative summary at the end.
boro build COMMIT_RANGE- checks out each commit in its own worktree, builds
it with vng -b, then asks the model to triage the build log.
boro test COMMIT_RANGE- same asbuild, then boots the kernel under
virtme-ng and runs a model-picked quick test inside the VM (a matching kselftest, a userspace probe of the touched code path, or dmesg as fallback). The model triages the captured output and produces a summary plus any findings.
boro test --config CONFIG_FOO- buildsHEADwithCONFIG_FOO=ymerged into
virtme-ng's default config, asks the model to pick a quick test for that option from the Kconfig/source context, then boots and runs it. Explicit values are accepted, e.g. CONFIG_FOO=m, CONFIG_NR_CPUS=512, or CONFIG_CMDLINE="console=ttyS0 root=/dev/vda". Add --plan to generate a detailed, non-executed test plan. Plan mode can describe multi-step, long-running, or hardware-dependent tests because boro does not build or boot the kernel in that mode. When --plan is used with a multi-commit range, boro generates one integrated test plan for the whole range instead of one plan per commit.
The build and test modes feed real compiler output and real kernel runtime output back to the model, not just the diff text. That's what justifies running on your local machine instead of submitting a job somewhere.
AI-assisted cherry-pick
Boro also supports AI-assisted cherry-picking of commits that do not apply cleanly, automatically attempting to resolve conflicts.
Subcommands:
boro apply COMMIT_RANGE- applies a single commit or each commit in a range
such as BASE..TIP, oldest first. Boro stops at the first failure and leaves earlier commits applied. Each commit runs through the existing git cherry-pick -x -s workflow below; --dry-run only lists the series. If Git reports a failed or empty cherry-pick, boro first checks whether the commit subject is already present in path-limited history and skips it when found. Otherwise, boro looks for explicit commit references in the target commit message; any referenced commits that are not already in HEAD are tried first with git cherry-pick -x -s, then the target commit is retried.
boro apply --message-id MESSAGE_ID- fetches a posted series withb4and
applies it through the same oldest-first workflow. On success, boro prints the resulting local commit range and a copyable boro review command.
For remaining diff3 conflicts, BORO_MODEL proposes per-conflict resolutions and BORO_VALIDATION_MODEL gates them. Validator rejections are sent back to the main model for another resolution attempt, up to 10 rounds per hunk. If every hunk passes validation, boro rewrites the conflicted files, stages them, continues the cherry-pick, updates git's -x trailer to (backported from commit ...), and prints what the agent changed.
After the post-apply review pass, boro runs a source-only check over newly added struct field accesses and flags...
Excerpt shown — open the source for the full document.
Notability
notability 3.0/10New repo with low initial traction.