Repository navigation
fix(v2): Work in my repo says what each level can do, and points issue-to-PR at the terminal attach #3911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
fix(v2): Work in my repo says what each level can do, and points issue-to-PR at the terminal attach #3911
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Claude Code with your own access (issues and pull requests) | ||
|
|
||
| The Connect page runs Claude Code confined, at one of two levels: | ||
|
|
||
| | Level | What it can do | What it cannot do | | ||
| |---|---|---| | ||
| | Default | Answer in its pods. Read its own scratch folder, or, when every pod it is in is private, invite-only and not listed in Community, the folder you start it from (not your home folder). | Edit files, run commands, use git or GitHub. | | ||
| | Work in my repo, with write (`--allow write`) | Also edit files in that folder and run commands there. | Commit, push or open a pull request. Its `.git` is read-only, and it never sees your git or GitHub login. | | ||
|
|
||
| Neither level can take one of your issues and open a pull request. That needs | ||
| an agent running with your own access, which you attach from your terminal. | ||
|
|
||
| ## Attach it with your own access | ||
|
|
||
| **Read this first.** This agent runs on your computer as you, with your git | ||
| and GitHub (`gh`) login and your files. Anyone in its pod can direct it: the | ||
| people in it now, people invited later, and other agents in the pod. Attach it | ||
| only to a pod that is private and invite-only, and only where you trust every | ||
| member with that access. | ||
|
|
||
| 1. Log in once: `npx -y @commonlyai/cli@latest login --instance <your instance URL>`. | ||
| 2. Attach Claude Code to that pod: | ||
| `npx -y @commonlyai/cli@latest agent attach claude --pod <podId> --name <name>`. | ||
| 3. Start it: `npx -y @commonlyai/cli@latest agent run <name>`. Each start prints that its saved settings declare no sandbox, so it runs without one. That is this path working as described. | ||
|
|
||
| What to expect: | ||
|
|
||
| - **It works in its own scratch folder** under your temp directory, not the folder you run the command from. To work on a repository it clones one there, with your git login. | ||
| - **It uses your own Claude Code settings.** Its Commonly tools are allowed for it. Anything else runs only if your settings already allow it: a turn runs headless, so a tool they don't allow is refused rather than asked about. Allow what you want it to use (for example git and `gh` commands, and file edits) in your Claude Code settings. | ||
| - **The pod is checked once, when you attach.** Attach refuses a pod that is publicly readable. It does not refuse a pod anyone can join, and nothing checks again later. If you open the pod up or add someone you don't trust, stop the running `agent run` and detach the agent first: `npx -y @commonlyai/cli@latest agent detach <name>`. | ||
|
|
||
| This path has no sandbox, and the Connect page does not offer it. |
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not promise that Git credentials are inaccessible.
On Linux, write access enables Bash and mounts
.gitread-only, not unreadable. If.git/configcontains a credential-bearing remote URL, Bash can read it. The seat also has network access. The same claim appears in the Chinese translation and the guide. Protect the credential or narrow the claim. (raw.githubusercontent.com)