All writing

Applied AI

Harness engineering: Automating London AI Atlas

I tried automating the Atlas’s office research and found that my own checks were rejecting valid addresses.

  • Harness Engineering
  • Agentic Workflows
  • Python
  • LLM Evaluation

Companies move offices, new ones appear and others disappear. When I built London AI Atlas, I used Codex to research companies, verify their locations and maintain the dataset. That worked as long as I remembered to do it. I wanted the Atlas to pick up some of that work on its own.

Designing the harness

I wanted the system to discover changes in London's AI ecosystem, investigate them, gather evidence and prepare updates to the map. I already had a Python research pipeline, geographical validation and a dataset of 68 companies across 12 London districts, so I extended the existing pipeline.

I gave the model the job of interpreting ambiguous evidence and kept validation and repository updates in conventional code. I set execution budgets for the harness and wanted to be able to reproduce a failure without paying to make the same requests again.

London AI Atlas maintenance harness

Local vs hosted models

I already had Qwen3-4B running through MLX on my MacBook, so I used it as a local baseline. I added OpenAI's GPT-5.4 mini as a hosted alternative behind the same inference interface. The setup needed neither a dedicated server nor a vector database.

Tavily handles search and source retrieval, and Geoapify provides geocoding where needed. I use the existing OpenStreetMap-derived building footprints to check whether a company's coordinates place it in the right building.

For the first experiment, I put together twelve workplace scenarios covering genuine offices and relocations, as well as trickier cases involving registered addresses, planned offices and ambiguous company identities. I gave both models identical source passages and instructions.

Local QwenGPT-5.4 mini
Extraction time167.6s24.8s
Correct buildings nominated4/64/6
Correct final classifications0/123/12
Verified workplaces0/60/6

The hosted model ran extraction nearly seven times as fast. Neither model verified a workplace.

When the evidence is the problem

Before trying a bigger model, I looked at the failures. Some of the retrieved passages lacked the information needed to establish where a company worked. In other cases, the model found the right building but the evidence fell short of what my validator required.

A company website might list its office like this.

Our offices

London
25 Example Street
EC2A 1AA

I'd read that as the company's London office. My validator required more explicit wording to establish that the company currently occupied it. That rule was too strict for the way some companies publish their addresses.

I ran a second evaluation with twelve different scenarios. Four positive cases had enough evidence for a human to verify the workplace, yet neither model got them through all the maintenance checks. I then tested a rule that recognised structured office address blocks. In retrospective testing it recovered three existing workplaces with zero incorrect confirmations.

The retrospective result showed how a strict rule can keep valid updates off the map. I kept the production rules as they were and focused on giving reviewers enough evidence to make a decision.

Offline replay

The pipeline records retrieved evidence, model responses, validation decisions and the resulting change plan. It keeps rejected responses too, so I can investigate a failure, change the implementation and replay the original inputs without calling any external providers. The replay reproduces change plans and review reports byte for byte.

I used replay to investigate incorrect company identities, historical addresses and conflicting postcodes. It also let me experiment without paying for repeat API calls.

Automated discovery

The pipeline initially needed a list of companies to investigate. I added a discovery step that searches for office openings and relocations across London's AI ecosystem. It also revisits unresolved findings and works through companies already in the dataset. It saves where it left off between runs. I settled on a fortnightly cadence, with every other Sunday in mind.

The first live discovery run took 28.55 seconds. It found a new lead involving Flagship Pioneering's London lab, researched three companies and produced three findings for review. It proposed no changes to the published map.

Controlling what gets published

I keep discovery, verification and publication separate. The model can nominate a workplace and identify supporting evidence. A deterministic updater handles eligible additions and relocations, checks their geographical placement, preserves existing company IDs and produces a validated dataset diff.

Findings below the threshold for automated publication stay available for review, with source links, relevant excerpts, conflicting information and suggested next steps. That evidence can still give a reviewer enough to follow up.

My next step is to run the harness through GitHub Actions so it can run independently of my MacBook. I plan to keep both inference backends available for investigations I start locally. Vercel already handles deployment.

Running costs

I kept track of inference costs because the Atlas is a personal project. These are the estimates from the first three live experiments.

ExperimentEstimated inference cost
First workplace evaluation$0.02444
Second workplace evaluation$0.02271
Autonomous discovery pilot$0.00615
Total$0.05330

Based on the first discovery run, I estimate that running the model every fortnight would cost around $0.16 a year. Including Tavily's search and retrieval at list rates takes the projection to less than $2 a year. These figures are usage-based estimates, and the actual bill will depend on how much research each run needs.

What I learned

The evaluations made it easier to see which part of the pipeline needed work. An ambiguous company identity, an incomplete source and an overly strict rule can all leave me with an unverified workplace. Keeping the evidence and decisions together gives me a way to investigate each case and recover from failures without repeating the research.

For now, the useful outcome is a system that can look for changes within a budget, show me what it found and leave the occasional decision with me. If that saves me a Sunday morning of checking office addresses, all the better.

Explore London AI Atlas