Repository navigation
fix: smooth the first local run - #235
Merged
Merged
Conversation
- Comment out PI_PROXY_URL/PI_PROXY_API_KEY in .env.example; a copied .env no longer ships a half-configured gateway. - Point Pi at a repo-local .pi-agent dir (PI_CODING_AGENT_DIR) in pnpm dev and start_local.sh so a personal ~/.pi/agent setup does not load into the shell's agents. An exported value still wins. - Pin the pi version start_local.sh installs to the one the Dockerfile uses. - Run the Tangle CLI in the example bundle with `uvx tangle-cli`, which needs no prior install, instead of `uv run tangle`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
camielvs
marked this pull request as ready for review
December 1, 2026 16:32
Hi @camielvs. Before reviewing I ran my agents over the diff and what it depends on outside the repo: the Worth acting on
Checked and fine · what was run · not checkedWhat was run
Checked and fine
Good to know
Not checked
|
EdwardGallant
approved these changes
Dec 1, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
Thanks @EdwardGallant.
|
camielvs
added a commit
that referenced
this pull request
Dec 2, 2026
The "smooth the first local run" PR (#235) comments out both LLM gateway lines in .env.example, which is the better fix for the same placeholder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 2, 2026
camielvs
added a commit
that referenced
this pull request
Dec 3, 2026
…or it (#242) * fix: start the local shell on port 5173, where the Tangle app looks for it start_local.sh served the UI on 9010, but the Tangle app looks for a local shell at 5173, so following both quick starts left "Tangent isn't reachable". The README gets a "Connect an LLM" section and loses two typos, and .env.example no longer sets a placeholder PI_PROXY_URL that a copied .env would hand to every agent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: leave .env.example to the first-run fixes The "smooth the first local run" PR (#235) comments out both LLM gateway lines in .env.example, which is the better fix for the same placeholder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Description
Four small fixes for someone running the shell locally for the first time:
.env.exampleno longer ships a half-configured LLM gateway. It setPI_PROXY_URLto a placeholder and leftPI_PROXY_API_KEYempty, so every.envcopied from it was half-configured and the server quietly fell back to direct providers. Both lines are now commented out, with a note that they are only for routing through an LLM gateway and need to be set together.pisetup.pireads its config from~/.pi/agent(global extensions, settings, model store, logins). Anyone who already usespihad all of that loaded into every agent the shell starts; for example, a global extension that re-registered providers broke runs with a missing key.pnpm devandstart_local.shnow setPI_CODING_AGENT_DIRto a gitignored.pi-agentfolder in the repo, the same way they already set the session, bundle and memory paths. An exportedPI_CODING_AGENT_DIRstill wins.start_local.shpinspi. It installed the latest@earendil-works/pi-coding-agent, while the Dockerfile pins 1.6.0. It now installs the same version, set in onePI_VERSIONvariable.tangle-cliskill and the agent and prompt files told agents to runuv run tangle …, but nothing installs the CLI in the agent's workspace, so those commands failed. They now useuvx tangle-cli …(85 places in 12 files, mostly mechanical), which fetches the CLI from PyPI on first use and caches it.Screenshots
N/A
How to test
cp .env.example .envand start the server with onlyOPENAI_API_KEY(orANTHROPIC_API_KEY) set. Agents use the direct provider, and no gateway values come from the template.~/.pi/agent(for example a global extension), runpnpm dev, open a session and send a message. The extension is not loaded, and a.pi-agent/folder appears in the repo.git statusstays clean.PI_CODING_AGENT_DIR=~/.pi/agent pnpm devloads your personal setup again.pionPATH, run./start_local.sh..pi/package.jsonlists@earendil-works/pi-coding-agentat1.6.0.uvx tangle-cli --helpanduvx tangle-cli sdk pipelines validate --helprun without any install step.pnpm typecheck,pnpm lint,bash -n start_local.sh,pnpm pack:bundleandcd apps/server && pnpm testpass.Not run:
start_local.shorpnpm devend to end, or a real agent turn.Notes
piusers: anything stored under~/.pi/agentno longer reaches the shell's agents. That includes logins and API keys saved bypi's own login flow (auth.json), custommodels.json,settings.jsondefaults, global extensions, prompts and themes, and thefd/rgbinariespimanages (it may download them again into.pi-agent). Provider keys passed as environment variables work as before. ExportPI_CODING_AGENT_DIR=~/.pi/agentto opt back in..pi-agentchange doesn't affect the Docker images: they already run withHOME=/tmp.start_local.shinstallspiitself. Apialready onPATHis still used as-is, and the server's startup version check still applies.uvx tangle-clineedsuvwhere the agent runs and picks up the latesttangle-clirelease on first use. The shipped Docker images don't includeuv, so these commands don't run inside them yet (the olduv run tangledidn't either); the skill, Prime's prompt and the README prerequisites now say so.🤖 Generated with Claude Code