refactor(install-claude-sidecar): adopt host-wrapper + .sidecar/shado…#13
Open
mithredate wants to merge 1 commit into
Open
refactor(install-claude-sidecar): adopt host-wrapper + .sidecar/shado…#13mithredate wants to merge 1 commit into
mithredate wants to merge 1 commit into
Conversation
…w flow The previous workflow performed compose-file surgery — adding claude and socket-proxy services to the user's compose.yml, with inline /dev/null shadow mounts per discovered credential file. That coupled the skill to the user's compose layout and made cross-project sessions impossible (every project an island). New workflow targets the host-wrapper architecture in claude-sidecar: - The user's compose.yml is NEVER touched. All claude-sidecar wiring goes into a generated compose.sidecar.yml emitted by `bridge gen-overlay`, merged via `docker compose -f` at `claude-sidecar up`. - Sensitive paths live in a committed `.sidecar/shadow` (canonical per repo). Cross-project mounts honor the mounted repo's own shadow file. - First-time setup installs ~/.local/bin/claude-sidecar and creates ~/.claude-sidecar/config.yaml; detected on subsequent runs and skipped. - Sibling-repo extra_mounts are asked once and stored in user config; the skill ensures every extra-mounted repo has its own .sidecar/shadow before allowing the mount. - .gitignore gains compose.sidecar.yml + compose.sidecar-local.yml + .credentials.json (the shadow file itself is committed). references/credential-shadowing.md updated to describe pattern-based discovery (the part still useful) and document the .sidecar/shadow format + the three-layer defense (mount, entrypoint check, drift warning). Co-Authored-By: Claude Opus 4.7 (1M context) <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.
No description provided.