Tangible Shell for launching Halgorithem in a temporary Docker sandbox.
tsh is a small command-line shell for Tangible tools. Right now, it connects to Halgorithem by cloning the Halgorithem repository into a disposable Docker container, installing the needed Python dependencies, and launching the Halgorithem terminal UI.
tsh checks for internet access, starts a lightweight Python Docker container, clones Halgorithem from GitHub, installs the verifier dependencies, patches the sandbox to use lightweight local scoring, and opens tui.py.
-
Launches Halgorithem in Docker
tsh keeps the Halgorithem runtime isolated from your local Python environment. -
Simple shell command
Runconnect Halgofrom the interactive shell or pass it directly as a command. -
OpenAI API key passthrough
IfOPENAI_API_KEYis available in your environment, tsh passes it into the sandbox container.
- Python 3.11 or newer
- Docker Desktop or Docker CLI
- Internet access for cloning Halgorithem and installing packages
To run tsh, follow these steps:
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
source venv/bin/activate -
Install the required modules:
pip install -r Requirements.txt
-
Run tsh:
python main.py
-
Connect to Halgorithem:
connect Halgo
You can also launch Halgorithem directly:
python main.py connect HalgoInteractive shell:
python main.pyDirect command:
python main.py connect HalgoExit the shell:
exit- tsh does not install Halgorithem on your machine.
- The Docker sandbox is removed after the session closes.
- Halgorithem dependencies are installed inside the container each time tsh launches the sandbox.
