<?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 Bavo on Medium]]></title>
        <description><![CDATA[Stories by Bavo on Medium]]></description>
        <link>https://medium.com/@bavo.bruylandt?source=rss-dc914db667d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*PBpn9jrx4caTkacU.jpg</url>
            <title>Stories by Bavo on Medium</title>
            <link>https://medium.com/@bavo.bruylandt?source=rss-dc914db667d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:59:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bavo.bruylandt/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[Developing your own Personal Agent]]></title>
            <link>https://medium.com/@bavo.bruylandt/developing-your-own-personal-agent-00ac4b21ee0a?source=rss-dc914db667d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/00ac4b21ee0a</guid>
            <category><![CDATA[google-antigravity]]></category>
            <category><![CDATA[akamai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[gemini-4-argon]]></category>
            <category><![CDATA[hermes-agent]]></category>
            <dc:creator><![CDATA[Bavo]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 18:17:00 GMT</pubDate>
            <atom:updated>2026-11-11T18:49:27.647Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Personal assistant AI bots </strong>are the hype these days. Aways available, persistent memory and can do almost anything a computer can do on demand. Running in the background, checking in once a while and keeping you updated.</p><p>Meta has its <em>Muse</em>, Claude does a <em>Duet</em>, Grok has -well- <em>Grokbot</em>, OpenAI has <em>Dots</em> and so on. I think Google has a thing that <em>sparks</em> too, but Google ecosystem is always a bit harder to navigate so who knows?<br>All these have one thing in common: sure offer great potential, would be fun to play with, and aren’t available in Europe.</p><blockquote>they offer great potential, would be fun to play with, and aren’t available in Europe.</blockquote><p>And that’s a bummer as I found a real personal use-case for it, one that would actually help me with a mundane task.<br><strong>Locate me shopping promotions for items that are way to expensive to buy at regular prices:</strong> <strong>Protein bars and shakes. </strong><br>It seems every other week there is at least one brand trying to gain market share by doing 50% off, and then it becomes a better bargain.</p><p>You just need to know when and where.</p><p>But we don’t have a personal agent to ask. We do have the DYI agents: <strong>OpenClaw</strong> and <strong>Hermes</strong>. So here is an ideal scenario: a usecase that makes it worthwhile deploying one.</p><h4>The requirements</h4><ul><li>I want to be notified when a promotion starts at one of the stores I visit in my hometown.</li><li>I want this to be run without any cost (so no cloud LLM involved!)</li><li>I want this notification on my smartphone and have it 24/7 available</li><li>I want to learn something new as we go</li></ul><p>We can implement such a thing in two phases:</p><ol><li>We prove locally the data gathering works, parsing this with agentic judgement and use Telegram as notification channel</li><li>We embed this as a skill inside a personal agent that embeds this logic, takes care of the hosting and background scanning, as well as provides a richer user experience</li></ol><h4>Phase 1: Data gathering, agentic analysis and notification</h4><p>Having the requirement to learn something new means leaving the comfort zone of <em>Claude for Everything.</em> So I rolled the dice and went for <em>Antigravity</em>, but not in Antigravity IDE as previously, but for Antigravity in VSCode. This gets me closer to the code I need to write. I even started with using <em>Gemini Chat</em>, brainstorming the whole project there and setting pieces up manually (<em>doing it in Dutch as these are Dutch sites and products to parse which was a mistake, won’t do that again)</em>.</p><figure><img alt="Antigravity extension in VS code and two big mistakes" src="https://cdn-images-1.medium.com/max/1024/1*oQw7c2FxjDW7P2BrYJ-gKg.png" /><figcaption>Antigravity extensions in VS code and three big mistakes: dutch, using an old model and using the extension</figcaption></figure><p>First we need to read the products from the stores. That is the data gathering part. As I am planning to use local LLM to make sense of it, I just need to fetch it and NOT do heavy parsing and transformation.</p><p>That went horribly wrong.</p><blockquote>One would think <em>curl</em> or <em>python</em> <em>requests</em> is all you need to gather data from a URL, but that is naive these days.</blockquote><p>Websites are putting up heavy defenses against all those pesky agents scanning them, and they use pretty strong tools to do so.</p><p>It seems <em>Delhaize</em>, <em>Albert Hein</em>, <em>Colruyt</em> are running <strong>Akamai WAF</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EisW_GqW-r9YjEpPI37j9w.png" /></figure><p>What does it protect <em>against</em>? People like me apparantly. And it does it really well. Even using Playwright won’t fool this firewall. Setting custom headers, cookies etc. No go. Running from a container? Albert’s computer says No.</p><p>The only way to get bypass the wall and get into the shop is being a real user or at least acting like one. So running a real browser in a real OS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jXhnXvC9JaWfsZBcfmCkGQ.png" /><figcaption>now he let’s us in instead of blocking with 503</figcaption></figure><p>We can still drive this browser via <em>Playwright</em> using a debug port, and we can run this in <em>xvfb</em>, a virtual framebuffer in X. So that means we can still run in an automated way without a real display.</p><pre>mkdir -p &quot;$HOME/.config/chrome-ah-profile&quot;<br><br>xvfb-run -a --server-args=&quot;-screen 0 1920x1080x24&quot; \<br>  google-chrome-stable \<br>  --ozone-platform=x11 \<br>  --remote-debugging-address=127.0.0.1 \<br>  --remote-debugging-port=9222 \<br>  --user-data-dir=&quot;$HOME/.config/chrome-ah-profile&quot; \<br>  --disable-search-engine-choice-screen \<br>  --window-size=1920,1080 \<br>  &quot;about:blank&quot; &amp;</pre><p>Gemini generated that code via Antigravity in Vs Code, but had a lot of issues trying to parse it. Turns out <em>Gemini Flash 3.8</em> is really subpar compared to <em>Claude’s Opus 5.5 </em>in Claude Code. Had me running in circles, trying to explain many times what it should and should not do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kp8YeQ-wDP2MM3FhM2_UIg.png" /><figcaption>generated Playwright code</figcaption></figure><p>But that was my mistake, as Google did release <strong>Argon</strong> (I guess this is Gemini 4.x) and it did release its own IDE. So maybe I was just using outdated tools to do this, albeit simple scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MJo1RxIBuq0UxkVSIvLqbg.png" /><figcaption>maybe CLI is better when you are close to your OS?</figcaption></figure><p>Things got a lot better using <em>Argon</em> model in <em>Antigravity CLI.</em> Now we are working in a similar way as in Claude Code CLI. Basically the same experience except for one missing feature: auto-mode.</p><blockquote>except for one missing feature: auto-mode.</blockquote><p>This is the killer feature in Claude Code right now: analyse the risk of tool calls, only ask permission when required. This is a trust-fall scenario… but not having it is back one year to babysitting the agents. Approving multiple tools calls per prompt. That is no longer a desirable thing.</p><p>So a bit slower than it had to, but we got there:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DR6x76pQLB0GIuK02gL0Vg.png" /></figure><p>this is a script that uses my <strong>local Ollama LLM,</strong> hosting <em>qwen-14b</em> (generic purpose). Mind you, was using <em>qwen-30b-coder </em>and <em>GLM 4.7 Flash,</em> but these weren’t optimized for tool calling and generic language tasks. They were for coding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cSYatugBl0k2-MRo2-BzeA.jpeg" /><figcaption>some solid advice already! Bear-mode activated</figcaption></figure><p>We can run that script in a cron and get daily or weekly updates pushed to us. With all that effort we have actually proven we don’t need OpenClaw or Hermes at all, but let’s do it anyway to see what gives.</p><blockquote>Code of this project is at <a href="https://github.com/bavobbr/proteine-agent">https://github.com/bavobbr/proteine-agent</a></blockquote><h4>Phase 2: Hermes as local agent</h4><p>To run this in <em>Hermes</em> we need to learn Hermes how to call this script. Which basically means creating a skill that delegates to it. That’s pretty neat, as skills are easy to manage. And version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nJM_yjCMYaAAV4xCUl-TFQ.png" /></figure><p>so I symlinked the skill I maintain in a dedicated git repo into Hermes, as well as config etc and we can then also link up Telegram bot we created earlier as chat interface, pretty neat! Hermes has a nice admin dashboard, as well as a CLI. Both can be used to inetrface directly with the agent and test it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y8ccituFHvYp_FhagDw2NQ.png" /></figure><h4>Not this again</h4><p>But… treacherous waters ahead! And once again this would be a big security risk, that is created by agents just doing things for you but not really asking the hard questions. I’d imagine Claude Opus 5.5 would have but Argon didn’t. To get Hermes going it cloned this into my OS, then launched it via systemctl permanently, then linked up Telegram for me to talk to it remotely and made sure only my Telegram ID could talk to that bot… which is publicly available on the internet.</p><blockquote>which is publicly available on the internet</blockquote><p>It also opens ports for that dashboard and Web UI. because conversing is what it wants to do. But anyone getting into this system gets into an agents that runs free… on my OS.</p><p>A security approach would be to actually host Hermes in an isolated environment, and open up only specific parts but derisk anything that can be obtained from there when someone does get in. Still, the usecase for these agents is to connect your life and manage it, so that demands read access to things like calendar, mail etc. A sandbox won’t stop anyone asking your agent about all that. Worse if it has write permissions.</p><p>For my demo, I kept it local but execute tools in <em>docker</em> on demand. Avoiding the need of an extra machine. So anyone reading data is isolated to the container. And I can still run Chrome on my OS, as Akami WAF would otherwise stop me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xpCxfsWerjRwP76HJYkxqg.png" /></figure><p>This is still quite a risk. There are hosted solutions for these personal agents, but then it would be hard to use a local LLM and you’d end up paying tokens per API usage. That’s a scary thought!</p><p>All that risk aside the experiment did work, as I can now chat to my own agent in natural language to get results. I can extend it beyond protein, and ask for the good stuff that delivers calories: beer!</p><pre>You (Telegram)<br>  │  &quot;Any promos on Skyr?&quot;<br>  ▼<br>Hermes Gateway (Host systemd service)<br>  │  1. Queries local Ollama (qwen3-14b-32k:latest on localhost:11434)<br>  │  2. Reads `~/.hermes/skills/supermarket-promos/SKILL.md` &amp; `MEMORY.md`<br>  │  3. LLM calls `terminal` tool to run `search_on_demand.py`<br>  ▼<br>Docker Container (`personal-agent-sandbox:latest`)   ◄── Created on-demand per session<br>  │  • Isolated (`--cap-drop ALL`, `--pids-limit 256`, no host home access)<br>  │  • Can ONLY see the 4 mounted `proteine-agent` paths<br>  │  • Runs `search_on_demand.py` inside the container<br>  │  • Connects to localhost:9222 (chrome-cdp-xvfb.service) to scrape AH / Colruyt / Delhaize<br>  ▼<br>Hermes Gateway (Host)<br>  │  • Receives script stdout and replies directly on Telegram</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cuZscOoocmnnOd6UnOjC4Q.png" /><figcaption>it did not find any good beer in promotion as it seems to prefer ginger beer over Leffe when you ask. So pretty smart for a local model!</figcaption></figure><p>So open question for me is how I can host a tool like <em>Hermes</em> or <em>OpenClaw</em> in a safe way using my local LLM, and extend the use of it without risking rogue agents or hackers finding a red carpet rolled out when they do get in.</p><p>I might want to buy an extra server. Or maybe run it on my Raspberry 4 next time which is sitting idle these days?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00ac4b21ee0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Skill, agent, script: building Agentic Test Triage]]></title>
            <link>https://medium.com/@bavo.bruylandt/skill-agent-script-building-agentic-test-triage-f7aa0ae9692f?source=rss-dc914db667d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7aa0ae9692f</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[agentic-engineering]]></category>
            <category><![CDATA[skills]]></category>
            <dc:creator><![CDATA[Bavo]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 17:55:15 GMT</pubDate>
            <atom:updated>2026-10-21T17:55:15.992Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@bavo.bruylandt/after-automation-moving-the-bottleneck-with-agentic-triage-abdad13c21fd">Part one</a> showed what our overnight test triage produces and what it changed. This part is the <em>how</em>. We use Claude Code inside GitLab CI, writing to Jira, Confluence and Teams, but the ideas carry over to whatever you run.</p><h3>One rule decides what goes to the model</h3><p>Every piece of the system is one of three kinds of component, and one question decides which:</p><blockquote>Would a careful person do this the same way every time?</blockquote><p>If yes, and the work is mechanical, it is a <strong>script</strong>. Counting how often a log line appears, checking that lines come in the right order, comparing two lists: a model doing that is slower, more expensive and less reliable than a loop, and you cannot regression-test it.</p><p>If yes, but it needs judgement, it is a <strong>skill</strong>: a procedure written down once and loaded by whoever does the work. Which piece of evidence is decisive, what wins when two sources disagree, when to stop and say <em>I could not check this</em>. The judgement is the model’s, but the steps are fixed.</p><p>A second, separate question decides whether something becomes an <strong>agent</strong>: does the work read something in bulk, or run with no human watching? An agent is a container around a skill or a script. In this setup it doesn’t hold procedure of its own.</p><figure><img alt="A decision rule with three outcomes. Mechanical and repeatable work becomes a script; work needing judgement becomes a skill; and separately, work that reads something bulky or runs with no human present is wrapped in an agent, which contains a skill or a script" src="https://cdn-images-1.medium.com/max/1024/1*JpvQWuxHRuFcVidss5z7Iw.png" /><figcaption><strong>Three components, two questions</strong>. Getting the split wrong is how procedure ends up copied into an agent prompt, or how a model ends up doing arithmetic one search at a time. The rule also keeps the inventory small: most new work turns out to be a script.</figcaption></figure><p>Our log reader used to count log markers itself, one search at a time. One triage run spent seven minutes on 71 consecutive tool calls and was killed before it answered, while fetching the data had taken under a minute. Once a script did the counting, the same triage needed 20 tool calls instead of 40 and reached the same verdict. The model kept the part that needs it: deciding which of those counts matters.</p><h3>Anatomy of one triage run</h3><p>The rule says what kind of component something is. The triage pipeline run shows how the components work together. Our multi-configuration radio campaign finishes early in the morning, and about five minutes later there is a report card in Teams. Three stages get it there, only the middle one uses a model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Td_VKencAkaJ9FQtmaqetg.png" /><figcaption>From test job to Teams card. The model appears in the middle column only, and even there it delegates the reading and the counting. Everything before it prepares the evidence and everything after it is a script.</figcaption></figure><p>1. The<strong> test job prepares the evidence</strong>. While the test environment still exists, prom_export.py exports the metric series and config_history.py appends each configuration&#39;s result to a running history. Both have to happen there, because that data is gone once the environment is torn down. By the time triage starts, everything it needs is sitting in the job&#39;s artifacts: JUnit results, base station and terminal logs, metric exports, and the history. This means triage does <strong>not need a live system,</strong> it depends on the output it created.</p><p>2. The <strong>triage </strong>job starts <strong>one orchestrator agent.</strong> One command, simplified here:</p><pre>timeout 20m claude --print --agent pipeline-reporter \<br>  --settings .claude/ci/pipeline-report-settings.json \<br>  --permission-mode dontAsk --strict-mcp-config \<br>  &quot;Triage pipeline &lt;id&gt; using the debug-pipeline-run skill&#39;s L0-L3 procedure.&quot;</pre><p>The flags say what to do:--print runs once and exits, --agent picks the agent definition, --settings applies the permissions written for this one job, dontAsk means it never waits for an approval nobody is there to give, and --strict-mcp-config with no server list means it explicitly starts with no MCP servers at all.</p><p>The agent file, pipeline-reporter.md, is short, and its header does most of the work: the <strong>tools </strong>it may use, the two <strong>helper agents</strong> it may start, that it may not write files or touch any MCP tool, that it never stops to ask, and the specific skill it loads. That skill, debug-pipeline-run, holds the procedure: the evidence ladder from part one. Walking up it:</p><ul><li><strong>L0 and L1</strong>. The agent reads which jobs failed and the suite summary itself. That is a few lines of text, and a clean run is usually settled one level later.</li><li><strong>L2</strong>. It hands the JUnit files to pipeline-result-analyzer. That helper runs junit_digest.py and returns the first failure and its cascade in a dozen lines, so the raw XML never enters the agent&#39;s context.</li><li><strong>L3</strong>. It runs attach_markers.py. One call checks the S0 to S15 stage markers and every candidate defect record from the generated index.json against the logs, and reports each marker as present, confirmed absent or not collected. Only what no script resolves, a job trace or an artifact nobody anticipated, goes to the second helper, gitlab-log-reader.</li></ul><p>Then the model does the one thing that needs it: decide the <strong>first cause</strong>, which failures are its cascade, which known defect it matches and how exactly, and write all that as a report with two marked blocks for the next stage.</p><p>3. <strong>Report is scripts only.</strong> report_extract.py pulls the marked blocks out of the report and checks their format. acceptance_filter.py applies the accepted-failure checks from part one and decides whether the card is red, neutral or green. config_history.py adds the per-configuration strip, and the card is posted. If the agent fails or runs past its twenty minutes, the same step posts a card saying so, so a missing diagnosis is never silent.</p><p>Four design rules for this setup:</p><ul><li>One command per job, and one top-level agent per job.</li><li>The <strong>agent holds identity and permissions</strong>, the <strong>skill holds the procedure</strong>, and <strong>scripts do the counting</strong>.</li><li>Helpers are <strong>leaves</strong>: read-only, with no way to start another agent, so the tree stays two levels deep and every delegation shows up in one trace.</li><li><strong>Code prepares what the model reads</strong> and code parses what it writes. The model never decides the colour of the card.</li></ul><h3>The other flows reuse the same pieces</h3><ul><li>The Wednesday reports are two more top-level agents, ticket-review-publisher and weekly-status-publisher, each preloading its own skill (ticket-review and weekly-status-report) and sharing one helper, jira-ticket-reader, for long ticket histories. Interactively, those skills stop and ask a person before they write a page; in the scheduled job, the agent file says that here it is the approver. The exception lives in the agent file, so running the skill by hand brings the approval step back. Each job writes one Confluence page, and a separate job with no credentials posts the Teams card.</li><li>An engineer’s question runs in a Claude Code session, which is then the top-level agent. It loads the same debug-pipeline-run skill, can also call a trend helper for history across runs, and follows up with pipeline-finding-review, the skill that turns a finding into a ticket and record update after one approval. That skill is denied in every CI settings file.</li><li>The Thursday eval inverts the picture: claude_eval.py, a plain script, starts the production pipeline-reporter on six synthetic runs and scores what it wrote against 32 assertions. It launches the agent exactly the way the nightly job does, so the eval tests the same wiring.</li></ul><figure><img alt="The same skills in two settings. Unattended in CI: started by a schedule, reads the run’s artifacts from local disk, holds a read-only token, can write only a chat card or one Confluence page, and cannot load the review skills. Interactive: started by a person, reads through the API, can go further into trend analysis, uses the developer’s own credentials, and can write to tickets, records and the repository after a person approves" src="https://cdn-images-1.medium.com/max/1024/1*nSBkV0mW3eqXQjC--6NxRw.png" /><figcaption>One set of skills, two identities. The procedure is the same in both columns. What differs is who started it, what it can read, and what it is allowed to change.</figcaption></figure><h3>Context engineering: keep the bulk out</h3><p>A model’s context window is the scarcest resource in the system. Everything in it costs money, slows the run down and pushes something else out. That is why the helpers in the run above exist. One of our defect tickets has a comment thread of about 100 KB, more than a single tool result can carry; a small reader agent reads it in its own context and returns what the ticket currently says. The caller only ever sees the summary. The same goes for fetching: one archive download beats forty file-by-file calls, and a script picks the right files out of it.</p><h3>Containment by scope</h3><p>Our unattended agents deliberately run with an unrestricted shell, and nothing inspects the commands they run. We had a guard that checked commands before they ran, and we removed it: an agent that can read its own environment can find a way around a list of forbidden commands, so the list only suggests a boundary that is not there.</p><p>What actually contains the agent is what the job gives it. The only <strong>repository credential in its environment is read-only</strong>, replaced before the agent starts. The container is thrown away when the job ends. A job that talks to Jira or Confluence is allowed only the specific tools it needs, and the connector itself enforces that list. The triage job gets no ticket-system access at all.</p><figure><img alt="Above: a nightly schedule starts a job in a throwaway container holding a pinned agent runtime, which calls the model API outbound and talks to a ticket-system connector in only two of the jobs. Below: the repository write token that enters the job is overwritten before the agent starts, so a read-only token is the only credential the agent can see" src="https://cdn-images-1.medium.com/max/1024/1*JHxB4BkIn461rcEE2jH2cA.png" /><figcaption>Containment by scope. The agent cannot write because it holds no credential that could, and its container disappears when the job ends.</figcaption></figure><h3>Agentic memory: something the agent can be contradicted by</h3><p>Triage is only as good as what it remembers. Free text does not work as memory: a summary written by the model cannot be checked with certainty.</p><p>So every known defect is <strong>one YAML file</strong> in the repository, checked against a JSON Schema on every commit. Here is a simplified version of one of ours: <em>a terminal that crashes while applying the satellite timing correction it receives in SIB19</em>. The structure and field names are real; the values are shortened</p><pre>key: DEF-21<br>memory_state: active<br>title: UE write queue overflows while applying the SIB19 timing correction, aborting the softmodem<br>headline: UE write queue overflows on the SIB19 timing correction<br>jira: {url: &lt;ticket link&gt;}<br><br>applicability:<br>  flows:      [{value: radio-arm, confidence: confirmed}, {value: split, confidence: confirmed}]<br>  components: [{value: tx-write-queue, confidence: confirmed}]<br>  stages:     {last_present: S5, first_missing: S6, confidence: confirmed}<br>  config_constraints:<br>    status: observed-correlation     # seen on these configs, not proven limited to them<br>    confidence: suspected<br><br>match:<br>  required:<br>    - {source: ue-log, pattern: &quot;Found SIB19&quot;}<br>    - {source: ue-log, pattern: &quot;Write queue full&quot;}<br>  ordered:                           # must appear in this order<br>    - {source: ue-log, pattern: &quot;Initial sync successful&quot;}<br>    - {source: ue-log, pattern: &quot;Found SIB19&quot;}<br>    - {source: ue-log, pattern: &quot;Write queue full&quot;}<br>  absent:                            # must be confirmed missing<br>    - source: ue-log<br>      pattern: &quot;Assertion (tmp2 == 0) failed!&quot;<br>      note: that one aborts at radio start, a different defect<br><br>symptoms:<br>  messages: [&quot;Container restarted on the UE host during the campaign&quot;]<br>  effects:  [&quot;The CPE never starts, so every CPE-dependent test fails&quot;]<br><br>classification:<br>  summary: The timing correction stalls the transmit path until its queue overflows<br>  root_cause_confidence: suspected<br>  intermittent: true<br>  recovery: {value: varies, basis: &quot;restarts and recovers on the radio arm; stays down on split&quot;}<br>  impact: UE aborts before random access; tests that need the link fail<br><br>relations:<br>  - key: DEF-79<br>    type: same-terminal-signature<br>    distinction: Same three crash lines, reached through a transport timestamp gap under load<br>  - key: DEF-77<br>    type: lookalike<br>    distinction: Also passes SIB1 and SIB19, but never gets a random access response<br><br>observations:<br>  - {date: 2026-07, config: 51prb-mu1-delay-tp, test_exposing_failure: test_uplink_ping}<br><br>retrieval:<br>  strong_terms: [&quot;Write queue full&quot;]<br>  aliases:      [&quot;UE crash during the SIB19 timing correction&quot;]<br><br>retrieval_fixtures:<br>  - {name: changed config, kind: changed-config, query: {terms: [&quot;Write queue full&quot;], config: other-config}}<br><br>evidence:<br>  last_reviewed: 2026-10<br>  provenance: [&quot;Root cause corrected by a memory review; the earlier per-config claim is kept, marked retracted&quot;]</pre><p>Each group of fields answers one question:</p><ul><li><strong>Which defect is this?</strong> key, title, headline and the ticket link. One mechanism gets one record and one ticket. The title is the full mechanism statement and feeds search; the headline becomes the ticket summary.</li><li><strong>Where does it apply</strong>? applicability. Flows, components, the attach stage where it occurs, and the configurations it was seen on. Every value carries a confidence, and config_constraints separates &quot;seen on these configurations&quot; from &quot;limited to them&quot;, because a correlation is not a boundary.</li><li><strong>How do we recognise it?</strong> match. Lines that must be present, lines that must appear in order, and lines that must be confirmed absent. Each line names the log it belongs to, and can demand a minimum count or be checked per boot, since one terminal log holds every restart of the run. The absent lines are what keep two defects with the same symptoms apart.</li><li><strong>What does a person see?</strong> symptoms. The messages the tests print and what the failure does downstream, so someone reading a report recognises it without opening a log.</li><li><strong>What is it, and how sure are we?</strong> classification. A summary, the root cause with an explicit confidence (confirmed, probable, suspected or unknown), whether it is intermittent, how it recovers, and a one-line impact.</li><li><strong>What could it be confused with?</strong> relations. Typed links to neighbouring defects, and the distinction sentence is mandatory: you cannot name a lookalike without saying how to tell it apart.</li><li><strong>Where has it been?</strong> observations. Dated occurrences with the configuration and the test that exposed it, which is what the weekly review counts.</li><li><strong>Can we still find it?</strong> retrieval and retrieval_fixtures. Search terms from strong to weak, plus aliases, and four small queries (the original failure, a changed configuration, a changed test, the signature alone) that run in CI and must still return this record.</li><li><strong>Why do we believe it?</strong> evidence. When it was last reviewed and what established each claim, including claims that turned out wrong, so a retracted idea is not rediscovered.</li><li><strong>What state is it in?</strong> memory_state, plus reporting_state and acceptance when the team has decided to live with it, or obsolescence when it has been retired.</li></ul><p>On every commit,<strong> CI validates every record against the schema</strong>, runs every retrieval query, and fails if the generated search index no longer matches the records.</p><p>Three rules keep the memory honest:</p><ul><li><strong>Closing a ticket never retires a record</strong>. Several of our active records sit on closed tickets. They exist so that a recurrence is recognised instead of filed as new.</li><li>A known defect in a new place <strong>widens the existing record</strong>. It does not create a second one. One mechanism, one record, one ticket.</li><li><strong>A decision not to act</strong> is stored as data. A failure the team accepts gets a written reason and a narrow scope, and the nightly card stops leading on it. The moment the failure stops matching what was accepted, it is reported again by itself.</li></ul><p>Rules only hold strong if something validates them, and that is the job of memory-review: a sweep over the whole record set that a person starts. It validates every record and the generated index, then looks for what slowly goes wrong in any memory: two records describing one mechanism, claims that went stale after a test changed, confidence that drifted away from the evidence, tickets with no record, records whose ticket lost its label, and facts left in ticket comments that no record absorbed. Like the finding review, it proposes a list and waits for one approval.</p><p>It also remembers where it stopped, at the commit before its own changes, so its own edits are checked the next time it runs.</p><h3>One approval closes the loop</h3><p>The loop runs from the nightly test, through unattended triage and a chat card, to a person, and back into the records that the next night’s triage reads. It crosses from reading to writing at exactly one point.</p><figure><img alt="A closed loop: nightly test run, unattended read-only triage, a chat card, a person, an interactive finding review, a single human approval, and then writes to the ticket system, the record store and one commit. The record store feeds back into the next night’s triage. The approval is the only point where the loop crosses from reading to writing" src="https://cdn-images-1.medium.com/max/1024/1*DYvpvY2YV2rqtGt_vIs1AA.png" /><figcaption>One crossing point. Everything before the approval is reading. Everything after it is durable state that the next night’s run treats as established. Publishing the commit is a second, separate approval, because it writes where other people can see it.</figcaption></figure><p>When someone follows up a card, the review skill reads the full records again and stops with a short list of proposed actions: one decision per item, each saying what it will <em>not</em> do. A ticket comment and the record edit it implies are one item, so they can never end up disagreeing. One approval applies the whole list.</p><h3>Green and blind: testing the layer itself</h3><p>The lesson that cost us most was about checks that pass while doing nothing. An agent that fails loudly costs an afternoon. A check that cannot fail still reports success every morning, and nobody has a reason to look at it twice. One of our source comments called it <em>green and blind</em>, and we kept finding new cases:</p><ul><li>Say <strong>how many times a check must match</strong>. A check that finds a pattern and inspects it reports success forever when the pattern matches nothing. Every locator now states its expected count, and zero is a failure.</li><li>Test <strong>what the agent should not say, with a pair.</strong> A weekly job re-runs the triage agent on six synthetic test runs with known answers. Two of them differ by a two-line configuration change and need opposite reports: in one a missing measurement is expected and must be ignored, in the other it must be raised. An agent that answers the question instead of reading the evidence passes each alone and fails the pair.</li><li>Check <strong>that your evidence could have come out differently</strong>. About four in ten of our metric series are constant on every configuration, so they agree with any claim. A script removes them before the model sees these.</li><li>Know what each <strong>destination does to your text</strong>. A Jira comment turned test_no_softmodem_fault_markers into test*no*softmodem*fault_markers. A pattern copied back from there can never match again, so patterns are only taken from captured logs or source code.</li></ul><figure><img alt="Two synthetic input trees are identical except for one configuration line. Both are missing the same measurement. The first must produce silence, the second must produce a reported anomaly" src="https://cdn-images-1.medium.com/max/1024/1*n6UoJrFSMjOYevucGauqtA.png" /><figcaption>Absence of evidence is a finding only when the evidence was expected. Neither case tests that on its own, because each has a single correct answer that a broken agent can reach for the wrong reason</figcaption></figure><p>All of this is ordinary software engineering applied to a language model. The difference is that this component does not crash when it goes wrong. It keeps returning something reasonable-looking every night, whether or not it still knows what it is looking at.</p><p><em>This is part 2 of 2. Part 1, </em><a href="https://medium.com/@bavo.bruylandt/after-automation-moving-the-bottleneck-with-agentic-triage-abdad13c21fd"><em>After automation</em></a><em>, covers what the system produces and what it changed.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7aa0ae9692f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[After automation: moving the bottleneck with agentic triage]]></title>
            <link>https://medium.com/@bavo.bruylandt/after-automation-moving-the-bottleneck-with-agentic-triage-abdad13c21fd?source=rss-dc914db667d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/abdad13c21fd</guid>
            <category><![CDATA[qa-testing]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[automated-testing]]></category>
            <category><![CDATA[5g]]></category>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[Bavo]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 06:25:31 GMT</pubDate>
            <atom:updated>2026-10-21T18:02:06.309Z</atom:updated>
            <content:encoded><![CDATA[<h3>After Test Automation: moving the bottleneck with Agentic Triage</h3><p>One of our test campaigns went fifty nights in a row without a single fully green run. A few weeks later it ran green ten times in a row. In between, every failure was read, diagnosed and ranked by the next morning, so the team fixed the ones that kept coming back. <br>This series is about a system that does the analysis, what it costs, and why we let it decide nothing on its own.</p><p><em>This is part 1 of a two-part series about agentic triage. Part 1 focuces on the why and the added value it brings today, </em><a href="https://medium.com/@bavo.bruylandt/skill-agent-script-building-agentic-test-triage-f7aa0ae9692f"><em>the next part on the how</em></a><em> - using latest concepts of context engineering, agentic memory and an ecosystem of skill/agents and scripts.</em></p><h3>Every step automates the problem the last one created</h3><p>We had already automated the tests. Every night the rig ran eighteen radio configurations against real hardware without anyone awake, and every morning there was a red pipeline and half a day of an engineer’s time spent working out why. Automation had not removed the QA bottleneck; it had moved it downstream, to a pile of results nobody had time to analyse. That is the general pattern: each generation of test automation removes one constraint and exposes the next one, always a step closer to the decision.</p><blockquote>Before automation, a person ran the QA flow. Someone brought the stack up, ran the tests, wrote down what happened. The constraint was <strong>execution</strong>.</blockquote><p>Coverage is capped by human hours, which rules out a nightly matrix of eighteen radio configurations in a 5G testbed scenario like ours.</p><p>With strong automation using pipelines, Ansible and pytest, the machine runs it. Execution is solved: the testbed runs whether or not anyone is awake. The constraint moves to interpretation.</p><blockquote>You generate far more evidence than anyone has time to read, and an untriaged suite soon gets ignored.</blockquote><p>With agents on top, the machine reads all that. What gets automated now is the <em>reading</em>: which failure is causal, is this the same defect as Tuesday, does the telemetry agree with the answer? The constraint moves again, to trust and decisions. What may it decide alone, and how do you know it still works?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Efe11quWaCgxSfZLBDuOfQ.png" /><figcaption><strong>The frontier moves right, and the constraint sits just past it</strong>. In the bottom row we put it there on purpose: the decision is the one step we are not trying to automate, and most of the engineering goes into making that boundary real.</figcaption></figure><p>The trust and decision machinery is where the work goes. Writing an agent that reads a failed test run took days. Making its output safe to act on without a person double checking it took months: write gates, a structured memory that can be contradicted, containment that does not rely on good intentions, and a weekly job that reruns the agent against known answers to check it still behaves. That work is why the output gets useful and thus used.</p><h3>Our test challenge</h3><p>We test a software-defined 5G non-terrestrial stack: a base station and a user terminal over a satellite link, with the propagation delay, Doppler shift and timing budget that implies. Part of it runs on cloud instances. The rest runs on always-on bare metal with real software-defined radios attached, because that is the only way to find out whether actual RF works.</p><p>A night covers five campaigns over many radio configurations: bandwidths from 25 to 256 resource blocks, multiple numerologies, transform precoding on and off etc resulting in countless permutatioms. One such campaign runs 272 end-to-end test cases, 34 per configuration. The longest campaign takes two and a half hours. They are sequenced so they do not contend for the hardware, and the night finishes around 06:00 AM.</p><p>A few months ago the morning after went like this: open the pipeline, find the red jobs, open each one, scroll the trace, download the artifacts, and grep on several log files that only make sense if you know the attach sequence. Then decide whether today’s failure is the same one as yesterday’s. That was half a day of one engineer’s time, and the result lived in their head and in a chat message until they took the time to report on it.</p><figure><img alt="Timeline from 23:00 to 09:00. Five campaigns start at 00:00, 00:00, 01:00, 02:00 and 03:00, running 46 minutes, 2 hours, 24 minutes, 46 minutes and 2 hours 33 respectively. Three of them hand off to a triage step of about five minutes; the two smoke campaigns do not. The resulting reports wait together for the engineer who arrives at 08:30." src="https://cdn-images-1.medium.com/max/1024/1*Go6cYIjdM6rRvVHnk0N2TA.png" /><figcaption><strong>examplke of a night as it runs</strong>. Start times and bar lengths are measured from the last week of nightly runs. Two of the five campaigns have no triage attached: the smoke suites are small and stable enough to read by hand, and one of them checks that the stack still builds and runs on arm64. Figure grammar, used throughout: <strong>rounded </strong>= a step that uses a model, <strong>square </strong>= deterministic (a script, a job, a store), <strong>pill </strong>= a person, <strong>amber </strong>= the element under discussion.</figcaption></figure><h3>Overnight triage</h3><p>When a campaign finishes, a read-only agent takes over. It works down a fixed evidence ladder and stops at the first level where the answer is decisive, then posts a message card to the Teams channel, about five minutes after the campaign ends.</p><figure><img alt="The evidence ladder. Five levels, each answering one question from a fixed source. L0 status and flow, L1 verdict, L2 structured failures, L3 logs and metrics, L4 trend. A clean run stops at L2, a failing run usually at L3. The nightly job never goes below L3; trend history is for interactive sessions" src="https://cdn-images-1.medium.com/max/1024/1*1kYlIPjxrsXEDXMZVCKYtQ.png" /><figcaption><strong>The evidence ladder</strong>. Each level answers one question from one source. A clean run is settled at L2. A failing run usually needs L3, where scripts count the log markers, read the metric export and score the known records, and the model judges the result. Trend history is left to interactive sessions.</figcaption></figure><p>The tests are named after the attach stages they check (internally called S3, S4/S5, S6 and so on), so a failure arrives tagged with its stage before the agent reads anything.</p><p>The agent reports the first failure and considers the rest as cascade. A base station that stops transmitting produces a long list of failures: registration fails, the terminal’s interface never appears, the pings time out and the throughput tests error.</p><figure><img alt="On the left, seven failed test rows as a dashboard shows them. On the right, a four-step causal chain beginning with the base station going silent after radio initialisation; every one of the seven rows hangs off the last step of that chain" src="https://cdn-images-1.medium.com/max/1024/1*Ht79fQCbwPVBr2zN8mv2Lg.png" /><figcaption><strong>Seven failed rows, one single defect</strong>. The agent reports the first causal failure, marks the rest as cascade, and locates the fault in the attach sequence. It then checks the result against the existing records before anyone opens a log.</figcaption></figure><p>The agent cross-checks its lead against the metrics the run captured: the series that track the aspects the lead depends on, read beside the matched sibling configuration as a control.</p><h3>Accepted failures</h3><p>Some failures are known, analyzed and not scheduled for a fix this quarter: a limit of the hardware, a defect confined to one radio arm, something waiting on an upstream change.</p><blockquote>These keep the report card red every night, and people stop opening a card that is always red.</blockquote><p>A record can thus carry a decision to <strong>accept the failure</strong>. Accepting does not close the ticket, skip the test or drop it from the report; the failure is still triaged and counted. The only effect is that it no longer turns the card red. Multiple of our records carry an acceptance today.</p><p>An acceptance is scoped to a flow, a profile, named configurations and a processor architecture, and it is narrow by default because the two possible mistakes are not symmetrical. Too narrow fails loudly: the card reports something you had accepted and you notice the same night. Too wide fails silently, and something new hides behind an old decision. An acceptance is also conditional. If the failure stops matching what was recorded, through a different attach stage, a partial signature match or a configuration outside the scope, it becomes actionable again without anyone checking.</p><p>The report card has three tones. <strong>Red </strong>when something needs a person. <strong>Neutral (or gray) </strong>when everything that failed was accepted and unchanged, which claims neither success nor failure. <strong>Green </strong>when nothing failed. One guard rail: a run that failed but produced no findings renders red, so an unexplained bad night cannot be perceived as a quiet one.</p><figure><img alt="How a finding is sorted. Four checks in sequence: is the record accepted, does its scope cover this run, was the match exact, is the attach stage the same as recorded. Failing any check makes the finding actionable. Passing all four makes it accepted and unchanged. Any actionable finding turns the card red; if every finding is accepted and unchanged the card is neutral; if nothing failed it is green. A failed run with no findings is also red." src="https://cdn-images-1.medium.com/max/1024/1*xu42aio9Jj35VYcvdtxveA.png" /><figcaption><strong>How a finding is sorted</strong>. A script (not the LLM model) applies these four checks to each finding using the record’s acceptance block. The amber branches are the conditions under which an accepted failure comes back without anyone re-checking it. The card is neutral only when every finding reaches the bottom box.</figcaption></figure><p>An example Teams card from a pipeline run:</p><figure><img alt="A redrawing of one nightly Teams card. The header reads FAIL, 1 actionable. One actionable finding is listed with its defect key, its exact match, that it is unaccepted, and the configuration it failed on. Four counters follow: 7 of 8 holds held, 7 of 7 functional tests passed, 1 actionable, 94 per cent of tests passed. Then the failed configuration, a plain-language lead failure, and a root-cause paragraph that names five candidate defects searched and confirmed absent. At the bottom, a per-con" src="https://cdn-images-1.medium.com/max/1024/1*7ipR1PIEHhzcWWUFeep6-g.png" /><figcaption><strong>One Teams card. </strong>Every number and line of evidence comes from a nightly run; only the defect keys are masked and the chat client’s chrome is left out. Besides the lead failure, the middle section lists five candidate defects that were searched and confirmed absent. The strip at the bottom shows that no configuration failed every run, so six of the eight are intermittent.</figcaption></figure><h3>The record store</h3><p>Triage reads two things: the run that just failed from Gitlab, and the YAML records written from every run before it.</p><p>Findings are stored as schema-validated records, 40 of them currently active. Each carries the log signatures that identify the defect, the discriminators that separate it from its lookalikes, and the related Jira ticket. They are validated on every commit and regenerated into a retrieval index. Free text does not work here: you cannot match last nights failure against one of half a year ago. See the technical part 2 how this is implemented in detail.</p><h3>Weekly trend dashboards and reports</h3><p>Once a week both radio campaigns are rendered over the previous seven days: a pass/fail grid per configuration, which failure modes recur, and whether a configuration’s outcome is decided by the configuration. Published artifacts expire after a week, so a run is snapshotted into a cache that outlives them. Seventy-six are held there now.</p><p>This job uses no model. It is a script making read-only API calls, so it costs CPU cycles rather than tokens, and it renders the same dashboard from the same input every time.</p><figure><img alt="A weekly trend dashboard redrawn: ten radio configurations by 36 scheduled runs over five weeks, each cell coloured by how deep that configuration failed on that run. Through September most configurations fail on most runs, several of them every time. After fixes landed in early October almost every cell is a pass; the one failure on the last run is a known defect" src="https://cdn-images-1.medium.com/max/1024/1*lp4nkHo0v_M5j7OJI404dA.png" /><figcaption>Five weeks of one radio arm. Each cell is one configuration on one run, coloured by how far the failure got. A row that stays red run after run is a defect; scattered cells are the rig or the night. The dashed line marks the fixes in early October, which the next sections come back to.</figcaption></figure><p>Two documents are published before anyone opens a laptop. The first ranks <strong>open defects by how recently and how often they recurred</strong>, using both the ticket system and the record store, and is ready two hours before the defect review with the team members. The second is release notes: it resolves its own reporting window by continuing from the last published page, summarises<strong> what shipped from commit history.</strong></p><p>The hour that used to go into assembling the agenda now goes into the discussion.</p><figure><img alt="A weekly defect review page redrawn with masked ticket keys. Four counters: 18 open defects, 11 seen again in the last 14 days, 5 that still need a record, 12 closed because they stopped recurring. Then the three defects with the strongest recent recurrence, each with how it recovers and how many runs it appeared in over 14 days." src="https://cdn-images-1.medium.com/max/1024/1*v17n4mKBlxqnuq7z1GK6MQ.png" /><figcaption><strong>The Wednesday defect review</strong>. Ticket keys are masked and the descriptions shortened. The counters at the top show the trend; the focus list is what the meeting discusses first, ranked by how recently and how often each defect came back.</figcaption></figure><h3>Actual product impact</h3><p>The campaign from the opening of this article is our newest radio arm, ten configurations on our latest radio driver. From late August to early October it did not produce one fully green run: fifty in a row. This is often the case in testing, as one failure causes the whole pipeline to be red. It was the campaign the per-configuration view was built for, and that view gave the same answer every night. Most configurations failed every time, which points at clear defects.</p><figure><img alt="Every scheduled run of the ten-configuration radio arm from late August to mid-October, one dot per run. The first fifty runs all failed. Fixes landed over three days in early October. The next ten runs all passed. The one failing run after that was matched exactly to a known defect" src="https://cdn-images-1.medium.com/max/1024/1*SZCCwMG1zLVfA6qH5bO7MQ.png" /><figcaption><strong>Fifty red, then ten green</strong>. One dot per scheduled run, including the few played again by hand from the schedule. The dashed line marks the three days in which the fixes landed. The first red run after them was recognised from its log signature before anyone opened a log</figcaption></figure><p>Over those weeks triage turned each red night into a small set of named, recurring mechanisms, the records collected their occurrences, and the Wednesday review kept the most frequent ones at the top of the list. Over three days in early October the developers landed fixes for several of them: a GPS setting that did not actually switch GPS off, a fault at base-station start-up, and too little timing margin for the software modem. From then on the campaign ran green ten times in a row.</p><blockquote>The first red run after that, in mid-October, was matched exactly to a known defect which we could act upon. A test result that is actionable!</blockquote><p>What the process did was make the failures specific enough to fix, and keep them ranked until someone did. The defect review shows the same trend from the other side: twelve tickets were closed between mid-September and early October because they stopped recurring, each with its record kept active in case it comes back.</p><h3>What we kept out of the model</h3><p>Two limits do most of the work, and both are things the system does not do.</p><p>The first is that <strong>unattended agents publish their own output and nothing else</strong>. The triage agent writes a chat card. The two weekly agents each write one page.</p><blockquote>None of them creates a ticket, changes a ticket’s state or edits a source document.</blockquote><p>The credentials enforce this: the token in the job is read-only, and the container is destroyed with the job. <a href="https://medium.com/@bavo.bruylandt/skill-agent-script-building-agentic-test-triage-f7aa0ae9692f">Part two</a> covers how it is wired. A command allowlist would not have added much security, since an agent that can read its own environment can work around one.</p><figure><img alt="The unattended CI agent has write edges only to the chat card and the published page. Its path toward tickets, memory and the repository stops dead at a boundary: no such edge exists. The engineer’s session reaches those three, but only through a human approval step" src="https://cdn-images-1.medium.com/max/1024/1*nGxJ_1YJHukhNUaDPzjAxQ.png" /><figcaption><strong>The missing edge</strong>. Everything the unattended side can write, it produced itself. The three stores that hold durable state are reachable only through a person, running the same procedures with a different approval identity.</figcaption></figure><p>The second is that <strong>arithmetic belongs in a script</strong>. Our log reader used to count log markers itself, one search at a time. One triage run spent 10 minutes across 70+ sequential tool calls and was killed at the job’s fifteen-minute limit without returning anything, while the data it needed took only 30 seconds to fetch. Moving the counting into a script took the same pipeline from 39 tool calls to 23, and from 23 inside that component to 6, with the same verdict.</p><blockquote>The rule to use: if a careful person would do a task the same way every time, it is a script.</blockquote><p>The model keeps the judgement, which is deciding which signal is decisive, whether an alarming line is benign at this rate and position, and what the final verdict is.</p><h3>Testing the agent layer</h3><p>An agent whose output gets worse without failing is hard to notice, because the output still looks like an answer. We treat the agent layer as production code: 200+ automated tests over its structure, and a weekly job that re-runs the triage agent against six synthetic evidence trees and scores 32 assertions against what it produced.</p><p>The hardest thing to test is what the agent should <em>not</em> say. It cannot be done with one case, because a single case can pass for the wrong reason. The pair of inputs we built for it, and the other checks that looked like coverage and were not, are in <a href="https://medium.com/@bavo.bruylandt/skill-agent-script-building-agentic-test-triage-f7aa0ae9692f">part two</a>.</p><h3>Cost, and how it fails</h3><p>A night is three triage runs, and each records what it spent. Over the first two weeks the median was <strong>$1.46</strong> a run, and a failing run that needed a lot of evidence read could reach $5. At the end of September we moved triage from Claude Sonnet 5 to Sonnet 5.5, which is one CI variable. Over the 22 runs since, the median is $0.78: about $0.30 for a clean run and $1.08 for a failing one, and no run has passed $1.56. Failing runs also take fewer turns than before.</p><figure><img alt="Cost of every scheduled triage run over three weeks, one dot per run. Before the end of September failing runs cost between about one and five dollars, median 1.46 dollars across all runs. After the triage model changed from Claude Sonnet 5 to Sonnet 5.5, no run cost more than 1.56 dollars and the median is 0.78 dollars" src="https://cdn-images-1.medium.com/max/1024/1*waodl3M7jkRQzmDoWGenwA.png" /><figcaption><strong>Every scheduled triage run over three weeks</strong>. One dot per run, 70 in all. The model change falls in the gap between the two clusters. Skills and records kept changing on both sides of it, so not all of the drop is the model.</figcaption></figure><p>The two weekly documents cost about $10 and $2. That is roughly $125 a month plus CI runner minutes, against the half day of engineer time it replaced. Because the total is small, our cost work goes into the steps that run constantly.</p><p>We have not seen it invent or hallucinate a log line. It fails in another direction instead: over-confidence about absence, concluding that something is not there when nobody looked.</p><p>That has cost us time. One such defect signature carried patterns that could never match anything, so when the defect recurred, triage rejected the match and filed the occurrence under the wrong ticket. Six tickets were later closed as stale on reasoning that could not separate a broken signature from an absent defect.</p><p>The fixes were structural. Evidence is now three-valued: present, confirmed absent, or not collected. Not collected never counts as absent, and a review agent that hits one stops and asks for the artifact.</p><figure><img alt="our searches for a defect marker. The first finds it three times. The other three all return zero hits. A two-valued reading calls all three absent. A three-valued reading separates them: the second is confirmed absent because the log was collected and searched, while the third, a log missing from the artifacts, and the fourth, a metric export taken while Prometheus was unreachable, were never searched at all and are not collected." src="https://cdn-images-1.medium.com/max/1024/1*csb3t3XJb9ztcPaXVL7A5w.png" /><figcaption>Same count, different meaning. Three searches return zero hits. Only the first looked in a place where the marker could have appeared. A two-valued check reads all three as absent, which is the over-confidence described above.</figcaption></figure><p>Every pattern is verified by count against a captured log before it is written down and committed.</p><h3>What we would do differently</h3><ul><li>Put the model where judgement is needed and a script everywhere else (even if that too was LLM-generated!). The seams where we removed the model got faster, cheaper and more reliable.</li><li>Make the memory structured from the start. Free text cannot be matched at scale.</li><li>Report the first causal failure. A list of twenty failed tests is usually one defect, and a tool that repeats the list has added nothing.</li><li>Let unattended jobs publish their own output and have no write access to anything else. It is a small promise, and it is what makes the pipelines safe to run unsupervised.</li><li>Test the agents like production code, including what they should stay silent about.</li></ul><p>None of this replaced our engineers. It replaced tedious work opening jobs one at a time, grepping for something already found four times this month, and rebuilding the same agenda every Wednesday. The engineers now start the day from a useful diagnosis instead of a list of red jobs.</p><p><em>This is part 1 of 2. Part 2, </em><a href="https://medium.com/@bavo.bruylandt/skill-agent-script-building-agentic-test-triage-f7aa0ae9692f"><em>Skill, agent, script</em></a><em>, covers how it is built.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abdad13c21fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Publishing to IG using Google AI Studio]]></title>
            <link>https://medium.com/@bavo.bruylandt/automated-publishing-to-ig-using-google-ai-studio-43c7a1409963?source=rss-dc914db667d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/43c7a1409963</guid>
            <category><![CDATA[google-ai-studio]]></category>
            <category><![CDATA[twizzit]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[instagram-stories]]></category>
            <category><![CDATA[google-gemini]]></category>
            <dc:creator><![CDATA[Bavo]]></dc:creator>
            <pubDate>Mon, 07 Sep 2026 11:45:40 GMT</pubDate>
            <atom:updated>2026-09-07T12:25:33.521Z</atom:updated>
            <content:encoded><![CDATA[<p>In our<a href="http://www.dmon.be/"> field hockey club </a>we have this weekly task where we look at what matches will be played in our club that weekend, put that on a nice image that shows our club and then share this to IG as a post and story.<br>This way our members can see who they can come and support, and it also communicates how lively a lively bunch we are!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*7HrqLECyWdGaVYk6viziGQ.png" /><figcaption>sinmple and effective, using Canva</figcaption></figure><p>This comes at a price though. A social media team member needs to pull that data in, filter it, then copy it one by one in Canva, export image and create a post. So let’s automate!</p><blockquote>So no Claude Code or Antigravity and Vercel deployment this time.</blockquote><p>… and while we are at it, learn something. So no Claude Code or Antigravity and Vercel deployment this time. Since we might be using AI for this, <a href="https://aistudio.google.com/">Google AI studio</a> might be the right place to make this?</p><h4>The problem to solve</h4><p>The task is basically this</p><ul><li><strong>Pull match data from Twizzit</strong> for the weekend: Twizzit has an Openapi REST API with oauth for our club, so we can do this. We already did this for bar planning.</li><li><strong>Filter </strong>the data for home matches</li><li><strong>Generate an image</strong> that uses a random image from a pool of possible images, and then a readable text section with the matches and our logo. This is the tricky part I would normally use <em>Claude Design</em> for, but let’s see how Google AI Studio handles that</li><li><strong>Post the image back to Instagram</strong>: Instagram has an API for this. No fun at all, just reading posts for our site was already an adventure into multiple Meta sites that seem to do the same thing… Meta Business Suite, Meta Developers site, coupling with Facebook user across a personal and business account. This is one circle of hell.</li></ul><h4>Google AI Studio</h4><p>I have <a href="https://medium.com/@bavo.bruylandt/bad-vibes-learning-the-hard-way-9bf7a9924e25">used this before</a>… and it cost me money. But they also paid back and so got my goodwill! This seems to run on Gemibni Flash 3.8 at the moment, which scares me a bit as Flash is less strong than Pro, but then again 3.8 is a newer one <a href="https://artificialanalysis.ai/agents/coding-agents">that scores well</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wgY-ebnmxP9h7VyYr8lCUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALkSW_7BcK5vZbst3DoCSg.png" /><figcaption>it all starts with a basic prompt</figcaption></figure><p>As with many you start with a prompt. Not the first thing that looks very similar to <a href="http://lovable.dev/">Lovable</a>! But not something I like that much, this is not <a href="https://medium.com/@bavo.bruylandt/building-a-bar-scheduler-for-our-hockey-club-f3800b7fe078">spec-driven at all</a>. So the best chance of decreasing the number of iterative cycles needed is giving it as much context and guidance as you can upfront. Because it will not ask questions, it will just go for it. <br>Very cool for demos, but we are burning tokens here. Even if not mine to pay for as I am in a Google AI Pro subscription (about 25 dollar a month, but you can develop basic stuff for free as well)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DadwyYet8L6lPjWGZeT8qg.png" /><figcaption>first attempt after initial prompt</figcaption></figure><p>The first attempt doesn’t look half bad? It used my sample image and brandkit image to generate an app that appears to do the part. But it didn’t ask any questions, and it should have because:</p><ul><li>how will it actually <strong>fetch </strong>matches if I didnt give it the URL of the Twizzit API? Nor any credentials</li><li>how will it <strong>post </strong>to IG if it doesnt have a token?</li><li>why is this a <strong>webapp </strong>at all? The sequence it needs to go through is a data pipeline without human intervantion, so why do we need this UI?</li></ul><p>You need to ask to find out it ‘simulated’ those features, and apparantly just likes to build React apps by default.</p><h4>Finetuning</h4><p>So we needed to finetune some things:</p><ul><li>be able to upload our own images and make them persistent across sessions (<em>useState </em>is not good enough)</li><li>make sure it gets the right Twizzit data with our credentials</li><li>make sure it can post back to Instagram (which it guides really well, setting this up is tricky as said)</li><li>use our real logo not a hallucinated one</li><li>put two days on a single image instead of two</li><li>cache API requests towards Twizzit</li></ul><p>But that was basically it and it produces what we need:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LOndVQC8PskVJ8wO-1m6DQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GON7QCnRmBVs8dpiLdm7HQ.png" /><figcaption>loads the match data by itself and creates an image</figcaption></figure><p>This implements the flow really well and allows both a manual process of generating, verifying and posting as well as a scheduled plan that does all this every friday.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHppPajq5J50uuxx10cKlw.png" /><figcaption>looks more complicated than it is as it combines both automated as manual HITL flow</figcaption></figure><h4>But be careful…</h4><p>This builds the app inside Google AI studio. It makes it easy — ofcourse — to publish this to Cloud Run on Google Cloud Platform with a single click.</p><p>It did this — again — without asking questions, right to a URL that is publicly accessible. That means that suddenly the whole internet can reach my app, do Twizzit fetches and IG post to our account!<br>Adding auth is suddenly very urgent. No biggie.</p><p>As usual I then sync and publish to Github. <a href="https://medium.com/@bavo.bruylandt/bad-vibes-learning-the-hard-way-9bf7a9924e25?source=user_profile_page---------2-------------dc914db667d1------------------------">Lessons learned</a>, so I asked if no tokens would leak:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*QkFZdSIDWMdyA8dW_-1iuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*EANnRKBh865yh5wiC_PI0w.png" /><figcaption>sorry for Dutch</figcaption></figure><blockquote>leaking my Meta API token, my Twizzit credentials and my app login</blockquote><p>Good thing I did this time. It was leaking my Meta API token, my Twizzit credentials and my app login with the ones I used during testing. Wow.</p><p>After fixing I did a manual pass and found that the default pass was still in the readme as sample. This tool really doesn’t care.</p><h4>Conclusion</h4><p>The end result is there, it really posts to our feed exactly as we need it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G9nu4xM8iMzOcVHO6reUTQ.jpeg" /><figcaption>it’s alive!</figcaption></figure><p>As a consultant I would have around <strong>4 billable hours</strong>, I started this in sunday evening and ended the same day. That’s still thrilling, to see how far this type of software development has evolved.</p><p>Especially with Google AI Studio, it means no local software required and all is done in one single app in a flow that feels much like Lovable. Going from develop to deploy? Again very easy thanks to Google Cloud Platform (although maybe this was easier for me than for others as I already had an account and knew how to make a new project to host it in).</p><p>It didn’t complain about tokens and limits, I guess my Google Pro account is more than enough. Even for free tier users it might be, as Google tends to promote their ecosystem via these user-friendly tools. And the final result doesn’t even use AI (I though it would but Gemini Flash made this inpure SVG-based logic) so it’s very cheap to host.</p><p>All this screams vibecoding is for everyone. But do this, and you would invite the whole world into your services. It should ask a lot more questions and apply gates to protect the user from himself. At least Lovable will flag possible risks.</p><p>Who is Google AI Studio really for? I’m left pondering.</p><p>As always the source code lives here: <a href="https://github.com/bavobbr/dmon-insta-matches">https://github.com/bavobbr/dmon-insta-matches</a><br>But who cares about source code these days? It’s all about the process to get to it now</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43c7a1409963" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Goal driven development using Codex]]></title>
            <link>https://medium.com/@bavo.bruylandt/goal-driven-development-using-codex-62c3c5754b9a?source=rss-dc914db667d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/62c3c5754b9a</guid>
            <category><![CDATA[iteratr]]></category>
            <category><![CDATA[openai-codex]]></category>
            <category><![CDATA[spec-driven-development]]></category>
            <category><![CDATA[twizzit]]></category>
            <category><![CDATA[agentic-loop]]></category>
            <dc:creator><![CDATA[Bavo]]></dc:creator>
            <pubDate>Tue, 07 Jul 2026 19:30:50 GMT</pubDate>
            <atom:updated>2026-07-07T19:30:50.651Z</atom:updated>
            <content:encoded><![CDATA[<p>The hype thing today (we are June 2026) seems to be loop engineering, which had its early start as <a href="https://ghuntley.com/ralph/?">Ralp Wiggum loop</a> and is now everywhere, with especially the Head of Claude <a href="https://addyosmani.com/blog/loop-engineering/">saying all he does is write loops</a>.</p><p>That evolution is</p><blockquote><strong><em>Prompt engineering → context engineering → agentic engineering → loop engineering</em></strong></blockquote><p>To do this you need a <strong>spec</strong> that can be planned and <strong>goals</strong> that can be evaluated. And to do this <em>well</em>, you need an external evaluator that sits outside of the agent doing the actual implementation.</p><p>This is all very new to me, and actually to most agentic harnesses as well, as I now only Claude natively supports the idea of goals.</p><p>And you have tools that wrap around harnesses via ACP (Agent Client Protocol, an API around an harness) like <a href="https://github.com/mark3labs/iteratr">Iteratr</a>.</p><h4>Opencode and Iteratr</h4><p>As I often use Opencode — a CLI harness that supports Openrouter API keys— my only chance there was to use <strong>Iteratr</strong>, that can talk to it via ACP. <br>This CLI tool can take a spec, deriuve tasks from it and then keeps calling Opencode task by task until done. That is for sure a loop.</p><pre># My Feature<br><br>## Overview<br>Build a user authentication system.<br><br>## Requirements<br>- User login/logout<br>- Password hashing<br>- Session management<br><br>## Tasks<br>- [ ] Create user model<br>- [ ] Implement login endpoint<br>- [ ] Add session middleware<br>- [ ] Write tests</pre><pre>iteratr build --spec specs/myfeature.md</pre><p>But that doesn’t mean it evaluates. If you want to do that, more work is needed. You need to provide hard-coded hooks, that it will call every time it wants to complete a task</p><pre>version: 1<br><br>hooks:<br>  session_start:<br>    - command: &quot;git pull --rebase&quot;<br>      timeout: 30<br>    - command: &quot;go build ./...&quot;<br>      timeout: 60<br>      pipe_output: true  # Send build errors to agent<br><br>  pre_iteration:<br>    - command: &quot;golangci-lint run ./...&quot;<br>      timeout: 30<br>      pipe_output: true  # Agent sees lint errors and can fix them<br><br>  post_iteration:<br>    - command: &quot;go test ./... -short&quot;<br>      timeout: 120<br>      pipe_output: true  # Agent sees test failures next iteration<br>    - command: &#39;curl -X POST $SLACK_WEBHOOK -d &quot;{\&quot;text\&quot;:\&quot;Iteration done\&quot;}&quot;&#39;<br>      timeout: 5<br>...</pre><p>I think this <em>could</em> work fine, but is very explicit in what the hooks are. The evaluation is really focused on static code analysis and tests. Tests that may not actually exist yet either. I see the point of using this for an existing project, but looks the wrong order of things for a new one.</p><h4>Codex and spec-driven development</h4><p>While Claude would be the easy choice I went for Codex as it was a long time ago I used it. Codex does not support goals yet, so you need to guide it.</p><blockquote>My usecase was to create an app in a SINGLE SHOT, one that does data analysis for me. So directly from SPEC to final, unattended.</blockquote><p>The problem is a real use-case: for our hockey club we want to know per team who was most present in training and matches over a season. Data comes from various sources (Federation data, Club data). We also don’t know upfront how the weighting training versus match home or match asway should be, so all that should be configurable. And we want to be able to ingest new data, for new teams and new seasons.</p><p>To write such spec in a single shot is extremely hard, so I went for a brainstorming phase first (inspired by Claude Superpowers)</p><blockquote>I want to write a spec for you to implement on a new project. The idea is that we brainstorm together what we need to build, and that we have a spec MD that I can then pass in a new session with completion goal so you can create this unattended until completion.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gxYV9ZoWzkLHd7_iSB2vsQ.png" /></figure><blockquote>Ok, we will create a dashboard that renders data on presence of our Women fieldhockey team in past game season of 2025/2026. I will provide multiple sources of data: one is static PDF files that containe match info, so we can learn which members played when and where. Another source will be the Twizzit API with auth, where we can query presence via their agenda for training and matches as well. Note that these are the same matches, but data may be a bit different: in Twizzit (our club ERP) the names are there for those who announced presense (yes, no, unknown). In the PDF export which comes from Sportlink (Federation ERP) this is the names of those who actually played, as approved by the umpire. We need both sources as it might be that there were more players than allowed, and we want to know who wanted to play but didnt get selected as well. We will also analyze training presence via Twizzit. The app will visualize this data in different views: training only, match only, combined etc. The goal of the app is to see which players were most active in the team, and make decision based on that. Data can be persisted and refreshed (new scan of Twizzit API). The PDf analysis can be static and upfront, it doesnt need to be in the app at runtime. Actually, new data could be ingested, but can be a seperate script or agent session. It doenst needto be via the app itself, that can focus on rendering data and providing useful filters.</blockquote><p>Then I said to <strong>ask me questions one by one </strong>until it was OK with it for a spec.</p><p>That was enough for it to really start interrogating me as if I imported illegal substances into America:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QSXAa9PnKetoLxN8eFXiLQ.png" /></figure><p>it went on for half an hour (really tedious!) with these and learned a lot, as did I, understanding better what we needed to build and provide to do so. I really like this cycle in development. There are always big gaps, and we found almost all this way.</p><p>When this was understood I asked for SPEC and GOALS, so I could do spec-driven development, but also evaluate them</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3Se8EoaJKw7pjG6sonptw.png" /></figure><p>We then passed this along to a new Codex session, with clean slate context only the spec and goals and asked to implement. LET’S GO!</p><p>It did this for about an hour by itself, not asking me anything anymore (I did grant it full reign, so it went quite far, it even installed docker in a temp dir… my bad!)</p><p>The result was a simple docker compose statement of how to run and behold:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2yIA3kD-d9EOz1fe2cOAqw.png" /><figcaption>this is really the first screenshot</figcaption></figure><p>That is exactly what I thought it should be! All data scraped from Twizzit (API didnt expose it, but I did similar before so just shared the <a href="https://github.com/bavobbr/dmon-team-cal">Github repo of that logic</a>) and parsed from PDF exports of match results.</p><p>It also provides insight per month, pler player, per training, per match and even data quality inspection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IMsNBw_w8ivdHUAknRAo4w.png" /></figure><p>Which showed some issues to resolve (a team captain wasn’t considered present, some matches were cancelled in only one source of data) and caused a back and forth of interactive feedback.</p><p>This ended up with a perfect view, costing about an extra half an hour of testing and tweaking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hXynk39p9ZJ3vkvbCoEjyg.png" /><figcaption>slightly better rendering</figcaption></figure><h4>Loop driven development, much?</h4><p>Now is this loop driven development? Not quite… this is spec-driven and had clear goals, which enabled it to deliver a valid result as single-shot, unattended. But…</p><blockquote>Loops need strict evaluation, and that should never be done by the same agent implementing it. It needs to be as objective as possible, in its own context.</blockquote><p>I gave that a shot by defining agents for it that acted according to their role:</p><ul><li><strong>Orchestrator: </strong>Owns the process. It decides which phase comes next and which agent to call.</li><li><strong>Spec agent</strong>: Writes or updates <em>SPEC.md.</em></li><li><strong>Goal agent</strong>: Writes or updates <em>GOAL.md.</em></li><li><strong>Implementation agent</strong>: Builds the thing and later fixes implementation feedback.</li><li><strong>Evaluator agent:</strong> Checks independently. It does not fix. It reports pass/fail/not verified.</li></ul><p>Evaluator reports issues to the orchestrator. Orchestrator sends those issues back to the implementation agent, then Implementation agent fixes them. Orchestrator calls evaluator again. Evaluator performs final evaluation when everything looks ready.</p><p>This looks a lot like agentic setups in Github Copilot CLI or Gemini Antigravity. It might work… but I found that Codex did give me less insight into what agents are doing, and less control which agent to use. Will experiment further!</p><ul><li>Github repo: <a href="https://github.com/bavobbr/dmon-presence">https://github.com/bavobbr/dmon-presence</a></li><li>SPEC file: <a href="https://github.com/bavobbr/dmon-presence/blob/main/SPEC.md">https://github.com/bavobbr/dmon-presence/blob/main/SPEC.md</a></li><li>GOAL file: <a href="https://github.com/bavobbr/dmon-presence/blob/main/GOAL.md">https://github.com/bavobbr/dmon-presence/blob/main/GOAL.md</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62c3c5754b9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Replicating myself in a Black Mirror Box]]></title>
            <link>https://medium.com/@bavo.bruylandt/replicating-myself-in-a-black-mirror-box-ad4b3f712f16?source=rss-dc914db667d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad4b3f712f16</guid>
            <category><![CDATA[google-gemini]]></category>
            <category><![CDATA[google-antigravity]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[black-mirror]]></category>
            <dc:creator><![CDATA[Bavo]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 19:28:08 GMT</pubDate>
            <atom:updated>2026-06-07T19:51:27.229Z</atom:updated>
            <content:encoded><![CDATA[<p>Remember that <em>White Christmas</em> episode from Black Mirror, featuring John Hamm (that guy from Mad Men) that got his virtual self locked into an egg? This was quite a philosophical story, and indeed very scary. The idea stuck with me, and the producers as well, as they made a simular story a bit later again in USS Callister.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*Nj6GnF5FMSsu_7xeQCE-bQ.gif" /></figure><p>If we could make a virtual replica of ourselves, it would kind of be like that no?</p><p>That’s what I tried doing, in a less harmful way, the last few weeks. And I learned also quite some new agentic tricks along the way.</p><h3>Phase 1: the procedural loop using Superpowers</h3><p>The idea started within a private community that posts on a forum. The hayday is long gone, most users are gone, only a few remain. Forums are an evolution of BBS systems, we are already 25 years past that. We started an experiment where we would bring the forum back to life, with bots re-enacting old users that would sound just like them.</p><blockquote>In the days of AI, this is easy to do, right?</blockquote><p>I already had a lot of tools that could do the HTTP interactions needed to simulate clients, but I chose to start from scratch using <strong>Caude Code Sonnet,</strong> and a new tool for me: <strong>Superpowers</strong>. The neat idea of the Claude Superpowers plugin is that it enforces a full development process.</p><ul><li><strong>Brainstorming</strong>-first workflow: brainstorming explores intent/requirements/design before any code is written, preventing premature implementation.</li><li><strong>Test-driven development: </strong>test-driven-development enforces writing tests before implementation code (rigid, non-negotiable discipline).</li><li><strong>Systematic debugging: </strong>systematic-debugging makes Claude investigate root cause before proposing fixes, instead of guess-and-patch.</li><li><strong>Planning &amp; plan execution: </strong>writing-plans + executing-plans for multi-step work with review checkpoints.</li></ul><p>Adding <em>spec-driven development</em> (creating a spec first, reviewing, then implementatiuon plan and reviewing) and TDD are major wins. Also the hand-holding during brainstorming, where it proposes 3 architetrural options to choose, is very strong.</p><p>We defined a way to describe persona’s, with a schema that is used for persistence, as well as sent to the LLM later:</p><pre>  {<br>    &quot;user_id&quot;: 0,                     // int<br>    &quot;original_username&quot;: &quot;&quot;,          // str  e.g. &quot;ShrimpKing&quot;<br>    &quot;reversed_username&quot;: &quot;&quot;,          // str  e.g. &quot;gniKpmirS&quot;<br>    &quot;post_count&quot;: 0,                  // int<br>    &quot;last_active&quot;: &quot;&quot;,                // str  ISO date string<br><br>    // ── Analysis state ──<br>    &quot;posts_analyzed&quot;: 0,              // int<br>    &quot;pages_loaded&quot;: 0,               // int   batches fetched<br>    &quot;oldest_post_ts&quot;: 0,             // int   Unix ts of oldest post seen<br>    &quot;is_approved&quot;: false,            // bool<br><br>    // ── Writing style (LLM-derived) ──<br>    &quot;dialect_markers&quot;: [],           // list[str]<br>    &quot;formality&quot;: &quot;casual&quot;,           // str<br>    &quot;sentence_length&quot;: &quot;medium&quot;,     // str   short | medium | long<br>    &quot;punctuation_style&quot;: &quot;&quot;,         // str<br><br>    // ── Topics &amp; opinions ──<br>    &quot;topic_weights&quot;: {},             // dict[str, float]  forum_name -&gt; 0.0–1.0<br>    &quot;opinion_fingerprint&quot;: [],       // list[str]  up to 25<br><br>    // ── Relationships ──<br>    &quot;frequent_interactions&quot;: {},     // dict[str, str]  username -&gt; &quot;ally&quot;|&quot;rival&quot;|&quot;neutral&quot;<br><br>    // ── Activity pattern ──<br>    &quot;peak_hours&quot;: [],                // list[int]<br><br>    // ── Post length ──<br>    &quot;typical_post_length&quot;: 50,       // int   avg word count<br><br>    // ── Rate limits ──<br>    &quot;daily_cap&quot;: 10,                 // int<br>    &quot;hourly_cap&quot;: 3,                 // int<br><br>    // ── Few-shot examples &amp; narrative ──<br>    &quot;example_posts&quot;: [],             // list[str]  ≤10, each ≤400 chars<br>    &quot;persona_summary&quot;: &quot;&quot;,           // str   6–10 sentences<br><br>    // ── Deep character ──<br>    &quot;worldview&quot;: &quot;&quot;,                 // str<br>    &quot;psychological_profile&quot;: &quot;&quot;,     // str<br>    &quot;rhetorical_patterns&quot;: [],       // list[str]<br>    &quot;interest_tags&quot;: [],             // list[str]  30+ keywords<br><br>    // ── Conversational mechanics ──<br>    &quot;signature_phrases&quot;: [],         // list[str]<br>    &quot;conflict_behavior&quot;: &quot;&quot;,         // str<br>    &quot;humor_and_sarcasm&quot;: &quot;&quot;,         // str<br>    &quot;pet_peeves&quot;: [],                // list[str]<br>    &quot;formatting_quirks&quot;: &quot;&quot;,         // str<br><br>  }</pre><p>Using this, we quickly ended up with detailed profiles of test users:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hr4ri-G1rYoNVE1olpu2HQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5suEqdE9V8Jk4NtR1Jb70Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LsBJXLL9K1vw1jTGv38qwg.png" /></figure><p>and review dashboard that could run simulation or live mode and review whatever would be published upfront.</p><p>All this was done using a typical procedural approach. We we creating python scripts that could do the main work</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qUBaMid8FjpMPI7VhrgJRw.png" /></figure><p>This python code calls the <strong>Gemini </strong>API’s to do the two intelligent things:</p><ul><li><strong>when python code has analyzed a user by looking up posts</strong>: dump all posts and ask for a persona analysis according to a detailed schema (<em>summary, worldview, rhetorical traits, typical expressions, interests, relations to other users </em>etc). As Gemini 3 has large 1M token input window, all data could be delivered at once per user.</li><li><strong>when the pyhton code sees a new real post to react to</strong>: send that context to Gemini, send in the profile and ask for a typical reply.</li></ul><p>Getting all this right is quite a flow, as we need to gate using spam-control, weighted interests, expected activity etc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-vBemZRysFqNtvYnoztaZw.png" /></figure><p>This all worked well, but the interesting part was not the bot activity. It was the way the bots sounded like the users they imitated. Some users liked the idea of probing them, seeing how they react. And most didn’t like random activity on real user replies as it just brings noise. So we sandboxed it, capturing them into that <em>Black Mirror</em> container.</p><h3>Phase 2: The egg, and the agentic refactor</h3><p>To really improve the persona’s I decided to clone myself. As I have 1000&#39;s of messages there on various topics, I could really improve and interrogate it. Now that we are in the Google ecosystem anyway using Gemini (which btw is not because I wanted to, but because Anthropic keeps rejecting my credit card when buying API credits), I decided to give <strong>Antigravity </strong>another shot.</p><p>Antigravity is now in version 2.0 and redesigned the whole idea of what the IDE should be. They basically removed the VS code IDE altogether, and focus on the agentic manager. That sounds like a cheap way out, but makes completely sense to me now. If you are used to using agentic CLI, it is exactly that, but with extra desktop features. That works better than you would think:</p><ul><li>the implementation plan reviews are visual, you can add comments to sections</li><li>the code diff reviews are still like VS code, so very easy to work with</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YRu6R8zM1Zu74EK-1YtoBA.png" /><figcaption>here is an implementation plan, with my comments going back and forth</figcaption></figure><p>Working with that has been a blast! But I did miss Superpowers… that’s where it takes a step back. There are plugins, but the interface doesnt really promote it out of the box.</p><p>That has been the first thing I learned: you need to ask to write and run tests, or it writes buggy software without hesitating. One can finetune that using project instructions, sure, but all this is less obvious when you don’t really see any filesystem anymore. It doesn’t have a file explorer!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TfvYF1YiuG_8HuK52I6gWw.png" /><figcaption>code changes are strong</figcaption></figure><p>I also wanted to use another approach here. I wanted my persona to live in an agentic chat window. So we were out of the python world and into agentic. To do this right, I defined tools that agents could use as an API via MCP.</p><ul><li><strong>Forum MCP</strong>: an MCP server that abstracts the forum interactions (searching, reading, posting)</li><li><strong>Analyzer MCP</strong>: an MCP server that knows how to analyze personas</li></ul><p>and we also teach Gemini how to do the analysis workflow using dedicated agents that use the MCP servers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ll4f37WZ3cSBD-i4EbB6_w.png" /><figcaption>now we are really agentic, using</figcaption></figure><p>So basically the current Gemini model in Antigravity IDE is our Orchestrator, which then spawns</p><ul><li><strong>DataCollector</strong>: an agent using Forum MCP to get the data</li><li><strong>PersonaAnalyzer</strong>: an agent using Analyser MCP to create the prompts for analysis</li><li>and eventually groups that data and writes it to disk after Human review (human in the loop gate)</li></ul><p>This idea was inspired on how I work with Copilot CLI, using dedicated agents to do specific tasks. Oddly, Gemini does not really have the concept of agent files, but it can spawn them dynamically from skills. So you write skills instead, that define subagents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i8oIN2fSX6ucKj-LcAkwYA.png" /><figcaption>agents at work. Like most, it needs extra attention</figcaption></figure><p>So now we have a full agentic workflow. We can interactively ask to analyze persons, and get the <em>Orchestrator</em> to spawn agents for it. Also here, Antigravity IDE is a win, as you can click through to the agents to see their work.</p><p>All we now need is a skill that can roleplay our persona JSON file. The first time I tried I laughed out loud (LOL’ed), as it seemed to have caught on to my type of humor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fvTdfhtrFUd4o_3VLgUA2A.png" /><figcaption>sorry to dutch</figcaption></figure><p>All this also runs on the forum in a sandbox, using the old <em>event.py</em> procedural code and the new persona files. The API is still he same.</p><h3>Phase 3: real persona knowledge using RAG</h3><p>Now we were missing a big thing here… the persona profiles are very deep, but only have shortlist of the persona interests and views. There is a lot more known, lost in the summary.</p><blockquote>This is where RAG comes in again!</blockquote><p>We just need to add an extra step in the data collection: when we write our internal cache to send to the persona analyzer, we also store it as embeddings in a local <strong>Chroma database</strong>, using Gemini <strong>embedding API</strong>. Easy as we already have a key and code to do so. Add some metadata like date, username as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*TE7cXwK0cGDdEpuurJ4kZg.png" /><figcaption>the MCP allows us to call tools from within agents</figcaption></figure><p>Then when we want to generate a reply, we first vectorize the original query to reply to, look for relevant post of our user and pass that along as context to the LLM. Now our simulation is complete: it behaves like our user, and it knows what our user knows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z-tLOHmutEwVOCChVeCZnA.png" /><figcaption>the taste in movies is somewhat specific</figcaption></figure><h3>Takeaways</h3><p>So the initial project with Claude was business as usual, but supercharged with superpowers. That makes development more mature, but also quite a bit slower again! When you start a feature, it really goes through the whole <strong>brainstorm -&gt; spec -&gt; plan -&gt; test -&gt; implement -&gt; test cycle</strong>. That does guarantee you good results when you get there.</p><p>But the second phase was an eye-opener. We stopped thinking in imperative code and started using agentic building blocks: skills, agents, MCP and RAG.</p><blockquote>That is a whole different ball-park for a developer.</blockquote><p>Main lesson learned? It doesn’t really promote testing, as it is all dynamic. There will be ways… but I didn’t find them yet. So a lot of time is spent running flows manually, finding issues, and asking LLM to fix it. Luckily you can paste full JSONL conversation logs, so the agent can fix his own issues.</p><p>Other lesson learned: when agents do things, they often fix their own issues right there when they occur. So you are writing and running living software… but it does it every time again. You need to pay attention to time spent, cycles wasted and iteratively improve by providing better instructions, by documenting your MCP better etc. You dont have to, but cost and time will make you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*l11u6dLCmT5c7l-Gm8dKGg.png" /><figcaption>not afraid of some hyperbole</figcaption></figure><p>All code is at <a href="https://github.com/bavobbr/forum-community-simulator">https://github.com/bavobbr/forum-community-simulator</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad4b3f712f16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bad vibes — Learning the hard way]]></title>
            <link>https://medium.com/@bavo.bruylandt/bad-vibes-learning-the-hard-way-9bf7a9924e25?source=rss-dc914db667d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bf7a9924e25</guid>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[vercel]]></category>
            <dc:creator><![CDATA[Bavo]]></dc:creator>
            <pubDate>Mon, 18 May 2026 12:03:00 GMT</pubDate>
            <atom:updated>2026-05-23T08:22:35.660Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I vibe-coded 500+ USD away</h3><p>In a previous article I wrote about vibe-coding for personal use. One of the examples was <a href="https://medium.com/@bavo.bruylandt/vibe-coding-for-personal-use-e3efe731b95d?source=user_profile_page---------6-------------dc914db667d1----------------------"><strong>Dressed by Mirthe</strong></a>, a small app I built together with my daughter, who acted as the — pretty demanding! — product manager for the idea.</p><p>It was made with Google AI Studio, adapted with Codex, deployed on Vercel, and connected to the Gemini API. The idea was simple and fun: build something useful, personal, and real within a day.</p><p>The speed at which these tools can turn an idea into a working app is still impressive. You describe what you want, iterate a bit, adjust the UI, deploy it, and suddenly you have something that feels like a real product.</p><p>In this case, however, the same experiment also gave me the most expensive lesson in my AI tooling journey so far: a bill of more than <strong>€600</strong> caused by a leaked API key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fn3FHiMAVimxuicsH-2oLA.png" /></figure><p>The app did not suddenly become a major hit, nor did my daughter’s app go viral, and I did not intend to use hundreds of euros worth of Gemini API calls. The cost came from a Gemini API key that was exposed in the deployed application and then used by someone else.</p><h3>What happened</h3><p>The app was deployed as a static React/Vite application on Vercel. That is a very common setup for these kind of projects: Vercel serves the HTML, JavaScript and CSS, and the application runs mostly in the browser.</p><p>The problem was that the Gemini API key was also available to the browser. More specifically, it ended up in the production JavaScript bundle. It was not merely present in the local .env configuration file; it was compiled into the JavaScript that every visitor downloads when opening the website.</p><p>Anyone who knows what to look for can open DevTools, inspect the JavaScript bundle, or simply download the asset and search through it. In this case, that was enough to extract the Gemini API key and use it outside of my app. Or these days maybe some Openclaw agents located the repo, found the flaw and loaded the client to do so.</p><p>The security review later described it like this, with the actual key masked here:</p><pre>Vuln 1: Exposed API Key in Production JavaScript Bundle</pre><pre>File: vite.config.ts / services/geminiService.ts</pre><pre>Severity: Critical<br>Category: secrets_exposure<br>Confidence: 10/10</pre><pre>Description:<br>The Vite config inlines the Gemini API key into the production bundle.<br>geminiService.ts also reads import.meta.env.VITE_GEMINI_API_KEY.<br>Both paths result in the key being compiled as a plaintext string literal in the shipped asset.</pre><pre>Exploit Scenario:<br>Any visitor can open DevTools or curl the JS bundle and extract the live API key. They can then call paid Gemini APIs billed to the account owner&#39;s Google Cloud account.</pre><pre>Recommendation:<br>Immediately revoke the key. The architectural issue cannot be fixed by rotating the key alone. A browser-only app cannot safely hold API credentials. Proxy all Gemini requests through a server-side function.</pre><h3>I knew about the risk</h3><p>The most frustrating part is that I already knew there was a problem after launch.</p><p>When I was reviewing the different small apps I had built, I asked Gemini whether this app was correctly designed for deployment on Vercel. Gemini said that the app would run fine on Vercel as a client-side React PWA, but that there was a major security risk because the Gemini API key was injected into the client-side bundle.</p><p>The proposed solution was correct as well: move the Gemini logic into Vercel Serverless Functions, so the API key stays on the server and the frontend only calls my own internal endpoint.</p><blockquote>The problem was known, and I planned to fix it, but I did not fix it immediately.</blockquote><p>So this was not a mystery, an advanced attack, or a subtle issue that only a cloud security expert could have found. The problem was known, and I planned to fix it, but I did not fix it immediately.</p><p>Instead, I set a monthly spend cap of <strong>€25</strong> in Google AI Studio. My reasoning was that this would at least limit the damage while I found time to redesign the app properly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DAr2PYkDf5P645kaLJE71Q.png" /></figure><p>That assumption turned out to be wrong.</p><h3>The cap did not save me</h3><p>After the incident, Google AI Studio showed the project at around:</p><pre>€471.92 / €25.00</pre><p>In Google Cloud Billing, the total cost for April was around <strong>€500 before taxes</strong>. The final amount billed to my credit card was more than <strong>€600 including taxes</strong>.</p><p>This was billed for under 10 minutes of usage, after which the credit card auto-capped the amount as there is a 300 USD limit per charge.</p><p>I understand that billing systems are not always instant, and I also understand that spend caps may have some delay before enforcement kicks in. In practice, however, the cap I had configured to protect myself did not prevent a very real and very expensive overrun.</p><p>The lesson is that a spend cap is useful, but it is not a security design. It can be part of a safety net, but it should not be the mechanism you rely on when a paid API key is exposed in a public application. Once the key is visible to the browser, the account is already at risk.</p><h3>The review I should have run earlier</h3><p>What bothers me most is not only that the issue existed. Mistakes happen, especially when experimenting with new tools and new workflows. The hard lesson is that I had tools available that could have caught and prioritized the problem correctly before the app was published.</p><p>Claude Code’s /security-review flagged the issue as <strong>Critical</strong>. It explained exactly what was wrong, where it happened, how it could be exploited, and why rotating the key would not be enough. That is exactly the kind of review I should have run before publishing the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bjAsE0hmpKMwRKKaepxtig.png" /></figure><p>Claude’s regular /review plugin also noticed it, but described it much more mildly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sSYB2mYGOQs47AgiV8WPmg.png" /></figure><pre>Security | Gemini API key in client bundle<br>           acceptable for personal use, document it</pre><p>That wording is interesting. For a local-only experiment, maybe this would be acceptable. For a public Vercel app connected to paid Gemini APIs, it is absolutely not acceptable.</p><p>This is where I think developers need to be careful with AI-assisted coding. Asking for a review is good, but asking for the right kind of review matters. A general code review may look at structure, readability and maintainability. A dedicated security review is much more likely to classify exposed credentials as an urgent problem.</p><p>In hindsight, the deployment should have waited until the security review was clean.</p><h3>What I should have built</h3><p>The correct architecture is not complicated. The frontend should not call Gemini directly with an API key. Instead, the frontend should call my own backend endpoint, and that backend endpoint should call Gemini.</p><p>For Vercel, that could be a Serverless Function or Edge Function.</p><p>Conceptually:</p><pre>React frontend<br>    ↓<br>Vercel Function<br>    ↓<br>Gemini API</pre><p>The Gemini API key then lives only in server-side environment variables. The browser never receives it, and the JavaScript bundle cannot leak it.</p><p>Of course, that backend should still have safeguards: validation, rate limiting, logging, quotas, and ideally some form of user/session control depending on the app.</p><h3>Lessson learned</h3><p>For the next apps I build with AI tools, even small personal apps, I will treat <em>public</em> as production from the start.</p><p>My checklist is now:</p><pre>1. Run a security review before publishing.<br>2. Inspect the production build for secrets.<br>3. Assume frontend environment variables are public.<br>4. Never call paid APIs directly from browser code with private credentials.<br>5. Use a server-side function or backend proxy.<br>6. Restrict API keys as much as possible.<br>7. Use separate cloud projects for experiments.<br>8. Configure billing alerts, quotas and caps.<br>9. Treat spend caps as damage reduction, not as security.<br>10. Revoke and rotate immediately after any suspected exposure.</pre><p>This is especially important when code is on GitHub, even for small demos. Malicious actors do not need to care about the app itself. They can scan repositories, deployed websites and JavaScript bundles automatically, looking for credentials that can be abused. A demo app may be small and personal, but it can still be connected to a real billing account.</p><h3>Google Support</h3><p>I opened a Google Cloud Billing support case and explained that the cost came from unauthorized usage of an exposed API key.</p><p>The first response mostly focused on the fact that Google Cloud free trial credits do not apply to AI Studio or Gemini API usage. That was not really the issue. The issue was unauthorized third-party usage and the fact that my configured <strong>€25</strong> spend cap still allowed hundreds of euros in cost.</p><p>Support is now asking more detailed questions: what caused the compromise, where the key was exposed, what the key name and ID were, when it was created, what it was intended for, and what actions were taken to secure the project.</p><p>I have provided the information I have. At the time of writing, I do not know whether Google will refund or credit the amount. Realistically, I am not counting on it.</p><p><strong>Update 20 May</strong></p><blockquote>Hello Bavo,</blockquote><blockquote>I appreciate your patience.</blockquote><blockquote>I am writing this email as a follow up to the conversation we had on the chat regarding the unexpected charges on your account.</blockquote><blockquote>I am pleased to inform you that I’ve successfully raised the adjustment request with our specialized team. I just want to let you know that this is a one-time exception we’re seeking, and it will be subject to their approval. I understand you’re eager for a resolution, and I promise to get back to you with an update via email within 3–5 business days.</blockquote><p><strong>Update 23 May</strong></p><blockquote>Greetings from Google Cloud Support. I hope you are doing well.</blockquote><blockquote>I am happy to inform you that our specialized team has approved the request and provided the adjustment of 506.46 EUR on the account. I have reviewed the Billing Account and found that the adjustment has been processed which will be reflected in a few hours.</blockquote><p>They have my gratitude, and respect for this kind of support. Even though it was my bad, they did rectify this for me. This matters, thanks! ❤️</p><h3>Lesson learned</h3><p>I still believe AI coding tools are extremely powerful. This app was built quickly, worked well enough for its purpose, and helped me learn a lot. That part of the story has not changed.</p><p>At the same time, AI-assisted development can make it very easy to publish something real before the operational and security consequences are fully understood. The tool may generate working code, but the developer is still responsible for asking the right questions before that code becomes public.</p><p>In this case, I asked the right question too late, and when I got the right answer, I treated it as something to fix soon instead of something to fix before keeping the site online. That is where the expensive part of the lesson really was.</p><p>I do wonder what my key was used for… probably harvested into a large pool of credits to sell. For Google, it was just billable usage. For me, it was quite the jump-scare when the bank warning of credit card overcharging came in.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bf7a9924e25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[No-code app dev met Custom GPT, Gemini gems and Claude]]></title>
            <link>https://medium.com/@bavo.bruylandt/no-code-app-dev-met-custom-gpt-gemini-gems-an-claude-86ee1f201ecf?source=rss-dc914db667d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/86ee1f201ecf</guid>
            <category><![CDATA[gem]]></category>
            <category><![CDATA[colruyt]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[customgpt]]></category>
            <dc:creator><![CDATA[Bavo]]></dc:creator>
            <pubDate>Sat, 18 Apr 2026 13:38:30 GMT</pubDate>
            <atom:updated>2026-04-18T13:38:57.198Z</atom:updated>
            <content:encoded><![CDATA[<p>Coding agents are now common-place and as any developer by bow knows, <a href="https://medium.com/@bavo.bruylandt/scraping-yourself-together-when-api-is-not-enough-849b66d397ea">coding </a><a href="https://medium.com/@bavo.bruylandt/building-vinyl-pulse-design-first-development-and-six-api-problems-7a3d111334be">has </a><a href="https://medium.com/@bavo.bruylandt/building-a-bar-scheduler-for-our-hockey-club-f3800b7fe078">never </a><a href="https://medium.com/@bavo.bruylandt/vibe-coding-for-personal-use-e3efe731b95d">been </a><a href="https://medium.com/@bavo.bruylandt/launching-the-field-hockey-rules-app-5f946a121989">easier</a>. But there is still an entry barrier: these generate code, and even though they abstract it, they tend to become technical.<br>If you use Codex, Claude Code or Gemini CLI, you will soon be facing concepts like <em>versioning</em>, <em>build</em>, <em>test CICD</em>, <em>interfaces</em>, <em>deployment, state management etc</em></p><blockquote>This should not stop non-technical users to make apps using LLM technology.</blockquote><p>The <strong>no-code solution</strong> have been there right from the start when ChatGPT launched its UI: you describe your problem in a prompt, ChatGPT interprets it and starts its agentic work: it can query its LLM, it can do web search, write code, generate outpout in a canvas etc. All that however is on-demand and ephemeral. How do you make a solution repeatable? How to share it to others? That’s what Custom GPT was designed for!</p><p>In this example, we deliver an app that would be quite challenging a few years ago but can now be handled without any coding by OpenAI, Gemini and Claude.</p><h4>Problem to solve</h4><blockquote>A user has a created a list of items, either digitally or handwritten, to buy in a local supermarket. The user did this in order of what came to mind. Now that user wants a clean list, easy to read, in order of the items displayed by the store. The one that does the shopping just needs to pick them up one by one in the order given.</blockquote><h4>How to solve</h4><ul><li>we need to learn the tool the store order of items in broad categories</li><li>we need to parse a given list into seperate specific items</li><li>we need to match them to the categories of which we know the order</li><li>we order them for the user</li><li>optionally we cross-reference these items against an API of the store to suggest matches, and to ensure we understoof what the user wanted compared with what the store provides</li></ul><p>Parsing, sorting and rendering is easy. Where we really can use modern AI is:</p><ul><li>reading <strong>handwritten </strong>notes (used to be a hard deep learning problem)</li><li><strong>mapping </strong>specific items to broad categories (an LLM is perfect here)</li><li>looking up items via <strong>web search</strong> to provide suggestions (depends on the API how hard this is)</li></ul><p>We can certainly start a CLI agent and get going with a few prompts. But again, do we need to? Any user should be able to do this as a domain expert (the expertise of shopping…?)</p><h3>OpenAI ChatGPT</h3><p>Custom GPT is the tool of choice here. You basically make a repeatable prompt instruction, which is shareable with anyone. That means everyone with access to ChatGPT can use your app. Great! And most already do anmd know how to use it. This concept has been there for many years, and in my opinon, under-used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m9lHy-XfRKhEfpgbt7SsxA.png" /></figure><p>Safe to say OpenAI invented and perfected it. You ask for a custom GPT and get an LLM to assist you in writing it. Whatever you write ends up as:</p><ul><li>a tool name and description</li><li>a custom instruction</li><li>optional data files to load into context</li></ul><p>That’s what we want to do. We create a mapping file outselves of all store categories. We can use the help of LLM to expand that high level list</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fomT-dkmu5SuT2SIhF9ypg.png" /><figcaption>sorry to Dutch, this is a belgian store</figcaption></figure><p>This renders from our high-level file a more specific category mapping file which we can manually review and adjust, to ensure the LLM understood our intentions and it will enable it to map most items.</p><p>For the actual logic we just need to ask. Thanks to the creator, it is ChatGPT that will write detailed instructions that make sense to him. And allows us to iteratively test that and adjust.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OohgGTwcU-f4aZ3YG_l-OA.png" /><figcaption>the generated instructions and test window</figcaption></figure><p>That’s all there is to this. You define the problem, suggest the approach and he writes your prompt. Note that we added both <em>web search</em> and <em>Code interpreter</em> as well, as we also asked to look up the items in the website, and to offer a PDF to download for print version for which it needs Python.</p><p>This then becomes a custom GPT available to anyone when you share:<br><a href="https://chatgpt.com/g/g-69e219559c4c81918759ca1912d91251-colruyt-routeplanner-dendermonde">https://chatgpt.com/g/g-69e219559c4c81918759ca1912d91251-colruyt-routeplanner-dendermonde</a></p><h4>Testing the GPT</h4><p>The input I received to test in real life (as I was the one going to the store, use-cases write themselves) this was immediately challenging in many ways:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*k_bhBEsB4JagdT2-Iw1blQ.jpeg" /><figcaption>a real shopping list</figcaption></figure><p>Parsing this a few years ago? Good luck! Custom handwriting on a model not trained on it. Multi-column layout. Some specifications and some joint items. Multiple way of expressing quantities.</p><p>But a modern LLM has no issues with this. We didn’t order pudding, we did get the <a href="https://chatgpt.com/share/69e38315-82a0-8393-b252-16eab9014c36">proof</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iNHLa8iLhDTreiId1P2NuA.png" /><figcaption>we upload the image and let it work</figcaption></figure><p>It mapped perfectly! It even used<em> web search</em> as requested to get suggestion available from the store site, and it made sense of the quantities.</p><p>Funny thing: it tried to read the deleted text and warned, but got quite close to deciphering it.</p><h3>Anthropic Claude</h3><p>So that’s great for ChatGPT users, if you have a pro account to create these. What can Claude do? Turns out, it can do this the same way, but it directly warned me:<strong> only for personal use</strong>. You can make a <strong><em>project </em></strong>and then pass this as custom instruction in a similar way (actually ChatGPT also has project concept) but a project can’t be shared publicly. No go.</p><p>Alternative? Make an artifact. That’s an original Claude Concept where you can share a dynamic output. Pretty much a site. And surprisingly, that site can be dynamic in code, and it can internally use the Claude API (on the user account, not on the one sharing it).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rl1qYqcjLTtFaTQfj6AbeQ.png" /></figure><p>making thse kind of artifacts is a fun experience. But we need to be clear: this is development with code. So I ended quite quickly. It works, but it exposes coding concepts. You are basically using the web UI for Claude Code.</p><h3>Google Gemini</h3><p>In market share lagging behind, but feature-wise Gemini is often overlooked. I was quite surprised to see that I could simply port the ChatGPT custom GPT concept to a Gemni Gem and get equally good results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N8fBw7z2ORwgxE5S-pZYsQ.png" /></figure><p>Exactly the same idea:</p><ul><li>title/description</li><li>custom instruction (our logic)</li><li>knowledge base (our mapping file)</li><li>a window to test it in real time</li></ul><p>The only difference is that it doesnt provide a guided way to create the prompt, which ChatGPT create mode does. It’s only the configure tab. So a bit more technical.</p><p>You can try the gem here: <a href="https://gemini.google.com/gem/032c7ef95416?usp=sharing">https://gemini.google.com/gem/032c7ef95416?usp=sharing</a> and here is an actual <a href="https://gemini.google.com/gem/15XANmWNVt0A5K9vWhlzscmS98I3UPRL5?usp=sharing">test</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AVw9p6vgPHN7bdftJVWgfg.png" /></figure><p>This works as well as ChatGPT version does, maybe even faster. But it cannot do PDF, which OpenAI could.</p><h3>Conclusion</h3><p>Making apps without code and just describing logic iteratively, then sharing that to anyone is <strong>perfectly possible in ChatGPT and Gemini </strong>using <em>custom gpt</em> or <em>gems</em>.<br>Claude is perfect for personal use but can’t share it yet, unless you five into a lower level with <em>artifacts</em>.</p><p>Anyone can deliver solution now. Not everyone knows how powerful these tools are!</p><ul><li><a href="https://chatgpt.com/g/g-69e219559c4c81918759ca1912d91251-colruyt-routeplanner-dendermonde">Chatgpt colruyt route planner</a></li><li><a href="https://gemini.google.com/gem/15XANmWNVt0A5K9vWhlzscmS98I3UPRL5?usp=sharing">Gemini colruyt route planner</a></li></ul><p>Here is the <a href="https://gist.github.com/bavobbr/2840f158557e928c95d77b3ff164dd9e#file-gpt_instruction-txt">full instruction</a> the <a href="https://gist.github.com/bavobbr/2840f158557e928c95d77b3ff164dd9e#file-colruyt-txt&#39;">mapping </a>file. For those in Dendermonde, have fun shopping.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86ee1f201ecf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Vinyl Pulse: Design-first Development and Six API Problems]]></title>
            <link>https://medium.com/@bavo.bruylandt/building-vinyl-pulse-design-first-development-and-six-api-problems-7a3d111334be?source=rss-dc914db667d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a3d111334be</guid>
            <category><![CDATA[google-antigravity]]></category>
            <category><![CDATA[design-first]]></category>
            <category><![CDATA[google-stitch]]></category>
            <category><![CDATA[discogs]]></category>
            <category><![CDATA[vinyl]]></category>
            <dc:creator><![CDATA[Bavo]]></dc:creator>
            <pubDate>Wed, 01 Apr 2026 08:29:19 GMT</pubDate>
            <atom:updated>2026-04-01T08:31:15.706Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Designing the UI before writing a single line of backend code: using Google Stitch and the Antigravity IDE — and handling an API rate-limiter</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y40p-UgzRE_K5cZ-4Amx1w.png" /><figcaption>our discogs app</figcaption></figure><h3>Why are we building, again?</h3><p>For vinyl collectors, <a href="https://www.discogs.com/">Discogs </a>is a datamine full of gold. It’s basically IMDB for physical music. You can find every album release every made, with song listings, producers, distributors, pressings and detailed market value. Discogs is also the biggest vinyl market-place.</p><p>They allow you to import your collection manually, or by scanning barcodes. This produces a detailed view, feel free to browse mine at <a href="https://www.discogs.com/user/bavo.bruylandt/collection">https://www.discogs.com/user/bavo.bruylandt/collection</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JgH8U2BJPr8u5qTrSNrRNQ.png" /><figcaption>the useful but limited Discogs UI</figcaption></figure><p>But it doesnt give any insight. What are the genres you own? What decade is most prevalent? What are the most desired items? Many questions one can ask that do not get an answer via their site. <br>Luckily they do have an API, a very <a href="https://www.discogs.com/developers/">extensive </a>one. And they allow you to build on top of that using personal accesstokens or oauth. So let’s do this better?</p><h3>Part 1: Design-First Approach</h3><h4>Usually I build data-first</h4><p>The conventional build sequence is to wire up the API, get data flowing, then figure out how to display it. The eventual result is an interface shaped by the data model.</p><p><a href="https://discogs-insights.vercel.app/">Vinyl Pulse</a> was built the other way around: <strong>interface comes first. The data is injected into it afterwards.</strong> This approach called interface-driven development changes which decisions happen early and which ones are deferred.</p><h4>Step 1 — Define the Aesthetic in Google Stitch</h4><p>Before any code was written, I used <a href="https://stitch.google.com/">Google Stitch</a> to define the product’s visual language and generate screen mockups for each use case. Stitch is a generative UI tool: you describe an aesthetic, iterate on screens rapidly, and export a complete design package all without writing a single line of code.</p><p>The creative brief was specific: a <strong>“modern analog”</strong> aesthetic, inspired by the tactile ritual of handling vinyl. Not a typical data dashboard. Something closer to a premium editorial magazine that happens to be interactive.</p><p>The design guidelines that emerged was concrete and opinionated. A few rules from the exported spec:</p><blockquote>“Standard 1px borders are strictly prohibited. Boundaries between sections must be defined solely through tonal shifts.”</blockquote><blockquote>“Don’t use pure white. Always use on_surface (#E5E2E1) to maintain the &#39;Paper Off-White&#39; warmth.&quot;</blockquote><blockquote>“Don’t use rounded corners larger than lg for main containers. The aesthetic is architectural and crisp, not bubbly.&quot;</blockquote><p>Six screens were designed this way, each covering a distinct use case:</p><ul><li>record_collectionmain collection overview</li><li>decade_heatmapdecade distribution visualization</li><li>genre_sunburstgenre &amp; style breakdown drill-down</li><li>vaultdeep record analytics</li><li>wrapped_cardindividual record detail overlay</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TIxT4g8wBrVCozIY1Kka2Q.png" /><figcaption>Stich Design UI used for designing Vinyl Pulse</figcaption></figure><p>Each exported screen folder contained three artefacts: a <strong>screen.png</strong> (rendered mockup), a <strong>code.html</strong> (self-contained static implementation), and where applicable a <strong>DESIGN.md</strong> (the full design system specification with colour tokens, typography rules, and component guidelines).</p><h4>Step 2 — Import into Antigravity and generate real components</h4><p>The Stitch exports were committed directly to the repository under design/stitch/. The Antigravity IDE was then given these assets as context and asked to produce production-quality <strong>Next.js + Tailwind components</strong> that matched the aesthetic.</p><p>This is no longer random design prompting as it is handing over a specified brief. The IDE can read the exact colour values, typography rules, and component constraints from DESIGN.md, reference the screen.png to verify visual intent, and use the code.html as a structural baseline to cross-reference against.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3KDjYi6n2ReE6I9I-gtlLg.png" /></figure><p>The result: a fully navigable application with all pages, layouts, navigation, and visual components in place before a single Discogs API call exists.</p><h4>Step 3 — inject the data</h4><p>With the UI shell complete, the Discogs integration was built as a separate concern and plugged into the existing component contracts.</p><p>This is where the design-first approach pays its dividend. Because every component was designed before the data existed, each one had already resolved its own edge cases: what does it look like when data hasn’t loaded yet? What does it show when a value is missing? These weren’t afterthoughts, they were solved in Stitch design documents, before the first API call was written.</p><p>A component like Vault was already rendering album art placeholders, rank indicators, and stat slots. Wiring it to live data meant passing real props into an interface that already knew how to handle them including the undefined state before data arrives.</p><h4>Why This Order Matters</h4><p>Starting from the interface <strong>front-loads design decisions</strong>. By the time the API integration begins, there are no open questions about layout, typography, colour, or interaction model. Those have been resolved in Stitch before a single line of React was written.</p><p>The tradeoff is that you need a sufficiently detailed design spec for this to work. Vague mockups produce vague components. The Stitch-generated DESIGN.md with explicit prohibitions, named colour tokens, and typographic hierarchy rules was precise enough to build from directly. The Gemini AI in Google Stitch knows the process and pitfalls, so it produces a solid foundation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*sw6vkCACwgGArsOlRYjKVw.png" /></figure><h3>Part 2: Problems in the API Integration</h3><p>Once the UI is in place, the Discogs integration introduces a set of genuine architectural challenges. The API is powerful but heavily <strong>rate-limited</strong>, the data model has some non-obvious inconsistencies, and building a multi-user experience on top of it requires careful thinking about caching, identity, and progressive loading.</p><h4>1. Server-Side Rate Limiting Across Concurrent Requests</h4><p>Discogs enforces ~60 requests per minute per user in a sliding window. The naive assumption is that you can manage this with client-side delays but in a Next.js app, multiple concurrent route handlers can each independently fire API calls, completely unaware of each other.</p><p>The architectural solution is a <strong>module-level, per-user request queue</strong> running on the server. All Discogs API calls funnel through a single queue per user identity, which drains at a safe 1.2-second cadence regardless of how many concurrent route handlers are active. Module-level state in Node.js persists across requests within the same process, making this pattern both simple and effective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*c0cNZlx9Ngd9sxKhxqEwQw.png" /></figure><blockquote><strong><em>Note</em></strong><em> This pattern works on a single server or standard (in this case Vercel) deployment. If you scale to multiple instances with no shared memory, you will need a centralised queue backed by Redis or equivalent.</em></blockquote><h4>2. Progressive Collection Loading without blocking the UI</h4><p>A large Discogs collection cannot be fetched in one server-side call, as it would time out. But showing a spinner until everything loads is equally unacceptable. The solution is a <strong>three-phase pipeline</strong> that delivers usable data immediately and enriches it in the background.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rkq5PIOasgo1zXgQynEiVQ.png" /></figure><p>Phase 3 runs as a completely silent fire-and-forget process. The user browses normally while original release years etc are resolved in the background.</p><h4>3. The localStorage Quota</h4><p>To avoid hitting the back-end with hundreds of requests for each page refresh, we <strong>cache the data locally</strong>. Xaching raw API responses for offline-speed page refreshes is straightforward until a large collection silently starts throwing QuotaExceededError as the browser&#39;s 5MB storage limit is hit.</p><p>The architectural fix has two parts:</p><p><strong>Scrub at the source.</strong> Rather than caching the full API response (15 to 50KB per record, including tracklists, credits, and image arrays), extract only the fields the UI actually needs before committing anything to storage. The difference is roughly 100 bytes vs 50KB per record, three orders of magnitude.</p><p><strong>Partition into separate keys.</strong> Each data type (collection, vault metadata, master years, price details) lives in its own storage key. This allows partial recovery — if vault metadata overflows, the core collection remains intact.</p><h4>4. OAuth Session Transitions With Stale Client Cache</h4><p>The app runs in two modes simultaneously: a guest/demo mode (Personal Access Token, default collection) and a logged-in mode (OAuth, personal collection). The hard problem: when a user authenticates after browsing as a guest, the client-side cache contains the wrong user’s data.</p><p>The solution is a <strong>session fingerprint check on every mount</strong>. The client calls a /api/auth/me endpoint to get the server&#39;s authoritative identity, compares it against a stored username fingerprint in localStorage, and wipes all cached data if there is any mismatch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*z1TWnWch62ebHooWqW8-Qg.png" /></figure><p>OAuth tokens themselves are stored exclusively in <strong>HTTP-only cookies</strong> inaccessible to browser JavaScript. The /api/auth/me endpoint is the only channel through which the client can discover the authenticated identity, ensuring tokens are never exposed to client-side code.</p><h4>5. Pressing Year vs. Original Release Year</h4><p>The Discogs collection API returns a year field on each release, but this is the <strong>pressing year</strong>, not the year the music was originally created. A 2023 reissue of a 1972 classic reads as a 2020s decade record. For a Decade Heatmap, this produces entirely wrong distributions.</p><p>Discogs solves this at the data level through <strong>Master Releases</strong>: canonical entries that group all pressings of the same recording and carry the original release year. Each collection item links to its master via master_id.</p><p>Master records are cached at the server level for 30 days. Original release years are immutable facts that never need to be re-fetched. The enrichment runs in the background (phase 3 of the sync pipeline) with no UI impact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1muKBu8Tj6oMBJeCHcjcrA.png" /></figure><h4>6. One Request Per Record, Streaming the Results</h4><p>The Vault page ranks the collection by market value: highest-priced records first, with community want/have ratios and current marketplace prices. All of this requires hitting /releases/{id}, one call per record, no batch endpoint available.</p><p>For 300 records at 1.2 seconds each (enforced by the rate limiter queue), this is a six-minute operation. The architectural response is to treat this as a <strong>streaming problem</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*vIl3jMNkKLgP_kx9LFwkRQ.png" /></figure><p>Each result is written to shared React context state the moment it arrives. Components that depend on that state re-render automatically so the Vault ranking is live and self-correcting throughout the scan. Records render as complete usable cards from the start, with stat slots populating as each fetch resolves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qLMeoLKTvuLubr82CJuxRQ.png" /></figure><p>A subtle <strong>Archive Integrity Meter</strong> a progress bar embedded in the page header with a shimmer animation while active communicates the scan progress without blocking interaction. A floating toast mirrors this for users who have scrolled past the header. On return visits, the per-record skip guard means already-cached records are counted but not re-fetched, completing the scan in seconds.</p><p>These six problems don’t exist in isolation. The <strong>rate limiter</strong> controls the cadence of the vault scan. The <strong>vault scan</strong> fires one-per-record because there is no batch endpoint. Each result <strong>streams into shared state</strong>, immediately updating the UI. The <strong>session fingerprint</strong> ensures the cache belongs to the right user. The <strong>data scrubbing</strong> from problem 3 is what makes caching hundreds of per-record responses feasible in the browser at all. And the <strong>master year enrichment</strong> from problem 5 runs on the same pipeline and rate limiter as the vault scan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lXww_ebVtoTj22GxopEYHw.png" /></figure><p>The biggest takeaway when building on top of a rate-limited consumer API:</p><blockquote><strong>design for the latency of the data, not the latency of the network.</strong></blockquote><p>The HTTP round-trip is fast. Building a complete, enriched, correctly attributed picture of a large collection takes minutes of quiet background work. The craft is in making that feel invisible.</p><p>If you happen to have a discogs collection, feel free to try it with oauth at <a href="https://discogs-insights.vercel.app/">https://discogs-insights.vercel.app/</a> — or just browse it with the demo collection.</p><p>The app is mobile friendly, but not yet mobile native. As we know, this won’t be easy due to the process as <a href="https://medium.com/@bavo.bruylandt/one-doesnt-just-vibe-release-an-android-app-3cde15f4175b">one doesnt just vibe-release an Android app</a>. Will try!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePFCsYzesgE_0coeqzS5OA.png" /></figure><p><em>Vinyl Pulse source code: </em><a href="https://github.com/bavobbr/discogs-insights"><em>github.com/bavobbr/discogs-insights</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a3d111334be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scraping yourself together — when API is not enough]]></title>
            <link>https://medium.com/@bavo.bruylandt/scraping-yourself-together-when-api-is-not-enough-849b66d397ea?source=rss-dc914db667d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/849b66d397ea</guid>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[twizzit]]></category>
            <category><![CDATA[web-scraping]]></category>
            <dc:creator><![CDATA[Bavo]]></dc:creator>
            <pubDate>Fri, 06 Mar 2026 08:42:06 GMT</pubDate>
            <atom:updated>2026-03-06T08:46:13.478Z</atom:updated>
            <content:encoded><![CDATA[<p>Just a small thing, you would think. For our field hockey club we want to visualize for a team all members that have indicated when they can or can’t play. That way you can plan ahead, and get substitutes in early, or try to reschedule the game if needed.</p><p>In the 3rd party club app called Twizzit, this is how teams, members and matches look like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*msvpxgInFqXAhpA-uPvULQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WYfayV3O-E6kPsLgv5TIag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*fOdeuCXOctVE5P_j1gpkTA.png" /></figure><p>and then for each match you can ask for the attendance. Some said yes, some said no and a majority keeps postponing that until matchday. That’s how it goes.</p><p>As a team manager you want be pro-active and keep bugging them so all gets filled in. But the Twizzit app has no overview over all matches, only per match.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lU_Zqu3ako9D43-FQgCtbg.png" /></figure><p>One would think this is easy to solve:</p><ul><li>ask a REST API for all teams, or your team</li><li>ask for the team all matches</li><li>ask for every match who indicated what type of attendence</li></ul><p>But even in these modern times where AI is doing all the coding, this is not a feature Twizzit likes to provide out of the box. There is an API on request, and you get the great amount of 500 queries per month. Not per hour, not per day or per week. Per month. If you have other services that read that API (like we do for our website to show teams and calendar) this is about it.</p><blockquote>There is an API on request, and you get the great amount of 500 queries per month</blockquote><p>So forget a real-time update of attendance for every coach or manager.</p><h4>The oldskool way</h4><p>Scraping it is!</p><p>So we asked Claude Code to get the info directly from the site. It did ask for help, which pages to look at. And then it generated me 2 views:</p><ul><li>the teams</li><li>the attendance data per team</li></ul><p>Only a few time sback and forth to add and finetune UI elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YHKozDwKqU_isFKX3VpsqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cVEVsZtI97hKFCMVAuM6Kg.png" /></figure><p>Also added an excel export per team and per club with a neat progress indicator. This way coaches can elaborate further on attendance tracking on their own terms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4opLtAOfm6yndK_LbfAb3A.png" /></figure><p>Deployment went to Cloud Run, my default by now for services that need a back-end. The back-end is required as this scraping uses my credentials, which we do not want at the client-side.</p><p>The app also uses caching and a basic auth mechanism to avoid abusing my credentials towards Twizzit. This is merely a temporary tool, so I did not care about the code at all. By design. I did ask about secure design, and how to keep it low-cost!</p><h4>Lesson learned</h4><ul><li>scraping is a lot easier than it was. I used to spend days to weeks on thse things analyzing HTML tags and writing regexes. Only if the HTML itself could be tidied to XML, that’s no guarantee… Coding prefers well-designed API’s, but if not available, this can be an option.</li><li>even with agents it is more cumbersome than API, as it requires quite some tries to get the right data, and to analyze the underlying site. I thought it was oddd that Claude asked me to provide it pages to scan, and also copy-paste Javascript console output when it failed to parse them. Especially when the pages load dynamic data via AJAX. Note that it loads HTML, not data. This is very old-school. Some sites have been around a while.</li><li>it will break whenever the site redesigns itself so not advised. But agentic coding makes this at least an economical viable choice for one-offs. Next season I might need to update it, which is fine. It would not be fine for sites that need to be reliable.</li><li>the AI might make you feel like a Mechanical Turk, copy pasting things back and forth between browser and agent. There may be better ways using an integrated browser. Maybe via Playwright?</li></ul><p>Code is at <a href="https://github.com/bavobbr/dmon-team-cal">https://github.com/bavobbr/dmon-team-cal</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=849b66d397ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>