Repository navigation
Clarify context for capacities - #80
Merged
Merged
Conversation
Make security context more concise and actionable across all capabilities:
- Reduce verbose security warnings from 5-10 lines to 1-2 lines per capability
- Change tone from prohibitive ("NEVER do X") to informative guidance
- Make git signing warning conditional (only shown when signing is enabled)
Add SSH agent detection to prevent remote reconfiguration attempts:
- Check SSH_AUTH_SOCK availability at runtime
- Warn Claude NOT to reconfigure remotes or URLs when SSH unavailable
- Provide clear guidance: ask user to push from host or enable SSH forwarding
Add fast GPG key cache check to prevent 30s commit hangs:
- Use --batch --pinentry-mode cancel for non-blocking check (< 1s)
- Warn upfront if key is not cached to prevent commit timeout
- Acknowledge that cache status is at startup and may expire
Co-Authored-By: Claude Sonnet 4.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.
Summary
Improves capability security context to be more concise, actionable, and user-friendly. Reduces verbose warnings while adding critical runtime checks to prevent common issues.
Changes
Security Context Improvements
Affected capabilities:
chromium: 13 lines → 3 lines (removed usage examples, kept essential warning)docker: 5 lines → 2 lines (focused on key risks: --privileged, socket mounting)gh: 4 lines → 2 lines (scopes and verification reminder)node: 5 lines → 2 lines (npm audit and review guidance)python: 5 lines → 2 lines (venv and review guidance)rust: 5 lines → 2 lines (cargo audit and build.rs warning)gpg: 6 lines → 2 lines (socket forwarding explanation)network-isolation: Removed aggressive "NEVER/DO NOT" language, kept policy infoGit Capability Enhancements
1. SSH Agent Detection
SSH_AUTH_SOCKavailability at runtimeclaude-vm -A agent2. GPG Key Cache Check
--batch --pinentry-mode cancel+timeout 1(< 1 second)3. Conditional Signing Warning
commit.gpgsign = trueBenefits
Testing
Generated example context with all capabilities enabled to verify: