Spaceload — Workspace Context Switcher
A macOS CLI tool that records and replays developer workspace setups: browser tabs, VPN connections, IDE projects, and terminal sessions.
Overview
spaceload lets you snapshot your entire development environment and restore it later with a single command. Stop context-switching overhead and get back into flow faster.
Features
- Record workspace sessions (browser tabs, VPN, IDE, terminals)
- Replay saved workspaces in one command
- Export/Import workspace definitions as YAML
- List and manage saved workspaces
Installation
Via pip:
pip install spaceload
Via Homebrew:
brew tap tomjosetj31/spaceload
brew install tomjosetj31/spaceload/spaceload
From source:
git clone https://github.com/tomjosetj31/spaceload
cd spaceload
python -m venv .venv
source .venv/bin/activate
pip install -e .
Usage
# Start recording a workspace session
spaceload record my-project
# ... open your browser tabs, connect VPN, open IDE, etc. ...
# Stop recording and save the session
spaceload stop
# Replay a saved workspace
spaceload run my-project
# List all saved workspaces
spaceload list
# Inspect a workspace as YAML
spaceload show my-project
# Delete a workspace
spaceload delete my-project
# Import a workspace from a YAML file
spaceload import my-project.yaml
Recording Options
# Record only new things opened during recording (default)
spaceload record my-project
# Also capture everything already open when recording starts
spaceload record my-project --include-open
# or
spaceload record my-project -i
Privacy & Permissions
Spaceload runs entirely on your machine. It never sends any data to a server, the internet, or any external service. Everything is stored locally in ~/.spaceload/.
macOS will prompt you to grant the following permissions the first time they are needed:
| Permission | Why it's needed |
|---|---|
| Automation | Used to control browsers (Chrome, Safari, Arc), IDEs (VS Code, Cursor), terminals (iTerm2, Terminal.app, Warp), and Tunnelblick via AppleScript to read open tabs, project paths, and connection state. macOS will show a dialog for each app the first time. |
| Accessibility | Used via System Events to list running processes and read window titles (e.g. to detect which IDE projects are open). |
| Full Disk Access | Required to read Firefox's session files (~/Library/Application Support/Firefox/) and VS Code/Cursor workspace state (~/Library/Application Support/Code/ or Cursor/). Without this, those adapters fall back to window-title heuristics. |
You can review and revoke these at any time in System Settings → Privacy & Security.
Supported Integrations
Specialized Adapters (Rich Tracking)
These apps have dedicated adapters that track specific details:
| Category | Supported | What's Tracked |
|---|---|---|
| Browser | Chrome, Safari, Arc, Firefox | Individual tab URLs |
| VPN | Tailscale, WireGuard, Cisco AnyConnect, Mullvad, OpenVPN, Tunnelblick | Connection state & profile |
| IDE | VS Code, Cursor, Zed | Open project/folder paths |
| Terminal | iTerm2, Terminal.app, Warp, Kitty | Working directories per session, commands (with shell hook) |
Generic App Tracking
Any other application you open during recording is automatically tracked as an app_open action with the app name. This includes apps like Notes, Calendar, Slack, Spotify, etc.
Firefox Support
Firefox tab reading requires the lz4 library to parse session files:
# Install with Firefox support
pip install -e ".[firefox]"
# Or install lz4 separately
pip install lz4
Without lz4, Firefox tabs won't be read during recording, but URLs can still be opened during replay.
Terminal Command Tracking
To track terminal commands during recording, add the shell hook to your shell config:
# For zsh (~/.zshrc):
eval "$(spaceload shell-hook zsh)"
# For bash (~/.bashrc):
eval "$(spaceload shell-hook bash)"
Then restart your shell or run source ~/.zshrc.
How it works:
- Commands are only tracked when a recording session is active
- The hook checks for the daemon socket before sending (no overhead when not recording)
- Commands run in the background so they don't slow down your shell
- During replay, commands are displayed but not auto-executed (for safety)
Smart Browser Filtering
The recorder automatically filters out:
- New tab pages (
chrome://newtab/,about:newtab, etc.) - Internal browser pages (
chrome://,about:,safari-resource:, etc.) - Intermediate URLs (pages open less than 3 seconds)
- Redirect chains (multiple URLs from same domain in quick succession)
Logs & Debugging
Logs are written to ~/.spaceload/ for debugging:
# Daemon log (recording)
cat ~/.spaceload/daemon.log
# Replay log
cat ~/.spaceload/replay.log
Architecture
- CLI (
spaceload/cli/) — Click-based command interface - Daemon (
spaceload/daemon/) — Unix socket server that records actions in the background - Store (
spaceload/store/) — SQLite-backed persistence layer with YAML export/import - Replayer (
spaceload/replayer/) — Replays recorded action sequences - Adapters (
spaceload/adapters/) — Per-integration plugins (browser, VPN, IDE, terminal)
Tech Stack
- Python 3.11+
- Click for the CLI
- SQLite (stdlib) for persistence
- PyYAML for export/import
- Unix domain sockets for CLI↔daemon IPC
Contributing
Contributions are welcome! Whether it's a bug fix, a new adapter for an app you use, or a documentation improvement — all PRs are appreciated.
Please read CONTRIBUTING.md for guidelines on how to set up the project locally, run tests, and submit a pull request.
License
MIT — see LICENSE.
Metadata
Release files for spaceload 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spaceload-0.2.0.tar.gz | 92.8 kB | With provenance | Details for spaceload-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spaceload-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for spaceload-0.2.0-py3-none-any.whl |
Total release size: 176.7 kB
Release files / spaceload-0.2.0.tar.gz
| Download URL | spaceload-0.2.0.tar.gz |
|---|---|
| Size | 92.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d557cb4591d8c19f7d1a405883f041340c104c330baeca84f7d2da1e22ee825
|
|
BLAKE2b-256 checksum How to use checksums |
933d79b7b4394bbce1134257a838271a8b7274641e024b64ada3ec33e3fb3379
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logRelease files / spaceload-0.2.0-py3-none-any.whl
| Download URL | spaceload-0.2.0-py3-none-any.whl |
|---|---|
| Size | 83.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73d41cee07a8aa801404356fa2343f702383d40b40f23d68a3c21d1f2f630470
|
|
BLAKE2b-256 checksum How to use checksums |
c46236fa1253d437034d8e7ab7ed1412da68ff746534897c5b48b8fee9c3b669
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logSecurity for spaceload 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for spaceload-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.