<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abdulsamad Ajao on Medium]]></title>
        <description><![CDATA[Stories by Abdulsamad Ajao on Medium]]></description>
        <link>https://medium.com/@samad_dev?source=rss-6605c9fc0882------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4jvEYKCPYF8zc6_X0p_gkw.png</url>
            <title>Stories by Abdulsamad Ajao on Medium</title>
            <link>https://medium.com/@samad_dev?source=rss-6605c9fc0882------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:06:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samad_dev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Principles of Benchmark Testing When Building AI Agents]]></title>
            <link>https://medium.com/@samad_dev/principles-of-benchmark-testing-when-building-ai-agents-af5858110a52?source=rss-6605c9fc0882------2</link>
            <guid isPermaLink="false">https://medium.com/p/af5858110a52</guid>
            <category><![CDATA[harness-engineering]]></category>
            <category><![CDATA[agent-harness]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[ai-evaluation]]></category>
            <category><![CDATA[rubric-based-testing]]></category>
            <dc:creator><![CDATA[Abdulsamad Ajao]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 11:21:53 GMT</pubDate>
            <atom:updated>2026-11-22T11:21:53.068Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the first in a series. I’ll be laying out the four principles I use; in the following articles I’ll go deep on each one, with real rubrics, results and code.</p><p>Building AI Agents has never been easier, with a couple of prompts and API keys. Where the difference is, is in the performance of the agent in multiple different situations for instance, A chatbot starts a conversation with a new user. After a couple minutes and a few texts the Agent works in totally different conditions with another session it has with a regular customer with over hundreds or even thousand of conversations.</p><p>The difference between the quality of software is how all these cases are accounted for. Benchmark testing ensures we have a high performance baseline in every edge cas that matters.</p><h3>My Principles</h3><p><strong>Unit testing -</strong>Working with multi agents. Break them into units and test each unit by writing rubrics which are the golden standard of performance for the LLM across each and every edge case. This raises an important question who judges if the tool passed the rubric.</p><p>I use a hybrid system of LLM as judge and a human reviewing the model’s judgment for any missing details. One caveat is using the same model to judge as the same model responsible for the task is not a good idea. Do not do that.</p><p>Using the earlier example of the chatbot, I would isolate the memory agent that summarizes conversations and keeps relevant data in state. Create a set of rubrics on if it remembers certain specific data after simulating loads of tests that acts as noise then use another model to judge against the established golden standards.</p><p><strong>A/B Testing- </strong>Using the earlier established rubrics we change one variable while keeping every other thing constant then monitor how performance reacts to this change.</p><p>For instance using multiple models to test the same harness and seeing what model works better and by how much more. We can quantify these data and use it to make important decisions fully knowing what the trade offs are. For these tests due to the non-deterministic nature of these models we have to run it multiple times and compare the averages.</p><p><strong>Tracing- </strong>You can get more insightful knowledge if you add Tracing to your setup and get logs on each run the agent makes. From this logs you can notice edge cases from real user interaction and use this data to create more effective rubrics. Optionally, a severity rating could be added to each rubric with the levels being critical, high, medium and low.</p><p><strong>End to End Testing- </strong>E2E tests rounds up all these steps by testing performance overall or with a much larger scope. These tests help catch problems in handoffs between agents.</p><p>Thank you for reading. I’d love to know all about your techniques in the comment section and hopefully we can spark an impactful conversation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af5858110a52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Agent That Rewrites Its Own Playbook and the Statistics Problem That Comes With It.]]></title>
            <link>https://medium.com/@samad_dev/an-agent-that-rewrites-its-own-playbook-and-the-statistics-problem-that-comes-with-it-ccb7e776a5e1?source=rss-6605c9fc0882------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccb7e776a5e1</guid>
            <category><![CDATA[ai-evals]]></category>
            <category><![CDATA[langgraph-agents]]></category>
            <category><![CDATA[harness-engineering]]></category>
            <category><![CDATA[agentic-workflow]]></category>
            <dc:creator><![CDATA[Abdulsamad Ajao]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 09:10:52 GMT</pubDate>
            <atom:updated>2026-08-31T09:10:52.971Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9JF_GUOiAL5r7RPAduGtrQ.png" /><figcaption>Agent Architecture</figcaption></figure><p>In this article i would be exploring a self learning agentic workflow.</p><p>This graph shows a sports research analysis agent with a prediction layer.<br>The beginning of the loop is started by an event fired after each game week.</p><p>The self learning agent foundational building block is memory, kept from analysis of the agent behavior during each run in all three steps in the graph.</p><p>This memory is kept in a skills .md and is structured in a machine readable format that contains prompts on how the agent arrives at the predictions. The agent is built to update this <a href="http://skills.md/">skill</a>s file after analyzing its own behavior and identifying gaps and improving efficiency in the decision making layer for future runs in the upcoming game weeks.</p><p>This loop brings a caveat which is how does the AI differentiate between a legit gap in the system and what is just noise derived from false positives considering it is evaluating runs between hundred of fixtures each week. This was mitigated to certain degree using the Benjamin — Hochberg procedure. I would be running evals on this setup soon to quantify if this change has the intended effect and how well this false discovery layer works in identifying the difference</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccb7e776a5e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Replaced Grammarly, Yoast, and a Spare Google Docs Tab With One AI Agent I Built Myself]]></title>
            <link>https://medium.com/@samad_dev/i-replaced-grammarly-yoast-and-a-spare-google-docs-tab-with-one-ai-agent-i-built-myself-3834d6aebf4f?source=rss-6605c9fc0882------2</link>
            <guid isPermaLink="false">https://medium.com/p/3834d6aebf4f</guid>
            <category><![CDATA[langchain-tools]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[google-docs]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[seo]]></category>
            <dc:creator><![CDATA[Abdulsamad Ajao]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 12:13:20 GMT</pubDate>
            <atom:updated>2026-06-25T12:37:56.497Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Refine checking for grammatical and passive voice errors in a document" src="https://cdn-images-1.medium.com/max/1024/1*gDQgtSxNC0y1tQr-b6i6rA.png" /><figcaption>Refine reviewing an uploaded document</figcaption></figure><p>Link to the app — https://my-writing-assistant-production.up.railway.app</p><p>I want to tell you about the exact moment I decided to build this. I had three tabs open: Google Docs for the actual writing, Grammarly for the grammar pass, and a Yoast style SEO checker for an editorial i was writing. I was switching between tabs every thirty seconds, copy pasting paragraphs back and forth, watching three different tools disagree with each other about the same sentence. None of them talked to each other. All of them wanted a subscription.</p><p>That friction is the whole problem statement in one paragraph. They shouldn’t be. So I built Refine. A single editor that checks your grammar, scores your SEO, and stays in sync with your real Google Doc, instead of asking you to choose which tool gets your attention this hour.</p><p><strong>The solution, in practice</strong></p><p>Refine is a writing assistant you paste or type a draft into, and it does about five things at once instead of one thing at a time. It runs grammar and sentence structure correction through Llama 3. It runs a self hosted SEO audit, plus a full readability layer. It has some side features that runs a fact check on the document to make sure no facts stated are wrong or inaccurate, which would be particularly useful for academic papers/articles further more it has another feature that checks though a doc or text to determine if it was written by AI or human.</p><p>Because I got tired of “finish in the app, then paste it again into the doc,” it syncs bidirectionally with Google Docs in real time, so the version your editor or client sees is always the version you’re actually polishing.</p><p>The people I built this for are digital writers and content marketers, the people who are expected to be their own editor <em>and</em> their own SEO strategist. If you’ve ever drafted a blog post, then opened a second tab to check if your H2s are in the right order, you’re exactly who this is for.</p><p><strong>Where it actually got hard</strong></p><p>The grammar checker was the easy part that’s a solved problem you wrap an LLM around. The SEO layer is where I made a deliberate, harder call: instead of leaning on an LLM to “vibe check” SEO (which is fast to build and easy to get subtly wrong), I wrote seven independent rule based checks, keyword density with actual stemming, heading hierarchy validation, meta length math and only handed the <em>results</em> of those checks to the LLM to translate into natural language recommendations. That meant building a real readability pipeline by hand instead of asking a model to estimate it, which is slower to ship but doesn’t hallucinate a Flesch score.</p><p>The harder problem was the Google Docs sync, and I’ll be honest , it broke in the most predictable way possible the first time I tried it: an infinite loop. The app pushes your edit to the Doc. The server polls the Doc, sees a change, and pushes it back to the app as an “external change.” The app applies it, which looks like a new edit, which gets pushed back to the Doc. Congratulations, you’ve built a game of ping pong instead of a sync. Fixing it meant tracking, on both ends, “did I cause this change or did someone else,” so the server remembers the last content it pushed before its next poll, and the client suppresses its own change detection for exactly one tick after applying an incoming update. It’s a small amount of code and it took me embarrassingly long to get right, because the bug only shows up as a flicker, not a crash.</p><p><strong>Two writers, and the features they actually asked for</strong></p><p>I didn’t build the SEO and sync features because I guessed people wanted them. I built them because two digital writers I roped into testing an early, grammar only version told me, in roughly the same week, what was missing.</p><p>One of them was drafting everything in Google Docs for client approval and only pasting into my app for a final polish and asked, reasonably, why he had to paste at all instead of the tool just watching her actual doc. That conversation is the entire reason the Socket.io sync exists.</p><p>The other flagged something I hadn’t even thought to check: passive voice. He pointed out that grammar tools love to ignore it because it’s not <em>wrong</em>, it’s just weak, and weak writing is exactly what an editor is supposed to catch. That’s a different problem from “is this grammatically correct,” and it’s the reason the analysis pipeline grew a dedicated passive voice pass instead of treating it as a grammar afterthought.</p><p>Both of them, independently, also asked some version of “but will Google even rank this”, which is what pushed SEO from a maybe later idea into a checkbox I built before I considered the app done. None of this came from a formal user research doc. It came from watching two people actually try to use an early version and listening to what they complained about.</p><p><strong>What it’s actually built with</strong></p><p>For my technical readers, on the client: React, TypeScript, and Vite, with a TipTap rich-text editor so the SEO checks have real HTML structure to analyze instead of guessing from plain text, and Socket.IO client keeping the doc connection alive.</p><p>On the server: Node.js and Express, with LangChain orchestrating the Groq-hosted Llama 3 calls, a rule engine (with Porter stemming for keyword analysis) for the SEO and readability checks, retext for passive voice detection, Socket.IO for the real time google doc updates, and the Google Docs API for the sync itself.</p><p>Nothing exotic. The interesting part was never the individual pieces. It was making grammar, SEO, and a live document connection behave like one coherent tool instead of three features sharing a UI.</p><p><strong>It’s free, and that’s an engineering decision, not a pricing decision</strong></p><p>Refine doesn’t have a paywall, and that wasn’t a marketing call, it’s a direct result of the architecture choices above. Most SEO tools charge you per audit because they’re calling a paid third party API (Moz, Ahrefs, SEMrush) every single time you click “check.”</p><p><strong>The actual takeaway</strong></p><p>If you’re a digital writer, you don’t need five tabs and five subscriptions to write something good <em>and</em> something findable. You need one editor that does both, and stays where you’re already working. That’s the whole pitch, and it’s the reason I’d rather keep shipping checks into Refine than start a sixth tool.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3834d6aebf4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>