Skip to content

[FEATURE] IDE-agnostic remote connection wrappers (cursor-remote, code-remote) #231

Closed as not planned

Description

@gerchowl

Summary

Create thin IDE-specific wrappers that connect to a devcontainer over Tailscale SSH. These sit on top of devc-remote.sh (#152) and the Tailscale key injection (#230) — they only handle the "open IDE via SSH remote" step.

Context

Currently devc-remote.sh does both infra (compose up) and IDE (open Cursor via devcontainer URI). These should be separated:

  1. devc-remote.sh — infra only: SSH to remote, inject Tailscale key, compose up, output Tailscale hostname. No IDE dependency.
  2. IDE wrappers — take a Tailscale hostname (or receive it from devc-remote.sh), open the IDE via SSH remote.

This separation allows:

  • Using any IDE (Cursor, VS Code, JetBrains Gateway, plain SSH)
  • Scripting without IDE dependency (CI, automation)
  • Composing the pieces differently per user preference

Proposed wrappers

cursor-remote.sh

#!/bin/bash
# Usage: cursor-remote.sh <tailscale-hostname> [workspace-folder]
cursor --remote "ssh-remote+root@${1}" "${2:-/workspace}"

code-remote.sh

#!/bin/bash
# Usage: code-remote.sh <tailscale-hostname> [workspace-folder]
code --remote "ssh-remote+root@${1}" "${2:-/workspace}"

Integration with devc-remote.sh

devc-remote.sh should:

  1. Output the Tailscale hostname to stdout (or export it)
  2. Optionally accept --open cursor|code|none to auto-invoke a wrapper
  3. Default to --open none (infra only) when Tailscale is active, --open cursor for legacy devcontainer-protocol mode

Scope

  • Create scripts/cursor-remote.sh and scripts/code-remote.sh
  • Refactor devc-remote.sh to separate open_editor() from compose lifecycle
  • Add --open flag to devc-remote.sh
  • Update docs

Depends on

Does NOT include

  • JetBrains Gateway support (future, different protocol)
  • Neovim/SSH (already works with plain ssh root@<hostname>)

Activity

  1. added
    feature
    area:workspace
    effort:small
    semver:minor
    on Mar 6, 2026
  2. c-vigo commented on Jun 23, 2026

    @c-vigo
    Contributor

    Scope update from the Nix/Claude migration (#625, #629): Cursor editor support is being dropped along with cursor-agent, so this should be de-scoped to code-remote only (VS Code vscode-remote:// URI). The cursor-remote half is no longer wanted — #153 has been closed for that reason.

  3. c-vigo commented on Jul 8, 2026

    @c-vigo
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workspaceeffort:smallfeaturesemver:minor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions