- Nix 60.4%
- Shell 20.1%
- JavaScript 16.5%
- Just 3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| overlays | ||
| packages | ||
| scripts | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| justfile | ||
| README.md | ||
jkpkgs
Personal binary packages for AI/LLM tools.
Package lifecycle
The standard flow for adding or updating a package:
- Add
packages/<name>/package.nixand version/hash metadata. - Add the package output; derive checks from the package set.
- Register update metadata in dotman.
- Stage new files before Git-backed Nix evaluation.
- Run
just checkandjust build [name...]. - Commit and push jkpkgs.
- Use the existing dotman propagation workflow.
- Verify the active profile, not only
./result.
Notes:
just buildwith no names builds all current-system packages.dotman jkpkgs checkanddotman jkpkgs listare fully offline; onlydotman jkpkgs updatetouches 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.
- Check whether npm already has the version you need:
npm view @earendil-works/pi-coding-agent version - Update
packages/pi/package.jsonand regenerate its lockfile:npm --prefix packages/pi install @earendil-works/pi-coding-agent@<version> --package-lock-only --ignore-scripts - Update
packages/pi/hashes.json:version= the npm package versionnpmDepsHash= the hash reported by a failednix build .#pi, if it changed
- 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 - Commit and push jkpkgs.
- Activate it on navi through dotfiles:
cd ~/dev/dots/dotfiles-personal dotman flake update jkpkgs dotman deploy --local - 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:
- Find the upstream commit and issue/PR that contains the metadata.
- Prefer backporting the upstream generated metadata over hand-editing one line. Pi model support commonly touches generator source, generated provider catalogs, tests, and changelogs.
- 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
- version like
- Add a build-time assertion that the expected model exists.
- Verify the package and active profile using the same commands as the normal update.
- 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:
- Remove any temporary patch, source pin, or backport script.
- Set
packages/pi/package.jsonto the released@earendil-works/pi-coding-agentversion. - Regenerate
packages/pi/package-lock.jsonwith: npm --prefix packages/pi install @earendil-works/pi-coding-agent@ --package-lock-only --ignore-scripts - Set
packages/pi/hashes.json.versionto the real release version, with nounstablesuffix. - Refresh
npmDepsHashfromnix build .#piif needed. - Check that no temporary backport remains:
The model name may still appear only if it is part of the released package data, not a local patch.rg 'unstable|backport|gpt-5\.6|temporary' packages/pi - 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