ROOT is a personal, sandboxed operating system. It generates a complete world — networks, computers, ordinary people, devices, services, files, images, logs and synthetic secrets — inside one workspace. You are uid 0. Everything is readable, editable and yours, but nothing touches a real network or machine.
world → scan → hosts → enter → ls → view/edit → leave. Everything else extends that loop.rootos world scan all --fast civilians hosts --civilian enter pocket-aster ls -R view home/*/Notes/* image home/*/Pictures/* leave ask "what should I do next?" dash
scour web images, fetch explicit web files, DeepSeek text/analysis.python3 -m pip install --upgrade rootos rootos # or rt
Published as rootos on PyPI. Requires Python 3.10+ and has no runtime dependencies; the standard library is enough.
python3 -m pip install --upgrade rootos hash -r rootos --version
On a distribution that marks Python as externally managed (PEP 668), add --user --break-system-packages, or install inside a virtual environment. Verify the installed command surface, not just the version:
python3 -c "from rootos.registry import load_builtin_commands, by_category; load_builtin_commands(); print(sum(len(v) for v in by_category().values()), 'commands')"
cd BDCS/RootOS python3 -m pip install . rootos # or rt
python3 -m pip wheel . --no-deps --no-build-isolation -w dist python3 -m pip install --no-index dist/rootos-1.0.0-py3-none-any.whl
After rebuilding a local wheel, force-reinstall it:
python3 -m pip install --user --break-system-packages --force-reinstall \ --no-index --no-deps dist/rootos-1.0.0-py3-none-any.whl hash -r rootos --version
PYTHONPATH=src python3 -m rootos --home /tmp/rootos-demo world
| item | meaning |
|---|---|
--home DIR | Data directory; workspace is DIR/workspace. |
--seed N | Override the world seed for this run. |
--theme NAME | phosphor, amber, ice, violet, red, mono. |
--ascii | ASCII-only glyphs. |
--no-color | Disable ANSI colour. |
--no-boot | Skip the boot banner. |
--no-live | Disable streaming scan output. |
--script PATH | Run a workspace .rt script. |
--stop-on-error | Stop a script at the first error. |
ROOTOS_HOME=/path/to/data ROOTOS_THEME=phosphor ROOTOS_ASCII=1 ROOTOS_FORCE_COLOR=1 DEEPSEEK_API_KEY=sk-...
ROOT has several layers. Knowing which one you are touching avoids confusion.
| item | meaning |
|---|---|
World / Universe | Deterministic networks, hosts, people, services and signals generated from the seed. |
Workspace | The real directory tree where generated files live: /net, /drop, /notes, /vault, /scripts. |
ContentForge | The offline generator that writes files, images, logs, code, data and packs. |
Runtime | Per-host OS and per-network controller state: heartbeat, tick, processes, services, kernel, power. |
Mind | Local reasoning: ask, brief, recommend, risk, anomalies, dossier, plan, agent, do. |
DeepSeek | Optional language/reasoning layer: text, replies, dossiers, plans, effects, synthesis. |
Effects | A validated consequence layer for manipulations and interactions. |
mshesh | Hash terminal: value/random hashes, BIP39 words, jittered monitor, logs. |
| generator | used by | creates |
|---|---|---|
Universe | seed new, seed new --fresh | world model: networks, hosts, personas, services, addresses |
ContentForge | scan, enter, compose, pack, gen, dream | real files in the workspace: docs, code, images, data, logs |
seed new --scan or scan all after it.The workspace is a real sandboxed directory:
$ROOTOS_HOME/workspace/
├── README.md
├── root/ root user home
├── notes/ things to remember, sandbox notes
├── drop/ loose generated artefacts, packs, web files
├── scripts/ .rt scripts
├── vault/ keys, certificates, mshesh logs
└── net/
└── willow-row/
├── _scans/ scan reports
├── _signals/ network signal logs
├── _runtime/ event logs
└── pocket-aster/
├── _mind/assessment.md
├── home/aster-vale/...
└── var/...
workspace # location, size, counts pwd df du /net/willow-row tree /net/willow-row --depth 20 ls -R /net/willow-row find /net/willow-row '*'
clean net --yes # remove all generated network files clean network willow-row --yes clean host pocket-aster --yes clean drop --yes clean workspace --yes # everything + starter files reset --yes # reset session, keep files reset --yes --wipe # wipe workspace, reset session, reseed
clean and reset --wipe are destructive. They never leave the sandbox.The base world has 18 networks, dozens of machines and dozens of civilians. Every seed changes hosts, services, people and signals.
world world --map world --json world --kind residential network willow-row map willow-row topology graph hosts hosts --civilian civilians devices
seed show seed new seed new --fresh # new network names/slugs too seed new --stable # return to base names seed new --scan # reseed + generate files immediately seed 12345 --fresh
dream dream "a residential street by the sea" extend orbital do "create a new network of night-market kiosks"
dream/extend create a persistent extra network, populate it, write lore and images and record it. It participates in world, scan all, maps, dossiers and the runtime.
Civilian machines belong to ordinary fictional people: phones, laptops, tablets, watches, cameras, displays, consoles, cars, drones, fridges, doorbells, e-readers, routers, medical wearables, kiosks, speakers, bicycles and meters.
hosts --civilian civilians persona "Aster Vale" devices host pocket-aster address pocket-aster findhost camera
dossier "Aster Vale" --write dossier pocket-aster --write ask "tell me about Aster Vale" risk pocket-aster
Each host panel shows addresses, OS, kernel, status, power, encryption, runtime, services, users, shares, signals, notes and — for civilians — the person, job, home, household, routine and a note.
Scanning is a live synthetic performance that writes files. It never opens a socket.
scan willow-row --fast scan willow-row --files 3 --size medium scan all --fast scan --host pocket-aster --files 5 scan all --fast --json scan all --fast --no-live
| item | meaning |
|---|---|
--fast | No delays; still writes files. |
--files N | Files per host (1-8). |
--size BAND | tiny, small, medium, large, huge, epic. |
--host HOST | Rescan one machine. |
--ai | Use DeepSeek for the first text file per host if configured. |
--no-live | No streaming lines. |
--json | Machine-readable summary. |
Repeated scans add new unique files; they never overwrite.
enter pocket-aster enter pocket-aster --count 6 --size large enter pocket-aster --ai enter pocket-aster --force # if powered off/sleep compose pocket-aster --count 5 pack "a personal archive" --host pocket-aster --count 8 leave
enter sets your cwd to the machine, generates fresh files and gives root access. leave or cd / returns to the workspace root.
pwd ls -la ls -R /net/willow-row cd /net/willow-row/pocket-aster tree . --depth 20 find . '*.md' grep TODO /net cat /README.md head -n 20 file tail -n 20 file view file code file hex file stat file wc file file file
write /notes/field.md "text" append /notes/field.md "another line" add /notes/new.md --text "hello" add /inbox --dir edit /notes/field.md --set "replace" edit /notes/field.md --append "add" edit /notes/field.md --from OLD --to NEW edit /notes/field.md --insert 3 --text "line" edit /notes/field.md --delete 3 edit /notes/field.md --clear edit /notes/field.md --stdin rm /notes/old.md rm -r /net/willow-row/host/inbox mkdir -p /drop/project cp /README.md /drop/copy.md mv /drop/copy.md /drop/moved.md touch /drop/empty chmod 644 /README.md
download /net/willow-row/pocket-aster/_mind/assessment.md download /notes --export # directory -> exports/notes.zip download /net/willow-row --export download pocket-aster / --export # entire machine pull pocket-aster home/yara-flint/Journal upload /notes pocket-aster /inbox/notes upload /notes/field.md pocket-aster /inbox/field.md push /drop/bundle.zip pocket-aster /inbox/bundle.zip
download/pull copy into /drop/downloads; --export writes a real copy to $ROOTOS_HOME/exports, ZIPping directories. upload/push copy into a generated machine.
fetch https://example.com/ fetch https://example.com/file.pdf --max 8M
fetch is opt-in, HTTP(S)-only, bounded, content-type checked, refuses private/loopback addresses by default and writes metadata sidecars.
zip /drop/bundle.zip /net/willow-row unzip /drop/bundle.zip unzip /drop/bundle.zip --extract unzip /drop/bundle.zip --extract --dest /drop/out
Every machine has a simulated OS and every network has a controller.
os pocket-aster runtime --limit 10 ps pocket-aster ps pocket-aster --sort mem --all proc pocket-aster list proc pocket-aster stop meshwatch proc pocket-aster add watcher proc pocket-aster nice meshwatch --nice 5 svc pocket-aster list svc pocket-aster stop lattice svc pocket-aster start lattice kernel pocket-aster kernel pocket-aster heartbeat_ms 250 kernel pocket-aster root_lock 0 power pocket-aster off power pocket-aster cycle heartbeat pocket-aster --rate 250 pulse pocket-aster --count 12 sched pocket-aster mesh --tick 10 ctl pocket-aster off ctl pocket-aster rate 250 ctl pocket-aster svc stop lattice monitor pocket-aster monitor pocket-aster --count 20 --interval 0.2
netos willow-row netctl willow-row heartbeat off netctl willow-row rate 500 netctl willow-row status locked netctl willow-row policy sealed netctl willow-row scheduler mesh netctl willow-row rule add deny 10.99.0.0/16 netctl willow-row rule delete 1 netctl willow-row route add 10.99.0.0/16 via 10.72.0.1 netctl willow-row route delete 10.99.0.0/16 netctl willow-row dns add quiet.void 10.72.0.9 netctl willow-row dns delete quiet.void netctl willow-row pulse 10 netctl willow-row reset monitor willow-row
root_lock 0 raises a controller alarm._runtime/events.log.events pocket-aster events willow-row fs pocket-aster monitor pocket-aster
dash tree /net/willow-row --depth 20 graph pocket-aster map willow-row topology timeline inspect /README.md view /README.md image /path/to/file.png hex /path/to/file gallery /net/willow-row code /path/to/source.py
| item | meaning |
|---|---|
dash | World, civilian, exposure, mind and journal overview. |
tree | Directory tree with sizes. |
graph | Host service/user/signal graph or world graph. |
map | World map or network host map. |
topology | Network → host → service tree. |
image | Render PNG/PPM/SVG/BMP in the terminal. |
gallery | Thumbnails of generated/downloaded images. |
timeline | Session journal. |
DeepSeek is optional. With a key, it becomes an underlying language/reasoning layer; the local OS remains the executor.
ai ai key sk-... ai mode auto ai test ai usage usage ai pricing ai budget 1.00 ai model deepseek-chat ai temp 1.0
ask "what should I do next?" --online council "what is interesting here?" brief --online dossier willow-row --online plan "civilian audit" --online agent "civilian audit" --online --run say pocket-aster "did you notice the file?" --online events pocket-aster --explain --online
usage ai usage --json ai usage --reset ai budget 2.00 ai pricing settings ai_price_input_per_m 0.28 settings ai_price_cached_per_m 0.028 settings ai_price_output_per_m 0.42
The forge writes real files, with unique names and content. It works fully offline.
gen types gen all --count 6 gen doc --size huge gen book --size epic gen python --host pocket-aster --size large gen image --size large gen office gen security gen key gen archive gen life --count 3
59 families, dozens of extensions. Highlights: Markdown/text/RTF/LaTeX, docs, source in many languages, HTML/CSS, JSON/YAML/TOML/XML/CSV, configs, logs, packet sketches, detection rules, synthetic keys, mail/chats/journals/calendars/contacts/receipts/todos/playlists, ZIP/TAR, PDF, DOCX, XLSX, EPUB, SQLite, MIDI, WAV, PNG/PPM/SVG/BMP/ANSI art, Jupyter notebooks, Vue components, gzip.
| kind | extensions | n |
|---|---|---|
archive | .zip .tar | 2 |
art | .ansi .art | 2 |
audio | .wav | 1 |
batch | .bat | 1 |
binary | .bin | 1 |
book | .md .epub .pdf | 3 |
c | .c .h .cpp | 3 |
calendar | .ics | 1 |
chat | .chat .txt .jsonl | 3 |
config | .ini .conf .env .properties .service .tf | 6 |
contact | .vcf | 1 |
css | .css | 1 |
data | .csv .tsv .json .jsonl .xml .yaml .toml | 7 |
database | .db | 1 |
disk | .img | 1 |
doc | .md .txt .rst .org .adoc | 5 |
dot | .dot | 1 |
epub | .epub | 1 |
feed | .xml .rss .atom | 3 |
go | .go | 1 |
graphql | .graphql | 1 |
gzip | .gz | 1 |
html | .html .htm .xhtml | 3 |
image | .ppm .png .bmp | 3 |
java | .java | 1 |
journal | .md .journal | 2 |
js | .js .ts .jsx .tsx | 4 |
key | .pem .key .crt | 3 |
kotlin | .kt | 1 |
life | .md .ics .vcf .chat .png | 5 |
log | .log .audit .jsonl | 3 |
lua | .lua | 1 |
mail | .eml | 1 |
midi | .mid | 1 |
note | .md .txt | 2 |
notebook | .ipynb | 1 |
office | .docx .xlsx | 2 |
packet | .pcap | 1 |
pdf | .pdf | 1 |
photo | .png .ppm .svg .bmp | 4 |
php | .php | 1 |
playlist | .playlist | 1 |
powershell | .ps1 | 1 |
proto | .proto | 1 |
python | .py | 1 |
receipt | .txt .json | 2 |
rtf | .rtf | 1 |
ruby | .rb | 1 |
rust | .rs | 1 |
security | .rule .rules .yaml | 3 |
shell | .sh .bash .zsh | 3 |
sql | .sql | 1 |
svg | .svg | 1 |
swift | .swift | 1 |
tex | .tex | 1 |
todo | .todo .md | 2 |
vue | .vue | 1 |
web | .html .htm .xhtml .css | 4 |
tiny: 2-8 lines/units · small: 8-24 lines/units · medium: 30-90 lines/units · large: 120-320 lines/units · huge: 500-1200 lines/units · epic: 1600-4000 lines/units
pack "a field kit for a relay engineer" --count 8 pack "family archive" --host pocket-aster --count 10 pack "incident response kit" --count 12 --size large --online
A pack is a coherent directory with docs, code, configs, data, logs, security, art and a _pack.md manifest.
Procedural signal fields, glitch, circuit, bloom, topography, void, dream, pressure, lattice and weather styles. Writes real PNG/PPM/BMP/SVG; renders in the terminal with half-blocks or ASCII.
With a key, DeepSeek can propose complete networks and hosts. ROOT validates and repairs every field before adding them.
synth status synth network "a winter civic network of carpenters and old laptops" synth network "a coastal cooperative" --hosts 7 --files 3 --online synth network "a metadata-only region" --metadata-only synth host willow-row "a retired translator's home laptop" --files 2 synth host saltmarsh-wood "a shared workshop desktop"
Comprehensive by default: files, assessments, manifest, image and scan record. Use --metadata-only to skip files.
Manipulations and conversations can be handled by DeepSeek as a consequence engine. The model proposes, ROOT validates and applies.
effects status effects off effects on effects types effects log 20 effects test pocket-aster "stopped a process without warning"
alarm · attention · load · service · process · neighbor · notice · network_alarm
Automatic for runtime actions, file actions and say when a key is available and mode is auto/online. The local deterministic reactions still run. Disable with effects off or settings ai_effects false.
say pocket-aster "hello" say "Aster Vale" "I noticed your door camera" inbox pocket-aster inbox pocket-aster --read notices pocket-aster
Civilian owners can notice file changes, gain attention/unread notices and leave replies in their Chats folder. say writes a real conversation artefact.
A native port of BDCS/mshesh.
mshesh # one random hash (default) mshesh random 3 mshesh value hello mshesh words 2 mshesh unwords "coconut mystery hub ... shift gauge naive" mshesh monitor 1 50 5 mshesh log 20 mshesh save /vault/mshesh/log.txt mshesh save /vault/mshesh/log.txt --lines 10 mshesh save-lines 5 mshesh record /vault/mshesh/live.txt mshesh record off mshesh user operator mshesh status
Value hashes are deterministic SHA-256. Random hashes are 32 random bytes. BIP39 encoding/decoding is checksum-validated. Monitor mode is jittered and supports a value chance. Logs, recording, username and entries persist in state and files under /vault/mshesh/.
ROOT keeps two kinds of memory: the session journal (what you did) and your own notes (what you want to keep). Both are plain data in the workspace or state file, so they survive restarts and can be read, edited, copied or uploaded like any other file.
remember "Root is a responsibility, not a permission." remember "check the roof node after the next scan" recall recall roof recall --limit 10 forget 3 things mantra cheat journal --limit 20 stats
| item | meaning |
|---|---|
remember "text" | Add a numbered note; also appends it to /notes/remember.md. |
recall [query] | List notes, or filter them by a case-insensitive substring. |
forget N | Remove note number N from session memory. |
things | Print the built-in things-to-remember list. |
mantra | Generate a short root mantra. |
cheat | Print the cybersecurity/programming cue sheet. |
journal / timeline | Show the chronological session journal. |
stats | World counts, files, notes, journal length and AI usage. |
notes and memory are aliases for recall. Notes are capped by the session store, not by the workspace; the Markdown mirror at /notes/remember.md is the human-readable copy and can be edited directly.
remember for intent, and journal for evidence. The journal records commands, scans, errors and generated artefacts automatically.Tab completion is context-aware:
scan wi<TAB> → scan willow-row gen h<TAB> → html / htm / huge / ... gen html --format d<TAB> → dashboard / docs ls /n<TAB> → /net/ /notes/ theme <TAB> → amber / ice / phosphor ... host pocket<TAB> → pocket-aster ...
Completion is active in the interactive shell. Piped/non-TTY runs do not use readline.
Scripts run inside the shell with script, or from the launcher with --script. Paths are workspace-relative.
script /scripts/tour.rt script /scripts/tour.rt --stop-on-error rootos --script /scripts/tour.rt rootos --script /scripts/tour.rt --stop-on-error
A script is a text file with one command per line. Blank lines and lines beginning with # are ignored; each line is echoed before it runs. With --stop-on-error, execution stops at the first command error.
# /scripts/tour.rt world civilians --limit 5 scan all --fast dash
Scripts run with natural-language routing disabled, so a typo is reported as an error instead of being sent to the mind. Pipes and redirections work normally.
alias alias ll "ls -la" alias w "world" unalias w
env env KEY value echo $KEY
whoami name operator settings settings ai_mode auto history 40 history clear seed show
Generated from the live registry: 157 commands in 10 categories.
| command | aliases | what it does | usage / flags |
|---|---|---|---|
about | — | What ROOT is, and what it deliberately is not. | about |
alias | unalias | List, add or remove aliases. | alias [name [command]] |
ascii | — | Toggle ASCII-only glyphs. | ascii [on|off] |
banner | boot | Print the boot banner. | banner |
clear | cls | Clear the terminal. | clear |
commands | — | Flat list of every command. | commands [category] |
echo | — | Print text. | echo [text...] |
env | — | Show or set session environment variables. | env [key] [value] |
exit | quit, logout, q | Leave the root shell. | exit |
help | ? | Browse commands, usage and examples. | help [command|category|--all] |
history | — | Show or clear command history. | history [N|clear] |
hostname | uname | Print the machine or active host name. | hostname |
man | — | Read the field guide topics. | man [topic] |
name | — | Set the operator callsign. | name <callsign> |
root | sudo | Confirm the obvious: you are root. | root |
script | — | Run a workspace .rt script from inside the shell. | script <path> [--stop-on-error] |
seed | — | Show or change the world seed. | seed [show|new|N] [--fresh|--stable] [--scan] |
selftest | — | Prove the install, workspace and world work. | selftest |
settings | config | Show or change settings. | settings [key] [value] |
status | — | One-line session status. | status |
sys | proc, neofetch | Fake kernel, memory, daemons and mounts. | sys |
theme | — | List or set the colour theme. | theme [name] |
tour | — | A guided path through the sandbox. | tour |
uptime | date, time | Show session uptime and load. | uptime |
version | ver | Show version and build. | version |
whoami | id | Print the current identity. | whoami |
| command | aliases | what it does | usage / flags |
|---|---|---|---|
access | — | Simulate a root access handshake. | access <host> [--level root|user|read] |
ctl | control, ctrl, manipulate | One-verb manipulation of a machine's power, heartbeat, kernel, processes and services. | ctl <host> <power-action|heartbeat|rate|scheduler|kernel|start|stop|restart|kill|nice|svc|tick|reset> ... [--nice N] [--user U] |
enter | use, browse, inhabit, cd-host | Inhabit a machine and generate fresh files. | enter <host> [--count N] [--size BAND] [--ai] [--quiet] [--force] |
events | reactions, eventlog | Read persisted runtime events and reactions. | events [host|network] [--limit N] [--json] [--explain] [--online] |
fs | filesystem, diskh | Inspect a machine's filesystem, disk pressure and recent file reactions. | fs [host] [--json] [--limit N] |
heartbeat | — | Show or tune a machine's heartbeat. | heartbeat <host> [--rate MS] [--on|--off] [--tick N] [--json] |
host | machine, info | Show everything about a machine. | host <ip|hostname> [--json] |
inbox | notices, messages | Read notices and conversations on a machine. | inbox [host] [--limit N] [--read] [--json] |
interfaces | ifconfig, ip | Show interfaces for the active machine or world. | interfaces |
kernel | — | Inspect or set a machine's kernel parameters. | kernel <host> [key] [value] [--reset] [--json] |
leave | exit-host, eject | Leave the current machine. | leave |
monitor | watch-host, live-os, observe | Live monitor for a machine's OS, heartbeat, processes and services. | monitor [host|network|all] [--count N] [--interval SEC] [--no-clear] |
netstat | ss | Show listening services on the active machine. | netstat |
os | — | Inspect a machine's running algorithm, heartbeat and OS state. | os [host] [--json] [--tick N] [--pulse] |
ports | — | List open ports on a machine. | ports [host] |
power | — | Change a machine's simulated power state. | power <host> [on|off|sleep|wake|cycle|degraded] |
proc | process | Manipulate a machine process table. | proc <host> <add|start|stop|restart|kill|remove|nice> <pid|name> [--nice N] [--user U] |
ps | top, processes | List processes on a machine. | ps [host] [--all] [--sort cpu|mem|pid] [--tick N] [--json] |
pulse | live, monitor-heart | Stream a machine's heartbeat and live process load. | pulse <host> [--count N] [--interval SEC] |
runtime | runtimes, vitals | Overview of every machine's running state. | runtime [--all] [--json] [--limit N] [--network NET] |
say | talk, tell, interact | Speak to the person behind a machine and write the exchange. | say <host|person> <message> [--online] |
sched | — | Inspect or change a machine's scheduler and algorithm. | sched <host> [scheduler] [--tick N] [--json] |
services | — | List services on a machine. | services [host] |
shares | — | List shares on a machine. | shares [host] |
svc | service, services-ctl | Start, stop, restart or inspect services on a machine. | svc <host> <start|stop|restart|enable|disable|status|list> [service] |
users | — | List users on a machine. | users [host] |
| command | aliases | what it does | usage / flags |
|---|---|---|---|
add | — | Create a file or directory. | add <path> [--dir] [--text TEXT] [--force] |
append | — | Append text or stdin to a file. | append <path> [text...] |
cat | type | Print file contents. | cat <file>... [-n] |
cd | — | Change directory. | cd [path] |
chmod | — | Change a mode (decorative in the sandbox). | chmod <mode> <path> |
cp | — | Copy a file or directory. | cp <source> <target> |
download | pull, get | Download a file from a simulated machine into /drop/downloads. | download <path|host path> [--to DIR] [--name NAME] [--export] |
edit | sed | Edit a file directly: set, append, replace, insert or delete. | edit <path> [--set TEXT] [--append TEXT] [--from OLD --to NEW] [--insert N --text TEXT] [--delete N] [--clear] [--stdin] |
file | kind | Identify a file by extension and content. | file |
find | — | Find paths by glob. | find [path] <pattern> |
grep | rg | Search text files with a regex. | grep <pattern> [path] [-i] [-n] [-l] |
head | — | Show the start of a file or stream. | head [file] [-n N] |
ls | dir | List a directory. | ls [path] [-l] [-a] [-1] [-R|--recursive] |
mkdir | — | Create a directory. | mkdir [-p] <path> |
mv | — | Move or rename a file. | mv <source> <target> |
rm | del, delete | Remove files or directories. | rm [-r|--recursive] [-f|--force] <path>... |
rmdir | — | Remove an empty directory. | rmdir <path> |
stat | — | Detailed metadata for a path. | stat <path> |
tail | — | Show the end of a file or stream. | tail [file] [-n N] |
touch | — | Create an empty file. | touch <path> |
unzip | — | List or extract a ZIP archive. | unzip <file.zip> [--extract] [-x] [--dest DIR] |
upload | push, send | Upload a workspace file into a simulated machine. | upload <path> <host> [path] [--to PATH] [--name NAME] |
wc | — | Count lines, words and characters. | wc <file> |
write | — | Write text to a file. | write <path> [text...] [--append] |
zip | — | Create a ZIP archive from paths. | zip <dest.zip> <path>... |
| command | aliases | what it does | usage / flags |
|---|---|---|---|
address | addr, cards | Show a synthetic address card. | address [host] [--new] [--json] |
decode | — | Decode text. | decode <base64|hex|url|rot13> <value> |
encode | b64 | Encode text or a file. | encode <base64|hex|url|rot13> [text|file] |
entropy | — | Estimate Shannon entropy of a file. | entropy <file> |
fingerprint | — | Show a short fingerprint of a file. | fingerprint <file> |
hash | — | Hash a file or stdin. | hash <file> [--algo sha256|sha1|md5|blake2b|sha512] |
mshesh | hashterm, hh | mshesh hash terminal: values, random hashes, BIP39 words and monitors. | mshesh [random|value|words|unwords|monitor|log|save|save-lines|record|user|status|help] ... [--fast] [--json] [--lines N] |
passphrase | — | Generate a memorable synthetic passphrase. | passphrase [--words N] |
rot13 | — | Rot13 a string. | rot13 <text> |
token | — | Generate a synthetic token. | token [--prefix RT] [--words N] |
uuid | guid | Generate one or more UUIDs. | uuid [--count N] |
| command | aliases | what it does | usage / flags |
|---|---|---|---|
agent | autopilot | Plan and optionally run a safe multi-step investigation. | agent <objective> [--run] [--all] [--online] |
analyze | assess, analysis | Analyze a host, person, network or the whole world; optional DeepSeek assessment. | analyze [host|person|network] [--local] [--online] |
anomalies | anomaly, weird, odd | Find unusual combinations across the world. | anomalies [--json] [--limit N] |
ask | think, question, analyst | Ask the onboard mind a question in natural language. | ask <question> [--online] [--local] [--council] [--run] [--json] |
brief | sitrep, situation, overview | Read the current situation like an analyst. | brief [--online] |
compose | pack, fill | Generate a coherent content pack for a host, person or network. | compose [host|person|network] [--count N] [--size BAND] [--online] |
council | two-sources, compare-minds | Ask the local mind and DeepSeek independently, then compare. | council <question> |
do | act, execute | Interpret an instruction and execute the safe steps. | do <instruction> [--dry-run] [--all] [--online] [--local] |
dossier | profile, report | Write or read a durable assessment of a host, person or network. | dossier [host|person|network] [--write] [--online] |
dream | extend, grow, worldnew | Generatively extend the world with a new region and written content. | dream [theme] [--count N] [--online] |
effects | affect, consequences | Inspect, toggle or test DeepSeek-handled consequences. | effects [status|on|off|types|log [N]|test <host|network> <action...>] [--json] |
mind | intelligence, brain | Status, capabilities and compact world context of the onboard mind. | mind [context] [--json] |
plan | objective, approach | Turn an objective into safe, concrete steps. | plan <objective> [--online] |
recommend | next, advise, suggest | Ask the mind for the best next moves. | recommend [--json] |
risk | — | Explain why a host or network is risky. | risk [host|network] |
| command | aliases | what it does | usage / flags |
|---|---|---|---|
ai | deepseek | DeepSeek status, key, mode, usage, pricing and test. | ai [status|key KEY|mode offline|auto|online|test|model NAME|temp N|usage|budget USD|pricing|reset-usage] [--clear] [--json] [--reset] |
gen | forge, make, create, new | Generate a complete unique file of any kind. | gen <kind|ext> [--count N] [--size BAND] [--host HOST] [--online] [--local] [--prompt TEXT] [--dir DIR] [--format HTML_FORMAT] [--web] [--source NAME] [--json] |
pack | bundle, project | Generate a coherent multi-file offline content pack. | pack [theme] [--host HOST] [--count N] [--size BAND] [--online] |
scour | webimg, webimages, fetchimg, photos | Opt-in web image search with attribution. | scour <query> [--count N] [--source any|commons|openverse] [--kind city|nature|...] [--type png|svg|jpg] [--host HOST] [--dir DIR] [--json] [--no-convert] |
synth | fabricate, deepworld, aihost | Let DeepSeek generate a complete new network or host, with every detail. | synth network <theme> [--hosts N] [--files N] [--size BAND] [--online] [--json] [--scan|--full|--metadata-only] | synth host <network> <theme> [--files N] [--size BAND] [--online] [--json] [--scan|--full|--metadata-only] |
types | kinds, catalogue, catalog | List every generation kind, extension and size band. | types [kind] |
usage | tokens, cost | DeepSeek token and dollar usage counter. | usage [--json] |
| command | aliases | what it does | usage / flags |
|---|---|---|---|
cheat | cheatsheet, cues | Cybersecurity, hacking and programming cues. | cheat |
forget | — | Remove a remembered thing by number. | forget <n> |
journal | — | Show the session journal. | journal [--limit N] |
mantra | fortune, whisper | A generated root mantra. | mantra |
recall | notes, memory | Read or search things you remembered. | recall [query] [--limit N] |
remember | note, memorize | Write a thing to remember. | remember "text" |
stats | — | World and workspace statistics. | stats [--json] |
things | — | Read the default things to remember. | things |
| command | aliases | what it does | usage / flags |
|---|---|---|---|
civilians | people, civ | Meet the ordinary people and their devices. | civilians [--json] [--network NET] [--limit N] |
devices | — | Summarise the kinds of computers in the world. | devices [--json] |
dns | — | Show synthetic DNS records. | dns <host|network> |
fetch | wget | Explicitly download a web file into the sandbox. | fetch <url> [--dest DIR] [--name NAME] [--max SIZE] [--json] |
findhost | findmachine, search | Search machines, people, services and notes. | findhost <query> [--limit N] |
hosts | machines, devices-all | List machines in the world. | hosts [--all] [--civilian|--infra] [--network NET] [--json] [--limit N] |
netctl | netman, nctl | Manipulate a network controller. | netctl <network> <heartbeat|rate|status|policy|scheduler|rule|route|dns|pulse|reset> ... |
netos | netos-show, nctl-show | Inspect a network controller's heartbeat, firewall, routes and DNS. | netos <network> [--json] |
network | net | Inspect a network and its machines. | network <name> [--json] |
persona | — | Show a civilian and all their devices. | persona <name|handle> |
ping | — | Simulate a ping (no packets leave). | ping <host> [--count N] |
route | — | Show the simulated routing table. | route |
scan | probe, sweep, s | Live-scan a network, all networks, or one machine. | scan <network|all|host> [--fast] [--files N] [--size BAND] [--ai] [--no-live] [--json] [--host HOST] |
traceroute | — | Simulate a route through the world. | traceroute <host> |
vulns | — | List synthetic findings. | vulns [host] [--severity S] [--limit N] |
whois | — | Show a synthetic address card. | whois <host|network> |
world | nets, networks, w | List every generated network. | world [--map] [--json] [--kind KIND] |
| command | aliases | what it does | usage / flags |
|---|---|---|---|
clean | — | Clear generated workspace content safely. | clean <net|workspace|drop|network SLUG|host HOST> --yes |
df | — | Show workspace disk usage. | df |
du | — | Show size of a path. | du [path] |
export | — | Save the last output (or a file) into the exports folder. | export <name> [--file PATH] |
mount | — | Show the mounts of this personal OS. | mount |
open | — | Open a file in the best viewer. | open <path> |
pwd | cwd | Print the working directory. | pwd |
reseed | — | Rewrite the starter workspace files. | reseed |
reset | — | Reset the session, optionally wiping the workspace. | reset --yes [--wipe] [--new-seed] [--keep-name] |
workspace | ws | Show the sandbox location and contents. | workspace |
| command | aliases | what it does | usage / flags |
|---|---|---|---|
code | — | Show a file with syntax highlighting. | code <file> |
dash | dashboard, watch | The ROOT dashboard. | dash |
gallery | — | Browse generated and downloaded images. | gallery [path] [--limit N] |
graph | — | Graph the active machine, a host, or the whole world. | graph [host] |
hex | hexdump, xxd | Hex dump a file. | hex <file> [--limit N] |
image | img, render, photo | Render a PNG/PPM/SVG image in the terminal. | image <file> [--width N] [--ascii] |
inspect | — | Inspect a host or a file in one view. | inspect <host|path> |
map | — | Map the world or a network. | map [network] |
timeline | log, journal-log | Chronological journal of the session. | timeline [--limit N] |
topology | topo | Full network → host → service topology. | topology [--limit N] |
tree | — | Render a directory tree. | tree [path] [--depth N] |
view | less, more, page | View any file: code, markdown, log, JSON, image or hex. | view <file> [--raw] [--width N] [--ascii] |
world scan all --fast hosts --civilian civilians enter <host> ls -R view <file> image <image> leave dash
world --map network <slug> map <slug> topology graph <host> seed new --fresh --scan dream "a coastal cooperative" synth network "a winter civic mesh" --scan
ls -la / tree / find / grep cat / view / code / hex / stat edit --set / --append / --from --to / --insert / --delete add / write / append / rm / mkdir / touch cp / mv / zip / unzip ls -R /net/<net> download /net/<net> --export upload /notes <host> /inbox/notes fetch <url>
os <host> / ps <host> proc <host> start|stop|restart|kill|add|nice svc <host> start|stop|restart|list kernel <host> key value power <host> on|off|sleep|wake|cycle heartbeat <host> --rate N pulse <host> --count N sched <host> [name] ctl <host> <action> ... monitor <host> runtime --limit 20 fs <host> events <host>
netos <network> netctl <net> heartbeat on|off netctl <net> rate N netctl <net> status <state> netctl <net> policy <name> netctl <net> rule add allow|deny CIDR netctl <net> route add CIDR via GW netctl <net> dns add NAME IP netctl <net> pulse N netctl <net> reset
ai / ai key sk-... / ai mode auto / ai test ai usage / usage / ai budget 1.00 / ai pricing ask "..." --online council "..." brief --online dossier <target> --online plan "..." --online agent "..." --online --run analyze <target> --online effects status|on|off|log|test say <host> "..." --online events <host> --explain --online
synth status synth network "theme" --hosts 7 --files 4 --online synth host <network> "theme" --files 2 --metadata-only
gen types gen all --count 6 gen book --size epic gen office gen image --size large gen security gen key gen archive pack "field kit" --count 8 pack "family archive" --host <host> --count 10
mshesh mshesh random N mshesh value TEXT mshesh words N mshesh unwords "24 words" mshesh monitor [i] [chance] [n] mshesh log [N] mshesh save [path] [--lines N] mshesh record [path|off] mshesh status
dash tree <path> --depth N map [network] graph [host] topology image <file> gallery [path] code <file> hex <file> timeline
clean net --yes clean network <slug> --yes clean host <host> --yes clean drop --yes clean workspace --yes reset --yes reset --yes --wipe seed new --scan
remember "text" recall [query] forget N things mantra cheat stats
Run help --all, or use help <command>. In the interactive shell, a multi-word non-command line is sent to the mind; use ask "..." explicitly if needed.
The machine may be powered off or asleep. Check os <host> and run power <host> on. Also verify the target network exists with world.
Base network names are stable by default. Use seed new --fresh for new identities. If you pass --seed N every run, that flag overrides the stored seed.
Check ai status, key, mode, budget and ai usage. A 401 means a bad key; a budget exhaustion falls back locally.
HTML/JSON/Python are validated; invalid or truncated output is rejected and the offline generator is used. Check the generated file’s note.
Internet may be unavailable. fetch refuses private/loopback addresses; scour needs a public source. Offline graphics still work with gen image.
It is active only in the interactive TTY shell, not in piped commands or scripts.
Install optional Pillow: pip install "rootos[images]". PNG/PPM/SVG/BMP work without it.
workspace prints the real path. Exports go to $ROOTOS_HOME/exports.
Use the same discipline in the real world: written authorisation, a defined scope, a stop condition, data-handling rules, and respect for other people's data.
Root is a responsibility, not a permission.
$ROOTOS_HOME/ ├── workspace/ │ ├── README.md │ ├── net/<network>/<host>/... │ ├── drop/packs/... │ ├── notes/ │ ├── vault/mshesh/ │ └── scripts/ ├── exports/ ├── archive/ ├── plugins/ ├── state.json └── secret.json # chmod 0600
| file | meaning |
|---|---|
state.json | profile, seed, scans, notes, journal, runtime, hash lab, AI usage, custom world |
secret.json | DeepSeek key, mode 0600 |
_mind/assessment.md | factual host assessment |
_runtime/events.log | runtime/effect events |
_scans/ | scan reports |
_signals/ | network signal logs |
_pack.md | content pack manifest |
| meter | USD / 1M tokens |
|---|---|
| input (cache miss) | 0.28 |
| input (cache hit) | 0.028 |
| output | 0.42 |
Approximate; override with settings ai_price_*.
| kind | example |
|---|---|
doc | gen doc --size huge |
book | gen book --size epic |
office | gen office |
image | gen image --size large |
photo | gen photo --host |
security | gen security --size medium |
chat | gen chat --host |
pack | pack "theme" --count 8 |