1.1 KiB
1.1 KiB
METATRON — lightweight Ollama terminal harness
A minimal terminal harness for talking to Ollama (hosted on nightmare 10.30.20.29:11434)
with full system access. Type metatron to launch.
Flow
- Model selection — fetches the live model list from nightmare, numbered menu.
- Chat — streaming REPL against the selected model.
- System access — two ways:
!command— run a shell command directly (e.g.!dir,!whoami).- The model calls
run_commandnatively (function calling) to execute commands itself.
Requirements
- Python 3.11 (stdlib only —
urllib,subprocess,json). No pip deps. - Network reach to
10.30.20.29:11434.
Install (Commando VM)
mkdir C:\Tools\metatron
copy metatron.py metatron.bat C:\Tools\metatron\
setx PATH "%PATH%;C:\Tools\metatron"
Then metatron from any shell.
Hardcoded
- Ollama URL:
http://10.30.20.29:11434 - System prompt +
run_commandtool definition - Only the model list is dynamic (fetched from
/api/tags).
Controls
| Input | Action |
|---|---|
exit / quit |
leave |
!<command> |
run a shell command directly |