from/prod
← All companies

THE COMPANY INDEX TRACKED BLOG

Amit Merchant

Ideas, decisions, and lessons from the team.

amitmerchant.com (opens on the source site)
25Posts tracked
2 days agoLatest publication
2.0Posts / month over the last 12 months

Latest writing

20 of 25 posts

Taking Request Cancellation Beyond the Browser (opens on the source site)

Imagine opening a dashboard that generates a fairly detailed analytics report. You click a button, the application starts fetching data from a couple of APIs, and then you realise you don’t need the report anymore. So, you close the tab and move on. From your (user’s) perspective, the operation is over. But on the server, things might be very different. It could still be making API calls, running database queries, or an expensive operation such as waiting for an AI model to generate a response. All of that work might continue even though there’s nobody waiting for the result anymore. This is…

Read at the source

What PHP’s Session Handler Teaches Us About Atomicity (opens on the source site)

There is a comforting line of reasoning that goes like this: if a process locks a file before updating it, another process cannot interfere, so the update is safe. That reasoning is only partly true. A lock can answer who gets to write. It cannot answer what the file looks like if the writer stops halfway through. That distinction sits at the centre of a recent PHP security vulnerability, CVE-2026-126714. It affects PHP’s default, file-based session handler and turns an interrupted session write into something much more serious than a lost login state. The small assumption behind the big…

Read at the source

The Case for Browser Engine Diversity (opens on the source site)

If you look at the browsers we use every day, there seems to be quite a bit of choice. We have Chrome, Edge, Brave, Firefox, Safari, and several others. But there’s something interesting about this list. Different browsers don’t necessarily mean different browser engines. For instance, Chrome, Edge, and Brave are all based on Chromium and use its Blink rendering engine. Firefox uses Gecko, while Safari uses WebKit. This means that despite having several browser choices, a large part of the web is still powered by a relatively small number of browser engines. Now, there’s a new browser trying…

Read at the source

JavaScript Gets a New Set of HTML Insertion APIs (opens on the source site)

There are several ways to insert HTML into a web page using JavaScript. You can use innerHTML, insertAdjacentHTML(), createContextualFragment(), or even the relatively newer setHTML() method. They all get the job done, but they don’t necessarily behave in the same way. Some replace existing content, some append it, and some provide built-in HTML sanitization. If you want to stream HTML into an element, things get a little more complicated. Chrome (and Edge) is trying to bring some consistency to this with a new set of HTML insertion and streaming methods. These methods provide a more…

Read at the source

When AI Doesn’t Need to Generate Anything (opens on the source site)

When building applications with AI, we often ask models to generate text and then try to make sense of that text in our code. For instance, imagine you’re building a feedback management application. You want to categorise incoming feedback as a bug report, a feature request, or general feedback. You might ask an LLM to classify the message and return the result as JSON. Your application then parses that JSON, checks whether the expected fields exist, and uses the result to decide what to do next. This works, but there’s an interesting question here: if all we need is a decision, why ask the…

Read at the source

Let the Pull Request Wake Your Agent Up (opens on the source site)

An AI coding agent can create a pull request, push commits, and even respond to review feedback. But what happens after it has opened a pull request and is waiting for someone to review it? The usual approach is to keep checking GitHub at regular intervals to see whether anything has changed. The agent might check every few seconds or every few minutes, even when there’s nothing new to report. This is called polling, and while it gets the job done, it isn’t necessarily the most efficient way to handle something that could be delivered as an event. GitHub has now introduced something called…

Read at the source

What If UI Components Were Built Like Modular Phones? (opens on the source site)

Remember the idea of modular phones? Instead of buying a phone with everything fixed into it, you could assemble one using individual modules. Want a better camera? Swap the camera module. Need a bigger battery? Replace the battery module. Each module had a specific responsibility, and you could combine them to build a phone that suited your needs. A modular smartphone from Google’s Project Ara I’ve been thinking about how the same idea could apply to building UI components. Traditionally, component libraries give us ready-made components such as dropdowns, dialogs, tabs, and date pickers. We…

Read at the source

Giving AI Agents a Better Way to Debug CSS (opens on the source site)

