Daniel Broadhurst
← All writing

Articles

10 Nov 2026 · 7 min read

Stale Agent Memory Is Worse Than None: How to Prune It

Stale agent memory misleads more than none. Give every entry evidence and a last-confirmed date, check named files exist, and prune it on a schedule.

ArticlesAI Engineering

Ink sketch of an open notebook with a pair of pink scissors cutting one old, curling page out along the spine

3 Nov 2026 · 7 min read

Where Should Agent Memory Writes Land? Three Options Compared

Agent memory governance: memory in the draft PR, straight to main, or findings direct and rules via PR. The trade-offs, my pick, and what would change it.

ArticlesAI Engineering

Ink sketch of a small robot at a fork in a path with three signposts; one path leads to a gate with a pink latch

29 Oct 2026 · 7 min read

Hand-Drawn, Scroll-Animated Diagrams for a Blog with Rough.js

Generate sketchy SVG diagrams with Rough.js at build time, inline them only where JavaScript runs, and let the ink draw itself in as the reader scrolls.

ArticlesTutorialDevEx

Ink sketch of a fountain pen resting on grid paper beside a half-drawn diagram of three boxes, with the final arrow still being drawn in pink ink

27 Oct 2026 · 6 min read

Lambda Memory Size for Node.js: What 160 Benchmarks Say

Does more Lambda memory cut cold starts or just raise the bill? My 160 benchmark runs, split into cold start, warm duration and cost, and why 512 MB won.

ArticlesAWSServerless

Ink sketch of a large dial marked with Lambda memory sizes from 128 MB to 3,008 MB, its pink needle resting at 512 MB, beside a stopwatch and a small stack of coins

27 Oct 2026 · 8 min read

Retiring WordPress with a Cloudflare Worker: 301s and 410s

One Cloudflare Worker in front of a static site: 301s for old WordPress permalinks, 410 Gone for wp-admin and wp-json, and tests before DNS cutover.

ArticlesWebsiteTutorial

Ink sketch of an old garden gate boarded shut with a pink sign reading 410, while a hand-drawn signpost beside it points along a new path to a small house

20 Oct 2026 · 7 min read

Migrate WordPress to Astro with the REST API, Not XML Export

An 84-line Node.js script that moves WordPress posts into Astro content collections via the REST API, images downloaded and captions kept.

ArticlesNode.jsTutorial

Ink sketch of a removal van outside a house, a figure carrying boxes of pages and framed pictures down a path into a tidy new building, one caption label on a frame picked out in pink

13 Oct 2026 · 6 min read

From Idea to Pull Request, With Humans at the Gates

A staged workflow for building features with AI agents: research, prototypes, plan, build, iterate and review, with people deciding only at the gates.

ArticlesAI Engineering

Ink sketch of a single index card travelling along a line of seven small stations; four of the stations are little level-crossing gates with a human hand on each gate's lever

6 Oct 2026 · 5 min read

One Inbox for Everything Your Agents Need From You

A method for working with AI agents: audit what they ship, have each keep a diary, and derive one inbox of everything that needs a human decision.

ArticlesAI Engineering

Ink sketch of five or six small doodled robots each posting a card into one single desk in-tray, with a person's coffee mug beside it

29 Sept 2026 · 6 min read

The Guardrails That Stop My Publishing Agent Before It Ships

AI agent guardrails in real code: a leak scan before every push, a build check that fails the run, two human gates in GitHub and the cost printed in each PR.

ArticlesAI Engineering

Ink sketch of a single sheet of paper on a conveyor belt, stopped by a lowered level-crossing barrier whose arm is picked out in pink

27 Sept 2026 · 6 min read

Direct, SQS, EventBridge or Step Functions? What 160 Lambda Benchmarks Say

I benchmarked four ways to chain AWS Lambda functions for my MSc. Managed orchestration adds a ~1.5 s routing tax, 512 MB is the memory sweet spot, and SQS catches up.

ArticlesAWSServerless

Ink sketch of four railway tracks leaving one station: a direct line, a platform with a queue of parcels, a signal box, and a toll booth where a small figure collects a fee

12 Jan 2026 · 9 min read

How AI Agents Scale Software Engineering: The Agentic Workflow

The agentic workflow: how a pipeline of AI agents acting as product manager, architect, engineer and QA can scale software engineering without cutting quality.

AI EngineeringArticles

Ink sketch of a short assembly line of four doodled robot specialists, one with a clipboard, one with a blueprint, one with a wrench, one with a magnifying glass, passing a single box along

5 Jan 2026 · 9 min read

Production-Grade AI Agents: A Survival Guide for Engineering Leaders

Why AI agent prototypes fail in production, and what engineering leaders need instead: reliability, cost controls, observability and PromptOps.

AI EngineeringArticles

Ink sketch of a small robot wearing a hard hat and a safety harness clipped to a rope, holding a checklist, standing on a ledge

20 Dec 2025 · 6 min read

How to Write Robust Prompt Files for GitHub Copilot in VS Code

How to write reusable prompt files for GitHub Copilot in VS Code: where they live, the anatomy of a robust prompt, and examples for refactoring and tests.

