Skip to content

SoulWayy/tailscale-devbox

Repository files navigation

Tailscale Devbox

Agent Brain in the cloud → Linux execution on your tailnet via SSH.

Like the Devin Brain/Devbox split, but with Tailscale instead of PrivateLink. No vendor lock-in, no public SSH — just MagicDNS + optional Tailscale SSH identity.

Use this template

Quick start (3 steps)

1. Create your copy

Click Use this template above, or:

gh repo create my-devbox-fleet --template SoulWayy/tailscale-devbox --public --clone
cd my-devbox-fleet

2. Configure (one command)

npm run init

Interactive prompts for your tailnet, primary/backup hosts, SSH user, and port.
Non-interactive:

npm run init:quick -- --primary devbox-1 --backup devbox-2 --user deploy --tailnet mynet.ts.net --acl-owner you@github

Generates:

  • config.yaml (gitignored — your fleet)
  • fleet/registry.yaml
  • generated/ssh-config.snippet

3. Bootstrap hosts + ACL

# On each Linux Devbox (after tailscale up):
bash scripts/bootstrap-ssh-node.sh --user deploy --port 22222

# Tailscale admin → paste templates/acl-ssh-fleet.jsonc (set tag owner)
# Workstation → append generated/ssh-config.snippet to ~/.ssh/config

ssh -p 22222 deploy@devbox-1.your-tailnet.ts.net

Optional Grok skill:

pwsh skills/install-skills.ps1   # Windows
bash skills/install-skills.sh    # Linux/macOS

Subagent development

Brain → specialist → subagent closed loop on Devbox:

npm run dispatch -- --specialist code-repo --objective "run tests"
npm run subagent -- --task-id task-abc12345
npm run eval -- --task-id task-abc12345

Three specialists: infra-ssh, code-repo, research-verify. See runbooks/subagent-development.md.

What's included

Path Purpose
scripts/init.mjs JS fleet config generator
scripts/dispatch.mjs Brain → Devbox task dispatch
scripts/subagent.mjs Subagent spawn prompt builder
brain/ Protocol + specialist registry
subagents/ Specialist PROMPT.md packs
scripts/bootstrap-ssh-node.sh Tailnet-only OpenSSH + Tailscale SSH
runbooks/ Bootstrap, failover, dispatch, subagents, ACL
skills/tailscale-devbox/ Grok agent skill
templates/ ACL + SSH config examples

Architecture

Brain (your orchestrator)
  └── SSH → Devbox-1 (primary)
            Devbox-2 (backup)
                  tailnet only (100.x)

Closed loop: discovery → plan → execute → verify → eval → ship.

Requirements

  • Tailscale tailnet
  • Linux Devbox host(s)
  • Node.js 20+ (for npm run init only)
  • SSH client

Validate template

npm run validate

License

MIT — see LICENSE.

Related repos

Repo Purpose
tailscale-devbox This template — SSH Devbox fleet
tailscale-sovereign-recipe Poke/MCP OAuth recipe (public recipe task list)
tailscale-ssh-fleet Private ops example (not for community fork)

About

Tailscale SSH Devbox fleet template — Brain dispatches to tailnet Linux hosts. Use this template + npm run init.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages