About github-outside-sandbox
GitHub Outside Sandbox is an agent skill that guides GitHub CLI and Git operations when sandbox restrictions block them. It requires narrow escalation, protects credentials, and verifies results from the host context.
Key features
- 01Retries blocked authentication checks outside sandbox
- 02Runs required GitHub network operations on host
- 03Escalates Git writes only when blocked
- 04Avoids token exposure and broad bypasses
- 05Verifies repository and GitHub state
Use cases
- 01Checking GitHub authentication after sandbox failure
- 02Running a blocked pull request or repository operation
- 03Pushing changes when Git writes are restricted
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ davidondrej/ skills --skill github-outside-sandboxAfter installing, type/github-outside-sandboxin Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project READMEGitHub Outside Sandbox
- Start normally. Escalate only the blocked command and only within the user's authorization.
- If sandboxed
gh auth statusfails, rerun it outside the sandbox before claiming authentication is broken. Never expose or copy tokens. - Run GitHub CLI network operations outside the sandbox when required:
gh repo ...,gh pr ..., and relatedghcommands. - Run Git writes outside the sandbox when
.gitis outside writable roots or errors mentionindex.lockorOperation not permitted:git add,git commit, andgit push. - Use the harness's official host-execution mechanism. In Codex, set
sandbox_permissions: "require_escalated", give a concretejustification, and use only a narrow safeprefix_rulewhen appropriate. - Never use shell wrappers, credential copying, or broad approval prefixes to bypass the sandbox.
- Verify from the host context with
git status -sb,git remote -v, and the relevantgh ... viewcommand. Ask the user to authenticate only if the host-context check also fails.
Comments
Markdown supported