Repository navigation
Conversation
…d skills + env-driven model config - pi-models.json + pi-setup.sh verbatim from traust-scan@01ff871 - Containerfile.toolkit-plus-feeds: HARNESS=pi installs @earendil-works/pi-coding-agent (--ignore-scripts), bakes PI_CODING_AGENT_DIR=/opt/pi-agent with skills from the traust checkout's harnessing tree, and pi-setup writes models.json from $MODEL_BASE_URL at runtime (key stays $LLMAPIKEY for pi to interpolate)
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.
Ports the pi-harness work from traust-scan@01ff871 ("Add pi harness to toolchain image: node 22 + pi-coding-agent, baked skills, env-driven model config") into this repo.
What's included
$MODEL_BASE_URL(endpoint) +$LLMAPIKEY(key, interpolated by pi itself);pi-setupwrites the agent-dirmodels.jsonfrom the template at runtime sobaseUrlsubstitution works (pi does not env-interpolatebaseUrl).HARNESS=pioption:nodejs:22dnf module whenHARNESS != none(the source commit's_build/nodetarball was a traust-scan egress workaround, not needed here)npm install -g --ignore-scripts @earendil-works/pi-coding-agentforHARNESS=piENV PI_CODING_AGENT_DIR=/opt/pi-agentwith skills baked from the traust checkout's harnessing tree ($TRAUST_WORKSPACE/traust/harnessing— verified againstbootstrap.State.TraustRepo()=Workspace/traustandcmd/worker_test.go), copying everySKILL.mddir flat (stage-nested + cross-cutting)pi-models.jsoncopied asmodels.json.tmpl,pi-setup.shto/usr/local/bin/pi-setup, world-writable agent dirinternal/harness/pi.go), soinit --harness pi/run --harness piwork with no CLI changes.Credentials are never baked: only the binary + template;
$MODEL_BASE_URLcomes from the harness credentials Secret at runtime.