Personal binary packages for AI/LLM tools
  • Nix 60.4%
  • Shell 20.1%
  • JavaScript 16.5%
  • Just 3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
jbot 6ecce953a9
All checks were successful
buildbot/nix-eval Build done.
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
Merge pull request 'chore: update opencode' (#374) from automation/jkpkgs-refresh into main
2026-11-23 06:02:31 -05:00
.forgejo/workflows chore(openchamber): reuse a Gradle cache for the Android build 2026-11-09 23:05:01 -05:00
overlays chore: let nixpkgs own OrcaSlicer version and patches 2026-10-26 11:40:05 -04:00
packages chore: update opencode 2026-11-23 06:00:14 -05:00
scripts chore(openchamber): make the ledger gate check the patch directory too 2026-11-22 20:02:40 -05:00
.gitignore chore: stop tracking nix result symlinks 2026-10-01 13:12:00 -04:00
flake.lock chore(openchamber): move the base to the v2.8.0 release (baseline) 2026-11-22 13:26:36 -05:00
flake.nix chore(openchamber): move the base to the v2.8.0 release (baseline) 2026-11-22 13:26:36 -05:00
justfile chore(openchamber): record what each patch deserves upstream 2026-11-16 23:08:13 -05:00
README.md docs(android): install on the phone with dotman deploy phone 2026-11-13 15:35:12 -05:00

jkpkgs

Personal binary packages for AI/LLM tools.

Package lifecycle

The standard flow for adding or updating a package:

  1. Add packages/<name>/package.nix and version/hash metadata.
  2. Add the package output; derive checks from the package set.
  3. Register update metadata in dotman.
  4. Stage new files before Git-backed Nix evaluation.
  5. Run just check and just build [name...].
  6. Commit and push jkpkgs.
  7. Use the existing dotman propagation workflow.
  8. Verify the active profile, not only ./result.

Notes:

  • just build with no names builds all current-system packages.
  • dotman jkpkgs check and dotman jkpkgs list are fully offline; only dotman jkpkgs update touches the network.
  • An update may move several package versions at once — check the commit contents before propagating.
  • Active dotfiles paths live under ~/dev/dots/dotfiles-personal; this checkout is its sibling, ~/dev/dots/jkpkgs.

Herdr source lifecycle

Herdr is source-backed: the package builds from the upstream herdrdev/herdr source (pinned by the herdr flake input in flake.lock) with the explicit local patch queue under packages/herdr/patches applied on top. Source packages carry no release hashes — the flake lock pins the exact upstream source, unlike the hash-pinned binary and npm packages.

To change Herdr locally, edit the patch queue (or package.nix), verify with nix build .#herdr, then commit, push, and propagate as usual.

The jkpkgs-refresh timer invokes dotman jkpkgs update --package-only for the automated refresh. Source packages are tracked in one of two modes: Herdr follows upstream release tags (the evaluated package version must match the release), while release-less upstreams like herdr-drovr are commit-tracked — the flake input's locked rev is compared to the branch head and the patched build itself is the drift check. Either way the updater refreshes the flake input, builds the patched package, and stops before any PR is created if the version check, the patches, or the build fail. On success it stages only the flake.lock change and proposes it through the same reviewed Forgejo PR and Buildbot path as other updates. Consumer lock propagation and host deployment remain a separate, manual workflow.

Openchamber source lifecycle

openchamber and openchamber-desktop build from the openchamber flake input pinned to an upstream release tag, with the local patch queue under packages/openchamber/patches/. Upstream v2.7.0 absorbed the last two patch-queue behaviours that tracked its refactors: #6137 polls an open file by the path on screen (retiring symlink-file-refresh.patch), and #6275 settles a session move's idle check through readSessionsLiveActivity (retiring move-idle-coverage.patch). What remains local is the Command Code quota provider (upstream removed it in 1.21.0), the violet pending-question indicator, the wider chat column, and the Gitea/Forgejo across-repository reference picker.

Android app

The Capacitor Android app is built from the same patched source as the web and desktop packages. .forgejo/workflows/android-release.yaml runs on a push that changes the patch queue or the source pin, materializes openchamber.passthru.source.src plus bunDeps, builds a signed release APK in the android devShell, verifies the purple-question marker and the signature, and publishes the APK as a versioned Forgejo release.

Install on the phone with dotman deploy phone openchamber. It builds from this checkout, discovers the device over wireless ADB, and picks a version code above the installed one. The phone needs wireless debugging on and a reachable ADB connection; dotman deploy phone stops with an error when either is missing. The raw recipes are the manual fallback:

dotman deploy phone openchamber  # build and install on the phone
just android                     # signed release APK in result-android.apk
just android-debug               # debug APK in result-android-debug.apk
just android-install             # adb install -r result-android.apk

The release key is the agenix secret openchamber_android_signing (base64 keystore plus passwords). Keep a backup of the .jks outside agenix: losing it means future builds cannot update an installed app without another uninstall. The first patched install must replace the upstream-signed APK once; later builds signed with this key update in place.

openchamber-desktop takes its Electron major from upstream's packages/electron/package.json and fails evaluation by name when this nixpkgs has no matching electron_<major>. A desktop bump can therefore require a nixpkgs bump before the package evaluates at all — v2.6.1 pins electron ^45, which nixos-unstable gained on 2026-10-31.

Herdr plugin: herdr-drovr

herdr-drovr packages the upstream AVGVSTVS96/herdr-drovr plugin (fzf picker to move panes/tabs across workspaces; live agents survive) from the drovr flake input (pinned to upstream GitHub main) with two local patches (packages/herdr-drovr/patches/): the pane picker defaults to all workspaces instead of the current one (all-spaces-default.patch), and a finished move keeps focus at the source instead of jumping to the destination (keep-focus-at-source.patch). The build has no fork dependency: the patch queue carries the change exactly like Herdr's does. Upstream publishes no releases, so dotman tracks the drovr input by commit (flake.lock rev versus GitHub main's head): the refresh timer proposes the pin bump and the install-check build rejects a broken patch queue before any PR lands. forgejo:jeremy/herdr-drovr is a custody mirror only — its main is upstream plus the same patch commit, and a weekly Forgejo Action force-syncs its upstream branch so the patched lineage can never be orphaned by upstream force-pushes. Nothing builds from that mirror, and it runs no drift detection; the timer owns that.

