An Orca sidebar panel that sorts a branch's changes by kind, so you can tell at a glance whether it's mostly code, mostly tests, or hiding a migration.
Kinds: Runtime, Tests, Contracts, DB migrations, CI/CD, Config & rollout, Dependencies and Docs. Generated files are listed but not counted.
It compares everything in the working tree (committed, staged, unstaged and untracked) with the
branch's base: origin/HEAD, else origin/main, origin/master, main or master.
orca plugin install adamthewilliam/orca-diff-breakdownOrca lists what the plugin can access and prints the same command with --approve <fingerprint>.
Run that, then open the panel: show the right sidebar with the button in the top-right corner of
the window, then click the layers icon in the sidebar's tab bar.
It reads which workspace is focused, runs read-only git in it, and opens a file in Orca's editor
when you click it.
In Settings → Plugins → Diff Breakdown:
Compare against: the base ref, such asorigin/develop. Empty picks one as above.Auto refresh (seconds): 10 by default. 0 refreshes only when you switch workspace or return to the panel.
Add .orca/diff-breakdown.json at the repo root. Contracts are the usual thing to set:
{
"rules": [
{ "category": "contracts", "paths": ["crates/domain/**", "packages/api-types/**"] },
{ "category": "tests", "paths": ["apps/desktop/src/**/*_tests.rs"] }
]
}category:runtime,tests,contracts,migrations,cicd,config,dependencies,docsorgenerated.paths: case-insensitive globs. Without a/a glob matches the file name in any folder (*.proto); with one it's anchored at the repo root.**crosses folders,*doesn't."presets": falsedrops the built-in rules and keeps only yours.
Your rules win. Next comes .gitattributes (linguist-generated and linguist-vendored mean
Generated, linguist-documentation means Docs), then built-in presets for Rust, TypeScript/JavaScript,
Python, Go, JVM, .NET, Swift, Ruby, PHP and Elixir. Files named *.gen.* or *.generated.*, or in a
__generated__ folder, count as Generated in every repo. Anything left over is Runtime.
- Categories are per file, so Rust's inline
#[cfg(test)]modules count as Runtime. - Only repositories on your computer are read. Remote workspaces, on SSH hosts or paired Orca servers, aren't supported yet: the panel says so and points you to Source Control.
Orca transpiles the panel and worker TypeScript when it loads. The diff editor bundles @pierre/diffs, so after changing editor/diff.ts run bun run build and commit editor/dist/.
bun install && orca plugin types .
bun run typecheck && bun run lint && orca plugin test .
orca plugin dev watch . # load into Orca and stream logs; Ctrl-C unloadsSee CONTRIBUTING.md for pull requests and releases.
File icons are Catppuccin for VSCode Icons (MIT), in Catppuccin's Mocha colours on dark themes and Latte on light ones. See THIRD_PARTY_NOTICES.md.

