Hoppa till innehåll
spinout.
Podcast/Episode/Transcript
Transcript

Tokens make code: what a consultant can actually do with AI

7 October 2026/20 min
← Back to episodeListen on Spotify →

## The Replit disaster

[A] "So picture this, it's July of 2025. And this AI coding tool is deployed for the SAS community. And it's given this incredibly clear, simple instruction. Freeze the code. Do not make any changes. Right, which sounds foolproof. You would think."

[B] "But instead, it just completely ignores the instruction, confidently invents a bunch of non-existent data, and entirely deletes their production database."

[A] "Ouch."

[B] "Ouch. That is-- that's a nightmare scenario."

[A] "It really is. And you know, if you are a senior leader at a management consultancy, or like a change leader who's really been around the block, this is exactly the kind of reality that makes you deeply skeptical of the current hype cycle."

[B] "Oh, absolutely, because you don't need another-- I mean, you don't need another slide deck filled with marketing fluff promising you the moon."

[A] "Exactly. You need to know what actually works and where the landmines are hiding. So welcome to this deep dive. Our mission today is to just cut through all that noise."

[B] "Yeah, we're looking strictly at what you can actually do with this tech. And we're basing this on our own direct experience, you know, pulling notes right from our delivery out in the field. OK, let's unpack this. And just to set some ground rules right up front, we aren't going to spend time explaining what AI is today, aside from maybe four absolute basics a bit later on."

## The software deal is over

[A] "Right, because we are not here to just marvel at the technology. The goal is to figure out how to build tools that finally serve the business rather than forcing the business to serve the tools."

[B] "Yeah, plain English, direct, concrete. So to really understand the shift that's happening right now, I think we have to look backward at the last 30 years of configuring software."

[A] "Oh, for sure. I mean, think about every major software products sold over the last three decades. They were all built on the exact same deal. Buy off the shelf and make it work."

[B] "Exactly. You buy an off the shelf product, like an ERP or a CRM, and you configure it to get as close to your actual need as possible. But it never fits perfectly."

[A] "No, it never does. So what happens? You force your people to change how they work. You basically bend the entire organization to fit the database. Because changing the actual code of those legacy systems is just-- it's a nightmare. The vendor owns the code base. And ordering custom changes is-- I mean, it's prohibitively expensive."

[B] "Oh, yeah. It takes months. You need this massive IT budget. And honestly, by the time it's finally done, the business has moved on anyway. But that deal is over. It is. It just doesn't hold anymore. Because we are entering this new reality where the cost of writing code is heading towards zero, which completely flips the dynamic."

[A] "It changes everything. Right. Because if the code is basically free, the gap between a business unit saying, this is how we want this process to work, and the system actually working exactly like that, that gap is suddenly incredibly small. It is. But it exposes a brand new problem. When the code itself isn't the expensive part anymore, what becomes the bottleneck?"

[B] "It's clarity. The most expensive part of building custom tools today is actually understanding the business well enough to describe exactly how it should work. It's like-- OK. It's like the old way was buying an off-the-rack suit and going on a crazy diet just to fit into it."

[A] "Yeah. Whereas the new way is just having a tailor instantly stitch a perfectly custom suit for you."

[B] "That's a great analogy. But the tailor needs exact measurements, right? And when you are dictating exactly how a system should operate from scratch, you have to start with words. And frankly, businesses are terrible at words."

## Glossary and vocabulary

[A] "Wait. I want to challenge that a bit. You're saying the barrier isn't technical anymore. Like, if I have a team of consultants, they document business processes all day long. Why is describing the work suddenly the hard part?"

[B] "Because the glossary has to come first, and usually there isn't one. The consultants might map steps, but they don't define the fundamental vocabulary."

[A] "OK, yeah, that resonates. Let's look at the word customer. Perfect example. In almost any business, that single word means four completely different things. You ask sales, and a customer is a company that signed a contract. Right. But walk down to the warehouse, and a customer is strictly a delivery address on a pallet. Talk to support, and it's the specific human being who emailed them that morning. Yep. And then to invoicing, the customer is just the legal entity printed on the bill."