The store path is the plugin directory: activate with herdr plugin link ${pkgs.herdr-drovr} (idempotent; relinking repoints the running server at a new build). The install-check phase runs upstream's node test suite against the patched source, so patch drift fails the build like Herdr's queue does. Regenerate the patch against the pinned input with git diff upstream/main -- package-lock.json pick-and-move.ts (the lockfile hunk renames the stale upstream package name).

Common commands

just check
just build
nix build .#pi

CI

Merges to main are gated on buildbot status contexts; the live list for this repo is the Forgejo branch-protection config (status_check_contexts) or dotman buildbot status jeremy/jkpkgs. CI evaluates all systems but builds only x86_64-linux, so darwin outputs (dsh on Cedar) are proven by evaluation here and by the actual download/build on the target machine at deploy time.

Pi fast-track workflow

Use this when pi needs a model metadata update before the normal automated update cycle has reached navi.

Normal released update

Prefer this whenever @earendil-works/pi-coding-agent is already published on npm.

  1. Check whether npm already has the version you need:
    npm view @earendil-works/pi-coding-agent version
    
  2. Update packages/pi/package.json and regenerate its lockfile:
    npm --prefix packages/pi install @earendil-works/pi-coding-agent@<version> --package-lock-only --ignore-scripts
    
  3. Update packages/pi/hashes.json:
    • version = the npm package version
    • npmDepsHash = the hash reported by a failed nix build .#pi, if it changed
  4. Verify the package:
    cd ~/dev/dots/jkpkgs
    nix build .#pi
    ./result/bin/pi --version
    ./result/bin/pi --list-models | grep '<model-or-family>'
    just check
    
  5. Commit and push jkpkgs.
  6. Activate it on navi through dotfiles:
    cd ~/dev/dots/dotfiles-personal
    dotman flake update jkpkgs
    dotman deploy --local
    
  7. Verify the active profile, not just ~/dev/dots/jkpkgs/result:
    hash -r
    command -v pi
    readlink -f "$(command -v pi)"
    pi --version
    pi --list-models | grep '<model-or-family>'
    

Emergency unreleased acceleration

Use this only when upstream pi has the needed change on GitHub but npm has not published it yet.

First consider a local-only override in ~/.pi/agent/models.json. That is fastest and avoids package drift if only one machine needs the model.

If the packaged pi must carry the change:

  1. Find the upstream commit and issue/PR that contains the metadata.
  2. Prefer backporting the upstream generated metadata over hand-editing one line. Pi model support commonly touches generator source, generated provider catalogs, tests, and changelogs.
  3. Make the temporary nature obvious:
    • version like 0.80.3-unstable-YYYY-MM-DD, or
    • a clearly named backport script with the upstream commit URL in a comment
  4. Add a build-time assertion that the expected model exists.
  5. Verify the package and active profile using the same commands as the normal update.
  6. Commit and push jkpkgs, then update/deploy dotfiles.

Do not mark the work done because ./result/bin/pi works. The user-visible binary is the one from the active profile (command -v pi).

Returning pi to normal releases

When npm publishes a pi release containing the temporary backport:

  1. Remove any temporary patch, source pin, or backport script.
  2. Set packages/pi/package.json to the released @earendil-works/pi-coding-agent version.
  3. Regenerate packages/pi/package-lock.json with: npm --prefix packages/pi install @earendil-works/pi-coding-agent@ --package-lock-only --ignore-scripts
  4. Set packages/pi/hashes.json.version to the real release version, with no unstable suffix.
  5. Refresh npmDepsHash from nix build .#pi if needed.
  6. Check that no temporary backport remains:
    rg 'unstable|backport|gpt-5\.6|temporary' packages/pi
    
    The model name may still appear only if it is part of the released package data, not a local patch.
  7. Verify and deploy through dotfiles as usual.

GPT-5.6 verification example

This is the checklist used for the GPT-5.6 fast-track incident:

hash -r
command -v pi
readlink -f "$(command -v pi)"
pi --version
pi --list-models | grep 'gpt-5\.6'
pi --print --no-tools --no-session --model openai-codex/gpt-5.6-sol 'Respond with exactly: hello world'

Expected final prompt output:

hello world