The smallest Ambiorix example: one C file, no ODL. It waits for an object to appear on the ubus/bus, then exits. Use it to understand amxrt startup order, the event loop and bus waiting before moving to ODL and data models.
There are a dozen official examples. Sorted by size, one article per example: wait_for (1 C) → amx-scheduler (2 C + 2 ODL) → cpu-info (8 C + 3 ODL) → greeter_plugin → greeter_app → localagent_threshold.
Understanding Attention and Transformers from Scratch
Last post: attention is one 'soft lookup'. So why multi-head at all? And why is it order-blind, needing positional encoding to rescue it? Two things, explained with minimal code.
Understanding Attention and Transformers from Scratch
Don't be scared by Transformer or 'Attention Is All You Need' — start with the smallest piece: attention. Explained with the hash table you already know, plus 20 lines of numpy so you can compute it yourself.
The most hidden performance killer in agents: a tool returns a pile of logs/files and you paste it straight back into context — tokens explode, it gets slow, and the model drowns. The real fix is on the tool side: make it a query port, not a printer.
Run an agent for a while and the messages array balloons: token cost explodes, it gets slow, and eventually it overflows the context window. Not a small issue — the #1 engineering problem in production agents. 6 fixes + runnable code.