Skip to content

Add Worktrunk alongside Graphite with a Graphite-first worktree flow#20

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/integrate-worktrunk-dev-into-workflow
Draft

Add Worktrunk alongside Graphite with a Graphite-first worktree flow#20
Copilot wants to merge 3 commits intomainfrom
copilot/integrate-worktrunk-dev-into-workflow

Conversation

Copy link

Copilot AI commented Mar 16, 2026

This updates the dotfiles workflow to support Worktrunk without changing the existing Graphite-based stacking model. Graphite remains the stack manager; Worktrunk is added as the worktree layer for branch-isolated development.

  • Tooling

    • Adds Worktrunk to mise via the Cargo backend:
      • "cargo:worktrunk" = "latest"
    • Keeps the existing Graphite installation unchanged.
  • Shell integration

    • Initializes Worktrunk shell support from ~/.zshrc when wt is available.
    • Preserves the existing Graphite completion setup.
  • Graphite + Worktrunk workflow

    • Adds a small gtwt helper to bridge the two tools:
      • creates the branch with gt create
      • resolves the resulting branch name
      • switches into the matching Worktrunk worktree with wt switch
    • Includes explicit error handling for branch creation, branch detection, and worktree switching.
  • Docs

    • Documents the intended model clearly:
      • Graphite manages stacks
      • Worktrunk manages per-branch worktrees
    • Clarifies the fallback path for manually-created branches (gt track + wt switch).
    • Notes why the Worktrunk mise key is quoted in TOML.

Example:

gtwt my-stack-branch

Equivalent flow:

gt create my-stack-branch
wt switch "$(git branch --show-current)"

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • worktrunk.dev
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
  • zander.wtf
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

please find the best way to integrate worktrunk.dev into my workflow. make sure it works with graphite stacking cli


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Summary by cubic

Integrates worktrunk.dev with gt via a gtwt helper (runs gt create then wt switch), enables wt zsh init, installs "cargo:worktrunk" via mise, and refines docs with setup and usage (reload shell, quoted TOML key).

Written for commit e0843d4. Summary will update on new commits.

Copilot AI and others added 2 commits March 16, 2026 17:41
Co-authored-by: V1RE <20016103+V1RE@users.noreply.github.com>
Co-authored-by: V1RE <20016103+V1RE@users.noreply.github.com>
Copilot AI changed the title [WIP] Integrate worktrunk.dev into workflow with Graphite stacking CLI Add Worktrunk alongside Graphite with a Graphite-first worktree flow Mar 16, 2026
Copilot AI requested a review from V1RE March 16, 2026 17:45
Copilot finished work on behalf of V1RE March 16, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants