cinder-link is a Go tunnel service and CLI for exposing local HTTP and WebSocket services over a secure WebSocket session.
Current repo shape:
cmd/tunneld: hosted service entrypoint for gateway, edge, and control-plane wiringcmd/tunnel: local CLI / agent entrypointinternal/gateway: WebSocket session handling and protocol logicinternal/edge: public HTTP/WebSocket ingressinternal/client: local agent session management and localhost forwardinginternal/controlplane: sessions, routes, quotas, and ownership logicplans/: design and implementation planstodos/: canonical backlog and execution-tracking files
- One long-lived client session over WebSocket is the transport model.
- Public HTTP requests and proxied WebSocket connections are multiplexed as yamux streams inside that session.
- The custom control plane and routing model is preserved.
- Near-term priority is the yamux transport migration (todo-88).
- API/SPA/dashboard work is currently deferred product scope.
The protocol-hardening and production-polish work is complete. All 8 items from the original execution order have landed and are in completed/ under their respective todo folders.
Current focus is the yamux transport migration tracked in todos/transport-migration-yamux/:
- todo-88: Migrate to yamux transport (single step, replaces the previous two-step binary-framing + yamux plan)
- PRD:
prd-yamux-transport.md-- full design, stream protocols, user stories, and migration boundary
The previous binary framing todos (87, 86) and their PRDs are superseded and deleted. yamux provides binary framing, flow control, and stream lifecycle in one step, making the intermediate binary envelope format unnecessary.
API/SPA/dashboard work remains deferred product scope.
Use todos/ as the source of truth.
Status meaning:
planning-: not yet approved for implementation or still decision-heavytodo-: ready for implementationreview-: implemented, waiting for human validationcompleted/: finished and verified
Recommended loop:
- implement from PRD / active
todo-items - review code and run verification
- update todo state to
review-or completed - sync relevant docs and plans
Preferred lightweight subagents:
review: check for duplicated logic, unjustified complexity, and real bugsdocs: keep plans, todos, and docs aligned with implemented behavior
Use them sparingly to keep token usage down.
This repo uses rtk as a command-output compression layer to reduce token usage.
rtk project reference:
- GitHub:
https://github.com/rtk-ai/rtk - Purpose: CLI proxy that reduces LLM token consumption on common development commands by filtering, grouping, truncating, and deduplicating output
Practical guidance:
- Shell commands are normally rewritten automatically via the OpenCode
rtkplugin, so manualrtkprefixes are usually not needed. - Expect common commands such as
git status,git diff,git log, andgo testto be filtered automatically. - If you need the direct raw command output instead of the filtered
rtkoutput, prefix the command withtimeto bypass the rewrite hook.
Examples:
git status
go test ./...
time git status
time go test ./...Use the raw time ... form only when the exact unfiltered command output matters for debugging.