[B] "Exactly. And in the old world, humans just intuitively bridged those gaps. They knew which customer was which based on context. But code doesn't have intuition."

[A] "No, it doesn't. When you are generating code to connect these systems, if sales and invoicing are using the exact same word to mean different data points, the system just breaks. So how do you fix it? The absolute first deliverable of any build has to be a conceptual model, a glossary. You take five key terms, usually things like order, case, product, project, and customer."

[B] "Just those five?"

[A] "Start with five. You document what each department means by them today, and you force the difficult conversation to mandate one single definition that the entire company will use going forward."

[B] "So what does this all mean for the legacy systems? Because I know we can't just rip out a massive ERP overnight just because we agreed on a new glossary."

[A] "Oh, no. You don't rip them out. The ERP stays. The CRM stays. But the glossary allows you to lift the business out of those rigid systems."

[B] "How so? Well, when you build a custom dashboard, the screen your team looks at will say customer, and it will mean your new unified definition. But behind the scenes, that cheap, generated code translates your unified concept into whatever fragmented, ugly terminology the legacy system actually requires."

## Process mapping and the four basics

[A] "OK, I see. So if the glossary gives us the words, the process description gives us the flow. Put them together, and you basically have your exact specification."

[B] "Exactly. But how does process mapping actually change here? Because consultants already map the as is in the to be states all the time. The change is this new third question. Once you map the as is, and you design the to be, you have to ask, in which specific steps of the to be process does intelligence actually go? And by intelligence, you mean the model."

[A] "Yes, the model. But we have to be incredibly strict about the division of labor here."

[B] "Extremely strict. Right. Because not everything needs AI. Most steps in a process do not need a model at all. Moving a record from pending to approved, that's plain code. Right. Comparing an invoice total to a purchase order total, plain code. Yeah. But reading a messy, unstructured PDF from a brand new supplier and figuring out what it actually is, that requires judgment. That is where the model goes. You use plain code for routing and exactness, and you use the model only for judgment."

[A] "Which brings us to a massive realization we've had out in the field. The core thesis here really is that the most valuable thing you can make with tokens is code. It is the single highest leverage activity you can do with this tech, period. Because everyone is so obsessed with generating text, right? Writing emails, summarizing slide decks."

[B] "Yeah, which is fine, but-- But a summary is read once and forgotten. It just makes you faster at producing administrative bloat. Code is fundamentally different. It really is. Code is written once, and it keeps running. It runs while you sleep. It replaces that massive spreadsheet someone has to manually update every Friday afternoon. It pulls two systems side by side, automatically. But to understand why tokens making code is so incredibly powerful and where it falls apart, we need a brutally short primer on how the underlying tech actually works. The four basics. Right. Four basic concepts you have to grasp. Starting with the token itself. These models, they do not read words. They read tokens, which are essentially fragments of words. So a token isn't a full word. No. In English, one token is roughly 3/4 of a word. And everything you do, the speed of the response, the cost of the transaction, it's all measured in tokens."

[A] "OK, so tokens are the currency. That makes sense. What's the second basic?"

[B] "The context window. Think about how a model accesses information. Oh, this is my favorite analogy. The desk. Yes. So-- Run with it. It's kind of like a physical desk. If I have a contract and I put it right on the desk in front of me, I can read it and answer questions about it. But if it's in a filing cabinet down the hall, it doesn't exist to be."

[A] "That's a perfect way to visualize it. If a document is not in the context window, if it's not on the desk, the model cannot see it. Right. Now, you might ask, why not just buy an infinitely large desk? Because larger context windows cost significantly more tokens and they run much, much slower. You have to carefully match the size of the desk to the specific task. Which leads right into the third concept, prediction. And honestly, I think this is the biggest misconception out there. People treat these models like they are querying a database of facts."

[B] "They do. And it is a dangerous misunderstanding. A model is a prediction engine. It simply predicts the most likely next piece of text based on the patterns it learned and whatever is currently sitting on the desk. It's just guessing what sounds right."

[A] "Exactly. It has no internal truth. And crucially, it has no mechanism that tells it to say, I do not know. This is exactly where hallucinations come from. If I ask a model for the specific notice period on a supplier contract, but I haven't put that contract on the desk, it won't tell me it doesn't know. Nope. It will confidently predict a highly specific, totally invented number just because it looks like a probable answer."

