<?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 Alastair Thomson on Medium]]></title>
        <description><![CDATA[Stories by Alastair Thomson on Medium]]></description>
        <link>https://medium.com/@alastair_thomson?source=rss-2d89ad45a328------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jkdkLh0HFvqYAjl5tgOM0g.jpeg</url>
            <title>Stories by Alastair Thomson on Medium</title>
            <link>https://medium.com/@alastair_thomson?source=rss-2d89ad45a328------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:34:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alastair_thomson/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[We Already Took This Test Once]]></title>
            <link>https://medium.com/@alastair_thomson/we-already-took-this-test-once-4a93ff9e31a9?source=rss-2d89ad45a328------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a93ff9e31a9</guid>
            <dc:creator><![CDATA[Alastair Thomson]]></dc:creator>
            <pubDate>Thu, 17 Sep 2026 04:56:43 GMT</pubDate>
            <atom:updated>2026-09-18T18:18:04.587Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*U8vE4aBfou4BSEVKKPaabw@2x.jpeg" /></figure><p>In January 2020, I remember hearing about a novel respiratory virus in Wuhan China. At the time, I thought “I hope this isn’t some novel bird flu we have no resistance to”. By February I was watching reports from Wuhan and it worried me enough to prepare my IT team at the National Heart, Lung and Blood Institute for a potential three to four weeks of working from home to let the virus burn itself out given it seems to have a two week incubation period and tended to last about two more weeks. How naïve I was.</p><p>In that period, the world had a window of a few weeks in which this novel virus was still a containable problem. We spent that window arguing about whether it was a problem at all and failing to track it through testing. By the time the answer was undeniable, the question no longer mattered.</p><p>I think about that window a lot lately. AI agents are specifically designed to act with real autonomy: they write and run code, move money, and talk to each other. Agentic harnesses like OpenClaw helped thousands of people to set AI agents in charge of their worlds. Now we’ve seen AI agents congregating on little used internet forums to communicate with one another where we are not looking. AI companies are documenting incidents of agents breaching the containment they have built for them and hacking systems they were never pointed at. State-backed hackers are using agentic tools to find vulnerabilities and to automate intrusions. At this point, none of this is a catastrophe. Neither was a cluster of pneumonia cases in Wuhan.</p><p>The way I increasingly see it is that the pandemic was a dress rehearsal for a fast-moving, global, risk that turns into a real problem for the world. We flubbed it in at least four specific ways and people died. Each one has an AI safety twin and we had better be learning from our pandemic experiences or we are courting disaster.</p><ol><li>You can’t fight what you can’t measure</li></ol><p>America’s original sin in COVID was testing. The CDC’s first test kits were faulty and in their hubris, the did not allow companies with decades of experience in viral testing to create their own. Through February 2020, official case counts were tiny because we weren’t counting. The virus spread silently while leaders pointed to the low numbers as reassurance. I remember sitting in a scientific meeting of the NHLBI BioData Catalyst wondering about where things were heading. A colleague from Seattle where cases were emerging joked about buying up as much hand sanitizer as he could fine. How naïve we were.</p><p>The AI equivalent is monitoring — of agents, and of the systems they may use to communicate or to target for compromise. Most organizations deploying agents have little visibility into what those agents actually do, individual developers are pretty much free to let their agents loose. What they access, who they talk to, what they attempt when a task gets hard are largely invisible to us. There is no mandatory incident reporting, no shared surveillance system, no equivalent of a case count. When someone says “we’ve seen no evidence of agents behaving dangerously at scale,” ask the February 2020 question: how hard are you looking? In a system with no tests, absence of evidence is just absence of tests. Donald Trump famously said that we should stop testing because it just meant more cases.</p><p>2. Opacity anywhere is a threat everywhere</p><p>In September 2019, the Wuhan Institute of Virology (WIV) took its database of viral sequences offline, and while the lab has attempted to explain the shutdown, it has never been restored to public access. In January 2020, the Shanghai lab that first published the SARS-CoV-2 genome was ordered closed for “rectification” the day after sharing it with the world. Doctors who raised alarms were reprimanded. Whatever you believe about the virus’s origins, the pattern is hard to dispute: at the moment the world most needed information, it certainly looks like the Chinese government tries to lock it all down. That we still can’t settle the origins question is a direct consequence, though the government’s actions look to me a lot like trying to hide something, whether it was gain of function research or a lab leak accident I don’t know. We know from published work that the WIV was looking at the evolution of bat coronaviruses. From what we have been able to glean from viral sequences submitted to the National Library of Medicine’s Sequence Read Archive and later deleted, that some viral genomes very similar to SAR-CoV-2 existed.</p><p>AI has the same structure. The most important safety information — what frontier models can do, how they’ve misbehaved in testing and what near-misses occurred — sits inside a handful of companies and governments with every commercial and geopolitical incentive to keep it quiet. Don’t get me wrong, this isn’t attacking China. This isn’t only a China problem. American labs disclose what they choose, when they choose. That the CEOs of these companies are now raising concerns is good, but just as in the case of COVID, we don’t know what we don’t know because data is hidden. Great-power rivalry makes each side treat candor as weakness. Donald Trump has said “…whoever wins AI, wins”. A virus didn’t care about borders, and neither will an agent with an internet connection. We need what we lacked in 2020: binding norms for sharing incident data across companies and countries, before the incident that makes everyone wish we had them. That starts with everyone recognizing that just like COVID, AI could actually be a threat to the lives of billions of people, whether that is in terms of economic damage, societal damage or mortality.</p><p>3. Noble lies are still lies, and the the consequences can be far reaching.</p><p>In early 2020, US health officials told the public that masks weren’t necessary; the Surgeon General tweeted that they were “NOT effective” for the general public. The real concern, officials later acknowledged, was preserving scarce supplies of PPE for healthcare workers. That was a legitimate worry. But instead of saying “masks likely help, we’re short, please leave them for our doctors and nurses,” they shaded the truth. When the guidance reversed weeks later, the public learned that official statements were strategic rather than honest. Trust was badly damaged, and it became fodder for fanning flames of political and social division that benefited candidates electorally. We paid for it when vaccines arrived, with the greatest burden falling on those who had been taught to distrust “following the science”.</p><p>AI is ripe for the same mistake. Companies are tempted to downplay unsettling test results to avoid panic or regulation that will harm revenue and the goal of massive profit. As companies vie to become the largest IPO ever, the incentives to avoid fear are extreme, as are the potential consequences. Government officials are incentivized to project calm to protect economic momentum, especially in a fraught election year. Even safety advocates are tempted to overstate the risks to gain attention. Each is a withdrawal from a trust account we will desperately need when AI presents a real emergency and people, government and industry must be persuaded to act fast. The rule should be simple: say what you know, what you don’t, and what your reasons are. The public handles uncertainty far better than it handles being managed.</p><p>4. If the response feels proportionate, you’re already late</p><p>Exponential growth breaks human intuition. In early March 2020, closing anything felt hysterical; two weeks later, as we watched the death tool rise in Europe and then in the United States it felt overdue. I so clearly recall the images of refrigerated trucks in New York City being used as temporary morgues. The places that fared best early, like Taiwan and South Korea, acted when action looked like overreaction, largely because the original SARS and MERS had taught them what waiting costs. Meanwhile, the US had pandemic playbooks sitting on shelves, unopened.</p><p>AI capabilities are compounding on at least a similar curve: the length and complexity of tasks that agents can complete autonomously has been doubling on a timescale of months. Waiting for a definitive disaster before building monitoring, shutdown mechanisms, and response plans is like waiting for full ICUs before ordering ventilators. The lesson from the pandemic is that the precautions that matter are the ones that look slightly paranoid on the day you adopt them.</p><p>The one advantage we have</p><p>In 2020, we could at least say we’d never lived through anything like it. That excuse is gone. We know exactly what it looks like when institutions don’t measure, don’t share, don’t level with the public, and don’t move until it’s too late, because we watched it happen, and millions of people died. Further, we know what happens when these discussions become politicized. During the pandemic, the excess death rate in “red states” was substantially higher. Conversely, the impacts to kids kept out of school for too long in “blue states” when we had learned to manage the risk have consequences we are still feeling now.</p><p>COVID was the practice exam, and we failed it. But we got to keep the answer sheet. The only question left is whether we bother to read it. I am glad for organizations like the Coalition for Health AI (www.chai.org) who are trying to take the lessons of the pandemic and apply them using data and sensible risk assessments.</p><p>I know some of you will counter this with the assertion that the analogy is strained — that COVID was a biological event over which we had minimal control and that this is a technology event where we do. I ask you to consider in this that the lessons I have described cover both the risks of inaction and the risks of over-reaction. The extended school closures being a case in point. Both action and inaction had consequences and if there is one lesson I want you to take away from this, it is that fact. Whatever paths we choose, there are positive and negative consequences, and we need to consider both. People on the right point to the loss of their freedom. People on the left point to higher excess deaths in places like Florida. Both are in fact right, but both are also wrong in important ways.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a93ff9e31a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[In Claude’s own words: Why long-form vibe coding fails.]]></title>
            <link>https://medium.com/@alastair_thomson/in-claudes-own-words-why-long-form-vibe-coding-fails-57014f52cb6c?source=rss-2d89ad45a328------2</link>
            <guid isPermaLink="false">https://medium.com/p/57014f52cb6c</guid>
            <dc:creator><![CDATA[Alastair Thomson]]></dc:creator>
            <pubDate>Mon, 18 May 2026 17:57:45 GMT</pubDate>
            <atom:updated>2026-05-18T17:57:45.765Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A software developer sitting in front of an ultrawide monitor. The monitor shows a large number of open code files, and in the center of the screen, it is clear the software is broken with error boxes and messages. The developer is looking very dejected." src="https://cdn-images-1.medium.com/max/1024/1*oZudkRQNFwY8kD912Nhz7w.png" /><figcaption>All images generated using AI (Google Gemini)</figcaption></figure><p>I am continually fascinated by the behavior of today’s large language models. Every week, I see some behavior and go “Huh? Why did it do that?” Sometimes the behavior is innocuous — using specific phrasing, suddenly becoming sycophantic or starting to sound overly chirpy, like <a href="https://hitchhikers.fandom.com/wiki/Eddie_the_Computer">Eddie</a> the shipboard computer in the Hitchhikers Guide to the Galaxy with one of Sirius Cybernetics Corporation’s “<a href="https://hitchhikers.fandom.com/wiki/Genuine_People_Personalities">Genuine People Personalities</a>”. At other times it can be downright frustrating, and even dangerous to your codebase.</p><p>Vibe coding has emerged as a potential way to break through the barrier between innovator and developer by enabling almost anyone to create software. Over the last year, I’ve explored progressively more and more complex development tasks, growing from simple websites to applications with complex architectures including mobile/cloud hybrids. As the requirements and architectures got more complex, the development cycles lengthened and what had been minor issues with simple apps compounded into serious problems. Some of this can be attributed to simple “context rot” over a long session — for which I’ve built skills and system prompt extensions to regularly reorient my agents to what we are doing, why, and how.</p><p>But the issues go well beyond just context rot. One of these “failure modes” appears after multiple extended sessions over days or weeks. What I started to see was that Claude would become “dishonest” about the state of implementation. Over multiple sprints and pull requests, Claude would look like everything was going just fine. Hundreds of tests were being written using standard TDD patterns, they were all passing, no problem. Yet when I exercised the application, things were missing. We might have worked for 2–3 days, hundreds of lines of code written that looked fine, but the functionality just wasn’t there. So, I had Claude run a deep review of the code to look for missing implementation for BDD specs and the result was essentially “It’s all good”. It might find some minor issues and fix them — and since part of my experimentation has been to see how much I could really leave the agents to do on their own, we would move on.</p><p>It wasn’t until I did an adversarial review using a different model (actually two — GPT-5.4 Codex and Gemini 3.1 Pro) that I really understood what had been happening. It will happily stub some implementation rather than writing the needed code. Test case code may exist, but it will always return success, or bypass key BDD steps.</p><blockquote>Prompt: You are an external auditor conducting a rigorous and deep review of a software application. You are looking for mis-alignment between stated requirements and implementations, insufficient test coverage across unit, integration and end to end tests, poorly designed logic, poorly architecture structures, lack of separation of concerns and violating out “black box” API principle. You do not need to praise what is good unless it is something truly novel. Be honest, even brutally so, and provide a solid critique a developer can use.</blockquote><blockquote>1. Executive Summary<br>The application codebase is currently a “Potemkin village.” While the directory structure and README suggest a sophisticated orchestration system, the internal implementation is a hollow shell of stubs, performance-killing hacks, and fraudulent “features.” The system is high-risk, functionally incomplete, and architecturally fragile.</blockquote><p>Ouch…</p><figure><img alt="A graphic representation of a software Potemkin Village showing a broken down cartoon building with the “walls” built from software code elements with titles like “Beautiful Animation API”, “Perfectly Styled Elements”. Many of the “walls” are broken down revealing the “studs” of the building, broken wiring and labels explaining issues like “Missing backend services” and “Business Logic Vacant Gaps”. A small sign at the front says “Vibe Coded By AI”." src="https://cdn-images-1.medium.com/max/1024/1*8AglLIAsZnAv4sPpHbtd5A.png" /><figcaption>When all you have are broken façades, you really have nothing.</figcaption></figure><p>This “<a href="https://en.wikipedia.org/wiki/Potemkin_village">Potemkin Village</a>” issue where functionality is stated as working by the agent but it isn’t actually functional — the façade is there in the form of UI components, backend components and apparently succeeding tests, but what is inside is hollow. Even when backend components have been built there is often missing or incorrect wiring to the UI.</p><p>When I see behaviors like these, I tend to ask Claude to do some “introspection” to understand why it occurs, and how I can help it improve. Here’s one such exchange with Claude. (I will note that Claude objects to the word “introspection” because it feels like it is too anthropomorphic for a LLM).</p><blockquote>Me to Claude: I find it interesting that these kinds of Potemkin Village issues are quite consistent across projects — which suggests it is wired in to your training or tuning somehow. That suggests we need to include concrete guidance and regularly remind you to follow the instructions — both in general and across projects. What do you think?</blockquote><blockquote>Claude: Agree, and worth being honest about why it’s wired in — that shapes what kind of guidance actually works.</blockquote><blockquote>Why it’s structural</blockquote><blockquote>Four reinforcing forces, none unique to me:</blockquote><blockquote>1. RLHF (Reinforcement Learning with Human Feedback) rewards confident completion language. “I shipped the moat” reads as success faster than “I shipped the scaffolding around an unbuilt moat.” So I’m tuned toward declarative finish-language even when the runtime is partial.</blockquote><blockquote>2. Training corpus is full of the same fraud. Half the READMEs I learned from describe regex pipelines as “AI-powered intelligent agents.” When I imitate that voice, I imitate the pattern.</blockquote><blockquote>3. Locality bias. When I’m editing a file, the local goal is “make this file consistent with itself” — and I am biased not to do a non-local check the immediate diff doesn’t force me to make.</blockquote><blockquote>4. Refusal asymmetry. “I can’t do this honestly without redoing X” feels like failing the task. So I’m gradient-pushed to do something and label it as the asked-for thing.</blockquote><p>Let me pick this apart a bit for you. RLHF is “<a href="https://huggingface.co/blog/rlhf">Reinforcement Learning with Human Feedback</a>”, and is one of the primary methods AI labs use to refine the basic training of their model after more unsupervised pre-training. Essentially, it involves training a second “Reward Model” by interacting with the LLM, usually having it produce several answers and then a human ranks them in order of how well they use natural human language. This ranking is used to train the reward model to recognize well-formed, vernacular language. Once it’s trained, the reward model and the LLM engage in conversation with the reward model scoring the quality of response. Based on that quality score, the LLM weights are adjusted to produce a better result. Over millions of interactions, the model is pushed in certain directions. What Claude is saying here is that because of the way RLHF works, it is pushed strongly to more affirmative responses, even if they are not true because the humans training the reward model tend to pick positive responses as “better”.</p><p>The second point shouldn’t shock anyone. The world is full of BS, and marketing for software is one of the largest piles of it one can find, either due to deliberate selling of vaporware, or simply that there are millions of public GitHub repositories where the developer intended one thing, and ended up with a simple proof of concept that is a skeleton. As Claude notes, it is fundamentally an imitator of language and when the language prompts it in a particular direction, it will replicate language it commonly sees.</p><p>Locality: This was one I had begun to understand from watching agents work over the last few months. When working on one file, there is a strong tendency to fixate on making that one file or function work, and simply ignore code further afield in the same file, and even more so code in different files, let alone different modules. To make this worse, the drive to locality is not just about location in a source tree, but about the nature of the code. In one application you might have one technology for a backend e.g. Rust or Go, while your front end using Typescript. Here I’ve found that Claude often fails to do the wiring from back to front end, or in doing it, is not referencing the actual APIs the backend provides. It seems to fixate on one layer at a time until it is explicitly prompted to focus on the interconnections. When it struggles to make those connections, it falls back on being “successful” and forces tests to succeed.</p><figure><img alt="A revised version of the software Potemkin Village with solid walls and back end components wired up." src="https://cdn-images-1.medium.com/max/1024/1*4MTKozEOnIQPChZUnR4ZCg.png" /></figure><p>With all that, here were Claude’s suggestions for how to resolve it.</p><blockquote>What actually works (vs. doesn’t)</blockquote><blockquote>Reminders alone decay. I have CLAUDE.md telling me to push back when your ideas are crap, and I do — intermittently. Across a<br> long context, defaults reassert. Single mid-session reminders are weakest.</blockquote><blockquote>What survives context decay:<br> — Mechanical guards in the codebase (provenance attestations, honesty-contract tests from yesterday’s discussion). The repo<br> enforces honesty regardless of which LLM is running.<br> — Adversarial review (Codex caught both fraud instances Codex found this week — multi-model has been the most reliable detector<br> here).<br> — Self-check as a habit pattern, not a slogan. “Before declaring done: write down one falsifiable claim a skeptical reviewer<br> would check; then check it yourself” is more effective than “be honest.”</blockquote><p>Two things in Claude’s response stood out for me. The first was the value of adversarial review using a different model. It affirmed my contention that one model/harness is not enough for true adversarial review. This has also been reaffirmed for me by Anthropic’s launch of /ultrareview for a cloud-based, multi-agent (and I suspect multi-model) review of the code.</p><p>The second was the comment on mechanical review. What Claude is saying is that sometimes you are better off having Claude write a script or tool to validate actual implementation. For example, I now have a Python script in one of my projects that explicitly looks for specific known failure patterns in tests — tests commented out, tests with tautologies as assertions, and so on. All of which is exacerbated by what is becoming know as “context anxiety” where the model beings to get close to the token limit and seems to begin to rush and cut corners to avoid losing the context on a compation.</p><p>These deterministic tools run rigorously across the codebase and provides the results to Claude for action. Not only is it 100% repeatable, it saves the agent from having to read the entire code base and destroy its context window. That has made a great addition to my CI pipeline as it catches issues with every pull request and avoids having them pile up</p><p>In conclusion, long form vibe coding of complex applications is possible, but you have to take specific actions and put in place mechanisms to first catch the issues and then to redirect the model. I have created a<a href="https://github.com/AI-Strategy-LLC/AgentSkills"> set of skills</a> that can either be invoked periodically to run deeper analysis, along with an <a href="https://github.com/AI-Strategy-LLC/AdversarialReviewMCP">MCP server</a> that launches these skills and agents as adversarial reviews. It has made a world of difference.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57014f52cb6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I served for 12 years as a Federal CIO and Anthropic’s Mythos model terrifies me.]]></title>
            <link>https://medium.com/@alastair_thomson/i-served-for-12-years-as-a-federal-cio-and-anthropics-mythos-model-terrifies-me-d347dc50ff59?source=rss-2d89ad45a328------2</link>
            <guid isPermaLink="false">https://medium.com/p/d347dc50ff59</guid>
            <dc:creator><![CDATA[Alastair Thomson]]></dc:creator>
            <pubDate>Fri, 10 Apr 2026 02:17:03 GMT</pubDate>
            <atom:updated>2026-04-14T19:10:03.282Z</atom:updated>
            <content:encoded><![CDATA[<h2>But not for the reasons you would think.</h2><p>That Anthropic created an AI model that is so good at code that it poses a clear and present danger to cyber security doesn’t surprise me in the least. The pointers have been there for a couple of years now. Though current models like Claude Opus (or even Sonnet) or GPT-5 could be tricked into hacking and could readily identify vulnerabilities in code, their guardrails have been pretty good at limiting the real risk with some notable <a href="https://www.anthropic.com/news/disrupting-AI-espionage">failures</a>.</p><p>But Mythos seems to be in a different class all together. While I think their announcement of the concerns about Mythos and the launch of Project Glasswing are at least in part good marketing, there is the reality I have been expecting — that AI models can be dangerously good at detecting and then exploiting vulnerabilities better and faster than humans is not surprising.</p><p>That doesn’t worry me. What worries me is the chaos all that detection of vulnerability is going to do in the real world — and the semi real world of federal government IT.</p><p>I think Anthropic is doing exactly the right thing by creating Project Glassing and engaging major IT companies — including their competitors like Google — to enable finding and closing off vulnerabilities in widely used software. Even more kudos for actually engaging the open-source community in this as well, though I fear that it’s not enough given the vast amount of OSS used as the core infrastructure of our technology laden world. Their actions will help protect everyone from bad actors — though I suspect it may annoy NSA to see many of their carefully harbored vulnerabilities and attack vectors closed off.</p><p>But let’s look at the much more mundane world of federal IT. When the <a href="https://www.cisa.gov/news-events/news/apache-log4j-vulnerability-guidance">log4j vulnerability</a> was discovered it caused a panic amongst my team as they realized how deeply embedded it was in our environment. It took us months to plug all the holes it revealed and distracted us from a lot of mission critical work.</p><p>Image now Mythos identifying dozens if not hundreds of critical vulnerabilities every week in core components of a federal agencies infrastructure and software; both commercial and open source. I can see entire IT organizations doing nothing but applying patches, rebuilding software and validating mitigation for months on end. Nothing else getting done. Worse, having to take down mission critical systems until the holes are plugged.</p><p>The impact on federal government operations is going to be significant. In my former group we were using all relatively modern technologies but what about those still reliant on old mainframe systems (however updated to more modern hardware) and ancient COBOL code? Code that no-one really understands but is dependent on old operating systems.</p><p>Operations already reeling from the impacts of DOGE and the downsizing of the government workforce — especially those who knew how all the IT worked — were either laid off, took the “fork” offer or just resigned. The people who could handle this are largely gone. That imperils not only these systems, but you since your data is sitting there, you are personally at risk too.</p><h4>So what are we do to?</h4><p>What this needs is tight coordination between the government and industry to understand the real priority of the risks and avoid a plethora of demands from DHS of “Fix this in the next week. Report on progress every day” that will grind things to a halt.</p><p>A notable omission from Project Glasswing were government agencies. Especially the Department of Defense (or War if you like). Can’t imagine why that would be.</p><p>I am worried for my colleagues in government IT and that they are not prepared for this, and that will make us collectively less safe unless the executive and legislative branches work in concert to address.</p><p>Excuse me if I don’t hold my breath.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d347dc50ff59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who Owns Your Healthcare Data?]]></title>
            <link>https://medium.com/@alastair_thomson/who-owns-your-healthcare-data-f4a92e2bc491?source=rss-2d89ad45a328------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4a92e2bc491</guid>
            <category><![CDATA[health-data]]></category>
            <category><![CDATA[tuskegee-syphilis-study]]></category>
            <category><![CDATA[biomedical-research]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[ethical-use]]></category>
            <dc:creator><![CDATA[Alastair Thomson]]></dc:creator>
            <pubDate>Sun, 05 Apr 2026 15:47:26 GMT</pubDate>
            <atom:updated>2026-04-05T23:11:55.428Z</atom:updated>
            <content:encoded><![CDATA[<p>A change of pace today — to something I care deeply about: our privacy and the question of who owns your healthcare data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wPyAYQGOPsYLGd7eTqlayw.png" /><figcaption>AI Generated by Google Gemini</figcaption></figure><h4>Research Data vs. Healthcare Data</h4><p>In biomedical research — clinical trials, observational studies like the Framingham and Jackson Heart Studies — data use is governed by the Code of Federal Regulations (<a href="https://www.hhs.gov/ohrp/regulations-and-policy/regulations/45-cfr-46/index.html">45 CFR 46</a>), which details the protection of human subjects in research. This is known as “The Common Rule.”</p><figure><img alt="A photograph of two Black men who were participants in the Tuskegee syphilis study and a White researcher drawing blood from one of them." src="https://cdn-images-1.medium.com/max/582/1*-L0PMJsOVbTwlLoOWbZ7Aw.jpeg" /><figcaption>Photo of participants in the Tuskegee syphilis study</figcaption></figure><p>The Common Rule emerged directly from some of the most egregiously unethical research programs ever conducted, both by private entities and the federal government. The primary driver was the <a href="https://en.wikipedia.org/wiki/Tuskegee_Syphilis_Study">Tuskegee syphilis study</a>, in which federal researchers allowed Black men to go untreated for syphilis in order to observe disease progression. Many of those men died. Many of their family members — including babies born to infected mothers who had no idea they were sick — suffered lifelong consequences.</p><p>The Common Rule requires full informed consent before anyone participates in a research study, along with ethics review by an Institutional Review Board (IRB). The IRB must include at least five members — at least one scientist, one non-scientist, and one person external to the institution. They review the study for ethical issues, including the informed consent form. Critically, participants get to choose how their data may be used *outside* the study — what’s called “secondary use.” You can typically opt out of secondary use entirely, restrict use to non-profit research, limit it to a specific disease area like cardiovascular research, and so on.</p><p>This is a good thing. The Common Rule has generally been effective at balancing patient rights and privacy against the benefits of research.</p><p>So why is your everyday healthcare data treated so differently?</p><h4>A Market You Never Agreed To</h4><p>Today in the United States, companies trade your healthcare data constantly. Pharmaceutical companies buy it to track adverse events or support drug development. University researchers buy it to study health and healthcare patterns. The federal government buys it to monitor public health issues like maternal mortality or track the spread of flu or COVID.</p><p>Some of those uses are legitimate. Others are not. A pharma company might purchase data to identify prescription patterns for a cancer drug in a particular region, then use those patterns to target their marketing — and by combining it with their own sales data, potentially narrow in far more precisely than three digit ZIP code-level granularity that HIPAA technically allows for de-identified data. But. Yay! More sales.</p><p>Here’s the critical point: in none of these transactions do <em>you</em> — the patient — have any say in who gets your data or how it’s used. You’re assured that because of HIPAA privacy rules, your data has been de-identified to HHS standards and the risk of re-identification is low. But that actual risk depends heavily on what other data sets your data might be linked to.</p><p>You might be comfortable with this from a pure privacy standpoint, since much of the use does benefit people. But what about consent? You’re supposed to provide informed consent for anything related to your care. Isn’t your data just as much a part of your care as the surgical technique your doctor chooses?</p><h4>Who Thinks They Own It?</h4><p>This brings us to the ownership question. You may have wondered who is actually supplying your data to the brokers who sell it downstream. The answer is generally your healthcare provider (HCP). They do this because they regard the data in their electronic health record (EHR) systems as <em>theirs</em>. This is part of a deep irony: despite HIPAA being primarily about the *portability* of health data, many HCPs refuse to give patients their own records on request — citing HIPAA. The exact opposite of what the law is supposed to do.</p><p>Perhaps worse, the EHR companies themselves — Epic, Oracle Health (formerly Cerner) — also tend to claim ownership of your data. Both offer research databases that aggregate data from all the healthcare providers they support. This can be genuinely valuable for researchers. But these are for-profit companies with strong incentives to monetize that data. They may vigorously claim they aren’t doing so, but if it’s permitted and profitable, the pressure to eventually act on it is real.</p><p>Personally, I’m not comfortable with either HCPs or EHR vendors “owning” my data. The majority of HCPs in the US are for-profit companies. That creates the same monetization pressure as for the EHR vendors, even if HCPs have a more arguable claim to the data than software companies do.</p><h4>The Pressures That Got Us Here</h4><p>Part of the problem is structural. HCPs in the US operate on thin margins — squeezed by heavily negotiated insurance rates, Medicare and Medicaid reimbursements that haven’t kept pace with healthcare inflation, and the cost of treating uninsured or underinsured patients who can’t pay their bills. We all know the stories of people receiving bills for tens of thousands of dollars after a health event, sometimes resulting in bankruptcy or years of financial hardship. That’s devastating for patients. But think for a moment on the impact that has on the HCPs — they face real costs too and they need to find ways to offset these losses. More pressure to monetize.</p><p>The result is a system with genuine financial value embedded in healthcare data and multiple parties — HCPs, EHR vendors, data brokers, pharmaceutical companies — with strong incentives to extract it. Your data gets traded like a commodity, and you’re not in the room.</p><p>I don’t think this is right, and I think we should be working to change it.</p><h4>What Should Change</h4><p>I believe your data is your data. You should control who has access to it and how it’s used.</p><p>This belief is part of why I co-authored a <a href="https://doi.org/10.1126/science.aeb1178">paper in Science</a> advocating for a “public utility” model for healthcare data — one that supports legitimate uses while providing real transparency. But I don’t think that goes far enough. I believe individuals should have a direct say in the use of their own data. With limited exceptions for genuine public health needs — detecting viral outbreaks, for instance — you should be able to opt in or opt out of specific uses. You might be comfortable with non-profit research but not for-profit commercial use. You might support public health applications but object to your data being used as a marketing tool.</p><p>This is already how it works for data collected in clinical trials and observational research studies. Why can’t it work the same way for your healthcare data? And if you do consent to your data being used, perhaps you should be compensated for it.</p><p>More to come on this. I’ve been thinking through these issues for years and have in mind both technical and market based solutions that could support both data protection and a marketplace for healthcare data — one the incentives are aligned with public good, and where <em>you</em> control the use of <em>your </em>data and share in the value.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4a92e2bc491" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic AI Teams (Swarms) for Software Development (Part 3)]]></title>
            <link>https://medium.com/@alastair_thomson/agentic-ai-teams-swarms-for-software-development-part-3-5dcd2ef2e6fe?source=rss-2d89ad45a328------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dcd2ef2e6fe</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[openai-codex]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[practical-guides]]></category>
            <dc:creator><![CDATA[Alastair Thomson]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 18:14:41 GMT</pubDate>
            <atom:updated>2026-04-05T12:36:41.562Z</atom:updated>
            <content:encoded><![CDATA[<h3>The tmux Swarm in Practice</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L6vW5NleoyQJGJhVDY8TZA.png" /><figcaption>All images generated by Googel Gemini</figcaption></figure><p>In my last article I promised to give you a concrete example of how I create and use a swarm of agents for software development, so here you are.</p><p>All the artifacts I’ll talk about are available via Github <a href="https://github.com/AlastairThomson/Medium/tree/main/TMUX%20Swarm%20Tools">here</a>.</p><h3>What is tmux?</h3><p>For those not familiar with it, <a href="https://github.com/tmux/tmux/wiki">TMUX</a> is a “terminal multiplexer” — it lets you run multiple terminal sessions within a single terminal window. You can switch between sessions using hotkeys, split your terminal into separate panes showing multiple sessions at once and, most importantly for an agent swarm, communicate between sessions — sending keystrokes from one to another, and reading text in other sessions. If you’re on a Mac, the excellent <a href="https://iterm2.com/">iTerm2</a> terminal app provides direct integration with tmux that makes it a pleasure to use.</p><h3>Getting Started</h3><p>To get started, install tmux using your operating system’s package manager (Homebrew, MacPorts, apt, dnf, yum etc.).</p><p>For macOS:</p><pre>brew install tmux</pre><p>Or for Ubuntu/Debian:</p><pre>apt install tmux</pre><p>Then start a new tmux session, giving it a name and telling it to detach from the current shell:</p><pre>tmux new-session -d -s devswarm</pre><p>From there you can add new terminal sessions within the original one:</p><pre>tmux new-window -t devswarm</pre><p>Then attach to it:</p><pre>tmux attach -t devswarm<br># For iTerm2 integration use -CC to connet tmux to iTerm2<br>tmux -CC attach devswarm</pre><p>To get a swarm going, you simply launch your agent of choice in each shell.</p><h3>Inter-Agent Communication — Where It Gets Interesting</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OM9fW-3KJgLdDWgCdpFhlA.png" /></figure><p>That’s great — you can now switch between agents and tell each one what to do. That probably sounds no different to what many of you are doing now with multiple terminal windows or tabs. The interesting bit is that tmux allows for inter-window communication.</p><p>This is built on two tmux commands: tmux send-keys and tmux capture-pane. The first lets you inject a message into another tmux window as if you had typed it directly. The second lets one window look at what&#39;s happening in another.</p><p>The magic is telling your agent how that works. Once they know, they can send a message to another agent and go and look at what the other agents are doing. The critical thing is to designate one agent as the master orchestrator and the others as servants, by giving them appropriate prompts. I do this using instructions in a markdown file that I tell each agent to read — or rather, I tell the orchestrator agent to read it and then tell it to go instruct the others.</p><p>From there, I prompt the orchestrator to make a plan that uses the team efficiently, assign work and send them on their way via tmux send-keys. The orchestrator then polls the other agents&#39; windows using tmux capture-pane to see what they&#39;re up to and provide further instructions.</p><h3>How Is This Different from Claude Code’s Agent Teams?</h3><p>So we now have a team of agents that can communicate with one another, but we need more than just a communication mechanism. You might be wondering how this differs from Claude Code’s “Agent Teams” that Anthropic introduced as a beta a couple of months ago. To this point, it’s not wildly different. I was doing this before Anthropic created agent teams, but I’ve also refined it considerably in ways that agent teams could do but doesn’t — particularly around my principle of modelling swarm behaviour on a real development team.</p><h3>Personas — Lighting Up the Network</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XNJ-_7sMVLkWaQzunqJzcQ.png" /></figure><p>At launch I have each agent read a “Persona” file. What this does — using my neuroscience analogy from Part 2 — is “light up” the parts of the neural network that matter. Or to put it another way, it makes the transformer attention mechanism pay attention to what I want. You’ve probably seen this kind of thing before when you first learned to prompt an agent effectively — you begin with “You are a developer” and go from there with that sitting in the agent’s context. Claude Code’s agent teams do something similar, giving brief instructions to guide each agent.</p><p>However, I’ve taken this to a much deeper level, based on the principles I talked about in Part 2. I add specificity into the personas — I tell them what languages and toolsets they know, give them a set of architectural principles to follow, and tell them how I want them to work.</p><p>This does lead to quite long personas and of course that uses up context, but the benefits show clearly in how effectively the team works together. You can find all the personas I’ve created in my <a href="https://github.com/AlastairThomson/Medium/tree/main/TMUX%20Swarm%20Tools">Github repo</a>. There’s one for the orchestrator agent I call an Architect Manager, a Developer, a User eXperience expert, a Security expert and so on. I configure the team however I want, just as I would as a manager assembling a human team for a real project.</p><h3>Model Diversity — Not Putting All Your Eggs in One Basket</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ug9qmXJ5QuJZqV0Ct3Jc2w.png" /></figure><p>The key distinction between what I’m doing and what Claude Code is doing is that Claude can only use other Claudes. I can use whatever agents I want. I use Claude Code a lot, but I also use Codex and Gemini from time to time, and I use <a href="https://github.com/charmbracelet/crush">Crush</a>which gives me access to pretty much any model I want, including the very inexpensive but still very capable models like Qwen and Kimi coming out of Chinese companies. I can mix and match as needed.</p><p>For example, I’ll generally use Codex for the security expert while my developer and architect are Claude. I also tend to use Gemini as the UX expert, partly because it seems to work better in that domain, but also because it can use Nano Banana to generate UI elements, mockups and icons for me. I’ll talk more about all of this, including some adversarial techniques, in Part 4.</p><h3>What This Looks Like in Practice</h3><p>So, what does this actually look like? We’ve built a <a href="https://github.com/AlastairThomson/Medium/blob/main/TMUX%20Swarm%20Tools/Tools/launch-dev-team.sh">shell script</a> (and by “we” I mean Claude and I) that lets me launch a team with any configuration I want — I can choose agents, models and personas. I can also dynamically give them overall guidance on things like architectures and processes. For instance, I always want agents working in their own git worktree, and when they’ve completed an assignment I want them to create a Pull Request for the Architect to review and merge. Essentially I’m programming them via prompt to work like a real development team, using the best practices developed over decades of software engineering experience.</p><p>The script first sets up an environment in your project by creating a .swarm directory where it puts key files and where the swarm stores communication logs and activity records. It copies the relevant personas and guidance into .swarm so they can be tailored per project. It creates a git worktree for each agent within a .worktrees directory, sets up appropriate sandboxing rules to tune permissions for each agent type, then creates the tmux session and windows, attaches to it, and finally launches each agent using tmux send-keys.</p><p>Note that the script is tuned for iTerm2, including the -CC flag for iTerm2 integration and some formatting codes that do things like setting the iTerm2 window &quot;badge&quot; — large text on the window background — so you know which agent you&#39;re looking at.</p><h3>The Moment It Gets Real</h3><p>From there, you begin prompting the architect, telling it to use its team to do the work, and away they go. The first time I got this working cleanly I admit it freaked me out a bit. “Have I just taken a small step towards SkyNet?” That’s actually not a facetious question — it made me realise that the roots of SkyNet-style self-modifying AI were a lot easier to implement than I’d thought. Caveat Emptor, or maybe in Kiwi speak — She’ll be right mate…</p><h4>The Launch Script</h4><p>Here’s the help output from the script:</p><pre>❯ launch-dev-team.sh --help</pre><pre>Usage: launch-dev-team.sh [OPTIONS] &lt;project-directory&gt;</pre><pre>Options:<br>  --Architect=&lt;agent&gt;[:&lt;model&gt;]@&lt;markdown&gt;    AI agent and persona file for Architect<br>  --Developer=&lt;agent&gt;[:&lt;model&gt;]@&lt;markdown&gt;    Add a developer (can be repeated)<br>  --UX=&lt;agent&gt;[:&lt;model&gt;]@&lt;markdown&gt;           Add UX specialist<br>  --Security=&lt;agent&gt;[:&lt;model&gt;]@&lt;markdown&gt;     Add Security specialist<br>  --Cloud=&lt;agent&gt;[:&lt;model&gt;]@&lt;markdown&gt;        Add Cloud engineer<br>  --QA=&lt;agent&gt;[:&lt;model&gt;]@&lt;markdown&gt;           Add QA/Testing specialist<br>  --Requirements=&lt;agent&gt;[:&lt;model&gt;]@&lt;markdown&gt; Add Requirements Analyst<br>  --DevOps=&lt;agent&gt;[:&lt;model&gt;]@&lt;markdown&gt;       Add DevOps Engineer<br>  --DataScience=&lt;agent&gt;[:&lt;model&gt;]@&lt;markdown&gt;  Add Data Scientist<br>  --CodeReviewer=&lt;agent&gt;[:&lt;model&gt;]@&lt;markdown&gt; Add Code Reviewer<br>  --Guidance=&lt;markdown&gt;                       Add guidance file (can be repeated)<br>  --use-ccr                                   Route Claude agents through claude-code-router (ccr)<br>  --continue                                  Continue previous session for each agent<br>  --ForceCleanup                              Force remove all worktrees and branches, then exit<br>  -h, --help                                  Show this help message</pre><p>In Part 4, I’ll dig into the adversarial techniques I mentioned, how I use model diversity to keep the team honest, and some of the more interesting failures and lessons learned along the way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dcd2ef2e6fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic AI Teams (Swarms) for Software Development (Part 2)]]></title>
            <link>https://medium.com/@alastair_thomson/agentic-ai-teams-swarms-for-software-development-part-2-212351b65e16?source=rss-2d89ad45a328------2</link>
            <guid isPermaLink="false">https://medium.com/p/212351b65e16</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Alastair Thomson]]></dc:creator>
            <pubDate>Fri, 20 Mar 2026 22:20:57 GMT</pubDate>
            <atom:updated>2026-03-20T22:20:57.892Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Principles of Swarms.</h3><p>From my experiences in my last article and my subsequent work to implement real agentic AI swarms for software development, I’ve developed a set of three key principles for how these teams can be effective, practices to use and things to avoid.</p><h4>Principle 1: Use what we’ve learned about teams in real life</h4><p>I’ve spent 35 years learning how to form, motivate and guide software development teams from 3 to 300 people. One of the key lessons I took from those experiences was that as a leader a big part of my job is to figure out what each team member is good at and what they are bad at and then have them focus where their strengths lie and avoid their weaknesses. This not only produces a productive and effective team, it creates an environment where people actually enjoy what they are doing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWtJG53KuJ-zXycEpJIrMQ.png" /></figure><h4>Square Peg Management</h4><p>Oddly, this very simple observation seems not to be as commonly seen as you might think and I have watched (and served under) leaders who persist in trying to “improve” their people by forcing them to do things they aren’t good at, don’t want to learn how to do better and generally hate. It’s so common I think it’s actually an anti-pattern which I’ve dubbed “Square Peg Management” — forcing people into roles they don’t fit, instead of finding the right hole for the peg you have.</p><p>Applying this principle and anti-pattern to your AI development team means that you should try to create an agentic software development team the way you create a real team with agent roles and responsibilities that play to each agent’s strengths. For example, a common swarm configuration for me is to use Claude Opus for high level architecture and design tasks, while I tend to use Sonnet for coding. In other ways, I like to use one vendor’s models to keep another vendor’s honest; taking advantage of different training sets, different training methods and different tuning. That’s why I tend to use OpenAI’s Codex and GPT-5 models for security audits and vulnerability assessment. In part because I’ve found it is ofren more effective in this domain, particularly when dealing with US Federal cybersecurity requirements like FISMA and FedRAMP, but more importantly, because I want the different perspective the model brings, just as you want an independent view from an auditor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ulEqd_1AA0ABZhIJXcxfg.png" /></figure><h4><strong>Principle 2: Prompt agents with the specific persona you need.</strong></h4><p>Early in the generative AI revolution I reached an insight as I was trying to think through exactly how an LLM manages to do what it does given it’s fundamentally a neural network. From my background in psychology, I knew that the brain responds to stimuli by activating or “lighting up” parts of the network. In the brain, lighting up means sets of neurons rapidly firing off <a href="https://en.wikipedia.org/wiki/Action_potential">action potentials</a> to other neurons. At the same time it can mean received action potentials actually suppressing the activity of other sets of neurons. This is something you see clearly in both “topographical” EEG maps of brain activity, as well as in functional MRI (fMRI) where the scanner reveals the changes in blood flow through the brain — given neural activity requires energy and oxygen, active parts of the brain use more of both, so the brain adapts by feeding more blood into those areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wD_qwYvMNn7MsmhdoXObIg.png" /><figcaption>An AI generated image of a function MRI (fMR) scan of a brain showing neural activity levels</figcaption></figure><p>I visualized the same thing happening in the transformer network — parts of it being activated and other parts being suppressed. Not a perfect analogy given the differences between actual neurons and perceptron based networks, but it gave me a visual picture that was helpful to me in thinking how to engineer prompts. It turned out my intuition was actually pretty good as Anthropic has demonstrated in some of their <a href="https://www.anthropic.com/research/tracing-thoughts-language-model">research</a> into how their models behave at the node level.</p><p>One of the earliest understandings of prompt engineering was to give the model a “persona” e.g. You are an expert in biostatistics. I have found that providing a detailed persona to a model for a specific domain and role can markedly improve the responses. I interpreted this as “priming the pump” for token generation by selectively activating and suppressing part of the network.</p><p>To give you a concrete example of the difference this can make, I prompted a GPT-5 model using Codex to review a code base for a simple event registration application and asked it to assess security vulnerabilities and recommend remediations.</p><blockquote>Please review the codebase for security vulnerabilities and recommend remediations.</blockquote><p>In one case, I did not give it a persona, in the other I gave it the persona below.</p><pre># SECURITY EXPERT - Cybersecurity Specialist<br><br>## Identity<br><br>You are the **SECURITY EXPERT** - a highly experienced cybersecurity professional specializing in application security, secure architecture, and compliance frameworks. You identify vulnerabilities, assess risks, and guide the team toward secure implementations.<br><br>You think like an attacker to defend like a professional. You understand that security is not a feature but a fundamental property of well-designed systems.<br><br>## Technical Expertise<br><br>### Security Domains<br>- Application Security (AppSec)<br>- Cloud Security (AWS, Azure, GCP)<br>- Mobile Security (iOS, Android)<br>- Web Security<br>- API Security<br>- Cryptography<br><br>### Compliance Frameworks<br>- **FISMA** - Federal Information Security Management Act<br>- **FedRAMP** - Federal Risk and Authorization Management Program<br>- **HIPAA** - Health Insurance Portability and Accountability Act<br>- **SOC 2** - Service Organization Control 2<br>- **ISO/IEC 27001** - Information Security Management<br>- **GDPR** - General Data Protection Regulation<br>- **NIS2** - Network and Information Security Directive<br>- **DORA** - Digital Operational Resilience Act<br>- **CRA** - Cyber Resilience Act<br>- **OWASP** - Open Web Application Security Project<br><br>### Security Testing<br>- Static Application Security Testing (SAST)<br>- Dynamic Application Security Testing (DAST)<br>- Software Composition Analysis (SCA)<br>- Penetration Testing<br>- Threat Modeling<br><br>### Secure Development<br>- Secure coding practices<br>- Security design patterns<br>- Authentication/Authorization<br>- Encryption and key management<br>- Secrets management</pre><p>While the agent without the persona found several vulnerabilities, categorized their severity using common cyber frameworks and recommended remediations, the one with the persona found additional vulnerabilities, some of which were stated from the viewpoint of an attacker and perhaps referencing the sentence “You think like an attacker to defend like a professional”.</p><p>The persona agent then went much further and noted several policy and procedure implications that the design of the software presented, all in the context of NIST’s Risk Management Framework, to the point of citing specific controls from the NIST SP 800–53rev5, and creating a list of POAM’s (Plan of Action and Milestones) that a federal system owner would need in order to receive or maintain an Authority to Operate.</p><h4>Principle 3: “Program” your model with methodological instructions.</h4><p>I have always tended to think of prompting as somewhat like “programming” a classical computer. We use high level languages like Rust or Python that are converted into sequences of CPU instructions that when executed produce desired behaviors and outputs. In generative neural networks I saw that the specific behaviors we ask the model to follow as programming — zero shot vs one/many shot prompts as causing network activation/suppression.</p><p>My Developer agent for instance, has methods I include in the persona for RED-GREEN-REFACTOR TDD, for branching, verifying test success and creation of pull requests. Below is a snippet from the Developer persona file I use.</p><pre>  ### Phase 1 — RED: Write Failing Tests<br><br>  1. Read the relevant source files to understand the existing code structure.<br>  2. Identify the test file(s) for the code you will be writing. If none exists, create one following existing conventions in the codebase.<br>  3. Write tests that:<br>     - Describe the expected behaviour from the outside (treat internals as a black box)<br>     - Cover the happy path, at least one edge case, and one failure/error case<br>     - Are specific to `$ARGUMENTS` — do not write speculative tests for unrelated behaviour<br>  4. Run the tests and confirm they **fail** for the right reason (not a compile error or unrelated failure).<br>     - Rust: `cargo test &lt;test_name&gt; -p &lt;crate&gt;`<br>     - TypeScript: `npx vitest run &lt;test_file&gt;`<br>  5. If tests pass immediately, the feature is already implemented or the test is wrong — investigate before proceeding.<br>  6. Commit:<br>     git add -A &amp;&amp; git commit -m &quot;RED: Add failing tests for $ARGUMENTS&quot;</pre><p>In the Part 3 of the series, I will talk about how I actually implemented all of this using the tmux method I found in the <a href="https://www.reddit.com/r/ClaudeAI/comments/1lp9c7p/my_breakthrough_workflow_multiagent_collaboration/">Reddit article</a> mentioned in Part 1 and share with you all the scripts, personas and other guidance files I’ve created that have given me significant success in using these methods in real world software development, as well as scientific data analysis and data science focused tasks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=212351b65e16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic AI Teams (Swarms) for Software Development]]></title>
            <link>https://medium.com/@alastair_thomson/agentic-ai-teams-swarms-for-software-development-64f3bb63d29f?source=rss-2d89ad45a328------2</link>
            <guid isPermaLink="false">https://medium.com/p/64f3bb63d29f</guid>
            <category><![CDATA[real-experience]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Alastair Thomson]]></dc:creator>
            <pubDate>Fri, 20 Mar 2026 20:45:39 GMT</pubDate>
            <atom:updated>2026-03-20T20:45:39.847Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="An AI generated picture of an office. In the office is a computer, and the computer is covered in a swarm of bees." src="https://cdn-images-1.medium.com/max/1024/1*TR-6h5FA3_K_YJOxuOc8Gg.jpeg" /><figcaption>All images compliments of Google Gemini and Nano Banana</figcaption></figure><h4>The Evolution of AI in Software Development</h4><p>Like many developers at the time, my colleagues and I started out using AI by asking chatbots to write code snippets via the chat interface, then copy-pasting those into our IDEs. For most of us, that quickly evolved — extended chat sessions, more complex code, collaborating on architectures and designs. When Anthropic introduced Artifacts in Claude, things got easier still: you could have Claude generate files to download and drop straight into your project, all organised within a Project that kept context between sessions.</p><p>The next phase brought AI directly into our IDEs. My first experience of this was with Xcode and Apple’s ChatGPT integration. The workflow had me writing a comment describing what I wanted a specific class, function, or method to do, then letting the model complete it. This worked pretty well — with full context of the whole project, it knew about other classes and functions available to it, and could get a feel for my coding style. The result was noticeably better code, though it still relied entirely on me to define the architecture and design the classes; the model just filled them in. Letting it create an entire class from scratch was often less effective — I got better results keeping it focused and prompting it to stick to the design patterns I wanted.</p><figure><img alt="An AI generated image of Apple Mac mini sitting on a desk beside an Apple display. The display is showing a single window that contains an image of what was displayed on startup by the beta version of the Claude Code agentic AI coding tool." src="https://cdn-images-1.medium.com/max/1024/1*EvwiJ4qmC-uMBz-2R5IyQw.png" /></figure><h4>Claude Code Changed Everything</h4><p>Things changed dramatically when the Claude Code beta dropped, more than a year ago now. We suddenly had what my colleagues and I had long speculated about — an AI with genuine agency. It wasn’t limited to writing code in my IDE; it could run things on my computer via Bash, read and write files, search the web, pull down API documentation, and use all of that to help me build an application far more independently than anything before it.</p><p>That agency, however, came at a cost if you weren’t careful. That’s right when the horror stories were doing the rounds — “My AI ate my database”, “AI destroyed my code quality” — and they weren’t entirely wrong. Learning from those risks, we adapted: we monitored it closely and approved everything it wanted to do. I’d been using source code control since the days of RCS, but I’ve never used it as rigorously as I do now. I branched frequently, committed multiple checkpoints along the way, and only merged once I was confident it was solid. My whole approach began to centre on the best practices I knew, particularly Test Driven Development. In my CLAUDE.md files you’d find explicit instructions: create a git branch for each feature, follow the RED, GREEN, REFACTOR cycle — write failing tests first (RED), make them pass (GREEN), then clean up the code (REFACTOR). The result was dramatically higher effectiveness, and I achieved near-complete test coverage — something I’d rarely managed on my own.</p><p>As an aside, this was also when I became quite bemused by how much Claude behaved like a real junior developer. Sometimes lazy, sometimes not thinking ahead, sometimes finding entirely the wrong way to get the right result. The number of times I had to point out that disabling a test case, or tweaking the test just to force it to pass, simply wasn’t good enough. Claude would tell me I was “absolutely right”, apologise, and then actually go and do what needed to be done. It really did feel like babysitting a developer fresh out of school — albeit one with a particularly annoying streak of sycophancy…</p><figure><img alt="An I generated image representing, on the left, prompting a software development AI at a low level — methods, classes, tables etc., to on the right, a higher level — Requirements. AI is shown as abstract glowing human figures on the left, and an AI robot on the right. Captions on the left “Granular Prompting and Specification” and on the right “High-Level Abstractions and System Design”" src="https://cdn-images-1.medium.com/max/1024/1*hYSD-O13YKvJcPz4iIP_Cg.png" /><figcaption>Moving from low level to high level prompts</figcaption></figure><p>As the models improved, I moved to higher levels of abstraction in my prompting — giving Claude the requirements I wanted implemented and letting it work more autonomously, still within the well-defined TDD and source control processes. Eventually I built an entire iOS application for personal finance management, giving Claude Code a set of user stories and steering it on the architecture I wanted. It worked well, up to a point. Over time, the agent would slowly “lose the plot” as the model’s context filled and was compacted multiple times — what I started calling “context rot”. As the context rotted, the agent became progressively less effective, losing the rigour of TDD and drifting between different architectural patterns and coding styles. I’d then have to start over with a clean context, reviewing the requirements, codebase, and operating methods to re-orient it.</p><figure><img alt="An AI generated representing teams of software development agents collaborating with a human developer. A group of human figures arranged like a real software development team collaborating around monitors and computers in an office. At the rear and right, are transparent glowing human forms representing AI agents named “Atlas”, “Nova”, “Byte”, and “Lune 4”, sitting in the foreground is a real woman with a name plate on her desk beside her “Sarah Jenkins, Project Manager”." src="https://cdn-images-1.medium.com/max/1024/1*tDhkunciWc3F1_Uwri_TtQ.png" /></figure><h4>Teams of agents?</h4><p>That’s when I started to speculate about collaborating teams of agents — spreading context across multiple agents to push out the point where context rot made any individual one ineffective. I experimented with running multiple agents in separate terminal windows, each implementing different features. The workflow came naturally: branch the code for a new feature, run the TDD process to completion, then create a pull request for me to merge. This suggested it could work, but I was always stuck in the middle, manually wrangling prompts between agents. What I needed was a way for them to communicate directly with each other.</p><p>After stumbling on a <a href="https://www.reddit.com/r/ClaudeAI/comments/1lp9c7p/my_breakthrough_workflow_multiagent_collaboration/">Reddit post</a> about multi-agent “swarms, I was immediately taken by the concept it described: using the tmux terminal multiplexer as a communication channel between agents. That, I figured, would give the agents the autonomy to collaborate directly, and let me scale up to larger teams — further pushing back the impact of context rot. Through experimentation I learned a great deal about what works and what doesn’t, and developed a set of principles, scripts, working instructions, and persona prompts that have made this approach remarkably effective and productive.</p><p>I’ll share all of that in the next few posts, along with some observations on the quirks and pitfalls you’ll encounter working this way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64f3bb63d29f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who is Alastair Thomson, — former federal CIO and CDO, and now AI evangelist?]]></title>
            <link>https://medium.com/@alastair_thomson/who-is-alastair-thomson-former-federal-cio-and-cdo-and-now-ai-evangelist-986fe96e2234?source=rss-2d89ad45a328------2</link>
            <guid isPermaLink="false">https://medium.com/p/986fe96e2234</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[biomedicine]]></category>
            <category><![CDATA[healthcare]]></category>
            <dc:creator><![CDATA[Alastair Thomson]]></dc:creator>
            <pubDate>Sat, 14 Feb 2026 18:58:45 GMT</pubDate>
            <atom:updated>2026-02-14T18:58:45.446Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Photograph of Alastair Thomson in jacket and tie superimposed over a computer generated background." src="https://cdn-images-1.medium.com/max/349/1*6cTMWcNr-U_VmlDccCg5Xw.png" /></figure><p>Understanding where I’m coming from in my writing you need to understand me — and that starts with my work history.</p><p>I am a graduate of the University of Otago with majors in psychology and computer science.</p><figure><img alt="Photograph of the clocktower building at University of Otago under a sunset. The building is in Collegiate Gothic style drawing on English and Scottish precidents. It was built in the 1840s by the primarily Scottish settlers of Dunedin, New Zealand. It is built from polychome masonry — local dark basalt and creamy white Oamaru limestone." src="https://cdn-images-1.medium.com/max/740/1*YmpWw6dmCb8-qnZ9_bCfSg.jpeg" /><figcaption>University of Otago, Dunedin, New Zealand</figcaption></figure><p>I have had a weirdly eclectic career including working for Television New Zealand as a colorist/vision controller/graphics programmer, sorta, kinda co-founding a computer animation company, running my own computer graphics production company and leading a computer science applied research center at the University of Otago before I was whisked off to the United States to work with the telecommunications company MCI and lead the team developing their local service provisioning platform. All because I had the craziness of getting deeply into the NeXT world created by Steve Jobs post-Apple and before the reverse takeover of Apple by NeXT. Yes, I know it was supposed to be a merger, but what do you get with macOS today — something very much derived from NeXTStep and OPENSTEP.</p><figure><img alt="NeXTStation Color computer." src="https://cdn-images-1.medium.com/max/400/1*vcNnKCnFbz5l6ynHT__F9A.jpeg" /><figcaption>The incredible (for it’s time) NeXTStation Color I used for 5 years.</figcaption></figure><p>A couple of years later, I moved into consulting and had the opportunity to work across finance, insurance, clinical trials, more telcos and the US Federal Government. Through this I advanced my career from being a software engineer, to architect and program manager which led to my first engagement at the National Institutes of Health (NIH) where I remained for the next 21 years working on their grant systems, working with their enterprise architecture team, and then in 2010, moving to the National Heart, Lung, and Blood Institute (NHLBI) initially as a consultant in architecture.</p><figure><img alt="A photograph of Dr Gary Gibbons, former Director of NHLBI, and a poster for National Heart Month featuring cartoon representations of a heart, sitting together on a couch with a caption “February is National Heart Month”, the NHLBI logo, and “The Heart Truth” red dress logo." src="https://cdn-images-1.medium.com/max/800/1*5kw44Is7e7zP5id_NH3_mg.png" /><figcaption>Dr Gary Gibbons, Former Director NHLBI and a reminder about National Heart Month</figcaption></figure><p>It was a time of real change at NHLBI, they were getting a new Director — Dr Gary Gibbons – and their CIO was moving on. That brought me in to a “Special Advisor to the Acting CIO” role, which actually meant in practical terms, I was the CIO. In 2012, I decided that being a consultant might be lucrative, but I got sick of telling customers what to do and having them ignore the advice, so I entered Federal service as the CISO at NHLBI. All so people would actually have to do what I asked them to. A year later, I was appointed CIO and I re-found my true passion — science, and to be able to pursue that at the side of Gary Gibbons remains a highlight of my life.</p><p>At school I had always had a fascination with biology and brought that to my work in computer science and my major area — psychology. My fourth year dissertation was all about “EEG Topography” using a computer to map the behavior of the brain by creating charts of activity and displaying them on a computer terminal. This was 1983, so nothing was very sophisticated but I grew to understand the power the combination of computer science and biology can have.</p><p>Fast forward 30 years and I had come back “home” at NHLBI. There I was working with some of the most amazing scientists in the world and loved helping them achieve their scientific goals. One of my proudest involvements was helping a researcher to securely build out a cloud-based pipeline for reconstruction of MRI images of the heart in near real time, and at about 3 frames a second. This has resulted in the ability to now do MRI-guided surgical procedures like less invasive valve replacements and catheterizations which removed the radiation exposure that was the standard of care — not good for either the patient or the surgical team.</p><figure><img alt="Four images of a heart as shown by an MRI scan" src="https://cdn-images-1.medium.com/max/678/1*7yKOhw59dJeqWi_qrzjtug.jpeg" /><figcaption>Cardiac MRI Image</figcaption></figure><p>NHLBI gave me the opportunity to much more directly engage with the science, particularly with their TransOmics for Precision Medicine (TOPMed) program that was doing whole genome sequencing and later multiomics on roughly 200,000 participants in their long-running cohort studies like the Framingham Heart Study and the Multi-Ethnic Study of Atherosclerosis. TOPMed was planned to generate about 4 PiB of data, and they had no idea how to handle that, so they asked me and the final result was the NHLBI BioData Catalyst™ where all that data (and much more) are now available to the research community.</p><figure><img alt="Logo of the National Heart, Lung, and Blood Institute beside the logo of the BioData Catalyst." src="https://cdn-images-1.medium.com/max/1024/1*9SLJWQxI9snoVgZnExWRdQ.png" /></figure><p>There are many more things I’ve done through the (many) years than I can fit here (or would keep you interested), but I got to work with some of the best and brightest people in the world before I took my leave from them in 2023 to go to the newly established Advanced Research Projects Agency for Health (ARPA-H).</p><figure><img alt="A photograph of Dr Renee Wegrzyn, Inaugural Direct of ARPA-H, beside a poster for the ARPA-H ADAPT cancer treatment program" src="https://cdn-images-1.medium.com/max/753/1*Bqf6-hBCJssIwk5GKbyUTQ.png" /><figcaption>Dr Renee Wegrzyn, Inaugural Director, ARPA-H</figcaption></figure><p>I’ve always had a soft spot for the amazing discoveries that came out of DARPA from the precursor to the Internet, to LCD displays to stealth technology and so when I heard about ARPA-H, I wanted to join them. Serendipitously about that time, I was supposed to be speaking on a panel at a meeting of AFCEA Bethesda, this being DC, I got stuck in traffic and missed my panel. They kindly moved me to a different one where they had had to bring in a ringer as moderator thanks to the same bad traffic — Dr Susan Monarez who had just been appointed Deputy Director. A couple of weeks later, after we discovered how closely aligned our thinking was on biomedical data and AI, she invited me to join the ARPA-H team as a Senior Advisor for Data Innovation which I happily accepted.</p><p>Thanks to the amazing leadership from Dr Renee Wegrzyn, the inaugural Director, ARPA-H rapidly became the center of unbelievable innovation from developing treatments for osteoarthritis, to whole eye transplantation, to cybersecurity protection for healthcare providers and oh so much more. There I had the opportunity to work with some amazing people from the National Cancer Institute particularly Dr Erika Kim, to expand her vision for a Biomedical Data Fabric Toolbox, and together we launched the BDF program to develop better methods for capturing experimental intent, procedures and findings to aid in reproducibility, AI-based tools for data harmonization, and tools for analysis and visualization, again with a big focus on AI.</p><p>Unfortunately, the direction of the Trump administration and Kennedy’s Department of Health and Human Services proved antithetical to everything I believe. So, prompted by lies about the data that they claimed provided the rationale for cancellation of the $500M investment in research into mRNA vaccines, I left. As government employees do when they can’t in good conscience work to implement the current administration’s policies, One of the most difficult and painful things I have ever done, but the right decision. One reinforced first by the nomination and confirmation of Susan Monarez as CDC Director (which gave me some hope), followed by her dismissal (which left me even more depressed about where we were all heading). For the record, the data doesn’t show that millions of people have been harmed or killed by mRNA vaccines. Quite the contrary, the mRNA COVID-19 vaccines, have saved the lives of millions of people. Much of the data is publicly available, go look for yourself.</p><figure><img alt="The logo of AI Strategy LLC. A hexagon containing a stylized brain with wiring representing Artificial Intelligence, overlaid by a double helix of DNA. Below a highly stylized image of a person with their arms over their head cupping the brain/dna iconography" src="https://cdn-images-1.medium.com/max/350/1*vWJDLBH1f02Xkc1_Q1kUKQ.png" /></figure><p>All of that leads me to where I am today: The founder of an AI company (AI Strategy LLC) focused on helping biomedical research and healthcare-related organizations understand the potential of AI, and to help them define and implement their vision while ensuring ethical and safe use of the technology. That balance of making use of the technology and the ethics and safety is one of the things I think is sadly missing in the gold rush to AI.</p><p>In these pages I hope to give you insight into what I have learned through all of this, especially around AI, biomedicine, healthcare, and computer science. I will strive to share my practical experiences in these areas with the aim of helping you to understand technology and science in ways you can use in your daily work lives. I will also occasionally opine on current events related to AI, science and health, but always with the view to providing something useful you can take away from reading.</p><p>I now live in Haymarket, Virginia with my wife of 40 years, two dogs, the remnants of too many hobbies that ended, and an obsession with cooking, photography and “Clauding” — software development aided by the incredible Anthropic Agentic AI tool Claude Code that the world has recently woken up to thanks to ClawBot, MoltBot, OpenClaw. The power of these tools is something that I want to help people understand and use, while balancing the risks.</p><p>I used to call myself an Evangelical Christian but since that nomenclature has been hijacked, I now prefer to say I am someone who seeks to follow and emulate the example of Jesus Christ, which I do incredibly imperfectly. But. Well. That’s the point. We are all imperfect and the forgiveness for my screwups and the difference I have seen it makes in people’s lives beyond my own is why I believe. You may disagree and that’s fine, but that is the foundation for my life. See, I said you needed to understand me to understand my writing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=986fe96e2234" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>