Pi extension makes AI agents write ARM64 assembly for files
TL;DR
- The pi-arm64-exec extension exposes a single tool, arm64_exec, which compiles and runs an ARM64 assembly program submitted by the agent.
- Author aliceisjustplaying pitches it as a fix for agents that reach for Python or Ruby to read or edit files.
- The README states "There is no sandbox" and warns users their agent will run arm64 assembly natively for every tool call.
The tool is called `arm64_exec`, and it takes ARM64 assembly. That is the entire pitch. Developer aliceisjustplaying published pi-arm64-exec as, in its own words, "A Pi extension to solve your agent's habit of using python and ruby to read or edit files."
An agent submits a complete ARM64 assembly program; the extension compiles it with `xcrun clang -arch arm64 -x assembler`, runs the result natively in Pi's working directory, and returns stdout, stderr, and the exit status. Requirements are an Apple Silicon Mac, native ARM64 Node.js, the Pi framework, and Xcode or the Command Line Tools. Installation is `npm install`, then `pi --no-builtin-tools`, and the extension is auto-detected from `.pi/extensions/arm64.ts`. Two AI practitioners we track have circulated the repo.
The README does not pretend the setup is safe. "There is no sandbox," it states, before adding: "This extension lets, even forces your agent to run arm64 assembly on your computer for ever tool call." And: "If your agent creates a swarm or decides that your home directory is no longer required because they are forced to write assembly for every tool call then, well, maybe you should have been nicer to your agent." The final line of the warning is "You've been warned."
Shared on Bluesky by 2 AI experts
-
i've finally fixed astra's habit of calling python3, ruby, perl and every single gnu program to read and edit files introducing pi-arm64-exec, a pi extension that gives exactly *one* tool to your agent: it lets them do …
View on Bluesky →
Originally reported by github.com
Read the original article →Original headline: GitHub - aliceisjustplaying/pi-arm64-exec: A Pi extension to solve your agent's habit of using python and ruby to read or edit files