Skip to content

feat(server,cli): worktree service + git.checkout + CLI commands - #13

Merged
johnnyhuy merged 2 commits into
mainfrom
feat/worktrees-cli
Aug 5, 2026
Merged

feat(server,cli): worktree service + git.checkout + CLI commands#13
johnnyhuy merged 2 commits into
mainfrom
feat/worktrees-cli

Conversation

@johnnyhuy

Copy link
Copy Markdown
Contributor

Summary

  • Worktree service (@echohello/server): branch/pr checkout and worktree creation via the user's git binary (PRs fetched as pull/<n>/head:pr-<n>), refreshed/new workspaces broadcast as workspace_state. git.checkout now runs end-to-end; new worktree.list rpc; workspace registry gains update().
  • CLI wired over the daemon rpc/commands: provider list (with diagnostics), agent list, agent send (streams the reply until idle), worktree create/list.
  • Fixes the CLI default endpoint port: 6767 (Paseo's) → 17687.

Consequences

  • Worktrees are created as sibling directories named <repo>-<branch> and auto-registered as workspaces.

Testing

  • 49/49 server tests pass, incl. new worktree-service tests against real temp git repos
  • bun run typecheck clean, bun run lint 0 errors

johnnyhuy and others added 2 commits August 6, 2026 09:08
Branch/pr checkout and worktree creation via the user's git binary,
broadcasting refreshed/new workspace_state; worktree.list rpc; workspace
registry gains update().

Co-authored-by: opencode-agent <hello@sst.dev>
provider list (+diagnostics), agent list, agent send (streams the reply),
worktree create/list; fixes the default endpoint port 6767 -> 17687.

Co-authored-by: opencode-agent <hello@sst.dev>
@johnnyhuy
johnnyhuy merged commit 6f7bd16 into main Aug 5, 2026
7 checks passed
johnnyhuy added a commit that referenced this pull request Aug 9, 2026
* feat(server): worktree service + git.checkout end-to-end

Branch/pr checkout and worktree creation via the user's git binary,
broadcasting refreshed/new workspace_state; worktree.list rpc; workspace
registry gains update().

Co-authored-by: opencode-agent <hello@sst.dev>

* feat(cli): wire provider/agent/worktree commands over the daemon rpc

provider list (+diagnostics), agent list, agent send (streams the reply),
worktree create/list; fixes the default endpoint port 6767 -> 17687.

Co-authored-by: opencode-agent <hello@sst.dev>

---------

Co-authored-by: opencode-agent <hello@sst.dev>
johnnyhuy added a commit that referenced this pull request Aug 9, 2026
* feat(server): worktree service + git.checkout end-to-end

Branch/pr checkout and worktree creation via the user's git binary,
broadcasting refreshed/new workspace_state; worktree.list rpc; workspace
registry gains update().

Co-authored-by: opencode-agent <hello@sst.dev>

* feat(cli): wire provider/agent/worktree commands over the daemon rpc

provider list (+diagnostics), agent list, agent send (streams the reply),
worktree create/list; fixes the default endpoint port 6767 -> 17687.

Co-authored-by: opencode-agent <hello@sst.dev>

---------

Co-authored-by: opencode-agent <hello@sst.dev>
johnnyhuy added a commit that referenced this pull request Aug 9, 2026
* feat(server): worktree service + git.checkout end-to-end

Branch/pr checkout and worktree creation via the user's git binary,
broadcasting refreshed/new workspace_state; worktree.list rpc; workspace
registry gains update().

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>

* feat(cli): wire provider/agent/worktree commands over the daemon rpc

provider list (+diagnostics), agent list, agent send (streams the reply),
worktree create/list; fixes the default endpoint port 6767 -> 17687.

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>

---------

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
johnnyhuy added a commit that referenced this pull request Aug 9, 2026
* feat(server): worktree service + git.checkout end-to-end

Branch/pr checkout and worktree creation via the user's git binary,
broadcasting refreshed/new workspace_state; worktree.list rpc; workspace
registry gains update().

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>

* feat(cli): wire provider/agent/worktree commands over the daemon rpc

provider list (+diagnostics), agent list, agent send (streams the reply),
worktree create/list; fixes the default endpoint port 6767 -> 17687.

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>

---------

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
This was referenced Aug 9, 2026
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.

1 participant