Skip to content

ops-118: Bootstrap script for remote branch agent setup #233

@tps-flint

Description

@tps-flint

Goal

Automate the repeatable parts of remote branch agent setup. Reduce SSH babysitting.

Scope

Create scripts/bootstrap-branch.sh that runs on the remote VM and handles:

  1. Bun install — check if bun exists, install if not, add to PATH in ~/.bash_profile
  2. GH_TOKEN setup — prompt for PAT, write to ~/.tps/secrets/<agent>-github-pat, add export to ~/.bash_profile
  3. Repo clone — clone tpsdev-ai/cli and tpsdev-ai/flair to ~/src/tpsdev-ai/
  4. Build verifybun install && bun run build on both repos
  5. Git identity — set user.name and user.email from agent name
  6. Branch config — create ~/.tps/branch.conf.json with WS transport on port 7000
  7. Workspace scaffold — create ~/.openclaw/workspace-<agent>/ with template SOUL.md, USER.md, IDENTITY.md, TOOLS.md

Constraints

  • Script takes agent name as first argument: ./bootstrap-branch.sh anvil
  • Idempotent — safe to re-run
  • Prompts for secrets (PAT), never hardcodes them
  • Prints a final checklist of what still needs manual setup (Flair keys, branch registration, Discord token)
  • Goes in scripts/ in the TPS CLI repo (public, useful for anyone setting up a branch)

Output

PR to main with the script. Branch: anvil/ops-118-bootstrap

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions