Skip to content

Instantly share code, notes, and snippets.

@patrickgwsmith
Created September 25, 2026 07:55
Show Gist options
  • Select an option

  • Save patrickgwsmith/c78959ba4f67a9c15c77b750a3cd7960 to your computer and use it in GitHub Desktop.

Select an option

Save patrickgwsmith/c78959ba4f67a9c15c77b750a3cd7960 to your computer and use it in GitHub Desktop.
WebAssembly debugger usable by coding agents

Both greater constraints and more introspective capabilities will let us more confidently move faster with coding agents.

Recently I’ve made a debugger for WebAssembly: you can step over each wasm instruction and see the memory and state at each point.

Because the debugger is a TUI, a coding agent can also use the debugger! I tell the agent to optimize using the debugger and it can benchmark before and after and study how the code it changes compiles and executes.

Here’s a rgb to hex wasm module:

echo 'rgb(101, 79, 240)' | npx @qip.dev/qipx qip.dev run text/rgb-to-hex.wasm

"#654ff0"

And then here’s how to run that in the debugger:

npx @qip.dev/qipx qip.dev tui
-F component=@text/rgb-to-hex.wasm
-F 'input=rgb(101, 79, 240)'
tui/qipdb.wasm

Because it’s just a command line tool Codex runs it without sweat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment