5c1e487a3ca3a64dac81e9da7cca23f5edae2318
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 and internet search. 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 —
!commandruns a shell command directly, and the model can also callrun_commandnatively (function calling). - Search —
?querysearches the internet (SearXNG), and the model can callweb_searchnatively.
Requirements
- Python 3.11 (stdlib only —
urllib,subprocess,json). No pip deps. - Network reach to
10.30.20.29:11434and10.30.20.35:6969.
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.
Controls
| Input | Action |
|---|---|
exit / quit |
leave |
!<command> |
run a shell command directly |
?<query> |
search the internet (SearXNG) directly |
Hardcoded
- Ollama URL:
http://10.30.20.29:11434 - SearXNG URL:
http://10.30.20.35:6969(self-hosted meta-search, CT 516) - System prompt +
run_command/web_searchtool definitions - Only the model list is dynamic (fetched from
/api/tags).
Search notes
?<query>is the guaranteed path (no LLM needed).- Native
web_searchtool-calling can degenerate on nightmare.29's qwen3.8fast — the?escape always works.
Description
Languages
Python
95.5%
Shell
4.3%
Batchfile
0.2%