Writing
Notes from building, teaching and studying AI in Africa: agents that move real money, how to know they work, and a public log of my B.Sc. in Artificial Intelligence.
Coming soon: an agent sandbox on this site, so you can run the Build it tutorials in your browser.
Build it
Hands-on tutorials with code you can copy and a small thing to build.
-
Build your first MCP server: give any AI agent a new skill in 30 minutes
Build a TypeScript MCP server with two tools, a currency converter and a live rain forecast, test it with a real client, and plug it into Claude Desktop, Claude Code, goose and the MCP Inspector.
10 min read -
Let agents pay for your API: a pay-per-call endpoint with x402
Build a small Express API where one route costs $0.001 in test USDC, watch it answer 402 with its price, and wire up the client that pays. Then the production questions: gasless signatures, replay, refunds and facilitator trust.
10 min read -
Before your agent can spend: a policy engine for agent wallets in 100 lines
Build a dependency-free TypeScript policy engine that decides allow, deny or needs-approval before an agent pays: caps, allowlist, approvals, idempotency, velocity and an audit log, with tests and a red-team case.
10 min read -
Teach an open-source agent your codebase: AGENTS.md and goose, step by step
Write a short AGENTS.md for a real repo, install goose on Windows, macOS or Linux, give it a validated recipe and an MCP tool, and let the tests decide when it is done.
10 min read -
How agents find and trust each other: A2A agent cards and ERC-8004 identity
Build a one-skill A2A agent that serves its own agent card, read a real agent's ERC-8004 identity from the chain with viem, and link the two. Runnable code and real output.
11 min read
Research notes
Reading the evidence, and the bets I am making.
Engineering notes
How agents, evals and inference actually work.
-
What an agent actually is: a loop with a model, tools, memory and a budget
An agent is a short loop in your code, not a special kind of model. A runnable Python loop with hard step and cost limits, plus when to build a workflow instead, how to design tools and what MCP is.
5 min read -
Start your evals from real conversations, not a benchmark
Your AI feature passed every spot check and users still complain. How to read traces, name failure modes, count them, and build a small test set that looks like real life.
6 min read -
Can you trust an LLM judge? Check it against your own labels
Your judge model says 80% of replies passed. How to test the judge like the classifier it is: TPR, TNR and kappa against human labels, its known biases, and paired comparisons that separate real gains from luck.
5 min read -
The harness is the product: an agent is the model plus everything around it
Your agent said it was done and left a broken app. A practical tour of the harness: AGENTS.md, skills, tools, permissions, sandboxes and checks, with a minimal AGENTS.md to copy.
6 min read -
Why your local model is slow: prefill, decode and the memory wall
A long pause, then a slow trickle: two different problems with two different fixes. How to measure each one, and how to work out your laptop's decode speed limit with a pencil.
6 min read -
Traces: what your AI system actually did in production
Averages look healthy and users still wait. How to trace AI systems with spans and OpenTelemetry's GenAI names, keep personal data out, watch the few numbers that matter, and turn production failures into test cases.
4 min read -
Quantisation without the hype: what Q4 really costs you
How to read Q4_K_M, Q8_0 and GGUF, size a model before you download it, and test the quality loss on your own task instead of trusting a leaderboard.
5 min read
Agents in the wild
Reliability and security for agents that act.
-
One run proves nothing: grading agents that move money
Your payment agent passed the test. Run it eight more times. Why pass^k, end-state checks and invariants matter more than a demo that worked once.
7 min read -
Prompt injection is a design problem
You can't stop a model being fooled, so design so that a fooled model can't do much. Least privilege, approvals, audit logs, canaries, safe rendering and red-teaming in every language you serve.
6 min read
Agentic commerce in Africa
Payments, rails and the rules that shape them.
-
Mobile money already runs on agents
African payments grew on human agents and savings circles. Five problems they already solved, from cash-out to reversals, and the design rule each one gives anyone building AI agent payments.
6 min read -
Building AI under African data law
You don't need to wait for an AI law. Data protection law in Nigeria, Kenya, South Africa and Ghana already governs your prompts, training data and servers abroad. The rules that bite AI builders, with sections and links, and a pre-launch checklist.
6 min read
Career playbooks
The path into AI engineering and forward deployed work.
-
What a forward deployed engineer actually does
Three live forward deployed engineer postings, read line by line: what the role is, how it differs from solutions engineering, DevRel and software engineering, and how to build proof for each skill this year.
6 min read -
Scoping an AI deployment before you write code
Eight questions to answer before writing code when an organisation asks for an AI agent, drawn from Anthropic's and OpenAI's published guidance, with a one-page scoping template to copy.
5 min read
Student-Builder Log
A public log of my B.Sc. in Artificial Intelligence.