A Desktop session on a remote host¶
Claude Desktop on the owner's workstation can run a session on the Linux host over SSH. That session does
not load the host's installed plugins. It ships the client's own copies to the host, into
~/.claude/remote/plugins/<id>/<hash>/, and loads those. Two things get lost on the way:
- The file mode. The copies arrive as
-rw-------. Claude Code puts a plugin'sbin/on the Bash PATH, but its launchers then fail withPermission denied. So every plugin with abin/(git-flow,ops,workflow) has aSessionStarthook,hooks/restore-exec-bit.sh, that sets the bit on its own launchers again. The hook is silent, does nothing when the bit is set, and never fails the session. - The line endings, unless they are pinned. The copies are byte for byte what the Windows
checkout holds, so a file checked out with CRLF arrives with CRLF.
.gitattributesmakes every text file LF on every checkout (only*.batand*.cmdkeep CRLF), so the Windows copy and the Linux one are identical. A clone made before that rule keeps its CRLF files until they are checked out again.dev-env:dev-doctorfinds them (the Checkout line endings row) and prints the command that checks out only those files again.
Both measures are needed: .gitattributes cannot carry a file mode to a copy that is not a git
checkout, and the hook cannot repair a launcher whose #!/usr/bin/env bash line ends in a CR.
Workers started on the host with claude --bg are ordinary host sessions. They use the host's
installed plugins, so git-flow and workflow must be installed there too, or pr-watch and
coordinator are not on their PATH.
How plugins reach a machine, and why a change needs a version bump to arrive: marketplace.md.