• Written by Rob Kleiman

A Love Letter to Chrome DevTools, in the Age of AI Agents

TL;DR

  • I built the navigation for BizSpotNY, my NYC business directory, with Claude Code writing Tailwind and Playwright testing it on five devices. The agent even took about 250 screenshots of its own work.
  • Automation showed me what was broken. Knowing why came from my roots: the box model I learned in 2013 and the Chrome DevTools habit I never dropped.
  • We’ve always had observability. It’s just different now: agents are becoming users of our sites and of DevTools itself, and developer relations has to serve both people and agents.

This is a love letter to a browser panel. It’s also a field report on building a real product with an AI agent and browser automation.

Here’s the thread through all of it. In 2013, observability meant me, right-clicking a page to see how it was built. In 2025 it meant an agent taking screenshots of its own work. Next, it means agents looking at a page the way I do.

Browser automation: an agent that screenshots its own work

In 2025 I built BizSpotNY, a paid directory of NYC businesses, on Astro, Preact and Tailwind CSS, with Claude Code as my collaborator. The navigation took about two weeks of real iteration, and browser automation did a lot of the checking.

Playwright on five devices. I set up Playwright, a tool that drives a real browser and checks a site automatically, to run every test against five device profiles:

projects: [
  { name: 'chromium-desktop', use: { ...devices['Desktop Chrome'] } },
  { name: 'mobile-chrome', use: { ...devices['Pixel 5'] } },
  { name: 'iphone-13', use: { ...devices['iPhone 13'] } },
  { name: 'iphone-13-pro', use: { ...devices['iPhone 13 Pro'] } },
  { name: 'ipad-pro', use: { ...devices['iPad Pro'] } },
],

Tests that measure boxes. The first tests checked the things a nav lives or dies by: does the filter sidebar stay put when you scroll, and can you still reach every filter? Here’s the heart of the sticky-sidebar test. It measures the sidebar’s box, scrolls 500 pixels, and measures it again:

const initialBox = await sidebar.boundingBox();
await page.evaluate(() => window.scrollBy(0, 500));
const afterScrollBox = await sidebar.boundingBox();
expect(afterScrollBox!.y).toBeLessThanOrEqual(initialBox!.y + 100); // Should stay near top

An agent with its own browser. Then I gave Claude Code a browser through Playwright MCP. It could open the site at desktop and phone sizes, scroll to set points anywhere from the top down to 800 pixels, and screenshot what it had built. Over a few weeks it took about 250 screenshots. The file names read like a debugging diary: hamburger-fixed-mobile, menu-fixed-zindex-test, desktop-scroll-400-clash-check.

BizSpotNY's desktop navigation in November 2026: the logo; Directory, Neighborhoods, Blog, Why List, Pricing and About links; Sign In and List Business buttons; then a row of category tabs and a search-and-filter bar.

What the agent actually sees. Screenshots are for people. When a Playwright test failed, it saved something closer to how an agent reads a page: a text outline of roles and labels, with no pixels at all. Here’s BizSpotNY’s nav bar in one of those snapshots from November 2025, trimmed a little:

- banner:
    - link "BizSpot NY a business directory by Megashift"
    - navigation "Primary navigation":
        - link "Directory"
        - link "Neighborhoods"
        - link "Pricing"

I see boxes in DevTools. The agent sees this outline. If the nav isn’t built from real links inside a real navigation element, the agent can’t find it, however good it looks.

That’s observability, agent-style: the agent could see what it built. And it was great at one thing, telling me what the page looked like, on every screen, every time. It couldn’t tell me why it looked wrong.

My roots: the box model and DevTools, 2013

In 2013 I learned the box model: every element on a web page is a box, with content in the middle and padding, a border and margin around it. Think of a framed photo on a wall: the photo, the mat, the frame, and the space before the next frame. When a layout looks off, the question is almost always which of those four is bigger than you think.

That same year, at my first job out of college, I found Chrome DevTools. I was doing QA at Ideas On Purpose, checking annual-report microsites in old versions of Internet Explorer. DevTools was my first observability tool. Right-click, Inspect, and the page explained itself: this box is too wide because of that padding, this button doesn’t work because something invisible is sitting on top of it.

I never looked back. That habit, look at what’s actually happening instead of what you assume, carried me through developer relations at Major League Hacking, Adobe, Google and Amazon. The best developer tools make the invisible visible. So does good DevRel.

Navigation adds two ideas to the box model, and they’re where most nav bugs live:

  • Positioning: sticky scrolls normally, then pins once it reaches a point you set, but only within its parent’s box: when the parent scrolls away, so does it. fixed stays put no matter what.
  • Stacking: when two boxes overlap, z-index decides which is on top, but only among elements in the same stacking context.

Debugging the nav: three box-model bugs

One afternoon in November 2025, I sent Claude a message every developer has sent in some form: “scroll doesn’t work like expected anymore on mobile.”

