Skip to content

feat(remote): add ssh port forwarding tool - #9

Open
luoye520ww wants to merge 2 commits into
codex/p0-remote-target-corefrom
codex/p0-remote-port-forward
Open

feat(remote): add ssh port forwarding tool#9
luoye520ww wants to merge 2 commits into
codex/p0-remote-target-corefrom
codex/p0-remote-port-forward

Conversation

@luoye520ww

Copy link
Copy Markdown
Owner

Summary

  • Adds a top-level remote_port_forward tool for SSH-bound threads.
  • Opens loopback-bound SSH tunnels, waits until the local preview port is ready, supports list/close cleanup, and disposes tunnels when a thread/runtime is cleaned up.
  • Keeps the feature outside delegated subagents and requires approval for production targets.

Tests

  • npm.cmd --prefix kun test -- src/adapters/tool/remote-port-forward-tool.test.ts src/remote/remote-port-forward-manager.test.ts src/remote/ssh-port-forward.test.ts
  • npm.cmd --prefix kun run typecheck
  • npm.cmd --prefix kun run build
  • git diff --check codex/p0-remote-target-core...HEAD

Stacking

Reintroduces the backend SSH remote target runtime on the current develop baseline without the picker UI or port-forward tool. The runtime primes per-thread remote targets before a turn, evicts cached bindings when threads are cleared or deleted, and keeps the feature behind explicit thread remote target state.
@luoye520ww
luoye520ww force-pushed the codex/p0-remote-target-core branch from 1340cb1 to 50e81c9 Compare July 10, 2026 07:33
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