<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anand Lahoti on Medium]]></title>
        <description><![CDATA[Stories by Anand Lahoti on Medium]]></description>
        <link>https://medium.com/@foundanand?source=rss-4f7265e8b5f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CpM9DB__IhYKPkz21XHUaw.jpeg</url>
            <title>Stories by Anand Lahoti on Medium</title>
            <link>https://medium.com/@foundanand?source=rss-4f7265e8b5f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:56:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@foundanand/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Everyone’s Explaining Graph Engineering Wrong. A 1776 Pin Factory Explains It in One Line]]></title>
            <link>https://foundanand.medium.com/everyones-explaining-graph-engineering-wrong-a-1776-pin-factory-explains-it-in-one-line-58e7fdb29c8b?source=rss-4f7265e8b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/58e7fdb29c8b</guid>
            <category><![CDATA[loop]]></category>
            <category><![CDATA[graph-engineering]]></category>
            <dc:creator><![CDATA[Anand Lahoti]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 11:05:28 GMT</pubDate>
            <atom:updated>2026-08-03T11:05:28.666Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fiKROcZoxu_2RjZB1cxJWQ.png" /></figure><p>In 1776, Adam Smith described a workshop that made pins.</p><p>A man working alone, he wrote, could make perhaps one pin a day. Certainly not twenty. He had to draw the wire, straighten it, cut it, point it, grind the head, fit the head, whiten it, paper it. About eighteen separate operations, all of them badly.</p><p>So the workshop split the eighteen operations across ten men. Each did one thing, all day.</p><p>Forty-eight thousand pins a day, by his count.</p><p>Nobody in that room got smarter. Nobody invented a machine. The men were the same men. The only thing that changed was the <em>shape</em> of the work.</p><p>Now, the thing everyone in AI is suddenly talking about.</p><p>For two years, the way you got real work out of a model was a <strong>loop</strong>. You gave one agent a goal and let it run in a circle: try something, look at the result, correct itself, try again, stop when it’s done. That’s it. That’s the whole idea behind coding agents. It’s why “loop engineering” became the phrase of the year. The craft moved from writing the prompt to designing the circle the agent runs in.</p><p>A loop is one worker doing all eighteen operations.</p><p>A <strong>graph</strong> is the floor plan.</p><p>Strip the jargon and there’s almost nothing to it. A graph is boxes and arrows. Each box is one agent doing one job: research, write, review, test. Each arrow decides what runs next. Some arrows point backward, which is how you get a loop. A loop is just a graph with one box. And that’s the entire concept people are wrapping in ten thousand words of ontology and orchestration theory.</p><p>Loop engineering asks: how should one agent think?</p><p>Graph engineering asks: who reports to whom?</p><p>That’s the whole difference. The unit stopped being the worker and became the org chart.</p><p>Here’s the part that’s worth stopping on.</p><p>Everyone is reading this as a technical upgrade. Better plumbing, tidier state, fewer runaway agents. It isn’t. This is the division of labor arriving in software, and it’s arriving for exactly the reason it arrived in the pin factory.</p><p>Smith’s workshop didn’t specialize because it found better workers. It specialized because a worker got cheap enough that you could afford to put ten of them in a room and have each one waste most of their talent on a single motion. Specialization is only rational when the unit of work is abundant. That’s the precondition. It always has been.</p><p>That’s what just happened to models. A second agent used to be a serious decision. Now it’s a line of config. The moment spawning ten specialists costs less than making one generalist smart enough to do all ten jobs, the loop stops being the efficient shape, and the floor plan becomes the product.</p><p>Which is why the arguments about which framework wins are mostly noise. The pin factory didn’t win because of the workbench.</p><p>And there’s a second lesson in that workshop, the one almost nobody quotes.</p><p>The pin-maker used to know all eighteen operations. He was the skill. After the split, he knew one. The eighteen lived somewhere else now: in the floor plan, in whoever decided which motion happened where, in the person who could look at a room full of specialists and see the shape they should be arranged in.</p><p>The craft didn’t vanish. It moved up one floor.</p><p>That’s the trade being offered right now, quietly, to anyone building with these things. You can keep getting better at running the loop. Or you can get good at drawing the boxes.</p><p>The pins were never the point. The floor plan was.</p><p>Somebody in that workshop still knew how to make a whole pin. He just wasn’t the one getting rich.</p><p>I write one of these a week: the pattern behind the news, told through the history it rhymes with at <a href="http://x.com/foundanand">x.com/foundanand</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58e7fdb29c8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Before You Call AI a Bubble, Meet George Hudson]]></title>
            <link>https://foundanand.medium.com/before-you-call-ai-a-bubble-meet-george-hudson-14932b83480e?source=rss-4f7265e8b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/14932b83480e</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Anand Lahoti]]></dc:creator>
            <pubDate>Fri, 03 Jul 2026 12:26:38 GMT</pubDate>
            <atom:updated>2026-07-03T12:26:38.256Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yokZnDTVhphqWoTS" /></figure><p>Everyone warning you about the AI bubble should know the name George Hudson.</p><p>In 1840s Britain, he was the most powerful businessman alive. They called him the Railway King.</p><p>Hudson was the son of a Yorkshire farmer who understood something before anyone else: railways were going to remake the world. So he started buying them, merging them, building an empire of track.</p><p>At his peak he controlled a third of every railway line in Britain. He sat in Parliament. He lived like an aristocrat. When Hudson backed a project, the whole country rushed to invest.</p><p>The money poured in. Between 1845 and 1847, Parliament authorized roughly 8,500 miles of new track — quadrupling the network in a handful of years. By 1850, about 36% of Britain’s entire GDP had been poured into railways.</p><p>Maids, clergymen, widows, shopkeepers — everyone put their savings into the rails.</p><p>Then the truth came out.</p><p>Hudson had been running a Ponzi scheme — paying those famous dividends not from profits, but from new investors’ money, while cooking the books and quietly enriching himself.</p><p>When the Bank of England raised rates, the spell broke. Railway shares collapsed roughly 85% on average. Bankruptcies hit record highs. Hudson was disgraced, stripped of his empire, and forced to repay what he’d stolen.</p><p>The bears were right. It was a bubble. It burst. People were ruined.</p><p>But here’s the part nobody remembers.</p><p>The track was still there.</p><p>Two-thirds of those authorized lines actually got built — thousands of miles of steel that didn’t disappear when the share price did. The speculators lost everything.</p><p>The nation kept the railways.</p><p>And that network became the circulatory system of the largest empire in human history. It moved the coal, the troops, the mail, the goods. It was the infrastructure Britain ran the 19th century on.</p><p>The money was a bubble. The railways were not.</p><p>Now look at what they’re saying about AI.</p><p>$650 billion in spending against barely any revenue. 95% of companies seeing zero return. “The greatest capital misallocation in history,” one investor called it.</p><p>On a spreadsheet, they’re right. There probably is a bubble. Some of these companies are this decade’s George Hudson, and they’ll end the same way.</p><p>But this was never really about quarterly returns.</p><p>This is the United States and China racing to own the resource they believe will decide military power, economic gravity, and who writes the rules for the rest of the century.</p><p>Compute is this era’s railway. Its oil. Its steel.</p><p>And when this bubble deflates — as parts of it will — the data centers stay standing. The chips stay in the ground. The talent stays in the labs.</p><p>Bubbles ruin the people who mistook the noise for the signal.</p><p>But the infrastructure doesn’t care who paid for it.</p><p>When the dust settles on AI, ask the only question that ever mattered after 1845:</p><p>Who came out the other side holding the rails?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14932b83480e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Quiet Bet Anthropic Made That Every Other AI Company Got Wrong]]></title>
            <link>https://foundanand.medium.com/the-quiet-bet-anthropic-made-that-every-other-ai-company-got-wrong-83633f839643?source=rss-4f7265e8b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/83633f839643</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[anthropics]]></category>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[Anand Lahoti]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 13:27:41 GMT</pubDate>
            <atom:updated>2026-04-22T13:27:41.427Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jjBlZ4wEJNXQ52CCVcqbbQ.png" /></figure><p><em>Everyone is racing to build a destination. Anthropic decided the destination was wherever you already were. Then the entire industry had to follow them.</em></p><p>The Copilot chat in my VS Code has been open for a year. I’ve used it maybe twice.</p><p>The Claude extension, which I installed on a whim three months ago, is open right now. It’s reading my file. It’s suggesting a refactor. I didn’t have to switch tabs, open a new window, copy-paste context, or explain what I’m working on. It just <em>knew</em>, because it lives where I live.</p><p>That gap — between “technically integrated” and “actually feels native” — is the most underrated thing happening in AI right now. And almost every company except Anthropic was on the wrong side of it.</p><p>Past tense, because they’re starting to realize it.</p><h3>Everyone Is Building a Destination. Anthropic Didn’t.</h3><p>Go look at what the major AI companies did over the last two years.</p><p>OpenAI turned ChatGPT into a super-app. Canvas, memory, apps, agents, voice, image generation, tasks, its own app store. The bet was: become the place. Pull users in. Own the relationship.</p><p>Perplexity built Comet, their own browser. The Browser Company built Dia. Arc was doing it before them. Everyone suddenly needed to own the browser — because if you can’t own the destination, maybe you can own the frame around every other destination.</p><p>Google stuffed Gemini into everything they already owned. Microsoft did the same with Copilot across their ecosystem. Both moves were technically integrated but not actually native — and it shows. Claude feels more at home inside Excel than Copilot does, even though Copilot is Microsoft’s own product. Let that sink in. The same is true across Google’s stack.</p><p>Then there’s Anthropic.</p><p>Anthropic doesn’t have a browser. They don’t have an app store. They don’t have a social layer, a custom GPT marketplace, a voice product you’re supposed to fall in love with. Their consumer app, Claude.ai, is almost aggressively minimal — a text box, a model picker, and that’s basically it.</p><p>What they have instead is Claude Code in your terminal. Extensions for VS Code and JetBrains. A Chrome extension. Claude for Excel, Claude for PowerPoint. A Slack integration. Claude Cowork — described by Anthropic as “Claude Code for the rest of your work” — which plugs into your files, your spreadsheets, your emails. And MCP, the open protocol that lets anyone wire Claude into anything.</p><p>None of these are destinations. They’re all plugins into tools you already use.</p><p>And this is the thing nobody was saying out loud until the numbers got impossible to ignore: <strong>it worked better than the destination strategy.</strong></p><p>Claude Code alone is now generating around $2.5 billion in annualized revenue as of early 2026, and holds roughly 54% market share among AI programming tools — ahead of GitHub Copilot and Cursor. It went from launch in May 2025 to $1 billion in annualized revenue by November 2025 — the fastest product ramp in enterprise software history. Not because it’s a better chatbot than ChatGPT — the frontier models are basically at parity on most tasks. It won because it showed up in the terminal where developers already lived, and didn’t ask them to go anywhere else.</p><p>Anthropic’s overall annualized run-rate hit roughly $14 billion by February 2026, with about 80% of that coming from enterprise and developer workloads. When the rumor hit in April 2026 that Anthropic had crossed OpenAI in revenue, most people’s first reaction — including mine — was that it had to be a typo. It wasn’t.</p><h3>Why “Destination Apps” Are the Wrong Default Bet for AI</h3><p>Here’s what the destination-first strategy misses.</p><p>A destination app has to justify itself every single time you open it. You’re making a conscious decision: <em>I am now going to use this AI.</em> That decision has a cost. Maybe small, but it compounds. You have to open the tab, re-explain context, paste the thing you were looking at, and mentally switch from “doing work” to “asking AI for help.”</p><p>The integration approach deletes that cost entirely.</p><p>When Claude is already in my IDE, I don’t “decide to use AI.” I’m just coding, and the AI happens. When it’s in my spreadsheet, I’m just doing analysis. When it’s in my terminal, I’m just shipping. The AI becomes a property of the tool, not a separate thing I have to visit.</p><p>This matters more than people think, because the thing AI competes with isn’t other AI. It’s friction. Every time an AI tool requires a context switch, it loses to the version of the task where you don’t bother. And most tasks where AI could help are small enough that “open a new tab and paste context” is already too expensive.</p><p>OpenAI knows this — which is why they’re trying to make ChatGPT so useful it becomes your <em>first</em> tab instead of the tool you switch to. That’s a real strategy, and for consumers it’s clearly working: ChatGPT still has roughly 800 million weekly active users to Claude’s much smaller consumer base. But for the enterprise buyer, the one signing seven-figure annual contracts, the math is different. Eight of the Fortune 10 are now Anthropic customers. When enterprise buyers choose between Anthropic and OpenAI for the first time, Anthropic reportedly wins around 70% of the time.</p><p>That isn’t because Claude is dramatically smarter. It’s because integration compounds, and destinations don’t.</p><h3>The Three Things Anthropic Actually Got Right</h3><p>Once you see the pattern, you can name what makes it work.</p><p><strong>First: they built for the surface, not against it.</strong> The Claude VS Code extension doesn’t try to replace VS Code’s UI. It doesn’t create a new panel that fights with the existing ones. It hooks into what’s already there — the editor, the file tree, the terminal — and adds intelligence. Compare that to Copilot Chat, which gives you a separate chat panel that feels bolted on. One is a feature of the editor. The other is a visitor.</p><p><strong>Second: they bet on protocols, not products.</strong> This is the biggest strategic decision Anthropic has made and most people still don’t realize how big it was.</p><p>In November 2024, Anthropic open-sourced the Model Context Protocol (MCP) — a standard for connecting AI to tools. At launch, the SDK was downloaded about 100,000 times. By March 2026, it hit 97 million monthly downloads. OpenAI adopted it in March 2025. Google DeepMind followed. Microsoft shipped support. Salesforce shipped support. In December 2025, Anthropic donated MCP to the Linux Foundation, co-founded alongside OpenAI and Block — meaning Anthropic gave up proprietary control of the very standard it invented.</p><p>That sounds insane until you realize what they actually got in exchange. By making MCP the universal protocol — and making their competitors depend on it — Anthropic turned integration from a product feature into industry infrastructure. Every MCP server someone builds anywhere in the world makes Claude more useful without Anthropic writing a line of code. It’s the same move Google made with Android, or Stripe with webhooks. You don’t win by owning every endpoint. You win by owning the protocol everyone else has to implement.</p><p>And when your three biggest competitors all publicly adopt your protocol within 18 months of launch — that’s not just a win. That’s the industry conceding that the integration-first vision was correct.</p><p><strong>Third: they accepted that the user relationship isn’t always theirs.</strong> This is the hardest one. When Claude lives in your terminal or your editor or your spreadsheet, Anthropic doesn’t own your attention the way OpenAI owns it inside ChatGPT. They don’t get to show you a home screen, promote a new feature, or sell you add-ons. They’re a backend that makes your existing tools smarter. That’s a humbler position — and most companies can’t stomach it because it means giving up the dream of being the next Google.</p><p>But here’s the trade: by being willing to be the backend, they get to be the backend <em>everywhere.</em> Destination apps are zero-sum — you can only be in one tab at a time. Integrations are additive. Every new place Claude shows up makes the next one easier to ship. And when Microsoft announced Copilot Cowork in March 2026 — their own enterprise agent product, built on Anthropic’s Claude model and using the same “agentic harness” as Claude Cowork — you saw the endgame of that strategy. Anthropic’s technology is now inside Microsoft’s own competing product. That’s what happens when you become infrastructure.</p><h3>What It’s Starting to Do to the Rest of the Industry</h3><p>The integration bet isn’t just winning — it’s actively reshaping the software business.</p><p>When Anthropic launched Claude Cowork in late January 2026 and rolled out its plug-in system a few weeks later, the public software markets lost something like $285 billion in market cap in days. Traders started calling it the “SaaSpocalypse.” The reason wasn’t that Claude was going to replace everyone’s CRM overnight. It was that investors finally understood what integrations-plus-agents actually meant: if one AI can plug into Salesforce, pull the data, synthesize it, and deliver the outcome, then the per-seat licensing model that built Silicon Valley starts to look structurally fragile.</p><p>That’s not destination AI threatening SaaS. You can’t threaten Salesforce by opening a separate tab. That’s <em>integration AI</em> threatening SaaS — AI that shows up inside the tool, does the work, and makes the seat-based pricing model look silly.</p><p>Anthropic’s strategy is the one eating the industry right now, and it’s doing it quietly.</p><h3>Where This Could Still Go Wrong</h3><p>I want to be honest about the risk, because it’s real.</p><p>The integration strategy has one structural weakness: you don’t own the platforms you integrate into. Microsoft owns VS Code. Google owns Chrome. Salesforce owns Slack. If any of those platforms decide to favor their own AI — and they all have AI — Anthropic’s distribution gets squeezed.</p><p>There’s also the commoditization risk of MCP being open by design. If a better model shows up tomorrow and speaks MCP, every Claude integration can, in theory, be swapped out. The protocol is a moat for the ecosystem, not for Anthropic specifically. Anthropic is betting that by the time that swap is easy, they’ll be so deeply embedded and so far ahead on model quality that it won’t matter. That’s a bet on execution, not a moat.</p><p>But the companies betting purely on destinations have the bigger problem: they’re fighting for the one tab where users go to do AI things. There are only so many of those tabs. Meanwhile, Anthropic is showing up in every tab where users are <em>already</em> doing things. That’s a much bigger surface area — and a much harder one to dislodge them from, because it isn’t one product. It’s a thousand quiet integrations, each one reinforcing the habit.</p><h3>The Real Lesson</h3><p>The AI community was stuck on a false binary: either you own the destination or you lose.</p><p>Anthropic’s bet is that there is no destination anymore. There’s just <em>everywhere work happens</em> — your editor, your spreadsheet, your browser, your inbox, your terminal — and the winning AI company is the one users don’t think about, because it’s already there.</p><p>This is the opposite of how you build a consumer brand. You don’t get to show off. You don’t get a flagship product everyone posts screenshots of. You don’t get a “ChatGPT moment.” You just get a quiet, compounding presence across every surface the user touches.</p><p>Most companies couldn’t do this. Not because it was technically hard, but because it was psychologically hard. It required accepting that you weren’t the star of the show — the user’s existing workflow was. Your job was to make that workflow better without drawing attention to yourself.</p><p>Anthropic figured this out early and committed to it. Everyone else spent two years trying to be the next ChatGPT, while ChatGPT itself was trying to become the next everything. Now OpenAI is implementing Anthropic’s protocol. Microsoft is shipping a product powered by Anthropic’s model. Google is building MCP into Gemini. The companies that set out to own the destination ended up adopting the integration standard of the company that refused to build one.</p><p>The irony is that by refusing to build a destination, Anthropic became harder to leave than any of the destinations. Because you can close a tab. You can’t close your editor, your spreadsheet, your terminal, and your browser at the same time.</p><p>That’s the quiet bet. And it’s already won.</p><p><em>If you’re building AI products, the question isn’t “how do I get users to come to me.” It’s “where are they already, and how do I show up there without being in the way.” The companies that figure that out win the next decade. The ones still chasing destination status are fighting over a tab that matters less every month.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83633f839643" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hidden Flaw in Karpathy’s LLM Wiki]]></title>
            <link>https://foundanand.medium.com/the-hidden-flaw-in-karpathys-llm-wiki-e3a86a94b459?source=rss-4f7265e8b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3a86a94b459</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[knowledge-management]]></category>
            <category><![CDATA[andrej-karpathy]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[rags]]></category>
            <dc:creator><![CDATA[Anand Lahoti]]></dc:creator>
            <pubDate>Fri, 17 Apr 2026 14:20:01 GMT</pubDate>
            <atom:updated>2026-04-17T14:20:01.347Z</atom:updated>
            <content:encoded><![CDATA[<h3>The failure mode no one is talking about in Karpathy’s LLM wiki pattern</h3><p>Andrej Karpathy <a href="https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f">posted something</a> a couple of weeks ago that caught fire: instead of doing RAG over raw documents, let an LLM <em>compile</em> your documents into a living wiki. Summaries, concept articles, backlinks between ideas, the whole thing maintained by the model. He’s running it at about 100 articles and 400,000 words, none of which he wrote himself.</p><p>It’s a clever pattern. At personal scale, with one careful user reviewing what the model produces, it works.</p><p>I want to talk about what happens when it doesn’t.</p><h3>The mechanism</h3><p>Here’s the part that’s been bothering me.</p><p>When you let an LLM author content into a knowledge base, and that content gets indexed alongside the original sources, you’ve just introduced unverifiable information into your source of truth. And not obviously wrong information — that would be easy to catch. I mean plausibly correct, well-structured, confident-sounding prose that happens to be a subtle interpolation of what the model thought the document said.</p><p>At personal scale, you can audit this. You remember what you fed in yesterday. You notice when a concept article drifts.</p><p>At team scale — thousands of documents, automated ingestion, dozens of people querying — you cannot.</p><p>I’m calling this knowledge base poisoning, and the reason it’s dangerous is that it’s slow. There’s no moment where something visibly breaks. The wiki just becomes increasingly self-referential over time. Queries retrieve AI-authored summaries as if they were source documents. Future LLM responses reason on top of prior LLM responses. The chain of custody back to the original source quietly frays, and then breaks, and nobody notices because every individual output still looks fine.</p><h3>A concrete example</h3><p>Suppose your raw sources include a vendor contract that says payment terms are “net 30, with a 2% discount if paid within 10 days.”</p><p>The LLM compiles a concept article on <em>Payment Terms</em> and writes: “Standard agreements use net-30 terms with early-payment discounts.”</p><p>Reasonable summary. Slightly lossier than the original. Drops the specific 2%, drops the 10-day window. Fine — the source is still there.</p><p>Now six months later, someone asks “what’s our typical early-payment discount?” The retrieval hits the <em>Payment Terms</em> article first (it’s the concept hub, heavily backlinked, exactly what a good graph retriever surfaces). The model answers from the article, not the contract. The article doesn’t say 2%. So the model hedges, or worse, it interpolates from other articles that were written the same way.</p><p>Run a health check. The model “links” this article to a <em>Vendor Agreements</em> article that it authored last month. That article also skipped the 2%. Now the two articles are consistent with each other — and inconsistent with the contract. The lint pass won’t flag anything, because internally, everything looks coherent.</p><p>You now have a knowledge base whose internal consistency is a lie that points away from ground truth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wfLd6DKmY8lLL8kkvqaxKg.png" /><figcaption>How a specific fact drifts out of a KB: the 2% figure is lost at compile time, and no downstream check catches it</figcaption></figure><p>Scale that across thousands of documents and years of operation. The KB doesn’t degrade in a detectable way. It drifts. It becomes a closed epistemic loop that cites itself.</p><h3>Why this is different from normal RAG failure</h3><p>Regular RAG hallucinations are a retrieval problem. The model pulls wrong chunks or not enough chunks, and generates a bad answer. It’s annoying, but the <em>sources</em> stay clean. Re-run with better retrieval and you get a better answer.</p><p>LLM-authored KBs corrupt the sources themselves. When the model writes an article and that article gets indexed, the distinction between “what the documents said” and “what a previous LLM thought the documents said” disappears from the retrieval layer. Fixing retrieval doesn’t help you, because retrieval is working correctly — it’s surfacing the most relevant document. That document just happens to be a summary-of-a-summary that lost information three hops ago.</p><p>This is the difference between a system that can make mistakes and a system that launders mistakes into truth.</p><h3>Where synthesis should happen</h3><p>The fix isn’t to abandon the pattern. It’s to be precise about <em>where in the pipeline the LLM is allowed to write things down.</em></p><p>There are two places synthesis can happen:</p><p>Write time (Karpathy’s pattern). The LLM reads raw documents at ingestion and produces new, persistent artifacts — concept articles, summaries, backlinks — that become part of the retrieval corpus. Every future query reads these artifacts. Synthesis is amortized and fast to query.</p><p>Query time. The LLM extracts <em>structured metadata</em> at ingestion — entities, relationships, topic tags, document-to-document links — with source evidence attached to every extraction. But it never authors narrative content that gets stored as truth. When a question comes in, the model retrieves original documents (guided by the extracted relationships) and synthesizes the answer fresh, over originals, every time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vEEJUmEb36ShE9hiRSTadA.png" /><figcaption>The same raw documents enter both pipelines. In the top path, the LLM authors prose that gets indexed as a source — future queries retrieve AI output and reason over it. In the bottom path, the LLM only extracts structure; synthesis happens at query time, over originals.</figcaption></figure><p>The write-time approach is faster and cheaper per query. It also compounds error.</p><p>The query-time approach is more expensive and slower. It also preserves the chain of custody indefinitely, because nothing the LLM produces is ever stored as a source.</p><p>For a personal wiki with a hundred articles, the cost difference matters and the error compounding doesn’t. Write-time wins.</p><p>For a team knowledge base that needs to be trustworthy in three years, the cost difference is a rounding error and the error compounding is existential. Query-time wins, and it isn’t close.</p><h3>What a safer architecture looks like</h3><p>Concretely, for team-scale systems, I’d argue for three rules:</p><p>Originals are immutable and always authoritative. The LLM never edits them, never rewrites them, never produces a “cleaned up” version that gets used for retrieval.</p><p>The LLM extracts <em>structure</em>, not <em>prose</em>. Entities, relationships, claims with citations, topic classifications — all of it tagged with the exact span of the source document it came from. Structure is verifiable. Prose is not.</p><p>Synthesis happens at query time, grounded in originals. The extracted structure is a <em>navigation aid</em> — it tells the retriever which documents are relevant and how they relate. The answer is generated from the documents themselves, not from prior answers about the documents.</p><p>This is less elegant than a self-healing wiki. There’s no satisfying graph view of concept articles linking to concept articles. You get back the unglamorous reality that the source documents are the knowledge base, and everything else is indexing.</p><p>That’s the point. When the LLM is a librarian who writes new books and shelves them next to the originals, you eventually can’t tell the difference. When the LLM is a librarian who writes index cards pointing at the originals, you always can.</p><h3>The conclusion</h3><p>Karpathy’s pattern isn’t wrong. It’s optimized for a context — one user, modest scale, active review — where the compounding failure mode can’t build up enough momentum to matter.</p><p>The mistake is porting it to team scale without noticing that the architectural choice of <em>where synthesis happens</em> is the thing that determines whether your knowledge base stays trustworthy. Write-time synthesis is a loan against future correctness. You pay it back slowly, in the form of a KB that drifts away from reality without ever looking broken.</p><p>If you’re building this for yourself, ship it. If you’re building it for an organization, ask yourself a harder question before the first document gets ingested: when something in this KB turns out to be wrong two years from now, will I be able to trace why?</p><p>If the answer routes through content an LLM authored and then indexed as a source, you’ve already lost.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3a86a94b459" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RANT: CLICKUP SUCKS — So I fixed it]]></title>
            <link>https://foundanand.medium.com/rant-clickup-sucks-2a4c840bb9c4?source=rss-4f7265e8b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a4c840bb9c4</guid>
            <category><![CDATA[clickup]]></category>
            <dc:creator><![CDATA[Anand Lahoti]]></dc:creator>
            <pubDate>Fri, 27 Feb 2026 05:27:43 GMT</pubDate>
            <atom:updated>2026-02-27T07:18:39.777Z</atom:updated>
            <content:encoded><![CDATA[<p>So I redesigned it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*oaD0eCOGRULErXnK0v4ueQ.png" /><figcaption>Pretty much sums up about my feelings towards ClickUp</figcaption></figure><p>ClickUp has a developer problem:</p><p>Here’s the thing about developers — we’re not your average SaaS user. We build software for a living. We know what good UX looks like because we’ve argued about it in pull request reviews. We know what fast feels like because we’ve optimized database queries to shave off milliseconds.</p><p>So when a tool that’s supposed to <em>organize our work</em> becomes work itself, we notice. And we get angry.</p><p>ClickUp tries to be everything. Docs. Whiteboards. Dashboards. Chat. Goals. Time tracking. Sprints. Forms. Automations. And whatever else their product team shipped this week. They brag about shipping hundreds of features a year like that’s a good thing.</p><p>It’s not.</p><p>Every feature you add is a tax on every user’s attention. And developers are the users with the least patience for paying that tax.</p><h3>The Specific Problems (That Drive me Insane)</h3><p><strong>It’s slow.</strong> A project management tool should feel instant. Click, done. Instead, ClickUp loads like it’s rendering a AAA video game. Switching between spaces feels like switching between apps. This alone is a dealbreaker for anyone who lives in a terminal where things happen in milliseconds.</p><p><strong>Two sidebars. TWO.</strong> I don’t even understand who approved this. You’ve got a sidebar on the left for navigation, and then context panels and nested menus competing for attention on the right. In what universe does a developer need two sidebars to check off a task?</p><p><strong>Chat link previews nobody asked for.</strong> You paste a URL in a ClickUp comment and suddenly there’s a preview card eating up vertical space and taking loading time. I didn’t ask for that. Nobody asked for that. It makes scanning through task comments painful because half the screen is auto-generated preview cards.</p><p><strong>The learning curve is the biggest red flag.</strong> If developers — people who can literally build a project management tool from scratch — have to spend time figuring out how to use your project management tool, you have failed. Full stop. That’s not a feature problem. That’s a design philosophy problem.</p><p><strong>Dashboard overload.</strong> ClickUp’s default view throws everything at you. Widgets, charts, status boards, recent activity, team workload — all visible, all competing for your eyes. Information density is not the same as usefulness. A wall of data with no hierarchy is just noise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*pU777-J56QBz2D5hXv_CgA.png" /><figcaption>I will share that script soon (will open source this)</figcaption></figure><p>When your developers start threatening to build replacements for your product, you’ve already lost them. And this isn’t a unique sentiment. Go to any developer community — Reddit, HackerNews, Discord servers — and search “ClickUp.” The frustration is everywhere.</p><p>The irony is brutal: ClickUp is forcing developers to use a tool that makes them <em>less</em> productive, and those same developers could build a better alternative over a weekend.</p><h3>The Root Cause: Practical Design vs. Functional Design</h3><p>I think ClickUp’s core mistake is a design philosophy problem, not just a UI problem.</p><p>They follow what I’d call <strong>Practical Design</strong> — “look at everything you <em>can</em> do.” Every feature gets real estate. Every capability is visible. The demo looks incredible. A sales call with ClickUp probably feels like a fireworks show. “You can do THIS and THIS and also THIS.” And the buyer nods along thinking they’re getting the Swiss Army knife of productivity.</p><p>But Swiss Army knives are terrible at everything except being small.</p><p>What developers actually want is <strong>Functional Design</strong> — “here’s exactly what you <em>need</em> right now.” It’s boring in demos. It’s hard to sell. But it’s what people fall in love with in daily use.</p><p>Linear gets this. Their UI is fast, minimal, keyboard-driven. You open it, you see your tasks, you update them, you close it. No fireworks. No dashboards. No link previews auto-expanding in your face. Just a tool that respects your time.</p><p>Notion got this in its early days before they also started chasing the feature bloat dragon. Plain markdown files get this. A well-organized GitHub Issues board gets this.</p><p>The tools developers actually love are the ones that feel like they’re not even there.</p><h3>What ClickUp Should Actually Do</h3><p>I’m not saying burn it all down. ClickUp has a massive user base and clearly works for project managers and operations teams who want that Swiss Army knife. Fine. Keep it.</p><p>But give developers a way out of the chaos.</p><p><strong>Build a Focus Mode.</strong> Not a “simplified view” that still has 40 elements on screen. An actual Focus Mode that strips the UI to its bones:</p><ul><li><strong>One sidebar. One.</strong> If you can’t show me everything I need in a single navigation panel, you haven’t organized your information architecture well enough.</li><li><strong>One space visible at a time.</strong> I don’t need to see every space in the org. Show me the one I’m working in.</li><li><strong>Kill all animations and transitions.</strong> Speed over polish. Every animation is stolen time.</li><li><strong>Remove dashboards entirely from Focus Mode.</strong> If I want analytics, I’ll go look for them. Don’t show them to me by default.</li><li><strong>Strip chat to bare text.</strong> No link previews. No rich embeds. No media auto-expanding. Just messages. Let me opt into previews if I want them, but default to clean text.</li><li><strong>Keyboard-first everything.</strong> If I can’t do it without a mouse, it’s not focused enough.</li></ul><p>Basically: let developers use ClickUp the way we use a terminal. Fast. Predictable. Zero surprises.</p><h3>The Bigger Point</h3><p>This isn’t really about ClickUp. It’s about a pattern in SaaS that’s killing developer productivity.</p><p>Companies ship features to look competitive. Product managers justify their roles by launching things. CEOs announce quarterly feature counts like they’re quarterly earnings. And somewhere in all of that, the actual user experience gets buried under layers of stuff nobody asked for.</p><p>The best tools don’t compete on feature count. They compete on speed, clarity, and the feeling that the tool <strong>respects your time.</strong></p><p>ClickUp, you have the bones of a great product buried under three layers of UI. Give developers a way to strip it down — a real Focus Mode that removes everything that isn’t essential — and you might actually stop losing us to Linear, GitHub Issues, and plain text files.</p><p>Until then, I’ll be over here writing scripts to automate around your tool. And apparently, I won’t be the only one.</p><p>EDIT:</p><p>I redegined the UI, check at <a href="https://github.com/foundanand/clickup_focus_mode">https://github.com/foundanand/clickup_focus_mode</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a4c840bb9c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Didn’t Replace Me. It Exposed Me.]]></title>
            <link>https://foundanand.medium.com/the-day-ai-finished-my-work-and-just-waited-926e5cda5d4c?source=rss-4f7265e8b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/926e5cda5d4c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[humans]]></category>
            <dc:creator><![CDATA[Anand Lahoti]]></dc:creator>
            <pubDate>Wed, 14 Jan 2026 13:14:19 GMT</pubDate>
            <atom:updated>2026-01-14T18:20:03.724Z</atom:updated>
            <content:encoded><![CDATA[<p>The first time it happened, I thought something was broken.</p><p>I gave the AI a task.<br>It did it instantly.<br>So I gave it another.<br>Then another.</p><p>Each one vanished faster than I could think of the next.</p><p>And then it stopped.</p><p>Not crashed.<br>Not errored.<br>Just… waiting.</p><p>A blinking cursor.<br>A polite silence.</p><p>That’s when it hit me.</p><h3>AI is not lazy.</h3><p>It is <strong>done</strong>.</p><p>Humans never are.</p><p>When we worked with people, things stretched.<br>Meetings ran long.<br>Tasks were misunderstood.<br>Deadlines slipped.</p><p>Not because humans were bad — but because they were <em>slow</em>.</p><p>That slowness created something we didn’t realize we depended on:</p><p><strong>Time to figure out what to do next.</strong></p><p>AI doesn’t waste time.</p><p>So it exposes a problem humans never had to face directly:</p><h3><em>What happens when execution is no longer the bottleneck?</em></h3><p>Think of AI like a genie.</p><p>It grants wishes perfectly.<br>Immediately.<br>Without complaint.</p><p>So you keep wishing.</p><p>“Do this.”<br>“Now improve it.”<br>“Now review it.”<br>“Now summarize it.”</p><p>And then, eventually…</p><p>You run out of wishes.</p><p>The genie doesn’t leave.<br>It doesn’t improvise.<br>It doesn’t get bored.</p><p>It just waits.</p><p>With humans, we always knew what to ask next.</p><p>Not because we were great managers — <br>but because humans leaked time.</p><p>They were still working while we were still thinking.</p><p>AI finishes before you’ve even realized you’re out of ideas.</p><p>That’s why most people feel “stuck” with AI.</p><p>Not because it’s limited.<br>But because <em>they are</em>.</p><p>AI didn’t remove work.</p><p>It removed the <strong>delay that hid our lack of direction</strong>.</p><p>Here’s the uncomfortable truth:</p><p>Most jobs weren’t chains of purpose.<br>They were chains of friction.</p><p>AI snapped the friction.</p><p>And suddenly, there’s nothing left to pull on.</p><p>AI is not waiting for better prompts.</p><p>It’s waiting for humans to decide:</p><p><strong>What is worth doing when doing is free?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=926e5cda5d4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You Didn’t Know You’d Read This Sentence]]></title>
            <link>https://foundanand.medium.com/you-didnt-know-you-d-read-this-sentence-073633f3d6f7?source=rss-4f7265e8b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/073633f3d6f7</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Anand Lahoti]]></dc:creator>
            <pubDate>Fri, 02 Jan 2026 07:22:49 GMT</pubDate>
            <atom:updated>2026-01-02T07:22:49.477Z</atom:updated>
            <content:encoded><![CDATA[<h4>And that reveals something unsettling about where “new” actually comes from</h4><p><em>Disclaimer: I had the thought. Claude found the words.</em></p><p>A moment ago, you didn’t know what this sentence would be.</p><p>You had expectations. Statistical intuitions. A rough sense of what might come next.</p><p>But the exact words — this exact sequence — did not exist in your mind.</p><p>Now they do.</p><p>Here’s the question that should bother you:</p><p><strong>Did something new just happen, or was this outcome already fixed before you started reading?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EvYbm0e4wKN3gN_dnY1KVQ.png" /><figcaption>Source DALL-E 3</figcaption></figure><h3>The Comfortable Answer</h3><p>The comfortable answer is: <em>nothing new happened</em>.</p><p>The model learned a probability distribution, sampled from it, and produced a sequence already implicit in its weights.</p><p>Nothing was added. Nothing escaped the training data.</p><p>It’s just interpolation with noise.</p><p>Under this view, models don’t create data. Humans don’t either. “New” is just what we failed to predict.</p><p>often <em>just enough</em> to keep them with you.</p><p>Most ML engineers accept some version of this. It’s clean. It’s defensible. It keeps the math tidy.</p><p>But here’s where it starts to break.</p><h3>Why That Answer Feels Wrong</h3><p>Think about training itself.</p><p><strong>Before training:</strong> the model cannot produce a certain capability.</p><p><strong>After training:</strong> it can.</p><p>Something changed that was not present in the architecture.</p><p>Where did it come from?</p><p>Not from the model. From interaction with data.</p><p>Training is not generation. It is <strong>absorption of constraints from the world</strong>.</p><p>That distinction matters more than most people realize.</p><h3>What “New Data” Actually Means</h3><p>A model never creates new data during inference.</p><p>It only rearranges. Recombines. Samples.</p><p>Even randomness doesn’t help. Sampling increases entropy, not information — Shannon formalized this decades ago.</p><p>If the model is a closed system, novelty is impossible.</p><p>So where does <em>real</em> novelty ever come from?</p><h3>The Missing Ingredient</h3><p>New data appears only when a system:</p><ol><li>Acts</li><li>Encounters resistance from reality</li><li>Is forced to update</li></ol><p>That’s true for humans. For AI training. For physics.</p><p>Training works because the data is <strong>not generated by the model</strong>. It is generated by the world.</p><p>Loss exists because reality disagrees.</p><h3>Physics Says the Same Thing</h3><p>In quantum mechanics, systems don’t carry fixed outcomes. They carry probability.</p><p><strong>Before measurement:</strong> there is no definite value.</p><p><strong>After measurement:</strong> one outcome exists.</p><p>That outcome was not revealed. It was <strong>produced by interaction</strong>.</p><p>Measurement is not inspection. It is participation.</p><h3>The Parallel Is Exact</h3><p><strong>Inference</strong> is to AI what <strong>unitary evolution</strong> is to physics — the system evolving without external input.</p><p><strong>Training</strong> is to AI what <strong>measurement</strong> is to physics — the moment reality intervenes.</p><p><strong>Loss</strong> is reality pushing back.</p><p><strong>The dataset</strong> is the world.</p><p><strong>New data</strong> is the measurement outcome.</p><p>Inference ≠ novelty.</p><p>Training ≠ imagination.</p><p>Measurement ≠ observation.</p><p>New data appears <strong>only when the system is forced to commit</strong>.</p><h3>Humans Work the Same Way</h3><p>Human imagination rearranges memories, simulates futures, samples internally.</p><p>Just like an LLM.</p><p>No new data.</p><p>New data enters only when you act, the world responds, and your internal model updates.</p><p>A failed experiment. An unexpected result. A mistake.</p><p><strong>Error is the entry point of reality.</strong></p><h3>So What Is Actually “New”?</h3><p>Not a clever output. Not a random word. Not a surprising sentence.</p><p>Those are new <em>to you</em>, not new <em>to reality</em>.</p><p>What’s new is:</p><ul><li>A measurement that could not be deduced</li><li>An outcome that was not fixed</li><li>A constraint the model didn’t already encode</li></ul><p>That is why training creates capability and inference does not.</p><p><strong>Interaction beats generation.</strong></p><h3>The Quiet Conclusion</h3><p>AI models don’t fail to create new data because they’re weak.</p><p>They fail because they are <strong>closed</strong>.</p><p>The moment an AI can act in the world, observe consequences, and update from irreversibility — it will participate in the same process humans and physics already do.</p><p>New patterns are not invented. They are forced into existence by contact with reality.</p><p>And that answers the deeper question we started with:</p><p><strong>Reality doesn’t just reveal structure. It creates it — whenever something pushes back.</strong></p><p><em>If you build systems that learn, this changes how you think about what they’re actually doing.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=073633f3d6f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AI “Goldfish Era” is Over. Google Just Gave LLMs a Long-Term Memory.]]></title>
            <link>https://foundanand.medium.com/the-ai-goldfish-era-is-over-google-just-gave-llms-a-long-term-memory-b25336a2235d?source=rss-4f7265e8b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b25336a2235d</guid>
            <category><![CDATA[hallucinations]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Anand Lahoti]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 09:34:41 GMT</pubDate>
            <atom:updated>2025-11-24T09:38:31.359Z</atom:updated>
            <content:encoded><![CDATA[<p>Why the new “Attention Is All You Need V2” papers solve the biggest flaws of Transformers: amnesia, degradation, and context-based hallucinations.</p><p>We need to talk about the elephant in the room regarding current AI: It has the memory of a goldfish.</p><p>(<a href="https://foundanand.medium.com/the-ai-goldfish-era-is-over-google-just-gave-llms-a-long-term-memory-b25336a2235d?source=friends_link&amp;sk=3ba66b1251e3cced8930c1592bebf3f6">NON MEMBER LINK</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FCT6c4hsV3VVQMsf7eMG_g.png" /><figcaption>Source DALL-E 3</figcaption></figure><p>For the last few years, we’ve been awestruck by the capabilities of Transformers (the architecture powering GPT-4, Claude, and Gemini). But if you use these tools for serious work, you’ve hit the wall. You paste in a 100-page document, ask a question about page 5, and it hallucinates an answer because that information fell out of its temporary buffer.</p><p>Worse, you tell it something crucial about your workflow today, and tomorrow it has completely forgotten because the model is “frozen.”</p><p>The Transformer era (let’s call it Era 2.0) has been defined by brilliant reasoning hampered by transient memory.</p><p>But thanks to a pair of groundbreaking papers from Google Research released in late 2024 and November 2025 (widely dubbed by the community as <strong>“Attention Is All You Need V2”</strong>) that era is ending.</p><p>We are moving from static text processors to AI with genuine neuroplasticity.</p><h3>The Core Problem: The “Frozen Brain” architecture</h3><p>To understand why the new Google architecture (specifically concepts like “Titans” and “Nested Learning”) is such a big deal, you have to understand what’s broken right now.</p><p>Current LLMs have two major flaws rooted in their design:</p><h4>1. The Context Window Bottleneck (Short-Term Amnesia)</h4><p>Think of an LLM’s context window like computer RAM. It’s fast, but it’s limited. Every time you send a message, the AI has to “re-read” the entire conversation history to generate the next word. As the conversation gets longer, this becomes exponentially expensive and slower. Eventually, the oldest information just falls off the conveyer belt. It’s gone.</p><h4>2. Catastrophic Forgetting (Long-Term Amnesia)</h4><p>This is the bigger issue. Current models are trained once and then “frozen.” They cannot learn interactively. Why? Because of <strong>catastrophic forgetting</strong>.</p><p>If you try to update the weights of a finished model to teach it a new fact (like “My project code is ‘Phoenix’”), the mathematics of that update might accidentally overwrite existing knowledge (like how to use commas correctly). To learn one new thing, it forgets two old things.</p><h3>The Solution: Nested Learning and “Titans”</h3><p>Google’s researchers realized that biological brains don’t work like Transformers. We don’t have just one speed of memory. We have fast, fleeting working memory, and slow, deep, long-term memory.</p><p>The new architecture mimics this by stopping the reliance on “Attention” for everything. It introduces a dual system, often referred to in the papers as the <strong>HOPE architecture</strong> using <strong>Titans memory modules</strong>:</p><ul><li><strong>The Fast Loop (Attention):</strong> This handles the immediate conversational flow. It’s quick, reactive, and temporary.</li><li><strong>The Slow Loop (Neural Memory):</strong> This is a separate module that updates its weights <em>very slowly</em> and permanently.</li></ul><p>Crucially, this new architecture learns at <strong>“test time” (</strong>meaning while you are actually talking to it). It uses a “surprise metric.” If you tell the AI something novel that it didn’t expect, it triggers an update in the Slow Loop, effectively writing that fact into a long-term storage database that doesn’t interfere with the rest of the model.</p><h3>The Three Flaws This Finally Solves</h3><p>This isn’t just theoretical tweaking. This architecture directly addresses the biggest frustrations users have with current LLMs.</p><h4>1. Solves Memory Degradation (Catastrophic Forgetting)</h4><p>By separating the “slow,” permanent memory from the “fast,” linguistic processing, the model can finally learn interactively.</p><p>The Google papers demonstrated that these models could learn a sequence of entirely new tasks without degrading their performance on previous tasks. You can finally teach the AI your specific coding guidelines, and it won’t forget basic Python syntax in the process. The “frozen brain” is thawed.</p><h4>2. Solves Context-Based Hallucinations</h4><p>This is a massive win for reliability. A huge percentage of current AI hallucinations happen simply because the AI “lost track” of the source material you gave it.</p><p>Because the Titans module can efficiently store massive amounts of history (effectively millions of tokens) without the computational cost of standard Attention, it doesn’t lose the thread. If the answer is in the document you provided, it won’t hallucinate a fake answer just because the document was long.</p><h4>3. Enables Permanent Corrections</h4><p>If ChatGPT makes a mistake today and you correct it, it apologizes. But ten minutes later in a new chat, it will make the same mistake. It didn’t learn; it just politely acknowledged your input in its temporary RAM.</p><p>With Test-Time Training, if you correct a Titans-based model, that correction registers as a high-”surprise” event. The model updates its long-term memory module. It actually <em>learns</em> from its mistake so it doesn’t repeat it.</p><h3>The Important Nuance on Hallucinations</h3><p>A word of caution: This architecture solves <em>amnesiac</em> hallucinations (errors caused by forgetting context).</p><p>It does <strong>not</strong> strictly solve <em>generative</em> hallucinations (where the model simply doesn’t know something and tries to bullshit its way through an answer with plausible-sounding text). If the information isn’t in its training data or its new long-term memory, it can still make things up.</p><h3>Welcome to Era 3.0</h3><p>We have spent the last two years doing “context engineering” (trying to trick models into remembering things by stuffing data into their limited short-term memory).</p><p>These papers signal the end of that era. We are moving toward persistent, evolving AI agents that build a unique understanding of their users over time. The goldfish is finally getting a hippocampus.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b25336a2235d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gen Z Isn’t Lazy, We’re Just Bored. Here is the Fix.]]></title>
            <link>https://foundanand.medium.com/gen-z-isnt-lazy-we-re-just-bored-here-is-the-fix-355ae6e90567?source=rss-4f7265e8b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/355ae6e90567</guid>
            <category><![CDATA[research]]></category>
            <category><![CDATA[future-of-work]]></category>
            <category><![CDATA[gen-z]]></category>
            <category><![CDATA[careers]]></category>
            <dc:creator><![CDATA[Anand Lahoti]]></dc:creator>
            <pubDate>Mon, 17 Nov 2025 18:28:31 GMT</pubDate>
            <atom:updated>2025-11-17T18:29:11.238Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of our generation is unhappy with the modern workforce not because we lack work ethic, but because the “utility function” of a standard job has broken down. We want impact from Day 1, yet we are placed in roles designed for 20th-century retention models, solving problems our parents already solved, using methods that no longer make sense.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SgARnKL3VggYZ0b48o0MyQ.png" /><figcaption>Image by OpenAI DALLE 3</figcaption></figure><p><strong>The Fix: The Pivot to Research</strong></p><p>We need to stop optimizing for “execution” and start optimizing for “inquiry.”</p><p>This is the era of Research. I don’t mean academic papers or citations. I mean deep, systematic investigation into the unknown. As AI aggressively commoditizes the “boring work”, the rote execution, the summarizing, the drafting, the value of human labor shifts entirely to the <strong>problem formulation phase.</strong></p><p>If AI is the engine for answers, we must become the architects of the questions.</p><p><strong>The New Job Description</strong> Regardless of your field, your actual title should be “Researcher.” The work is not the output; the work is building the pipeline that generates the output.</p><ul><li><strong>If you are a Developer:</strong> You are not writing boilerplate, LLMs do that. You are curating the context window. You take your messy legacy logs and documentation, fine-tune a model like <strong>CodeLlama</strong> to understand the specific “dialect” of your system’s architecture. The model suggests the refactor strategies to reduce latency; your job is to compile the code and run the integration tests (the Lab) to verify it doesn’t break production.</li><li><strong>If you are a Creator:</strong> You are not “brainstorming.” You are scraping data. You aggregate the transcripts and comment sections of the top 1% of videos in your niche. You train a lightweight model to solve the “virality distribution” problem identifying the semantic patterns that humans miss. The AI generates 50 script variations based on high-retention tokens. You film the best one. The upload is simply the validation test of the model’s weights.</li><li><strong>If you are in Sales:</strong> You are not “improvising” on calls. You are exporting the transcripts of your last 500 closed deals. You feed this dataset into a local instance of <strong>Gemma</strong> to capture the specific objection-handling patterns that work for <em>your</em> product. The AI simulates the negotiation and scripts the counter-arguments. Your next call is the experiment to see if the AI’s predicted response actually yields a signature.</li><li><strong>If you are a Designer:</strong> You are not moving pixels. You are processing signal. You feed heatmaps and user-flow drop-off rates into a vision-capable model. You ask it to generate interface permutations that statistically minimize cognitive load. Your job is not to draw the UI, but to run the A/B test (the Lab) to confirm if the generated layout actually improves conversion.</li><li><strong>If you are in Business:</strong> You are not “managing.” You are modeling a system. You take your operational spreadsheets or market data; which are too noisy for a human to parse and train a model to find the signal in the noise. The AI identifies an arbitrage opportunity or a supply chain inefficiency and proposes a fix. You deploy a small pilot program (capital allocation) to verify if the model found real alpha or just overfitting.</li></ul><p>The methodology above is just one potential architecture. (Read more about it <a href="https://foundanand.medium.com/the-most-interesting-thing-a-gemma-model-has-done-that-sets-the-path-for-future-research-d4259fac3fde">here</a>)</p><p><strong>The Search for Meaning</strong> We need to move on from the deterministic path of the 9–5. That path is being automated. The future belongs to those who can build solid research plans (who can identify a blank space in the map and have the rigorous curiosity to fill it).</p><p>This is not the era for a well defined roles, it the era for asking questions, never asked before.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=355ae6e90567" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PivotSort: Rethinking and Optimizing Quicksort for Modern Scale]]></title>
            <link>https://foundanand.medium.com/pivotsort-rethinking-and-optimizing-quicksort-for-modern-scale-3070e40bc3ac?source=rss-4f7265e8b5f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3070e40bc3ac</guid>
            <dc:creator><![CDATA[Anand Lahoti]]></dc:creator>
            <pubDate>Sun, 16 Nov 2025 16:08:45 GMT</pubDate>
            <atom:updated>2025-11-16T16:08:45.529Z</atom:updated>
            <content:encoded><![CDATA[<h3>TL;DR</h3><ul><li><strong>PivotSort</strong> = a hardened quicksort with fine-tuned pivots + cutoffs.</li><li><strong>Beats qsort</strong> on every dataset tested (random, dupes, organ-pipe).</li><li><strong>Competes with Timsort</strong> on messy data, but loses on ordered inputs.</li><li><strong>Cutoff 24</strong> is the sweet spot for performance at scale.</li><li><strong>Memory-efficient</strong>: PivotSort sorts in-place with O(log n) extra space, unlike Timsort’s buffer-heavy merge process.</li><li>Lesson: even classic algorithms can evolve — and PivotSort is one such evolution.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0qdceSAjLkdMr7kRQ-Pv3A.png" /><figcaption>Image by Google Nano Banana</figcaption></figure><p>Sorting isn’t just computer science 101 — it’s everywhere. From e-commerce logs to IoT streams, efficient sorting underpins modern data pipelines. For decades, the C standard <strong>qsort</strong> has been the workhorse, while <strong>Timsort</strong> (used in Python/Java) became famous for its speed on real-world data.</p><p>But what if we could take the legendary quicksort, <strong>harden it for today’s scale</strong>, and beat <strong>qsort</strong> head-to-head? That’s where <strong>PivotSort</strong> comes in.</p><h3>Boss Card Example</h3><p>Imagine you’re sorting a messy pile of cards with numbers.</p><ol><li>First, you pick a <strong>boss card</strong> (the pivot).</li></ol><ul><li>If the pile is <strong>big</strong>, you don’t just grab any card. You peek at the <strong>first</strong>, <strong>middle</strong>, and <strong>last</strong> cards, and pick the one in the middle of those three values. This boss is less likely to be a weak choice.</li><li>If the pile is <strong>small</strong>, you grab a <strong>random boss card</strong> — quick and good enough.</li></ul><p>2. Next, you make <strong>three piles</strong>:</p><ul><li><strong>Left pile</strong>: cards smaller than the boss</li><li><strong>Middle pile</strong>: cards equal to the boss</li><li><strong>Right pile</strong>: cards bigger than the boss</li></ul><p>3. Then you tidy the left pile and the right pile the same way, until all piles are neat. Finally, you glue them back together: <strong>Left + Middle + Right</strong>.</p><p>That’s the core of PivotSort. Same quicksort spirit, but the boss card is chosen more wisely, so you don’t waste time splitting unevenly.</p><p>In Comparison:</p><ul><li><strong>qsort</strong>: A generic dealer who asks “who’s bigger?” for every comparison, even if the answer is obvious. It works, but wastes effort.</li><li><strong>Timsort</strong>: A clever dealer who first scans the deck, notices runs already in order, and just stitches them together. Super fast if the deck is nearly sorted.</li></ul><h3>Under the hood (technical)</h3><ul><li><strong>Pivot policy (adaptive):<br>- </strong>Large ranges → <strong>sample-7</strong> (median of seven evenly spaced samples) for robust balance.<br>- Otherwise → <strong>median-of-three</strong> (a[lo], a[mid], a[hi]).</li><li><strong>3-way partition:</strong> splits &lt;, ==, &gt; in one pass → duplicates become cheap.</li><li><strong>Insertion cutoff (e.g., 24):</strong> tiny segments switch to insertion sort (lower constants).</li><li><strong>Smaller-side-first + tail elimination:</strong> iterative loop + tiny manual stack → <strong>O(log n)</strong> extra space.</li><li><strong>Complexity:</strong> average <strong>O(n log n)</strong>; sample-7 + 3-way mitigates classic quicksort pathologies.</li><li><strong>Stability:</strong> not stable (equal keys may reorder). Use Timsort if stability is required.</li></ul><h3>Variants and Tuning</h3><p>PivotSort isn’t just one algorithm. I tested <strong>three variants</strong>, each with a different <em>insertion cutoff</em> (the point where we stop recursing and just sort the subarray directly):</p><ul><li><strong>PivotSort-16</strong>: Switches to insertion sort when subarrays have ≤16 elements.</li><li><strong>PivotSort-24</strong>: Uses a cutoff of 24 elements.</li><li><strong>PivotSort-32</strong>: Uses 32 as the threshold.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fSuDryQ5Pe4SF6TqxDLWuQ.png" /><figcaption><strong>Benchmark Comparison:</strong> <em>PivotSort vs qsort vs Timsort across 100M elements — average performance, variability, and relative speed by data distribution.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JpjQjs71xpntLSLffP4QZg.png" /><figcaption><strong>Cutoff Analysis:</strong> <em>PivotSort with cutoffs 16, 24, 32 — showing 24 as the sweet spot across random, dupes, reverse, and nearly-sorted inputs.</em></figcaption></figure><p>Why does this matter? Because insertion sort is faster for tiny hands of cards, but if you switch too early, you end up wasting time doing manual sorting on piles that are still a bit too big.</p><p>In practice, <strong>24 gave the best balance</strong> on my machine at 100M elements — it kept the recursion light while letting insertion sort shine on truly small piles.</p><h3>What’s New in PivotSort</h3><ol><li><strong>Median-of-Three Pivoting</strong>: Avoids worst-case O(n²) when the deck is already sorted.</li><li><strong>Insertion Cutoff (7–24)</strong>: Tiny piles are sorted directly — faster than recursive partitioning.</li><li><strong>3-Way Partitioning</strong>: Groups equal cards in one pass, making duplicates cheap.</li><li><strong>Tail Recursion Elimination</strong>: Keeps stack depth under control at 100M cards.</li></ol><h3>Why It Matters</h3><ul><li><strong>Domain-Specific:</strong> PivotSort shines in messy, noisy, duplicate-heavy datasets (logs, telemetry).</li><li><strong>Future-Proof:</strong> With hybrid detection, it could switch to Timsort-style runs when order is detected — best of both worlds.</li></ul><h3><strong>C Implementation (PivotSort)</strong></h3><pre>// pivotsort.c — PivotSort for int32_t<br>// Features: median-of-three (sample-7 on big ranges), 3-way partition,<br>// insertion-sort cutoff, smaller-side-first (tail recursion elimination).<br><br>#include &lt;stdint.h&gt;<br>#include &lt;stddef.h&gt;<br><br>#ifndef PIVOTSORT_CUTOFF<br>#define PIVOTSORT_CUTOFF 24         // switch to insertion sort at or below this size<br>#endif<br><br>#ifndef PIVOTSORT_SAMPLE7_THRESHOLD<br>#define PIVOTSORT_SAMPLE7_THRESHOLD 64  // use sample-7 pivot when range &gt;= this<br>#endif<br><br>// --- tiny helpers -----------------------------------------------------------<br>static inline void ps_swap(int32_t *a, int i, int j){<br>    int32_t t = a[i]; a[i] = a[j]; a[j] = t;<br>}<br><br>static inline void ps_insertion(int32_t *a, int lo, int hi){<br>    for (int i = lo + 1; i &lt;= hi; ++i){<br>        int32_t x = a[i]; int j = i - 1;<br>        while (j &gt;= lo &amp;&amp; a[j] &gt; x){ a[j+1] = a[j]; --j; }<br>        a[j+1] = x;<br>    }<br>}<br><br>static inline int32_t ps_med3(int32_t a, int32_t b, int32_t c){<br>    if (a &lt; b){ if (b &lt; c) return b; return (a &lt; c) ? c : a; }<br>    else       { if (a &lt; c) return a; return (b &lt; c) ? c : b; }<br>}<br><br>static inline int32_t ps_sample7(const int32_t *a, int lo, int hi){<br>    int span = hi - lo;<br>    int i0 = lo, i1 = lo + (span*1)/6, i2 = lo + (span*2)/6,<br>        i3 = lo + (span*3)/6, i4 = lo + (span*4)/6, i5 = lo + (span*5)/6, i6 = hi;<br>    int32_t m0 = ps_med3(a[i0], a[i1], a[i2]);<br>    int32_t m1 = ps_med3(a[i3], a[i4], a[i5]);<br>    return ps_med3(m0, m1, a[i6]);<br>}<br><br>// Dutch National Flag 3-way partition around pivot `pv`.<br>// On return: [lo .. lt-1] &lt; pv, [lt .. gt] == pv, [gt+1 .. hi] &gt; pv<br>static inline void ps_part3(int32_t *a, int lo, int hi, int32_t pv, int *lt, int *gt){<br>    int i = lo, L = lo, G = hi;<br>    while (i &lt;= G){<br>        int32_t v = a[i];<br>        if (v &lt; pv){ ps_swap(a, L, i); ++L; ++i; }<br>        else if (v &gt; pv){ ps_swap(a, i, G); --G; }<br>        else { ++i; }<br>    }<br>    *lt = L; *gt = G;<br>}<br><br>// --- main entry -------------------------------------------------------------<br>// Sorts a[0..n-1] in ascending order (in place).<br>void pivotsort(int32_t *a, size_t n){<br>    if (n &lt; 2) return;<br><br>    // simple manual stack for iterative quicksort<br>    struct Frame { int lo, hi; } st[128];<br>    int top = 0;<br>    st[top++] = (struct Frame){0, (int)n - 1};<br><br>    while (top){<br>        struct Frame f = st[--top];<br>        int lo = f.lo, hi = f.hi;<br>        int size = hi - lo + 1;<br>        if (size &lt;= 1) continue;<br><br>        // tiny range → insertion sort<br>        if (size &lt;= PIVOTSORT_CUTOFF){<br>            ps_insertion(a, lo, hi);<br>            continue;<br>        }<br><br>        // choose pivot: sample-7 for big ranges, else median-of-three<br>        int mid = lo + ((hi - lo) &gt;&gt; 1);<br>        int32_t pv = (size &gt;= PIVOTSORT_SAMPLE7_THRESHOLD)<br>                    ? ps_sample7(a, lo, hi)<br>                    : ps_med3(a[lo], a[mid], a[hi]);<br><br>        int lt, gt;<br>        ps_part3(a, lo, hi, pv, &amp;lt, &amp;gt);<br><br>        // tail-recursion elimination: process smaller side first<br>        int left_sz  = (lt - 1) - lo + 1;<br>        int right_sz = hi - (gt + 1) + 1;<br><br>        if (left_sz &gt; 1 &amp;&amp; right_sz &gt; 1){<br>            if (left_sz &gt; right_sz){<br>                st[top++] = (struct Frame){lo, lt - 1};<br>                st[top++] = (struct Frame){gt + 1, hi};<br>            } else {<br>                st[top++] = (struct Frame){gt + 1, hi};<br>                st[top++] = (struct Frame){lo, lt - 1};<br>            }<br>        } else if (left_sz &gt; 1){<br>            st[top++] = (struct Frame){lo, lt - 1};<br>        } else if (right_sz &gt; 1){<br>            st[top++] = (struct Frame){gt + 1, hi};<br>        }<br>    }<br>}</pre><p>Example usage:</p><pre>#include &lt;stdio.h&gt;<br>#include &lt;stdint.h&gt;<br><br>void pivotsort(int32_t *a, size_t n); // forward decl from above<br><br>int main(void){<br>    int32_t x[] = {64, 34, 25, 12, 22, 11, 90, 22, 22};<br>    size_t n = sizeof x / sizeof x[0];<br>    pivotsort(x, n);<br>    for (size_t i = 0; i &lt; n; ++i) printf(&quot;%d%c&quot;, x[i], &quot; \n&quot;[i+1==n]);<br>    return 0;<br>}</pre><h3>🏁 Conclusion</h3><p>PivotSort shows that even decades-old algorithms like quicksort can be rethought for today’s scale. By combining <strong>median-of-three pivoting</strong>, <strong>insertion cutoffs</strong>, <strong>3-way partitioning</strong>, and <strong>tail recursion elimination</strong>, it consistently outperforms <strong>qsort</strong> on large, messy datasets.</p><p>Benchmarks on up to <strong>100M elements</strong> confirm:</p><ul><li>PivotSort is <strong>25–30% faster than qsort</strong> on random inputs.</li><li>It’s <strong>6× faster than Timsort</strong> on duplicate-heavy arrays.</li><li><strong>Timsort</strong> still reigns supreme on sorted or nearly-sorted data, thanks to its run detection.</li></ul><p><strong>Memory footprint matters too</strong>:</p><ul><li>PivotSort is <strong>in-place</strong> (like quicksort), so it uses <strong>O(log n)</strong> stack memory only.</li><li>Timsort, by contrast, requires <strong>extra buffers</strong> for merging, which can mean significantly more memory overhead on huge arrays.</li><li>qsort is also in-place, but function-pointer indirection makes it slower in practice.</li></ul><p>The takeaway: there’s no “one sort to rule them all.” But PivotSort proves that by hardening quicksort with modern tweaks, we can make it a competitive choice against today’s industry standards.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3070e40bc3ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>