Engineering notesTunis

Kousay Belhaj Amor

I build things across hardware and software — FPGA, RF, embedded, and lately agentic systems — and write down what actually happened while building them. Code, constraints, and the results that did not go as planned.

Series — Building a Research Agent from Scratch

  1. Part 01v0.1 Days 1–2

    Building a Research Agent from Scratch

    The client, the message list, the anatomy of a tool, and the loop that ties them together. Every line of v0.1, in the order I wrote it.

    Read →
  2. Part 02v0.4 Days 3–4

    Making Research Agents More Deliberate

    The prompt asks; the runtime decides. Pinning the first tool call and gating the last one changed the quality of everything in between.

    Read →
  3. Part 03v0.5 August 2026

    The Memory Layer: What Should Survive Across Turns?

    I shipped structured notes, file memory, and a vector store. The agent used none of them. That gap turned out to be the actual engineering problem.

    Read →