Repository navigation
Labels
enhancementNew feature or request
Description
Motivation
Windows is excluded today, and the README says so. The reason given — "named pipes with a mandatory auth line" — is accurate but was never tested; it came from reading the docs, not from trying.
There is a Windows machine on the same tailnet as the four supported hosts, so this is reachable in practice rather than hypothetical.
What actually differs
From the docs:
| macOS / Linux / WSL 2 | native Windows | |
|---|---|---|
| inbox | Unix domain socket | named pipe |
| auth line | optional | required — a connection whose first line isn't valid auth delivers nothing |
| access control | socket restricted to the OS user | key readable only by the OS user |
| own-child verification | process evidence (Linux), token (macOS) | token only |
| minimum version | v2.1.224 | v2.1.234 |
So three things change, not one:
- Transport.
post_to_socket()opensAF_UNIXunconditionally — that constant doesn't exist on Windows Python. A named pipe is opened as a file (\\.\pipe\...), not through the socket API. - Auth becomes mandatory. We currently send the message line on its own, which macOS and Linux accept. On Windows that connection is closed and nothing is delivered.
CLAUDE_CODE_MESSAGING_TOKENhas to be read and sent first — and it must come from the target session, so a script posting to a session it doesn't belong to needs the token from that machine's registry rather than its own environment. - Discovery.
sessions_dir()assumes~/.claude/sessions, andmessagingSocketPathis read as a filesystem path. Both need checking against what a Windows session actually writes; neither has been observed.
Also worth deciding
- WSL 2 counts as Linux, and the docs are explicit that a WSL 2 session and a native Windows session on the same computer cannot reach each other — different home directories, different socket types. If the goal is only "reach Claude Code on that box", installing under WSL 2 already works today with no code change. Native support is worth it only for sessions actually running on Windows.
- How does
--hostreach it? The remote path pipes this file intopython3 -over SSH. Windows OpenSSH with PowerShell as the default shell handles that differently, andpython3may bepythonor a Store alias.install.shis POSIX sh and won't run there at all — a Windows install path is a separate question from the transport.
Acceptance criteria
-
listandsendwork on a native Windows session, verified on the tailnet machine rather than assumed - Named-pipe transport chosen at runtime, without breaking the Unix path
- Auth line sent when the platform requires it, with the token sourced from the target session
- Discovery confirmed against a real Windows session record, not inferred
- A decision recorded on
--hostand installation for Windows, even if the answer is "use WSL 2" - README and
SKILL.mdupdated; the current "unsupported" note replaced with what is actually true - CI gains a Windows leg, or the exclusion is documented with a reason
Not in scope
Making a Windows machine a sender over --host may be considerably more work than making it a receiver. Receiving is the useful half — that is what lets a worker there be reached — and it is worth splitting if the sending side turns out to be a project of its own.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
abruption commentedon Sep 8, 2026
Windows 실기 테스트 결과 (2026-09-08)
환경: Windows 10 22H2, Python 3.10.0, Claude Code v2.1.263, Tailscale SSH 접속
세션 레코드 형식 (실측)
{ "pid": 13224, "pidDomain": "win32:<hostname>", "messagingSocketPath": "\\\\.\\pipe\\LOCAL\\cc-msg-<hash>", "name": "my-session", "status": "idle", "version": "2.1.263" }\\.\pipe\LOCAL\cc-msg-<hash><pid>.<hash>.key(JSON:peerToken,procStartFt,pidDomain)수정 내용 (
fix/windows-compat브랜치)pid_alive():os.kill(pid, 0)→ Windows에서ctypes.windll.kernel32.OpenProcess()사용discover(): named pipe 경로(\\.\pipe\) 인식post_to_socket(): Windows pipe 감지 시_post_to_pipe()로 분기 —.key파일에서 auth 토큰 읽어 auth line 전송 후 메시지 전송text=True→encoding="utf-8", 모든read_text()에encoding="utf-8"명시,main()에서 stdout/stderr reconfigure테스트 결과
--versionlist(세션 발견, named pipe 인식)list --jsonsend(named pipe + auth)send --dry-runsend --jsonupdate --checklist --host ubuntu@<remote>list --host --jsonsend --host --to <session> --dry-runIssue #22 acceptance criteria 현황
list와send가 native Windows 세션에서 동작 — 실기 검증 완료--host검증 완료 (사용자 직접 실행), 설치는pip install cc-peer(install.sh는 POSIX 전용)fix/windows-compat브랜치)windows-latest, Python 3.13)