Installing jcode on nix/NixOS: A Practical Unofficial Guide Jcode, an open-source AI coding agent from GitHub user 1jehuang, can be installed on Nix/NixOS via its official Nix build, but users must manually download, verify, and place the binary because pure Nix environments lack system package managers. The guide details steps including verifying the sha256 digest (e.g., 2faea9dc9f560e6f9a73da360d57b3c1d32f4ccfa90bbea2352237ba43472bb3 for v0.66.0), handling 'Text file busy' errors during upgrades, and symlinking the binary into jcode's build directories to ensure proper operation. Installing jcode on nix/NixOS: A Practical Unofficial Guide jcode https://github.com/1jehuang/jcode?ref=grigio.org is an open-source AI coding agent that runs as a local server and drives your editor. It's distributed as a single self-contained executable, which sounds simple, until you try to run itin a pure Nix environment https://github.com/1jehuang/jcode/issues/115?ref=grigio.org : no system package manager, no Nix channels, no /usr/bin/env . This post walks through installing the official Nix build fromGitHub releases, the surprising gotchas you will hit, and how to fix them. What you need - A machine where the Nix store is present and mounted: a bwrap-nix sandbox, NixOS, or any host with nix installed. The jcode binary is dynamically linked against the glibc shipped in the store, so the store must be there at runtime. curl and sha256sum for downloading and verifying the release.- A writable ~/.local/bin or any directory on your PATH . Step 1: Find the release jcode publishes Nix builds as GitHub releases tagged nix-vX.Y.Z , for example nix-v0.66.0 . Each release carries one asset per platform: jcode-nix-linux-x86 64 The release page shows the exact sha256 digest for every asset, so you can verify your download: curl -s https://api.github.com/repos/grigio/jcode/releases/tags/nix-v0.66.0 \ | jq -r '.assets | .name + " " + .digest' Step 2: Download and verify mkdir -p ~/jcode-install && cd ~/jcode-install curl -sSL -o jcode-nix-linux-x86 64 \ https://github.com/grigio/jcode/releases/download/nix-v0.66.0/jcode-nix-linux-x86 64 sha256sum jcode-nix-linux-x86 64 Compare the output against the digest published on the release page. For v0.66.0 it is: 2faea9dc9f560e6f9a73da360d57b3c1d32f4ccfa90bbea2352237ba43472bb3 jcode-nix-linux-x86 64 A checksum mismatch means a corrupted download or a tampered asset. Stop and re-download. Step 3: Confirm it is a real executable The Nix build is a genuine ELF binary, not a script. file should show a dynamically linked PIE with a Nix store interpreter: file jcode-nix-linux-x86 64 ELF 64-bit LSB pie executable, x86-64, dynamically linked, interpreter /nix/store/