Interactive bash REPL over a Mesa repo using the Mesa Python SDK. No AI, no agent, no sandbox, just bash through an app-level virtual filesystem mount.
Connects to a Mesa repo via mesa.fs.mount() and gives you a $ prompt. You type bash commands (ls, cat, grep, find, etc.), you see output, all against files in a Mesa repo with no cloning and no local disk checkout.
# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create a .env in this directory (gitignored)
cp .env.example .env
# Now populate your .env file with the required values
# Run
uv run main.pyConnecting to your-org/your-repo via Mesa...
Connected to your-org/your-repo.
Type "exit" or Ctrl+C to quit.
$ ls
README.md src/ package.json
$ cat README.md
# My Project
...
$ exit
Bye!
Mesainitializes a Python SDK client for your org.mesa.fs.mount()mounts the repo at themainbookmark as a virtual filesystem.mesa_fs.changes.new()creates a working change frommainfor REPL edits.mesa_fs.bash()returns a bash instance backed by the virtual filesystem.- After each command, the REPL callback moves the
mainbookmark to the working change.
| File | Description |
|---|---|
main.py |
Environment loading, Mesa client setup, and virtual filesystem mount |
repl.py |
Tiny async REPL that executes commands with bash.exec() |
pyproject.toml |
uv project metadata and dependencies |
| Variable | Description |
|---|---|
MESA_ORG |
Your Mesa organization slug |
MESA_REPO |
The repository to mount |
MESA_API_KEY |
Mesa API key (get one here) |
- Python >= 3.10
- uv
- Mesa account with an API key