Add Pi package and local extension management - #23
Merged
Merged
Conversation
ScottRBK
commented
Sep 6, 2026
Owner
Author
There was a problem hiding this comment.
can you please move the package management specific documentation to ./docs/development/package_management.md and add a pointer to it in the AGENTS.md - this is way too much bloat in an agents.md file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds persistent package provisioning so callers can install Pi tools before starting agent runs.
The shared API exposes
add_package,list_packages, andremove_package, with Pi as the firstimplementation and clear unsupported-operation errors from other adapters.
package directories. Local sources stay in place and survive removal of their registration.
instances load the persisted packages; callers retain responsibility for container isolation.
Pi can exit successfully even when saving settings fails.
Validation: the full unit/integration suite passed (1,119 tests), followed by all 47 focused package
tests after adding one further CI regression case. Five real Pi 0.85.1 smoke tests passed, covering
local registration, removal, loading by a fresh shell, symlink identity, and settings-write failure.
The smoke tests need no model requests or downloads. npm/Git command handling is covered with mocked
subprocesses.
Independent Astra review at x-high reasoning found one P2 issue: following symlinks changed Pi's
local package identities. The fix preserves link paths, with regression coverage for both linked
configuration directories and extension files. The reviewer verified the fix against real Pi and
reported no remaining actionable findings.
Closes #22.