Skip to content

Scope ghosthost skill to bridge sessions; default TTL 2h; README tone - #6

Merged
godspede merged 3 commits into
mainfrom
feat/scope-skill-and-default-ttl
Apr 25, 2026
Merged

Scope ghosthost skill to bridge sessions; default TTL 2h; README tone#6
godspede merged 3 commits into
mainfrom
feat/scope-skill-and-default-ttl

Conversation

@godspede

Copy link
Copy Markdown
Owner

Summary

Three logically separate changes, kept as three commits:

  1. feat(skill): scope ghosthost skill to remote-control (bridge) sessions — gates the skill on CLAUDE_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).
  2. feat: change default share TTL from 24h to 2h — touches internal/config/defaults.go, the template default, and every "24h" reference in CLI help text and docs.
  3. 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_ttl are unaffected.

Test plan

  • go test ./... green
  • go build ./... clean
  • Final tree byte-identical to verified backup of intended state
  • CI passes on Windows + Linux runners

Zack Frank and others added 3 commits April 24, 2026 21:53
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
godspede merged commit 39adb75 into main Apr 25, 2026
2 checks passed
@godspede
godspede deleted the feat/scope-skill-and-default-ttl branch April 25, 2026 03:58
godspede added a commit that referenced this pull request Jul 17, 2026
Scope ghosthost skill to bridge sessions; default TTL 2h; README tone
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