Skip to content

Bootstrap registers its temporary tree as the live Claude Code skills source, then deletes it #1756

Closed

Description

@ptr727

host-setup/bootstrap.sh --host runs install-skills.sh from the tree it extracted, by default under ~/.cache/host-setup/tree. bootstrap.ps1 does the same. scripts/skills_install.py registers the directory it runs from as the Claude Code marketplace, and that marketplace is a directory source that loads the tree in place. Unless --keep is passed, the exit trap then removes that tree.

What follows

  • On a freshly bootstrapped host, the Claude Code channel points at a directory that no longer exists, so it serves nothing.
  • The Codex and opencode copy is fine, because it is a copy.
  • As of Report the Skills Snapshot and the Live Checkout Separately #1755, --report names the missing checkout under live.reason. The exit code is the snapshot's verdict alone, so it still reads 0.

Options

  1. Have the bootstrap skip the Claude Code registration, and tell the user to register from a durable hub clone.
  2. Have the bootstrap clone the hub into a durable location, the fleet layout's ~/repos/ProjectTemplate, and install from there.
  3. Keep the tree when the Claude Code registration happens.

Found by the local strict review on #1755. This isn't fixed there, because it predates that change and the fix is a bootstrap design decision.

Activity

  1. ptr727 commented on Sep 24, 2026

    @ptr727
    OwnerAuthor

    Decision (maintainer, 2026-09-24): option 2, clone the hub durably. When the bootstrap's host mode finds no hub clone, it clones the hub into the fleet layout's base-clone location (~/repos/ProjectTemplate) and runs the skills installer from that clone rather than from the extracted tarball tree. The Claude Code marketplace then points at a checkout that persists, and a bootstrapped host ends up in the same shape as one set up by hand. Not started.

  2. ptr727 commented on Sep 24, 2026

    @ptr727
    OwnerAuthor

    Decision revised (maintainer, 2026-09-24): a bootstrap-owned durable tree, which replaces the earlier choice of option 2.

    On reflection, the maintainer set aside the durable git clone. The tarball was chosen so that the bootstrap needs no git, can't go stale, and never modifies a checkout that belongs to someone else. A clone at ~/repos/ProjectTemplate brings those problems back: an existing checkout, the question of which branch it sits on, and whether the bootstrap may fetch into it or change it.

    The chosen design:

    • The bootstrap extracts the resolved tree into a location it owns and keeps: ${XDG_DATA_HOME:-~/.local/share}/projecttemplate/hub on Linux, and the equivalent under %LOCALAPPDATA% on Windows. That tree is not a git checkout and not under ~/repos.
    • Each run that installs skills replaces the tree and marks it with the commit it resolved. It registers the Claude Code marketplace against that tree, so the marketplace names a directory that outlives the run.
    • The change applies to --host, --dev, and --skills, since --skills on its own hits the same dangling registration.
    • --report's live channel reads the commit marker wherever the registered tree is not a git checkout.
    • The clone uses HTTPS where a clone is involved at all. That no longer applies to the bootstrap, so this line is only a record of the question.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions