Show HN: Assembly Language for Agents(github.com) Hi HN! I wanted to share something that I've been working on for the past couple of weeks. This was born from my desire to create my own toy fantasy console. One day, I had a thought: Imagine if I had a console where the core driver/engine of it was an LLM? Or better yet, why not replace the ALU inside the CPU with an LLM? What would the assembly language look like and what are the primitive data types (I can firmly blame Crafting Interpreters for this addiction)? So I set out to answer my question by creating a simple interpreter which consumes a special kind of assembly code where each operation is transformed into small prompts (micro prompts?). Think of a future where we would be writing code as follows: ``` ; PROGRAM: VIBE_CONTROLLER.aasm ; Objective: Adjust room environment based on subjective user vibe. START: ; Initialise State LF X1, "room_sensors.json" ; Load current state: {temp: 18C, lights: 6000K, music: Off} LI X2, "Make it more warm." ; Load the user's vague complaint
HANDLER:
LI X8, "{error: 'Request conflicts with safety protocols.'}"
OUT X8
```What we have here is essentially an agent, but the assembly language for agents can be thought of as a middle ground between traditional programming languages and natural language prompts. It's more structured and modular than natural language prompts. I would love to see what new, fun, and creative ways we can use this for. Repo: https://github.com/HuyNguyenAu/assembly_language_for_agents |