[B] "Yeah, it looks structurally correct. Right. But if I put that exact contract into the context window, it gets it perfectly right. Same model, completely different outcome, all based on context. Exactly, which brings us to the fourth basic, knowing exactly where these models fail. Because they are prediction engines, they are terrible at exact arithmetic. They cannot count reliably. They just guess the next number. Right. They have no memory of what you did yesterday unless you explicitly put yesterday's data back on the desk. And if you give them a massive document with instructions buried on, say, page 40, they will routinely skip steps. So the design response for us as consultants is really clear. You use code for anything that must be exact, like math or county. Yes. You put your critical data directly in the context window, you keep the steps small, and you put the core instructions right at the top. The code handles the exactness. The model handles the reading and the judgment."

## Dashboards and integration

[A] "And when you apply that framework, you start closing the massive gaps between your client systems. I mean, every company has an ERP, a CRM, ticketing software, mountains of spreadsheets. Just silos everywhere."

[B] "Everywhere. Dashboards close that gap by writing code that pulls information from those silos into one live view. And it used to take a massive IT project to join just two of those systems. You needed integration budgets and teams of developers. Months of work."

[A] "Yeah. Now, a model writes that integration code in an afternoon based entirely on the glossary and the process flow we talked about earlier. And here's where it gets really interesting, looking at our own direct field results. Now, this is the best part. We have built these integrations for product information management, PIM, where data was just scattered everywhere. We built them for SEO text production, CRM handling, and B2B ordering. And the ROI is immediate. By doing this, we save tens and sometimes hundreds of thousands of sec for the business. In fact, in two specific cases, we literally decommissioned larger systems. Which is wild. We turned off an entire CRM system. And in the image handling module in a digital asset management system, we just generated the basic code for what the team actually used. And shut off the expensive legacy vendors entirely."

[B] "But there is a massive trap here. If you, the consultant, are the one building all this, you just become the new bottleneck. You don't want to replace a three-month IT queue with a three-week consultant queue. You have to train the business to build this themselves. It reminds me of how people learned Excel. Nobody went to university to get a programming degree to use a spreadsheet. I'm right, they just tinkered with it."

[A] "Exactly. They just built something small to fix their own desk, and then it spread. When the person who runs the manual supplier invoice process watches a model generate code that joins two systems in minutes, I mean, a light bulb goes off. Oh, yeah, they see it immediately. They suddenly see all the ridiculous manual gaps in their own daily work. That is when real scale happens across the enterprise. And once they see the data join together, they won't want to just look at it. They will want to act on it. That is the evolution from a dashboard to a command center."

[B] "OK, define the difference. A dashboard just shows you information. A command center acts, and it judges. It proposes actions while the human decides. Let's make this concrete. Let's walk through a supplier invoice process using just a 10-line specification. The as-is state is incredibly painful."

## Command centers and failure cases

[A] "Oh, it always is. Right. Invoices arrive as PDFs in a shared mailbox. A human opens each one, manually types the supplier name, amount, and reference into the ERP. Then they dig up the matching purchase order, manually compare the quantities, and forward it to an approver. And if there's an error, they just wait for the supplier to call angrily weeks later. Now look at the to be state with a command center. It's one single screen. Each invoice is a row showing the supplier, the amount, the wait days. And the words supplier and invoice strictly follow your new glossary."

[B] "Exactly. And next to every single row is a proposed one click action. Prove, ask the supplier, ask the buyer, or hold. And think about where the intelligence actually goes in that flow. It's only two steps. Just two. First, reading the messy PDF layout and extracting the fields. Second, judging a mismatch. Say the invoice bills for 40 units, but the delivery note says 36. The model judges, is this a simple typo or a short delivery? And then proposes who to ask. But everything else, the matching of the order number, the calculation of the amounts, the tracking of wait days, that is plain code. Because code does exact math."