The header was supposed to slide away when you scrolled down and come back when you scrolled up. On my phone, the category tabs below it were vanishing instead. The screenshots confirmed it. Claude tried a fix. Twelve minutes later I asked it to roll back to that morning’s version, then to the day before’s. I wanted a version I understood, so I could change one thing at a time.

Then I went back to my roots and looked at the boxes.

The header was behind the tabs. When you scrolled up, the header did come back. It came back underneath the tabs: they had z-index: 51, the header had 50. A stacking problem. Giving the visible header 52 fixed it.

BizSpotNY on a phone-sized screen, one of the agent's own screenshots, taken to check that the header sits above the category tabs.

The tabs were fighting the header. The tabs were sticky, and their position was being animated as the header slid in and out, so the two fought each other. Claude’s first fix layered a second positioning system on top. The better fix was a design call: the hiding header “looked weird” anyway, so I removed it, and the fight ended. Both header heights went into shared CSS variables (7.5rem on desktop, 3.5rem on phones), so everything below the header knows exactly where it ends.

Before and after. On the left, the agent’s own screenshot from November 5, 2025: scrolled 800 pixels on a phone, and the category tabs are gone. On the right, the live site in November 2026 at the same spot, with the header, tabs and search pinned while the listings scroll underneath.

The sticky bar that never stuck. A few days later, a horizontal filter bar had sticky on it and stayed put anyway. Two box-model reasons: the sticky style lived in the page’s CSS instead of on the bar, and the bar sat below a tall banner, so on short pages you never scrolled far enough for it to pin. I had Claude build a bare test page with nothing but the bar and filler cards, put sticky top-0 directly on the bar, and it pinned on the first try.

The agent could tell me what it saw. The box model told me why.

The menu and search: from first try to today

The nav didn’t arrive in one go:

  • Oct 21, 2025: the first phone layout. A search box, two rows of category tabs and a floating Filters button.
  • Oct 23: search floats above the listings as you scroll.
  • Nov 5: nine sections plus All pile up into three rows of tabs.
  • Nov 8: the tabs become one row you swipe sideways. Claude builds four navigation concepts as their own pages, still live if you want to compare them.
  • Nov 18: the horizontal filter bar wins. Search, categories, price and area share one row.
  • Nov 2026: a slim header and a filter panel on phones, and a searchable category list with counts on desktop.

Click any screenshot to see it full size, then use the arrows to step through the whole history.

What’s next: agents as users of our sites, and of DevTools

Observability is changing in two directions, and both loop back to where I started.

Agents are visiting. On BizSpotNY I added a small bot detector to the site’s middleware. It reads each visitor’s User-Agent and records visits from AI crawlers: OpenAI’s GPTBot, Anthropic’s ClaudeBot, PerplexityBot, Google-Extended, Applebot-Extended and more than ten in all. The same week, I gave every listing an AI readiness score that checks, among other things, whether an agent can read the business’s own website. Every page now has two audiences. Agents need structure: real links and buttons, clear headings, a layout that doesn’t move unpredictably. People need sense: a search box where they expect it and filters that work on a phone.

Agents seeing what I see. Agents are also becoming users of DevTools. Google’s Chrome DevTools for agents includes the Chrome DevTools MCP server, which connects an agent to a live Chrome browser so it can analyze network requests, take screenshots, read console messages and record performance traces, and a chrome-devtools command-line tool that does a smaller set of the same from the terminal. It’s a step toward giving an agent the view I get when I right-click and choose Inspect. On BizSpotNY I didn’t have it. One of the agent’s own notes from that month says: “Chrome DevTools MCP connection is unavailable, manual browser testing is required.” So I opened DevTools myself. Next time, the agent could look at the boxes too.

Where we go from here. Agentic workflows keep expanding, from one-off prompts to fleshed-out agentic loops that plan, build, test and check their own work. That puts more weight on what we hand them: spec-driven design, design docs annotated so an agent knows what each part is for, and modular, component-based design these tools can understand. The box model taught me to see a page as boxes inside boxes. Agents need that same map, written down.

For developer relations, I think that means three things:

  • Teach the fundamentals, not just the tools. The box model is what let me judge an agent’s fix. Developers who skip it can generate code; they can’t evaluate it.
  • Treat agents as users. Docs, APIs and sites are now read by agents as well as people. Clear structure helps both.
  • Keep a human on “does this make sense?” Agents can test that a page works. People still decide whether it’s any good.

We’ve always had observability. It’s just different now. I opened DevTools in 2013 and never closed it, and more than a decade later, that tab is still how I bridge the gap between what a team ships and the people, and now the agents, who have to use it.

Learn it yourself

If this made you want to open DevTools, these free courses are a good place to start:

If you’re building developer tools for a world where agents are users too, or want a talk on fundamentals in the AI era, get in touch.

References

Keep reading

More from Things I've Built

All Things I've Built posts →