107 Commits
Author SHA1 Message Date
Ziad Arafat d3b9e0d333 Preflight the rootless podman subuid/subgid ranges in dot boxes
A fedora-toolbox pull dies inside the user namespace ('requested 998:998
for /var/lib/unbound') when the user has no /etc/subuid and /etc/subgid
range, and distrobox only shows podman's unpack error. dot boxes now
checks both files and prints the usermod + podman system migrate fix
before pulling; dot doctor reports the same condition.
tests/boxes-subid.sh covers range summing, small ranges and the hint.
2026-12-02 12:38:40 -07:00
Ziad Arafat 12258063ce remote-browser: make 'cli' a true passthrough and say so
cli used to share the flag parser with the built-in verbs, so a playwright-cli
argument that looked like ours could be swallowed. After 'cli' the args now go
through untouched, '--' is honoured, and the skill documents that the built-ins
are a convenience layer rather than a subset: goto/click/storage/tracing/route/
run-code/pdf/webmcp all work in the attached session with exit codes intact.
2026-12-02 12:29:47 -07:00
Ziad Arafat a21791c630 remote-browser: generalise deck-browser to any device, add a setup workflow
deck-browser assumed one host. remote-browser takes a profile per device
(transport ssh or direct, host, port, ws path, inspect URL) and gains
'profiles', 'setup' and 'check': check walks ssh -> port -> websocket
handshake -> attach -> tabs and prints the first failure instead of a
generic 'could not attach'. The skill ships references/setup.md, a checklist
for onboarding a device with the user, including per-browser toggle URLs, the
Chrome <136 fallback, and a symptom->cause table.
2026-12-02 12:25:45 -07:00
Ziad Arafat 8999c687f9 deck-browser: drive playwright-cli instead of a hand-rolled CDP client
Playwright documents connectOverCDP with a ws:// endpoint, and
playwright-cli attach --cdp=ws://127.0.0.1:9222/devtools/browser works against
the Deck's chrome://inspect toggle. That makes the 270-line stdlib CDP client
redundant: the wrapper is now 130 lines of bash that opens the tunnel, attaches
once and maps tabs/text/html/shot onto playwright-cli (plus a 'cli' passthrough
so agents can reach console, network and the rest without new code).
2026-12-02 12:20:43 -07:00
Ziad Arafat d306474f95 deck-browser: read the Deck's Chrome from arceus over CDP
The user browses on the Steam Deck; agents run on arceus. Chrome's per-instance
remote debugging (chrome://inspect toggle) exposes CDP only as a WebSocket at
/devtools/browser, so playwright attach cannot use it and the HTTP /json paths
return 403. bin/deck-browser speaks CDP directly with the standard library:
tabs, text, html, shot, status, plus an opt-in unsafe-eval. Read-only by design -
no click, type or navigate - because driving authenticated sessions is what gets
accounts restricted. Opens the SSH tunnel itself and reuses an existing one.

Registers the skill for every harness and tells agents it exists.
2026-12-02 12:18:08 -07:00
Ziad Arafat acb8191f13 Explain user-systemd noise instead of only repeating it
Home Manager's reloadSystemd reports the whole user manager before it
reloads anything, so one failed distro unit (xdg-desktop-portal* on a
host with no display, dbus-activated by an agent CLI) makes every
switch look broken. It starts none of those units.

dot doctor now prints the user session state, the failed units with a
reset-failed hint (--fix runs it), restart-looping units, and the units
in ~/.config/systemd/user that no home-manager generation owns. README
gains 'What belongs in dotfiles': the four gated units this repo
declares, the pi-workers file that is tracked but wired by hand, and
why portal and root units must stay out.

tests/doctor-systemd.sh covers the report and the --fix path.
2026-12-02 12:08:29 -07:00
Ziad Arafat 7ca1845213 Add dot sync for dotfiles-only updates
dot update also upgrades Flatpak apps, mise tools, Claude and checks for
missing apps, which is slow for a one-file change. dot sync pulls the
checkout with --ff-only and switches, nothing else; dot update
--switch-only is an alias. Serialise concurrent home-manager runs on
~/.config/dotfiles/switch.lock so two switches cannot fight over the Nix
store, and cover the path with tests/sync.sh.
2026-12-02 11:57:19 -07:00
Ziad Arafat c78b9a751d Package secretctl in every dotfiles profile 2026-12-02 10:56:09 -07:00
Ziad Arafat 769f43ab36 Split secretctl snapshots below the vault note limit 2026-12-02 10:41:54 -07:00
Ziad Arafat 9fdd63a6eb Add Bitwarden backup and restore for secretctl stores 2026-12-02 10:36:38 -07:00
Ziad Arafat 4b6d1a36fc Allow Chrome Flatpak to install web apps during setup 2026-12-02 10:32:04 -07:00
Ziad Arafat 74b24a267b Document required Authentik SSO for personal Vaultwarden 2026-12-02 10:17:46 -07:00
Ziad Arafat c9d7974d16 Document current Vaultwarden CLI setup 2026-12-02 10:10:27 -07:00
Ziad Arafat ea6b7ded17 Configure the Bitwarden server noninteractively 2026-12-02 09:50:06 -07:00
Ziad Arafat 86aed12d40 Select Bitwarden server by dotfiles profile 2026-12-02 09:48:36 -07:00
ziadarafat a69f108c27 Merge remote-tracking branch 'origin/main' 2026-12-02 09:20:38 -07:00
ziadarafat 50153a9a8e Save Pi worker and model configuration 2026-12-02 09:20:37 -07:00
ziadarafat d08d7ef03f Document handoff pipeline checks 2026-12-02 09:20:08 -07:00
Ziad cde0fd97fe bin/pi-spark: pi-lens covers post-edit checks, make verify-on-write opt-in 2026-12-01 15:57:59 -07:00
Ziad 665806b2cd bin/pi-spark: load pi-verify-on-write when the checkout is present 2026-12-01 15:32:25 -07:00
Ziad 3618086af0 pi-spark: seed small-model operating rules, raise Spark context to 64k
Baseline test: the 4B model made zero tool calls and invented mise syntax.
With an APPEND_SYSTEM of tool-first rules plus a golang-mise skill it built,
tested and ran a working CLI in 36 tool calls. Rules now live in
config/pi/small-model-APPEND_SYSTEM.md and are seeded per project; Ollama
serves 64k context, which measured equal or faster than 32k.
2026-12-01 15:07:19 -07:00
Ziad ffc0d6d83d bin/pi-spark: launch the pi agent against the local Spark model in tmux
Spark only implements thinking low/high, and pi's default reasoning level
(medium) makes its chat template raise, so the launcher pins the level and
drops the free-pi session env so pi reads ~/.pi/agent.
2026-12-01 11:56:23 -07:00
Ziad b70572b269 pi agent: spark models and a working wiki/lapis MCP set
- models.json: add spark:ablit and spark:4b from the local Ollama endpoint
  (OLLAMA_CONTEXT_LENGTH is now 32k on yveltal so long prompts fit)
- mcp.json: replace the stale ETV wikijs entry and WIKI_BEARER_TOKEN with
  the homelab wiki over _mcp and WIKI3_MCP_TOKEN, and add LaPis memory
2026-12-01 11:42:55 -07:00
Ziad Arafat c6199ec824 free-pi mcp: authenticate the wiki server with WIKI3_MCP_TOKEN
The wiki header looked up WIKI_BEARER_TOKEN, which does not exist in
secrets.txt, so free-pi reported 'wiki: failed' and the wiki tools were
missing from every session. Point the header at the secret the wiki-mcp
bridge and the skills already use.
2026-11-30 17:46:19 -07:00
Ziad Arafat e246c1328c Add Kontroll to Moonlander skill 2026-11-30 15:07:11 -07:00
Ziad Arafat 7bc67e42ac Add ZSA Moonlander skill for Riolu 2026-11-30 15:04:19 -07:00
Ziad Arafat b888fa5bc7 Verify Roku HDMI selection through active input status 2026-11-29 00:42:39 -07:00
Ziad Arafat df631c921c Add agent tool and skill for Roku TV HDMI-CEC 2026-11-29 00:37:15 -07:00
Ziad Arafat 49e2321493 handoff skill: point at tests/handoff.sh 2026-11-29 00:36:29 -07:00
Ziad Arafat 653d679dbc doctor: check the handoff pipeline; tests cover it end to end
dot doctor gains four checks (daemon active, weekly probe timer scheduled, every pool
lane usage=developer-api via the new bin/handoff-pool-check, and the pool readable by
free-agent), so a dead daemon or an expired lane stops being invisible.

tests/handoff.sh grows two checks for those and becomes hermetic: its daemon test runs
in a private HANDOFF_TMUX session and points every brief at a path that does not exist,
because a first version started a real worker inside the live session and spent a call.
The doctor assertion captures the output instead of piping into grep -q, which with
pipefail fails on SIGPIPE once the match is found.
2026-11-29 00:36:18 -07:00
Ziad Arafat 767f0f7f8e tests: exercise the handoff pipeline without spending a call
Ten checks in throwaway XDG dirs: the credential and freebuff gates, the task JSON
(backend, role, brief), a running task with no worker reported as orphan, the daemon
actually requeueing one, free-agent reading a custom pool, refusing a lane that is
not a developer API even when forced with --model, exiting 3 when every lane is out
of budget, and pause/resume. Nothing here reaches a provider.
2026-11-29 00:19:07 -07:00
Ziad Arafat c2499969f2 handoff: policy gate for delegated work
Three safeguards, because a queue that can drive any endpoint will eventually drive the
wrong one:

- every pool lane now declares usage=developer-api plus its terms URL; free-agent refuses
  a lane without it, even when forced with --model (Freebuff's client refused an
  agent-initiated brief and counted a strike, which is what this prevents);
- handoff submit refuses a brief containing an API key or private key, since free tiers may
  train on prompts;
- the skill documents the gate: developer APIs only, nothing private in a brief, never
  rephrase past a block.
2026-11-28 23:44:04 -07:00
Ziad Arafat 81b99618b5 handoff: refuse the freebuff backend, and say why
Freebuff's usage policy rejects prompts that read as a job handed to another agent
('Driven by another agent'), does not send them to the model, and counts the attempt
as a strike on the account. The queue must not drive it, so submit refuses the
backend with that explanation and the skill points at interactive use instead.
2026-11-28 23:32:38 -07:00
Ziad Arafat 7669aebd14 freebuff-agent: only the marker ends a run
An idle prompt with no marker is not completion: the TUI sits idle while it waits
for the model, and the 'idle for two polls' shortcut ended a run 20 s in with
nothing done. Wait for HANDOFF-DONE (or the timeout).
2026-11-28 23:22:09 -07:00
ziadarafat bf0170070e tools: version the free-model calibration graders
Both graders, with the reference-implementation note: the first two scoreboards
were grader bugs (a fixture mounting a path that does not exist, and a boundary
case reusing the previous case's fixture), not model failures.
2026-11-28 23:18:01 -07:00
Ziad Arafat 8d73a773b3 handoff: survive restarts, route backends, trust the TUI
- submit stores the backend in the task JSON (--backend freebuff works again).
- start_task reads it; the freebuff path calls freebuff-agent.
- ensure_session starts the tmux server in its own transient scope, so a
  'systemctl --user restart handoff' no longer kills every running worker.
- requeue_orphans puts tasks back in the queue when their window or process is
  gone (daemon crash, killed window, tmux server restart); 'handoff list' shows
  them as orphan instead of running forever.
- freebuff-agent only believes the task is finished when the marker stands alone
  on a line AND the TUI is idle, because the prompt we send contains the marker.
2026-11-28 22:05:28 -07:00
ziadarafat 5accb686d3 free-agent: pool matches reality, plus a ledger generator
Three lanes 404'd (minimax-m3.1-flash, nemotron-3-super, cohere north-mini-code),
one returned 400 on every attempt (qwen3.8-27b), and the two lanes that actually
perform best (nemotron-3-ultra-550b, nemotron-3.5-lightning) were not in the pool
at all. Each surviving lane now carries a note saying what it was measured doing.

free-agent-ledger turns the run history into the table the wiki page quotes, so
the numbers are regenerated rather than remembered.
2026-11-28 22:04:43 -07:00
Ziad Arafat acd1c86393 freebuff: enroll as a handoff backend
- bin/freebuff-agent drives the Freebuff TUI in its own tmux session and keeps the
  same brief -> report contract, so handoff can route to it with
  --backend freebuff (verified: queue -> worker -> diff -> tests pass).
- handoff list shows the backend when a run has no model id.
2026-11-28 21:57:09 -07:00
Ziad Arafat 710b5f59cb probe: weekly timer, and only dead lanes fail the unit
- handoff-probe.service + .timer (Mon 08:00, persistent) run free-agent --probe
  and append to ~/.local/state/free-agent/probe.log.
- probe now separates BUSY (429, quota, empty reply) from DEAD (retired slug,
  dead key, broken template); only DEAD fails the unit, so a weekly red status
  means the pool needs an edit rather than a provider being momentarily full.
2026-11-28 21:52:16 -07:00
ziadarafat 8d719140ba decypharr-phase1: add-latency harness
Runs on the media host so neither the Decypharr token nor the TorBox key leaves
it, and prints only HTTP codes and timings. Uses fresh shuffled hashes per run:
re-adding a hash the sandbox already knows answers in about a millisecond and
halves the measured median.
2026-11-28 21:31:39 -07:00
Ziad Arafat deb83c1a73 free-agent: --probe, OpenRouter free-lane rotation, Groq TPM reality
- OpenRouter free slugs rotate: minimax-m3.1-flash and north-mini-code are gone,
  nemotron-3.5-lightning and nemotron-3-ultra respond, so the pool is updated.
- --probe pings every lane with a tiny prompt and prints alive/dead with the
  provider's own error, which is how the rotation gets noticed.
- Groq free is TPM-bound (~8K/min): one agent turn nearly fills it, so those
  lanes now sit last and are marked small-prompt only.
- qwen3.8-27b on Groq fails its chat template and is dropped.
2026-11-28 21:18:26 -07:00
ziadarafat 499a109fd8 handoff: timezone-aware timestamp in queue entries
datetime.utcnow() is deprecated and printed a DeprecationWarning on every
submit; the queuedAt field is unchanged in format.
2026-11-28 21:11:49 -07:00
Ziad Arafat bbe587377a free-agent: only park a lane on a daily wall, not a per-minute 429 2026-11-28 21:11:37 -07:00
Ziad Arafat 68c85c45af free-agent: retry on provider retryDelay, zai flash maxTokens
- free-agent now sleeps the delay a free tier asks for (Gemini free Flash is
  5 req/min) and retries the same model before spending another lane.
- pool rpm lowered for the Gemini lanes to stay under the published limit.
- models.json: GLM flash ids with explicit maxTokens, otherwise Z.ai rejects
  the request with max_tokens must be in [1,98404].
- handoff skill so every harness knows the brief -> queue -> review loop.
2026-11-28 21:10:14 -07:00
ziadarafat 936f8a323e music-audit: fix-years sets date from the release group's first release
Keep the pressing date in originaldate so libraries still sort and display by
first release. Sweeps a whole library, not just the albums we re-tagged.
2026-11-28 21:07:21 -07:00
ziadarafat ddc7d806b1 models.json: provider keys through secretctl, not literals
Google, Groq, OpenRouter and zai authenticate via secretctl at call time, and
strict mode is off where the provider rejects it.
2026-11-28 21:07:21 -07:00
ziadarafat 8ce4afc9f4 free-agent pool and handoff queue
free-agent runs a task brief through a pool of free models with local rate-limit
accounting and failover; handoff queues briefs and runs each in its own tmux
window under a systemd user service, so workers survive a closed terminal and
come back after a reboot. WORKER.md is the protocol the worker follows.
2026-11-28 21:07:21 -07:00
ziadarafat 0bf6e660ff bin: cdp-key and cdp-read for harvesting keys without transcripts
Reveals a one-time API key in an attached Chrome and pipes it straight into
secretctl add, so the value never lands in a shell history, an argv, or an
agent transcript.
2026-11-28 21:07:21 -07:00
ziadarafat 6a024fe75e windows-vm: promptless install ISO via Microsoft's noprompt boot image
UEFI does not use bootfix.bin (that is BIOS-only); cDBoot prompts on its own and
cannot be dismissed without a keyboard device, which Proxmox reserves for
root@pam via -args. So the prompt is removed from the media instead: the ISO
ships efi/microsoft/boot/efisys_noprompt.bin, byte-for-byte the same size as the
El Torito UEFI image, so it overwrites it in place and the boot catalog stays
valid. build-noprompt-iso.sh does it and verifies the result.

Firmware now starts the CD with no keystroke, but OVMF stalls in Start boot
option and never reaches Setup, so the Packer build still does not complete.
2026-11-28 20:58:19 -07:00
ziadarafat 0a1eaab6e7 windows-vm: Packer schema corrected; the keystroke path is blocked at the API
boot_iso needs an explicit type, otherwise the block is silently ignored and the
VM is built with no installation media at all. The media prompt is still missed:
Proxmox gives Packer's VM only a usb-tablet, and its own remedy for that
(qemu_additional_args) is refused with 500 "only root can set 'args' config".
Documented in place for whoever runs this next.
2026-11-28 20:29:28 -07:00