interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / docs / TOOL_INVENTORY.md

131 lines · 6846 bytes Raw Blame History Source

Tool inventory: everything becomes Omega, nothing gets renamed

The key point: developers who are using these tools today keep using the same names, the same paths, the same flags and the same output. A tool is replaced when the Omega build sits at the same path and behaves the same. Nobody has to learn anything. What changes under the hood is that the logic is written in my language, compiled from the seed, and fast.

Rule per tool: the Omega source lives in this repo under tools/<name>/, the gate is tests/omega/run.sh, and the shipped binary installs over ~/.local/bin/<name>. A replacement that changes an output format or a flag is a bug, not a rewrite.

What is on the box today

~/.local/bin holds 163 entries: about 120 real tools and launchers (the rest are .bak-* copies). By interpreter: 37 /bin/sh, 19 /bin/bash, 38 /usr/bin/env (python or node), 47 compiled binaries or data. Three shell libraries behind them (~/.local/lib/aien-local-ci/, ~/.local/lib/aien-watch/, ~/.local/lib/gh-guard/). About 25 cron jobs and roughly 20 active user services call into these.

Tier 1 - pure logic, replace now (OSC, already possible)

ToolLinesLanguageDoes
ledger54pythonTSV ledger: add/note/done/list/stale
spark-window378shchip window allocator and lock ledger
quiet-build58shquiet-lock build runner
quiet-measure44shchip-lock measurement runner
lock-long-holds76shlock janitor
q36-extra68bashextra model load gate
org-check60shrepo dashboard checks
org-mirror19shorg mirror
ghmerge18bashmerge queue helper
watch-merge16bashmerge watcher
rebase-crumb34bashcrumb on rebase
spark-sensors15shrepo dashboard sensor
spark-receipt102shreceipt builder
spark-calibrate97shcalibration receipt
spark-baseline149shbaseline receipt
spark-build-once121shkeyed build cache
after-window-1819114bashwindow follow-up
sweep-build-scratch14pythonbuild scratch sweeper
wip-snapshot29pythonWIP snapshots
vault-add-secret9bashvault add
wall-power-log.sh7shpower log
claude-chat-status13pythonchat status line
qwen-logs / qwen-restart / qwen-stop / qwen-runtime / qwen-gate49pythonmodel server control

Tier-1 cores are parse-and-decide: TSV and lock files, budget arithmetic, allowlists. Their Omega ports are the pattern already proven by nvrm.osc and kmod.osc: the decision logic in .osc with a run line per rule, a thin same-name launcher in front.

Tier 2 - file and process inspection, replace now (syscall landed)

osc/syscall@01f933a8 unblocked these: open, read, write, close, clock_gettime, getpid are real words.

ToolLinesLanguageDoes
chip-watchdog30bashstops hung lock holders (reads /proc, nvidia-smi)
agent-revive21bashdead agent reaper
coordinator-tick11bashrestart-request reader
aien-local-ci54bashPR judge entry (lib/pipeline.sh, cron-tick.sh behind it)
aien-watch124pythonwatch daemon pass (lib/aien-watch.sh)
now-publish70pythonaienos.com /now/ publisher
spark-cleanup366pythonworktree/target cleaner
investigate.sh49shincident probe
hw-grep / hw-page / docs-read / env44shsmall readers
claude-chat-feed / claude-inbox-hook34pythonchat archival
renda34pythonPR desk entry
renda-local278pythonlocal-model PR desk
forgejo-backup212shforge backup
agent-mail19pythonmail entry
cortex-tool135pythoncortex client
crumb / crumb-doctor300pythoncrumb notes
gh314pythonguarded gh wrapper (the guard logic ports; the gh binary stays)

Tier 3 - needs fork/exec/argv (next compiler rungs)

These launch other programs, so they wait on execve with argv arrays and wait4. Named now so the rung is planned, not discovered later: renda-harness (577 lines, drives review lanes), renda-loop, spark-connector-supervise, qwen-code, spark-window's launch path, aien-watch-hook, approve-cleared, ask-muse, rad-push.

Tier 4 - compiled services (stay until the runtime grows)

Rust/Go binaries running as services: cortex-rs, cortex-encoder-rs, spark-cockpit-rs, aien (53k lines), aien-mail, conduit, rad, radicle-node, git-remote-rad, forgejo-runner, mobhub, tectonic, ripwire, scrub, openclaw, agy, grok, spark-* compiled daemons (dream, harness, supervisor, debugger, distill, discord-hub, muse-bridge, mail, inquisitor, connector, rsi, crumbs), muse, agent, agent-archive. Their service contracts stay identical; each becomes a porting lane with the same name when the runtime can host it.

The wrapped third-party binaries are not exceptions either: they are Tier 4 lanes, and the gate is named. For gh (about 100k lines of Go), claude and bw: the JSON parsing and the API client surface are pure logic and can be written in Omega now; sockets are syscalls and are reachable now; the one physical gate is a TLS stack written in Omega, which is its own project and a security-sensitive one, because a wrong TLS is a hole, not a slowdown. Everything I own both ends of (the motor on 127.0.0.1:18091, the ledger, the desk handoffs, local CI) needs no TLS, so Omega HTTP over loopback comes first. Until a lane completes, the wrapper keeps its guard logic in Omega (Tier 2) and the wrapped binary stays: same name, same behavior.

Keep as-is (not my logic)

Third-party binaries and their thin launchers where the wrapper adds no decision: claude, codex, code, gh's underlying binary, pnpm/pnpx, python3.11, hermes*, bw (Bitwarden CLI), greptile-mcp, qwen-code's npm entry. Wrappers whose guard logic is mine (the gh guard, the claude guard) get their guard ported to Omega at Tier 2 while the wrapped binary stays.

Order

  1. Tier 1 in this repo, tools/<name>/, same-name drop-ins: ledger first (smallest, most used), then quiet-build, quiet-measure, spark-window (the big one at 378 lines), then the rest of the table.
  2. Tier 2 as syscall use matures, one tool per branch, each keeping its name.
  3. Tier 3 opens when execve + wait4 land; renda-harness is the first target and the biggest win.
  4. Tier 4 lanes open per service; the Rust ones stay until then.

Every replacement keeps the old tool archived at <name>.pre-omega-<date> and a receipt: same inputs, same output, byte for byte, before the swap.