Scope ghosthost skill to bridge sessions; default TTL 2h; README tone - #6
Merged
Conversation
The ghosthost skill previously fired any time Claude saw a local file path with a "share/host/view" verb, regardless of session kind. That made sense when the motivating case was "Claude on my desktop, me on my phone", but it generated friction in plain desktop / CLI sessions where the user can already double-click the file. Gate the skill on `CLAUDE_CODE_ENVIRONMENT_KIND=bridge` (the env var Claude Code sets when launched via `claude remote-control`). In bridge sessions, fire automatically as before. In non-bridge sessions, fire only when one of three explicit overrides applies: (a) the user names ghosthost, (b) the user explicitly asks for a network-accessible URL (LAN, wifi, VPN, tailnet, public, coworker, Slack, PR), or (c) the user is smoke-testing the install. Documents the gating in SKILL.md (with a "Precondition" section that runs before "When to use"), CLAUDE.md \xa77 (per-user install + "When the skill fires"), README.md (Claude Code setup section), and INSTALL.md step 5. Folds in pre-existing CLAUDE.md polish for the install instructions: per-user preamble, PowerShell block, "Status on this machine" line. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
24h was overkill for the typical "view this on my phone for a few minutes" use case. Most shares were sitting in the active set for hours after they were last touched, lengthening the window in which a captured token is still useful. 2h covers the actual interactive use case while keeping the URL alive long enough that a backgrounded viewer doesn't expire mid-watch. Updates the constant in internal/config/defaults.go, the template default written to fresh configs, and every "24h" reference in documentation and CLI help text. Existing configs with explicit default_ttl values are untouched. Tests in internal/config and internal/cli still cover both 24h and arbitrary durations as roundtrip fixtures. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The previous README was reading too much like a sales page —
"Tech-Brovangelist" framing, "the thing it just made", "That's the
whole product", "v0.1-ish", "loud warning", "is overkill". Tightens
the lede to a plain description of what the tool does and the
motivating case. Splits the binary description into its own paragraph.
Neutralizes use-case bullets ("eyeball" -> "view", "is overkill" ->
plain phrasing). Tones the bind=0.0.0.0 warning ("loud" -> "at
startup") and the platform-support sentence ("still shaking out" ->
"still in progress").
Pure prose changes, no behavior or interface changes. The skill
scoping summary in the Claude Code setup section already landed in
the prior commit and is left intact.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
godspede
added a commit
that referenced
this pull request
Jul 17, 2026
Scope ghosthost skill to bridge sessions; default TTL 2h; README tone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three logically separate changes, kept as three commits:
feat(skill): scope ghosthost skill to remote-control (bridge) sessions— gates the skill onCLAUDE_CODE_ENVIRONMENT_KIND=bridge, with three explicit overrides for non-bridge sessions (named tool, network-link request, smoke-test). Updates SKILL.md, CLAUDE.md ยง7, README.md (Claude Code setup), and INSTALL.md step 5. Folds in pre-existing CLAUDE.md install-instructions polish (per-user preamble, PowerShell block, "Status on this machine" line).feat: change default share TTL from 24h to 2h— touchesinternal/config/defaults.go, the template default, and every "24h" reference in CLI help text and docs.docs(readme): tone down the README— pure prose rewrite; removes "Tech-Brovangelist" framing in lede, use cases, transport, "loud warning", and platform-support sentences.No public-API or JSON-schema changes; existing configs with explicit
default_ttlare unaffected.Test plan
go test ./...greengo build ./...clean