You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
devc-remote gh:org/repo:branch — clone project repo and start devcontainer #236
After --bootstrap (#235) prepares a remote host with the devcontainer image, we still need a way to clone a project repo and start its devcontainer in one command.
If host:path is also present, REMOTE_PATH is set from it. Otherwise resolved later from remote config.
New variables: GH_REPO, GH_BRANCH, GH_MODE (0/1).
New function: remote_clone_project()
Inserted in main() after check_ssh but before remote_preflight. Only runs when GH_MODE=1.
Steps (single SSH call, remote bash script):
If REMOTE_PATH not set by user: read projects_dir from ~/.config/devc-remote/config.yaml, fallback ~/Projects. Set target_dir=$projects_dir/$repo_name.
If target_dir doesn't exist: git clone https://github.com/org/repo.git target_dir
If it exists: cd target_dir && git fetch
If branch specified: git checkout $branch
If fresh clone: run init-workspace.sh --no-prompts (derive SHORT_NAME from repo name)
Echo CLONE_PATH=<resolved_path> back to local script
Local side: parse CLONE_PATH from output, set REMOTE_PATH to it for the rest of the pipeline.
Clone URL
Uses https://github.com/${GH_REPO}.git — works without SSH keys for public repos, with gh auth or git credential helpers for private ones.
SSH call count impact
One new SSH call when GH_MODE=1, inserted before preflight. Test mocks need counter adjustment.
init-workspace.sh
Only runs on fresh clone (not on re-connect or branch switch). Passes --no-prompts with SHORT_NAME derived from repo name.
Test plan
Arg parsing:gh:org/repo, gh:org/repo:branch, combined with host:path, missing repo, invalid format
Clone function: fresh clone path, existing repo fetch path, branch checkout, init-workspace only on fresh clone
Integration: full pipeline with gh: target flows through to compose up
Closing as part of an agreed backlog cleanup (with @gerchowl). The remote-devcontainer / devc-remote / Tailscale initiative predates the Nix + Claude-native migration (#625) and has had no activity since Feb–Mar 2026. If remote provisioning is wanted again it will be re-planned from scratch after the devkit rename (#781). Reopen/refile if revived.
Activity
gerchowl commentedon Mar 8, 2026
Design
Arg parsing changes (
parse_args)Detect
gh:prefix on the second positional arg:gh:org/repo→GH_REPO=org/repo,GH_BRANCH=""(default branch)gh:org/repo:branch→GH_REPO=org/repo,GH_BRANCH=branchhost:pathis also present,REMOTE_PATHis set from it. Otherwise resolved later from remote config.New variables:
GH_REPO,GH_BRANCH,GH_MODE(0/1).New function:
remote_clone_project()Inserted in
main()aftercheck_sshbut beforeremote_preflight. Only runs whenGH_MODE=1.Steps (single SSH call, remote bash script):
REMOTE_PATHnot set by user: readprojects_dirfrom~/.config/devc-remote/config.yaml, fallback~/Projects. Settarget_dir=$projects_dir/$repo_name.target_dirdoesn't exist:git clone https://github.com/org/repo.git target_dircd target_dir && git fetchgit checkout $branchinit-workspace.sh --no-prompts(deriveSHORT_NAMEfrom repo name)CLONE_PATH=<resolved_path>back to local scriptLocal side: parse
CLONE_PATHfrom output, setREMOTE_PATHto it for the rest of the pipeline.Clone URL
Uses
https://github.com/${GH_REPO}.git— works without SSH keys for public repos, withgh author git credential helpers for private ones.SSH call count impact
One new SSH call when
GH_MODE=1, inserted before preflight. Test mocks need counter adjustment.init-workspace.sh
Only runs on fresh clone (not on re-connect or branch switch). Passes
--no-promptswithSHORT_NAMEderived from repo name.Test plan
gh:org/repo,gh:org/repo:branch, combined withhost:path, missing repo, invalid formatgh:target flows through to compose upgerchowl commentedon Mar 8, 2026
Implementation Plan
Issue: #236
Branch:
feature/236-remote-gh-clone-targetTasks
parse_argsrecognizesgh:org/repoas second positional arg —tests/bats/devc-remote.bats— verify:just test-bats(RED)parse_argsrecognizesgh:org/repo:branchwith branch extraction —tests/bats/devc-remote.bats— verify:just test-bats(RED)parse_argsacceptshost:pathcombined withgh:org/repo—tests/bats/devc-remote.bats— verify:just test-bats(RED)parse_argsrejectsgh:with missing repo —tests/bats/devc-remote.bats— verify:just test-bats(RED)gh:arg parsing inparse_args— setGH_REPO,GH_BRANCH,GH_MODE—scripts/devc-remote.sh— verify:just test-bats(GREEN)remote_clone_projectfresh clone path (mocked SSH) —tests/bats/devc-remote.bats— verify:just test-bats(RED)remote_clone_projectexisting repo fetch path —tests/bats/devc-remote.bats— verify:just test-bats(RED)remote_clone_projectbranch checkout —tests/bats/devc-remote.bats— verify:just test-bats(RED)remote_clone_projectfunction —scripts/devc-remote.sh— verify:just test-bats(GREEN)remote_clone_projectintomain()betweencheck_sshandremote_preflight—scripts/devc-remote.sh— verify:just test-bats(GREEN)gh:syntax —scripts/devc-remote.sh— verify:just test-bats## Unreleased—CHANGELOG.md— verify: visual reviewtest(remote): add failing tests for gh: target arg parsing
feat(remote): add gh:org/repo[:branch] arg parsing to parse_args
test(remote): add failing tests for remote_clone_project function
feat(remote): implement remote_clone_project and wire into main pipeline
docs(remote): add gh: target syntax to help text and changelog
c-vigo commentedon Jul 8, 2026
Closing as part of an agreed backlog cleanup (with @gerchowl). The remote-devcontainer /
devc-remote/ Tailscale initiative predates the Nix + Claude-native migration (#625) and has had no activity since Feb–Mar 2026. If remote provisioning is wanted again it will be re-planned from scratch after the devkit rename (#781). Reopen/refile if revived.