Repository navigation
Sidecar ports, worktree sidecars, a shared cache and depends_on scoping - #2
Merged
Merged
Conversation
A `ports` key may name a sidecar (`"gcs:4443"`): the host port is published on 127.0.0.1, the gateway forwards it to that sidecar, and the target gets it in `env`. The gateway now listens on each forward's host port, so the same port number on the target and a sidecar can't collide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013PjXpd9XvF5sFr4aVpnjZj
Open
14 tasks
- `worktree_sidecars: [lod]` mounts the worktree and git dirs into a sidecar and runs it as the invoking user, like the target. - `cache: /path` is one volume per namespace, repo and target, shared by every instance; no stop, purge or reap removes it. - A target with `depends_on` starts only the sidecars it names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013PjXpd9XvF5sFr4aVpnjZj
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.
Summary
x-agent.portskey may name a sidecar ("gcs:4443"); its host port is published on127.0.0.1and handed to the target inenv. The gateway listens on each forward's host port, so the same port on the target and a sidecar can't collide.worktree_sidecars: [lod]mounts the worktree and git dirs into a sidecar and runs it as the invoking user.cache: /pathis one volume per namespace, repo and target, shared by every instance; no stop, purge or reap removes it, andstatusprints its name.depends_onstarts only the sidecars it names;portsandworktree_sidecarsmust name one of them.References
lodworktree sidecar besideweb, a cachedKOLIBRI_HOMEtemplate, andweb/servertargets with their own sidecars.Reviewer guidance
--userworktree sidecars and cache chown are unexercised.ac-<ns>-cache-<repo>-<target>-<hash>) and that--localkeys it on the worktree path, never sharing the published cache.AI usage
Claude Code wrote this to a design I approved; verified by unit tests and the podman live suite.
🤖 Generated with Claude Code
https://claude.ai/code/session_013PjXpd9XvF5sFr4aVpnjZj