AI EngineeringArticlesDevExTutorial

Ink sketch of a neat stack of recipe cards held with a bulldog clip, lying on a keyboard, one card pulled half out

20 Nov 2025 · 9 min read

Comparing the Latest AI Agent Frameworks in 2025

A practical comparison of TypeScript AI agent frameworks in 2025, including the Vercel AI SDK, LangChain.js and Mastra: features, trade-offs and when to use each.

ArticlesAI Engineering

Ink sketch of three different robot construction kits laid out side by side on a workbench with a tape measure and calipers comparing them

9 Oct 2025 · 6 min read

Create Jira Tickets from VS Code with GitHub Copilot and MCP

Set up VS Code, GitHub Copilot and MCP servers for Sentry and Atlassian to create well-structured Jira tickets straight from your editor.

API IntegrationArticlesAI Engineering

Ink sketch of a code editor window with a cable and plug coming out of it, plugged into a stack of paper tickets like raffle tickets

25 Jun 2023 · 6 min read

Event-Driven Architecture on AWS: EventBridge, Lambda, SNS and SQS

An introduction to event-driven architecture on AWS: how EventBridge, Lambda, SNS and SQS let loosely coupled services communicate through events.

ArticlesAWSEvent Driven ArchitectureServerless

Ink sketch of a little tram line map drawn as a loop with stations; small parcels hop on and off at the stations independently of each other

21 Jun 2023 · 12 min read

AWS Serverless with Node.js 22: Lambda, DynamoDB and SAM

AWS serverless with Node.js 22: build a TypeScript Lambda that writes to DynamoDB with the AWS SDK v3, test it with Vitest and deploy it using AWS SAM.

ArticlesAWSLatest NewsNode.jsServerless

Ink sketch of a single light switch on a wall with a hand flicking it, and a small cloud above lighting up like a bulb

9 Jun 2023 · 11 min read

EventBridge Event Store with DynamoDB and Lambda (Node.js 22)

Build an Amazon EventBridge event store with DynamoDB and a Node.js 22 Lambda using the AWS SDK v3, then deploy it with AWS SAM to trace every event.

ArticlesAWSLatest NewsServerlessTutorial

Ink sketch of a conveyor belt carrying small envelopes that drop one by one into a long neat card-index drawer where every envelope is kept in order

7 Jun 2023 · 9 min read

DynamoDB with TypeScript: Practical Tips

Practical tips for DynamoDB with TypeScript: running DynamoDB locally, modelling data around access patterns and typing your items with interfaces.

ArticlesAWSLatest NewsServerless

Ink sketch of a card-index drawer where every divider tab is shaped like a key, and a hand pulling one card out by its key tab

6 Jun 2023 · 8 min read

DTX Manchester 2023: Platform Engineering, Observability and Accessibility

Takeaways from DTX Manchester: platform teams and developer experience, CloudWatch observability, accessibility in development and the case for monoliths.

ArticlesConferenceLatest News

Ink sketch of a conference hall seen from the audience: a stage with a speaker and a big blank screen, rows of heads in silhouette

14 May 2022 · 8 min read

Add Lambda Notifications to an Existing S3 Bucket with SAM

How to add S3 event notifications for Lambda to an existing S3 bucket with AWS SAM and CloudFormation, using a custom resource to manage the configuration.

ArticlesAWSLatest NewsNode.jsTutorial

Ink sketch of a metal bucket with a bell tied to its handle; an object dropping into the bucket makes the bell ring and wakes a small Greek lambda symbol sitting beside it

27 Mar 2022 · 9 min read

AWS Lambda Monorepo with Node.js 22 and pnpm Workspaces

Build an AWS Lambda monorepo with Node.js 22 and pnpm workspaces: share code between functions, bundle with esbuild and deploy nested SAM stacks from CI.

ArticlesAWSLatest NewsNode.jsShowcaseTutorial

Ink sketch of a tidy wooden tool chest with several open drawers, each drawer holding one small Greek lambda symbol like a tool, and one shared drawer in the middle that all the others draw from

20 Oct 2021 · 4 min read

Building a Serverless App using CloudFormation, AWS Amplify and React

Build a serverless web app on AWS with React, Amplify and CloudFormation: Cognito auth, deployment to the cloud and running the app locally.

ArticlesAWSTutorial

Ink sketch of a blueprint unrolled on a drafting table, and a small house assembling itself out of the blueprint's lines

2 Oct 2021 · 6 min read

How to Host WordPress on AWS with CloudFormation

Deploy WordPress on AWS with a CloudFormation template: create the database password, launch the stack, install WordPress and clean up the resources.

ArticlesAWSTutorial

Ink sketch of a stack of building blocks forming a small house that sits on top of a cloud

1 Jan 2021 · 1 min read

Chuck Norris Jokes API

A beginner's look at what an API is, using the Chuck Norris Jokes API to fetch and display random jokes on a simple website.

API IntegrationArticles

Ink sketch of a cowboy boot mid roundhouse kick next to a small server box, the server printing out a paper strip with a big laughing face doodle