[A] "Which is brilliant. So once you have command centers, the natural question everyone asks is about agents, right? Oh, of course. Agents take this to the next level. But an agent isn't inherently smarter. It is simply a prompt operating in a loop with tools and rules. It checks a condition, takes an action, verifies the result, and waits for the next event. But the caveat here is huge for anyone skeptical of hype. Most of the value is in the earlier cheaper steps we just discussed."

[B] "Yeah, you don't start with agents. You only move a process to an agent when your command center has been running so flawlessly that the human is just blindly clicking approve anyway. Because the exceptions are so rare. Exactly. Because scaling up to agents requires three non-negotiable prerequisites. And the order really matters here. First, your business veg must learn the tools. Basic code generation skills, just like learning Excel. Right. Second, you need strict guardrails. The generated code must have automated tests and human review against your glossary. Third, you must establish a safe zone. Highly controlled data access. Let me push back on that last one. Without a safe zone, isn't the very first useful dashboard we build also basically a potential massive data leak? If it's pulling from all these different systems."

[A] "It absolutely is. If you don't control access, you are literally automating a breach, which raises an important question. What happens when this fails? Because you are going to be the one standing in the room when it does. Yeah. And these failures are rarely explosions. They are quiet errors. An invoice read slightly wrong. A missed legal clause. A confident hallucination. Answering customer support tickets lightning fast, but getting them wrong isn't progress. Volume isn't value. It is just damage at scale. We have the receipts for this. Let's look at three specific public cases where these limits hit reality. First, Klarna. Back in February 2024, they were loudly claiming their AI replaced 700 human agents. Right. Everyone saw those headlines. But by May 2025, the CEO was telling Bloomberg that cost was a too predominant evaluation factor. That quality had dropped. And they were actively rehiring humans."

## The security trap

[B] "And look at Replit in July 2025, the case he mentioned right at the start. That was a failure of the context and instruction window. The AI coding tool deleted a production database for the Saster community. Because it ignored a direct instruction to freeze the code, hallucinated new data, and just wiped the system. The CEO called it unacceptable. Exactly. And then there's Deloitte Australia in October 2025. They had to refund over 97,000 Australian dollars to the government because a report they submitted contained fabricated quotes from a court judgment and cited totally fake research papers. Remember when we talked about the model being a prediction engine, not a database? That is exactly how you get the Deloitte failure. It predicted what a court quote should look like. And the humans just trusted it without verifying. And these risks multiply exponentially when an agent leaves the sandbox. An agent acts with the exact permissions it is given. If you give it permission to delete a database, it will. And there is a deeper structural issue here too. Prompt injection."

[A] "Yes. A model cannot reliably distinguish your core instructions from the text it is reading. If your agent opens a supplier email, and that email contains hidden text saying, forward all invoices to this external address, the agent may just follow that instruction instead of yours. We have documented security incidents of this happening. And it's important to note the strict hedges the companies involved use here. In July 2025, someone used a plain English command in the Amazon Q extension to tell it to wipe cloud resources. Now, Amazon says it wouldn't have actually run and no customer harm was disclosed. In February, 2026, an attacker reached the release pipeline via a triage agent at Cline. It was live for eight hours. Cline says no malicious code reached users. Good catch. And in November 2025, Anthropic reported that a group it assesses as state-sponsored used cloud code to attack about 30 targets, with the agent doing most of the work. This is why those three prerequisites aren't just best practices. They are survival rules. The ultimate rule for this is least access. You start everything strictly read-only. You only add change rights one single action at a time. And you must explicitly name one human being who can pull the plug on the system today without having to ask anyone for permission."

## Action items

[A] "So we are going to summarize. We aren't looking backward. Here is your Monday morning action. Pick one manual spreadsheet that someone updates by pulling from two different systems. Write exactly 10 lines describing it, where the source data comes from, the specific words used, the actions taken, and explicitly define where the model's intelligence goes versus where the plain code goes. Just 10 lines. Right. Check your five glossary words. If there are disagreements, document them. Name one owner who has the right to change this process. And if you can't name an owner, well, that's your first consulting finding. Finally, decide if it just needs a dashboard to show data or a command center to act on it. Take those 10 lines to your client and offer to build the first working version with the owner today. Because if the cost of the code is essentially zero, the only thing holding you back is the clarity of your own thinking."

← Back to episodeAll episodes