AI agent security
Software that looks for ways to push a tool-using AI agent into unsafe actions, and keeps only the failures that happen again on a clean rerun. Code and write-up are public.
I'm a Senior Digital Analyst at 8 Million Stories in Edinburgh. I build forecasting models, LLM pipelines and reporting automation in Python and SQL, and I lead client data retainers.
I live in Stirling, Scotland.

Software that looks for ways to push a tool-using AI agent into unsafe actions, and keeps only the failures that happen again on a clean rerun. Code and write-up are public.
Is public incident data enough to price insurance for AI systems? Not yet. The case study has an interactive chart that shows why.
Automated client reporting and insight decks at 8 Million Stories. On my own: a video production pipeline, a GA4 audit platform, a cookie consent crawler, a prospecting tool and an AI news newsletter.
The agency's analytics platform. I led its data modules.
A portfolio tracker, and a UK money research site with free calculators.
Through 8 Million Stories I've worked with BBC World Service, Tesco Bank, General Mills, Gleneagles, Aman, Visit Britain and many more. As a freelancer I've worked with NerdWallet, Neilson Holidays, Cointelegraph and dozens of others. All clients
On a data retainer I own the work from start to finish: agreeing what to measure, building the pipelines and models, presenting the results, and training colleagues to carry it on.
Once a client test looked like a clear win. I traced the uplift to a tracking fault before anyone reported it.
Python, 45.6k stars. Its SDK had 57 million downloads last month.
LangGraph is a widely used framework for building AI agents. Its Python client was quietly changing data in streamed responses: when a message arrived split over several lines, the pieces were glued together without the line breaks, so the app could receive a different value from the one the server sent. I reported the bug and submitted a fix. The maintainers' fix, released in version 0.4.10, credits my pull request.
Rust, 33.2k stars
Two open pull requests for this local AI meeting assistant: transcript export to text and WebVTT, and a cleaner microphone list on Linux.
1,473 contributions on 129 days in the year to 1 December 2026, counted by GitHub. Most are in private repositories.
| Month | Contributions |
|---|---|
| November 2025 | 0 |
| December 2025 | 0 |
| January 2026 | 0 |
| February 2026 | 2 |
| March 2026 | 209 |
| April 2026 | 531 |
| May 2026 | 187 |
| June 2026 | 111 |
| July 2026 | 36 |
| August 2026 | 155 |
| September 2026 | 123 |
| October 2026 | 5 |
| November 2026 | 108 |
| December 2026 | 6 |
Star and download counts from GitHub and PyPI, 1 December 2026. GitHub profile
Forecasting, Bayesian marketing mix models, text classification and anomaly detection, on BigQuery, Google Cloud and AWS. Automated about three dozen SEO and paid search reports.
Part time. Measurement, reporting, audits and analysis for clients including NerdWallet, Neilson Holidays and Cointelegraph.
Articles on machine learning, AI agents and security.
Python and SQL pipelines and reporting.
Dissertation on a dialogue system that answers questions about images.
I wrote for Cointelegraph from 2023 to January 2026, mostly about AI agents, security and quantum risk. A few of those articles are cited in academic papers, including the William & Mary Environmental Law and Policy Review. I also review book chapters for IGI Global.