Add Pi coding agent to dev VM profile #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/pi-adapter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Install the packaged Pi coding agent on the dev-VM profile and generate its global memory pointer, so an operator can run
pioryolo pifrom~/workwith provider API keys supplied at invocation time. No API key, provider default, model default, auth file, or settings file is committed or provisioned.Changes:
modules/ai-agents.nix: generate~/.pi/agent/AGENTS.mdfrommemoryCheckouts(oneRead shared instructions from …/adapters/pi/AGENTS.mdline per checkout, in the same order as the Claude and Codex pointers), written atomically via a temp file andmv -f; add apishell alias that starts in~/work; add apicase to theyolowrapper that passes only--approve(Pi 0.80.3's "Trust project-local files for this run" project-local resource trust override).hosts/dev/allod-dev/home.nix: installpkgs-unstable.pi-coding-agentbesideclaude-codeandcodex.flake.nix: add thepi-integrationcheck assertingpi-coding-agentis in the allod-dev home package list and grepping the generatedllmMemoryLinksactivation for the~/.pi/agentmkdir, the# Pi Adapterheader, both checkout pointer paths, and the atomicmv -f.Risk
R2 Medium. Modifies generated Home Manager activation, the dev profile package closure, and the shared
yolowrapper. Blast radius is limited to dev VMs; no privacy VM, host provisioning path, secret material, forge token, or provider credential changes. Rollback is a straight revert plus a human dev-VM rebuild; if a VM already activated the pointer and the operator wants Pi state fully absent, delete~/.pi/agent/AGENTS.md.Validation
nix build .#checks.x86_64-linux.pi-integrationpasses and fails closed on a non-atomic write. The generated allod-dev activation emits# Pi Adapterplus/home/allod/work/allod/memory/adapters/pi/AGENTS.mdand/home/allod/work/agent-memory/adapters/pi/AGENTS.mdin order;home.packagescontainspi-coding-agent;system.build.toplevel.drvPathevaluates.pi --versionis0.80.3andpi --helplists--approve.Merge order — do not merge until both land first
This is the final integration PR. Merge it only after:
allod/memory#20(the public Pi adapter), andagent-memoryPi adapter (adapters/pi/AGENTS.md), which must be added from a private dev VM.Until both are merged, a dev-VM rebuild would generate a
~/.pi/agent/AGENTS.mdpointer to an adapter file that does not exist yet.Closes allod/profiles#4