Repository navigation
devenv: path:<dir> lines (devcloud 0.11.0) - #356
Merged
Merged
Conversation
…devcloud 0.11.0) The devenv skill and the devcloud spec (§7, I4, Decision Log) describe devenv/env's new path: lines, which the person's devenv runner now supports: env.sh puts each directory first on PATH, and a SessionStart hook in .claude/settings.local.json hands env.sh to sessions started outside devenv through CLAUDE_ENV_FILE. The first repository written with the skill ran its CI's Python from .venv, which a host session's python3 could not reach. Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
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.
What and why
devenv/envgets a third line form,path:<dir>. Each one names a directory relative to the repository root and puts it first on PATH, for the setup scripts and for sessions in the checkout. Before this, a repository whose CI runs its tools from a project environment had no way to hand that to sessions on a devcloud host. The first case was CI's.venv/binplaced first on PATH. On a host,python3was the system's and lacked the repository's packages, and literal values could only replace PATH.The runner's change is in the person's config repository and has landed there. This PR documents it:
devcloud/skills/devenv/SKILL.md: theenvbullet namespath:lines and when a repository needs one.How it reaches each consumer:
devenvlaunches and the shell-rc hook all source it.claudestarted in the checkout, read only.claude/settings.local.json. Itsenvvalues cannot prepend. For a project withpath:lines, the runner keeps one SessionStart hook there, recognised by a fixed marker. The hook appends a line sourcing.devbox/env.shto$CLAUDE_ENV_FILE, which Claude Code runs before every Bash command.PATH=line is refused.Evidence
path:bin, a realclaude -psession started in the checkout, not through devenv, ran the project'sbin/tool by name. That directory came first on its PATH..venv. With the new SKILL.md text the agent wrotepath:.venv/bin. With the old text it wrote no PATH handling and said a session would need a manualsource .venv/bin/activate && claudelaunch.Review
path:directory were resolved;Residue
None.
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)