llm-as-computer
Execute programs on a compiled transformer stack machine where every instruction fetch and memory read is a parabolic attention head. Demonstrates that transformer attention + FF layers can implement a working computer. Use when user mentions "llm-as-computer", "lac", "stack machine", "compiled transformer", "percepta", "parabolic attention", "execute program", or asks to run/trace programs on the transformer executor.
npx skills add majiayu000/claude-skill-registry --skill llm-as-computer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# LLM-as-Computer: Compiled Transformer Stack Machine A working computer built from transformer primitives. Every instruction fetch and stack read is a parabolic attention head (dot-product → argmax → value extraction). The transformer's weights ARE the interpreter — compiled analytically, not trained. ## What This Proves Attention is lookup; feed-forward is routing. A vanilla transformer with compiled weights can execute arbitrary programs: loops, recursion, arithmetic, memory access. 55 opcodes covering WASM i32 semantics. 21M+ steps/second via the Mojo executor. ## Setup (once per session) ```bash cd /mnt/skills/user/llm-as-computer/src && bash setup.sh ``` This installs Mojo (~20s) and compiles the executor binary (~6s). If Mojo is unavailable, the skill falls back to a pure-Python executor (slower but functional). ## Usage ```python import sys sys.path.insert(0, '/mnt/skills/user/llm-as-computer/src') from programs import make_fibonacci, make_factorial, make_gcd, make_multiply from runner import run, setup # Ensure Mojo is compiled (idempotent) setup() # Run a program — shows instructions, trace, result prog, expected = make_fibonacci(10) print(run(prog)) # Benchmark mode — me
- What This Proves
- Setup (once per session)
- Usage
- Available Programs
- Writing Custom Programs
- ISA Reference (55 opcodes)
- Architecture
- Updating from Repo
cd /mnt/skills/user/llm-as-computer/src && bash setup.sh cd /mnt/skills/user/llm-as-computer/src for f in executor.mojo; do curl -sL -H "Authorization: token $GH_TOKEN" -H "Accept: application/vnd.github.v3.raw" \ done for f in isa_lite.py programs.py runner.py; do rm -f percepta_exec # force recompile bash setup.sh
What does the llm-as-computer skill do?
Execute programs on a compiled transformer stack machine where every instruction fetch and memory read is a parabolic attention head. Demonstrates that transformer attention + FF layers can implement a working computer. Use when user mentions "llm-as-computer", "lac", "stack machine", "compiled transformer", "percepta", "parabolic attention", "execute program", or asks to run/trace programs on the transformer executor.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill llm-as-computer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
