Tractor Beam
Keeps a folder on your machine in continuous two-way sync with a Teleport
Beam. Work in the beam, keep the files on your laptop, delete the beam without
losing your work.
Setup
You need Beams access on a Teleport tenant, tsh 18.8 or newer (Teleport
Connect's bundled copy is found on macOS), and VS Code on macOS or Linux.
Install Tractor Beam from the VS Code Marketplace.
Log in with tsh. Logging in through Teleport Connect does not count:
tsh login --proxy=<your-tenant>.beams.sh:443
Open a folder and click Tractor Beam in the status bar. Accept the
mutagen download when asked. A beam is created, the folder is synced, and
a terminal opens on the beam in the work directory.
Usage
- Run
claude or codex in the beam terminal, or install pi. Edit files on either
side; both stay matched within seconds
- The status bar menu pauses or resumes syncing, opens a terminal, forces a
resync, edits the sync rules and deletes the beam. Deleting the beam keeps
your local files.
- A conflict in the status bar means both sides changed the same thing. The
menu's resolve item keeps your copy.
- Syncing runs in a small background process that continues while VS Code is
closed. Pause or delete the beam to stop it.
Sync rules live in .tractor-beam/mutagen.yml: edit the ignore list from
the menu and start syncing again. .git and .tractor-beam/ never sync. The
terminal command, region and paths to tsh and mutagen are under Settings,
Tractor Beam.
Files in your folder
Everything Tractor Beam writes stays in .tractor-beam/, which ignores itself
in git, so nothing shows up in git status and no repo needs a .gitignore
change. None of it is synced to the beam.
your-folder/
└── .tractor-beam/
├── .gitignore "*": keeps this directory out of git, itself included
├── mutagen.yml your sync rules (the template); edit from the menu
│ │
│ │ translated on every start, for the current beam
│ ▼
├── project.yml generated mutagen project: absolute paths, beam SSH address
├── project.yml.lock mutagen's marker that the project is running
└── beam.json which beam this folder is attached to
mutagen.yml is the only file you edit. Local paths are relative to the
folder; the beam side is written beam:<path>, relative to the beam's home.
project.yml is rewritten on every start, and mutagen runs from it.
project.yml.lock belongs to mutagen. Don't delete it or project.yml
while syncing: pausing would stop working and the next start would create
duplicate sync sessions.
beam.json records the beam's name, ID, cluster and expiry. Deleting the
beam from the menu removes it.
Folders set up by 0.2.3 or earlier have mutagen.yml at the top level. It is
moved into .tractor-beam/ the next time syncing starts. If you had committed
it, git will show it as deleted.
mutagen is MIT licensed, copyright Mutagen IO, Inc. The icon uses Microsoft's
radio-tower codicon, MIT licensed.