Skip to content

Conversation

@blooop
Copy link
Owner

@blooop blooop commented Jan 17, 2026

Summary

  • Mount the entire ~/.ssh directory instead of individual files (known_hosts, config)
  • Add SSH_AUTH_SOCK environment variable to enable SSH agent forwarding in the devcontainer

Test plan

  • Verify SSH agent forwarding works inside the devcontainer
  • Confirm SSH operations (git clone, push, etc.) work with forwarded keys

🤖 Generated with Claude Code

Summary by Sourcery

Update devcontainer SSH configuration to support agent forwarding and simplify SSH file mounting.

Enhancements:

  • Mount the entire local ~/.ssh directory into the devcontainer instead of individual SSH config files.
  • Configure the devcontainer environment to expose SSH_AUTH_SOCK for SSH agent forwarding support.

Mount the whole ~/.ssh directory instead of individual files to enable
SSH agent forwarding without stale socket issues. The directory mount
allows the agent socket to come and go without breaking the container.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sourcery-ai
Copy link

sourcery-ai bot commented Jan 17, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Update the devcontainer SSH configuration to mount the entire ~/.ssh directory and enable SSH agent forwarding via SSH_AUTH_SOCK, so SSH-based git operations work inside the devcontainer.

File-Level Changes

Change Details Files
Mount entire local SSH directory into the devcontainer instead of mounting individual SSH files.
  • Replace per-file volume mounts for SSH files (e.g., known_hosts, config) with a single bind mount of the ~/.ssh directory
  • Ensure mount path inside the container preserves SSH client expectations (e.g., /home/vscode/.ssh or equivalent user home)
.devcontainer/devcontainer.json
Enable SSH agent forwarding inside the devcontainer.
  • Add SSH_AUTH_SOCK environment variable so the container can use the host SSH agent socket
  • Wire the SSH_AUTH_SOCK value to the mounted SSH agent socket path used by the host/devcontainer tooling
.devcontainer/devcontainer.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@blooop blooop enabled auto-merge January 17, 2026 13:40
@blooop blooop merged commit 9cc8cc3 into main Jan 17, 2026
7 checks passed
@blooop blooop deleted the feature/ssh_fixes branch January 17, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants