Oyo is under active development. Expect rough edges and bugs in current 0.1 releases. Feel free to open an issue.
Read any change, comment on exact lines and work every thread through to resolved. Oyo keeps the whole review in your terminal.
Diff viewing is how you read a change. Oyo also stores comments, tracks replies, syncs review threads and gives agents the same workflow.
Review a working tree, branch, commit, range, jj change or stack. Add comments to lines and hunks, reply in threads and resolve feedback.
Oyo saves each review against its target. You can close the TUI and continue later.
Pull review comments from GitHub, GitLab, Codeberg or self-hosted Forgejo. Reply and push changes back. GitHub and GitLab also support remote thread resolution. Forgejo resolved state is read-only because its API has no resolve endpoint.
Point your coding agent at the Oyo skill. The agent can review a change, leave comments, work through feedback or control a running Oyo session.
Humans and agents use the same targets, comments and commands. See working with agents.
You can switch between scroll mode and step mode at any time.
Use scroll mode to read the whole change at once. You can scroll freely and jump between hunks.
oyUse step mode to read one edit at a time. You can also press play to move through the change automatically.
oy --stepPress s in the TUI to switch modes. Set stepping = true in your config to start in step mode.
Oyo helps you complete a review without leaving the terminal. You can:
- comment on lines, hunks and files
- reply in flat review threads
- resolve and reopen thread roots
- track comments that become outdated as the diff changes
- pull, reply to and push GitHub, GitLab, Codeberg and self-hosted Forgejo review comments
- use the review CLI and installed skill with coding agents
- read changes in scroll mode or step mode
- move between hunks and files
- find reviewed files with typo-tolerant path search
- find text in changed lines or complete reviewed file content
- switch between unified, split, evolution, blame and preview views
- open multiple views in tabs
- preview Markdown, JSON, YAML, TOML, CSV and images
- select and copy text with character, line and block selection
- see word-level changes
- search with regular expressions
- use syntax highlighting and
.tmThemesyntax themes - fold unchanged context with enclosing scope hints
- show blame hints
- refresh changed files in watch mode
- run commands from the command palette
- use keyboard and mouse controls
- animate or autoplay changes in step mode
- wrap long lines
- review Git and jj targets
- open saved review history with
oy log - run review hooks
- load configuration from XDG config paths
npm i -g @ahkohd/oyoThe Pi package adds the /oyo command. It points the coding agent at the Oyo review, walkthrough and control skills.
pi install npm:@ahkohd/pi-oyobrew install ahkohd/oyo/oyparu -S oyocargo install oyo --locked --forcenix profile add github:ahkohd/oyoOr run it without installing:
nix run github:ahkohd/oyooyoy --stepoy old.rs new.rsoy path/to/file.rsoy --stagedoy --range HEAD~1..HEAD
oy --range main...featureoy old.rs new.rs --view split
oy old.rs new.rs --step --view evolutionoy old.rs new.rs --step --autoplay
oy old.rs new.rs --step --speed 100oy logUse git difftool:
git difftool -y --tool=oyAdd this configuration to ~/.gitconfig:
[difftool "oy"]
cmd = oy "$LOCAL" "$REMOTE"
[difftool]
prompt = false
[alias]
d = difftool -y --tool=oyKeep your pager, such as less, moar or moor, for git diff.
Do not set core.pager or interactive.diffFilter to oy.
Register oy as a diff tool and add a shortcut:
[merge-tools.oy]
program = "oy"
diff-args = ["$left", "$right"]
[aliases]
d = ["diff", "--tool", "oy"]Run jj d or jj diff --tool oy.
You can also open jj targets directly:
oy @
oy feature
oy 'trunk()..@'Keep your pager for jj diff, jj log and other commands. Do not set oy as the global ui.diff-formatter.
Press m to comment on a line. Press M to comment on a hunk.
oyOyo saves review state for the current target. Review cards use indexed actions:
rareplies to the first visible commentvaresolves or reopens the first visible thread rootiaedits the first visible commentxadeletes the first visible comment
The index changes to b, c and later letters for other visible cards. Reply cards do not show a resolve action because resolved state belongs to the thread.
Every review action also has a CLI command. This means you and your agent can work on the same review:
oy review status
oy review status --json
oy review comment
oy review comment --unresolved
oy review comment new --file src/lib.rs --new-line 42 --body "Handle empty input."
oy review comment reply 1 --body "Fixed in the latest change."
oy review comment resolve 1
oy review comment unresolve 1The --unresolved filter hides outdated comments by default. Oyo marks a comment outdated when its anchored line changes or disappears. Use --unresolved --outdated to inspect stale unresolved comments.
All review commands use the same target rules. In Git, Oyo prefers the current branch's saved pull request review. It falls back to the working tree.
Use -t @ for the Git working tree. Pass a branch, commit or range with -t for another review:
oy review status -t development...feature
oy review comment -t featurejj defaults to @. If @ has one bookmark, Oyo treats that bookmark like a branch.
Use a jj revset to review a stack:
oy 'trunk()..@'
oy review comment 'trunk()..@'Pull and push provider review comments after authenticating gh, glab, cb or fj for the remote host:
oy review pull
oy review pushExport comments or apply review JSON:
oy review export --format json > comments.json
oy review comment apply comments.jsonSee the review command reference, agent workflows and review hooks.
Most navigation commands support counts. For example, 10j moves 10 steps forward and 5J scrolls down 5 lines.
Common defaults:
| Key | Action |
|---|---|
j, down |
Scroll down, or next step in step mode |
k, up |
Scroll up, or previous step in step mode |
l, right |
Next hunk |
h, left |
Previous hunk |
v |
Start character selection |
V |
Start line selection |
ctrl-v |
Start block selection |
y |
Copy selection or current line |
/ |
Search |
n |
Next search match |
N |
Previous search match |
tab |
Cycle view modes |
s |
Toggle step mode |
m |
Add or update a line comment |
M |
Add or update a hunk comment |
ctrl-s |
Save an inline comment |
ctrl-p |
Open the command palette |
ctrl-shift-f |
Search content across reviewed files |
R |
Refresh files |
? |
Show help |
q |
Quit |
See the keybinding and mouse reference.
Select text with a mouse drag or v, V and ctrl-v. Press y to copy and esc to clear.
Oyo first uses a system clipboard tool:
pbcopyon macOSwl-copy,xcliporxselon Linuxclipon Windows
Oyo falls back to OSC 52 clipboard support if these tools fail.
Create ~/.config/oyo/config.toml.
You can pass extra config files with repeatable --config FILE options. Oyo loads your user config first, then merges each extra file in order.
oy --config /tmp/oyo-plugin.tomlA minimal configuration looks like this:
[ui]
view_mode = "unified"
stepping = false
watch = true
line_wrap = false
[ui.diff]
fg = "syntax"
bg = true
highlight = "word"
[ui.syntax]
mode = "on"
[files]
panel_visible = true
panel_width = 30
panel_position = "left"Oyo loads the first matching user config file:
$XDG_CONFIG_HOME/oyo/config.toml~/.config/oyo/config.toml- the platform config directory, such as
~/Library/Application Support/oyo/config.tomlon macOS
Use these references for more configuration:
- config reference
- theme configuration
- keybinding actions
- review commands
- review hooks
- diff behaviour
- diff styling previews
The diff styling previews include screenshots.
cargo build
cargo test
cargo run --bin oy -- old.rs new.rs