← Back to Pull requests

orca-ide: init at 1.4.274 #585502

Open
unknown opened this pull request with 636 lines diff across 7 files
View on GitHub
unknown unknown commented on Nov 09, 2026 14:33 UTC
Author

Orca is an MIT-licensed IDE for running coding agents in parallel git worktrees. I named it orca-ide because that is the name upstream uses on Linux, and GNOME's screen reader already has orca.

This supersedes #556070 by @imcvampire. It builds on that PR, credits them as a co-author and keeps them as a maintainer (happy to drop that if they prefer). It also responds to the review there.

On building from source: I think it is possible, but much harder than for a typical Electron app. The app ships daemon builds for nine platforms, which upstream builds on separate CI runners and checks against a sha256 manifest, and it bundles prebuilt npm binaries. The AUR source build needs a 585-line PKGBUILD, and upstream releases almost every day. So this repackages the upstream .deb, like other Electron apps in nixpkgs.

Orca runs on nixpkgs' electron_43 instead of the Electron that comes in the .deb. Electron sets process.resourcesPath and app.isPackaged from the path of its own binary, and Orca uses them in many places, including the Node processes it starts with ELECTRON_RUN_AS_NODE. A wrapper around electron would point all of them at Electron's own folder, so the package copies electron_43.dist with the binary renamed and Orca's resources inside. The copy is byte-identical to the nixpkgs build, so store optimisation can share it with other Electron 43 apps, and it updates with nixpkgs. It also keeps nixpkgs' EOL marking: with an insecure Electron in its place, orca-ide refuses to evaluate, the same as with a wrapper. Upstream builds and tests Orca with Electron 43, and each Electron major has breaking API changes, so update.sh switches the package to the major upstream uses.

bin/orca-ide is the CLI, the same as on the .deb, and the GUI starts from the desktop entry. I did not add the NIXOS_OZONE_WL flags, because Electron 38 and later already run natively on Wayland and the flags break the CLI (numtide/llm-agents.nix#11064).

The tools Orca runs are on its PATH: Xvfb for headless orca-ide serve, xdotool and xclip for computer use, xdg-open, and gdbus. Orca starts Xvfb itself, so xvfb-run is not needed. It uses gdbus to find an unlocked keyring on desktops like Hyprland, and without it secrets are stored unencrypted there.

orcad-template is left byte-identical, because Orca checks it against a sha256 manifest before it installs it on SSH hosts. The manifest also covers agent-browser, which the app runs itself. So the copy in resources is patched, and SSH deploys use an unpatched copy in libexec/orca-ide/orcad through ORCA_ORCAD_TEMPLATE_PATH. Orca's slot builder accepts this layout for all nine targets it supports.

The wrapper also sets ORCA_SERVE_RUNTIME=electron. The default runtime for orca-ide serve, orcad, needs nix-ld for the Node it downloads, and it finds no browser on NixOS. I plan to ask upstream about this, so the default can go away later.

The license is mit plus unfree, because the bundled @anthropic-ai/claude-agent-sdk is proprietary.

I tested it on x86_64-linux, and hardware WebGL works. My machine has nix-ld, so I also tested in a bubblewrap sandbox with /lib64 hidden. There the GUI starts on Wayland and X11, and orca-ide serve can open and read a page. I have not tested a full SSH session yet. update.sh updates both Linux hashes, and I left out darwin because I cannot test it.

Things done

  • Fits [CONTRIBUTING.md], [pkgs/README.md], [maintainers/README.md] and other READMEs.

  • Follows the [automation/AI policy].

  • Built on platform:

  • - [x] x86_64-linux
    - [ ] aarch64-linux
    - [ ] aarch64-darwin
  • Tested, as applicable:

  • - [x] Basic functionality of all binary files, usually in ./result/bin/.
    - [x] Ran nixpkgs-review on this PR. See [nixpkgs-review usage].
    - [ ] [Package tests] at passthru.tests.
    - [ ] [NixOS tests] in [nixos/tests].
    - [ ] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
  • Nixpkgs Release Notes

  • - [ ] Package update: when the change is major or breaking.
  • NixOS Release Notes

  • - [ ] Module addition: when adding a new NixOS module.
    - [ ] Module update: when the change is significant.

    Assisted-by: Claude Code (Claude Opus 5.5)

    [Package tests]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
    [NixOS tests]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
    [nixpkgs-review usage]: https://github.com/Mic92/nixpkgs-review#usage

    [CONTRIBUTING.md]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
    [automation/AI policy]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#automationai-policy
    [lib/tests]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
    [maintainers/README.md]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
    [nixos/tests]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
    [pkgs/README.md]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
    [pkgs/test]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test

    Diff: 636 lines (+477 / -159) across 7 files Reviewer: HigherOrderLogic Review duration: 32224m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.50) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 636 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.386
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #585502"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.4% (MEDIUM) · Higher = larger blast radius
    50.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 26.9% · Safe to merge
    26.9%
    Repository