cd /news/ai-agents/the-curse-of-six-logins · home › topics › ai-agents › article
[ARTICLE · art-179373] src=allenpike.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

The Curse of Six Logins

Coding agents working on a large Rails monolith's new authentication system repeatedly conflated the codebase's many overlapping "login" concepts — the user's login (username), their logins (active sessions), a frontend LoginController, a server-side LoginsController, a Login model, and a half-finished 2021 modernization called login-service — because LLMs struggle with ambiguous and inconsistent nouns, writes Allen Pike. Pike argues that naming things is now a core human responsibility, since agents can rapidly spread and compound unclear terminology across a codebase, and that renaming has never been easier, making human attention to clarity and architecture higher leverage. He recommends a term definition doc, also called a glossary, as the core workhorse for getting a codebase's house in order.

recommendation

Write and maintain a glossary that assigns one unambiguous name per domain concept before pointing coding agents at a large codebase, since agents conflate terms like the six "login" meanings and compound the confusion.

more in playbook: Working with AI coding agents
read6 min views2 publishedNov 30, 2026

A large, venerable Rails monolith was finally getting a new, modern authentication system. Turbocharged by the power of agents, this work was meant to move 10x faster than it would have before AI.

And some of it was indeed moving quickly! But there was a problem.

The agents didn’t know what a login was.

Sure, there was a user’s login – their username. But there was also their logins – their active sessions. There was also a frontend login form where users entered their login and created a login managed by a JavaScript LoginController. This all ran through a different, massive, server-side LoginsController, not to be confused with the Login model, which in some cases could be instantiated without having a login at all – say, via Google. On top of that were years of accreted login concepts from dependencies and acquisitions, plus a half-finished attempt to modernize auth back in ’21 called login-service – alongside its dutiful companion LoginService.

There were a lot of logins – and agents kept conflating them, making untrue assumptions.

Now, humans have some tolerance for muddy, ambiguous terms. We have to work out the difference between “to”, “too”, and “two” by the time we’re 2.

But even at age 42, we struggle with it. Adults still get into heated arguments about whether broken UX counts as a bug, even if it conforms to the spec.<sup>1</sup> Without shared vocabulary, teams struggle to communicate or persuade.

Computers, born to think symbolically, have it even worse. Transformers helped (Google’s 2019 blog post about introducing BERT to search highlights how awful disambiguation was before them) but fundamentally, LLMs struggle with ambiguous and inconsistent nouns. Give coding agents different terms for the same thing, mixed with different things that use the same term, and you’re gonna have a bad time.2

We know that AI has made certain coding skills unimportant, but architecture fundamentals are more important than ever. Perhaps the most important of the remaining human responsibilities is naming things.

As one of the two hard problems, it’s perhaps unsurprising that LLMs aren’t great at naming things.

They’re good at brainstorming potential ideas for names for things, asking questions that refine clear naming criteria, and – in the case of Fable 5 – making up metaphorical neologisms off the top of their head and threading those through your codebase like brainrot spaghetti. But having the awareness to insist on clear and consistent naming, and maintaining this across a project? That’s a core human responsibility.

Now. I know a few of you Domain-Driven Design folks have your hands up, insistently up, like you’re kind of wiggling in your seat and need to hold your upright arm with your other hand for support. You’re saying something like, “Good grief, Allen, we’ve been telling you that rigorous modelling of domain terminology is necessary for 20 years!” And it’s true. You have been saying that.

And for like 17 of those years I would have said, “That’s all good in theory, but it’s a lot of work, and we have a lot of code to type over here, and of course we work to choose good names and address noun confusion when it comes up, but rigorously renaming things across a large repo is a lot of busywork, and it’s not like some massively parallel agent is poised to rapidly spread, distort, and compound the unclear terminology in our codebase like a raging wildfire.”

But now there is such a menace. And renaming things has never been easier. Thus, human attention spent on clarity and architecture is now higher leverage.

So let’s get our house in order.

The core workhorse is a term definition doc – also called a Glossary, or if you want to be genuine DDD™, “ubiquitous language”. It’s the set of nouns your team, code, and agents consistently use throughout a part of your system.

While Matt Pocock (naturally) has a skill for creating GLOSSARY.md files, you can get pretty far just with asking Claude to review the code and ask you questions about a feature or domain until it can write a concise and minimal set of terms in simple English. Once you and your agent agree it’s clear and as simple as can be, likewise work through it with another team member. When we were building Powerplant, our model for usage – how much a given session, PR, or recurring agent mistake had cost – grew complex as we added support for more vendors’ and harnesses’ reporting of usage. (For example, Anthropic and OpenAI disagree on whether input_tokens includes cached input, which led us into parallel implementations instead of a normalized underlying model.) Only when we worked through a simple but rigorous cost-terms.md did the system’s unnecessary complexity fall away, making us far faster at improving it.

While it can feel frustratingly slow to iterate terminology docs and assess potential misunderstandings when you could be yeeting new features into the PR backlog, these docs pay off rapidly on teams that push coding agents hard. Not only can Claude rapidly fix and help prevent future inconsistencies in naming, but consistency and clarity will help team members write clearer prompts. That’s because with this sharper mental model, your team and agents will have less comprehension debt. Not just because it’s easier to understand what’s in the codebase, but because clarity makes it easier to build simpler, more elegant systems. Without consistent nouns, agents are unsure how things work, which spurs them to avoid changing what’s there and instead add parallel almost-identical concepts to your repo, compounding the illegibility of your system.

And while software can’t formally verify that we’ve chosen clear, unambiguous nouns for our domain, it can help us apply these terms consistently, and it can really help turn them into a state machine or other formalization. We all dream of a system where invalid states can’t be represented at all – even when Steve, desperate after having blown his weekly Claude limit on Fable, attempts to elicit a PR from wee Haiku.

If you’re somebody who has traditionally seen discussions about defining terms and choosing component names as a pedantic waste of time, it’s time to reconsider your priors. Meanwhile, if you’re a pedantic person who always revelled in working out exactly what difference in term definitions was the root of a given disagreement, well… don’t let this new era go to your head.

While our code-typing skills don’t matter anymore, our code governance matters more than ever. Governance? Well yes, but “governance” implies policy, where here I mean more like, responsibility. Or stewardship, since it’s a mix of care and responsibility. Yeah. Stewardship.
── more in #ai-agents 4 stories · sorted by recency
── more on @allen pike 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/the-curse-of-six-log…] indexed:0 read:6min 2026-11-30 · —