Have you ever written a CSS rule, only to find out that it doesn’t seem to have any effect on the element you’re trying to style? You inspect the stylesheet, find the declaration, and everything looks perfectly fine. But the browser has other plans. This usually happens because of how the CSS cascade works. A declaration might be overridden by another rule, lose because of specificity, or be affected by things like cascade layers, media queries, or inheritance. And figuring out which rule is actually taking effect can sometimes be a bit of a detective job. Now, imagine being able to ask an AI…

Read at the source

Safari Just Made Browser-Controlled Dark Mode Real (opens on the source site)

Browsers are beginning to take responsibility for how websites look in dark mode, even when the websites themselves haven’t implemented it. On November 3, WebKit announced Adaptive Dark Mode in Safari 27.3 beta. When a user enables it, Safari can analyse a predominantly light website and transform it into a dark appearance. It adjusts backgrounds, text, gradients and certain graphics while trying to preserve usability and contrast. It’s kind of similar to Chrome’s auto dark mode origin trial, which I talked about a few years ago in this article. Anyway, the way Safari’s Adaptive Dark Mode…

Read at the source

What’s new in PHP 8.6 (opens on the source site)

PHP 8.5 has brought us features such as the pipe operator, array_first(), array_last(), the URI extension, and the #[\NoDiscard] attribute. PHP 8.6 is shaping up to be another interesting release. It contains a mix of language improvements, new standard-library functions, better networking APIs, security improvements, and a few useful internal optimizations. It’s general availability is currently scheduled for November 19, 2026. So, it’s a good time to look at everything that has made it into PHP 8.6 so far. This article is based on the features currently listed in PHP’s implemented PHP 8.6…

Read at the source

The Next Dependency Problem Is Inside Your AI Agent (opens on the source site)

Managing external dependencies for a software project has become an integral part of the software supply chain. Whether it’s application dependencies with tools like npm, Yarn, Composer, and so on. Or dependencies used by CI/CD workflows with tools like GitHub Actions, we’ve made considerable progress in managing dependencies across these layers. Now that AI agents are an indispensable part of how we build our software, it’s important that we manage dependencies around them as well. You might wonder what dependencies an AI agent actually relies on. Well, when we think about an AI coding…

Read at the source

Your CI pipeline needs a lockfile, too (opens on the source site)

Lockfiles might be familiar to you if you’ve ever worked with package managers like npm or Yarn (for the JavaScript ecosystem) or Composer (for the PHP ecosystem). A lockfile, as the name suggests, is a data file generated by these package managers that “locks in” or, in other words, records exact dependency versions, cryptographic hashes, or resource-access states. And since lockfiles pin the exact versions and transitive dependencies of libraries, it guarantees that every developer or CI/CD server installs the exact same code. The workflow becomes reproducible. And so, we are sorted when it…

Read at the source

An online-first version control system in this agentic era (opens on the source site)

Anthropic recently shared an article explaining a version control system (VCS) that they have been using internally to overcome their own limitations around managing their humongous monorepo. The VCS is called Scion and it flips the way how a traditional VCS like Git work. For instance, Git is built around a decentralized model where every client act as a full-fledged, offline-capable server with a complete copy of the repository. This way all these clients can work offline on their own respective copies. On the contrary, Scion assumes that all its primary clients (AI agents and automated…

Read at the source

A Practical Way to Check Your AI Search Visibility (opens on the source site)

Last month, I built an AI agent that could search the web before answering a question. While working on the article around that project, I got another project idea and that was around the visibility of a website in the world of AI-powered search. The idea essentially revolves around the fact that whether the AI-powered search mentions your website in its answer or not or whether it cites your website as a source or not, and lastly, compare these resulst with the regular Google search results. Does your website show up when AI-powered search answers questions related to the topics it covers?…

Read at the source

7 Game-Changing Web UI Features You Can Start Using Today (opens on the source site)

I was watching this video from the Google IO on all the new web UI features that are coming to the web platform and I was blown away by how many of these features are already available in modern browsers. In this article, I want to highlight 7 of these features that I think are game-changing and that you can start using today (of course, in some of the modern browsers). CSS Text Box CSS Scrollspy Contrast Color The hidey bar using @scroll-state query Gap Decorations The light-dark() function The linear() function CSS Text Box A new property called text-box is coming to the web platforms that…

Read at the source

WebMCP in Chrome (A 101 Guide) (opens on the source site)

MCP (Model Context Protocol). At this point, you might have come across this term if you’ve worked with any kind of AI agent. But if you still haven’t, here’s a quick refresher on what it is and why it’s important.

Read at the source

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.