<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Christoffer Johansen</title><description>Notes on the things I build: what worked, what broke, and what it cost.</description><link>https://christofferjohansen.com/</link><item><title>Tell, not ask</title><link>https://christofferjohansen.com/notes/tell-not-ask/</link><guid isPermaLink="true">https://christofferjohansen.com/notes/tell-not-ask/</guid><description>My first AI feature asked the model nicely and hoped for the best. What works now is telling it: the rules before it writes, the shape of an answer, and what happens when it is wrong.</description><pubDate>Wed, 02 Dec 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;The first time I wired a model into the app I’m building, I asked it nicely. The prompt explained what I wanted, suggested JSON as a format, and closed with some version of &lt;em&gt;only respond with valid JSON&lt;/em&gt;, which is about as enforceable as it sounds.&lt;/p&gt;
&lt;p&gt;Mostly, it complied. Mostly is doing a lot of work in that sentence. The rest of the time it answered in prose, or in JSON-shaped prose, and the parser I wrote quietly dropped whatever it couldn’t read. Nothing crashed, so the feature “worked”. Whether it told the truth was anybody’s guess, and every line of that parser was me asking the same question over again: did it listen this time?&lt;/p&gt;
&lt;p&gt;These days the arrangement is different: I tell it things. What the agent reads before it writes, and what checks it after, has &lt;a href=&quot;/notes/what-the-agent-reads/&quot;&gt;its own post&lt;/a&gt;; this one is about the posture behind it.&lt;/p&gt;
&lt;h2 id=&quot;telling-is-deciding&quot;&gt;Telling is deciding&lt;/h2&gt;
&lt;p&gt;An ask is a request the model gets to interpret. A tell is a decision it doesn’t get to make.&lt;/p&gt;
&lt;p&gt;Written down that sounds obvious, and yet most AI code I’ve read - mine very much included - is asks all the way down. Prompts that say please, instructions phrased as suggestions, parsers that forgive. Every &lt;em&gt;please&lt;/em&gt; in a prompt is a decision handed to a model that is very fast and forgets everything overnight, and handing it decisions is not a plan.&lt;/p&gt;
&lt;p&gt;So the working rule: decide once, write it where the model can’t miss it, and put something that doesn’t get tired behind it.&lt;/p&gt;
&lt;h2 id=&quot;tell-it-the-rules&quot;&gt;Tell it the rules&lt;/h2&gt;
&lt;p&gt;You don’t ask a new engineer to guess the conventions; you tell them on day one. Same here: one instruction file that every tool reads, with every rule linked to the decision behind it. None of it is phrased as a question - “we don’t hard delete anything” is not a request for comments.&lt;/p&gt;
&lt;p&gt;When I decided no AI vendor SDKs - plain &lt;code&gt;fetch&lt;/code&gt; and thin adapters instead - the rule went into that file next to the reason, so the agent doesn’t helpfully install one for me. That’s the difference in miniature. The decision exists either way; telling means it lives somewhere other than my head.&lt;/p&gt;
&lt;h2 id=&quot;tell-it-what-an-answer-looks-like&quot;&gt;Tell it what an answer looks like&lt;/h2&gt;
&lt;p&gt;One of the decision records has the rule as its title: a model may sort the data, never write the sentence.&lt;/p&gt;
&lt;p&gt;The concrete example is the one from the top of this post. The app needs to know whether a recurring charge is a commitment or a habit, and the ask-era version was the polite prompt and the forgiving parser. The tell-era version hands the model a typed question and gets back a typed choice with a confidence. There is no prose to parse because there is no prose.&lt;/p&gt;
&lt;p&gt;A typed answer is something code can branch on. An essay is something I have to read, interpret and maintain a parser for. Apart from the month and year reviews and Elaborate, every sentence in the app comes out of code. Those exceptions were decisions too, written down like the rest.&lt;/p&gt;
&lt;h2 id=&quot;tell-it-when-its-wrong&quot;&gt;Tell it when it’s wrong&lt;/h2&gt;
&lt;p&gt;“Are you sure?” is an ask, and it gets you a confident yes either way.&lt;/p&gt;
&lt;p&gt;So the checks don’t ask that. &lt;a href=&quot;/projects/semantic-lint/&quot;&gt;semantic-lint&lt;/a&gt; puts yes-or-no questions to a small, fast model about a file, gets back probabilities, and holds each one against floors set with real examples. One test rule errors at 0.75 and warns at 0.45. The model’s part is bounded; what the answer means was never its call. On my machine the checks advise; in CI an error-severity finding blocks the build. When the provider is having a day the job skips, because a gate that fails on noise guards nothing.&lt;/p&gt;
&lt;p&gt;There are 20 of them at the moment, and the useful part isn’t any single one. It’s that “wrong” is a number I chose, not a vibe the model reported.&lt;/p&gt;
&lt;h2 id=&quot;tell-it-no&quot;&gt;Tell it no&lt;/h2&gt;
&lt;p&gt;Some telling isn’t instructions at all; it’s physics. Apps import from packages and never from each other, and a dependency checker fails the build the moment somebody tries. Hooks stop an agent running something destructive or reading a secret, and that’s about all I’m saying about those. A migration has to work with the code that’s already running, because the deploy runs it before the new version takes any traffic.&lt;/p&gt;
&lt;p&gt;A rule the model can talk its way around isn’t a rule. It’s a preference.&lt;/p&gt;
&lt;h2 id=&quot;what-asking-is-for&quot;&gt;What asking is for&lt;/h2&gt;
&lt;p&gt;And yet, asking is still most of how I think. Sparring over a design before it exists, drawing conclusions across an old codebase, letting a skill interview me until a plan has no holes left in it - questions are the whole point there.&lt;/p&gt;
&lt;p&gt;So the line isn’t ask versus tell, it’s when. Asking is for deciding; telling is for shipping. While I’m deciding, the model is a sparring partner. Once I’ve decided, the decision gets written down and told - to the agent, to the model, to the build - and the asking stops.&lt;/p&gt;
&lt;p&gt;Which makes the measure simple. Open your prompts and count the pleases; each one is a decision you’ve delegated and a check you haven’t written. Some of them are thinking, and those can stay. The ones that are hoping have to go - and confusing the two is how you end up maintaining a parser that forgives.&lt;/p&gt;
</content:encoded><category>ai</category><category>engineering</category></item><item><title>The stack I keep coming back to</title><link>https://christofferjohansen.com/notes/the-stack-i-keep-coming-back-to/</link><guid isPermaLink="true">https://christofferjohansen.com/notes/the-stack-i-keep-coming-back-to/</guid><description>What I reach for when I start a product today, what I gave up to get it, and the choices I got wrong along the way.</description><pubDate>Wed, 02 Dec 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I’ve started enough projects by now to notice I keep ending up in the same place. One early choice I’ve since reversed. One later choice I managed to get wrong twice in a row. We’ll get to both.&lt;/p&gt;
&lt;p&gt;So here it is: what I reach for when I start a product today, and what I gave up to get it.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Language.&lt;/strong&gt; TypeScript, strict, ESM only. The server turns on the stricter flags too.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;API.&lt;/strong&gt; Hono, with Zod validating every request.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Contract.&lt;/strong&gt; OpenAPI generated from the Zod schemas, and a typed client generated from that.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data.&lt;/strong&gt; Postgres with Drizzle.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Web.&lt;/strong&gt; TanStack Start with Router, Query and Form. Tailwind v4 and shadcn/ui.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Content sites.&lt;/strong&gt; Astro. You’re looking at one.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hosting.&lt;/strong&gt; Cloudflare Workers for the web apps and sites, Fly.io for the API.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tests.&lt;/strong&gt; Vitest against a real Postgres.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;one-schema-end-to-end&quot;&gt;One schema, end to end&lt;/h2&gt;
&lt;p&gt;If there’s one rule holding the whole thing together, it’s that a shape gets written down &lt;em&gt;once&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;A Zod schema validates the request at the edge of the API. That same schema generates the OpenAPI spec, the web app’s types are generated from the spec, and its client calls those types. So when I rename a field, the API, the docs and the browser all refuse to compile until they agree with each other again. Nobody maintains anything by hand, which means nothing gets the chance to drift.&lt;/p&gt;
&lt;p&gt;Underneath that sits Drizzle, which is really just typed SQL, and I mean that as a compliment. I picked it over Prisma because it stays closer to the query, the runtime is smaller, and there’s no codegen step to forget about. Postgres does the integrity work - foreign keys, CHECK constraints, partial indexes - since I’d much rather have the database refuse a bad row than trust every caller to behave.&lt;/p&gt;
&lt;p&gt;And one more guard on top: apps import from packages and never from each other, and a dependency checker fails the build the moment somebody tries. Somebody being me, or the agent.&lt;/p&gt;
&lt;h2 id=&quot;small-tools-i-can-read&quot;&gt;Small tools I can read&lt;/h2&gt;
&lt;p&gt;Hono is small and written in TypeScript; I can open a middleware and know what it does. It also isn’t married to one runtime, so the API can move later without a rewrite.&lt;/p&gt;
&lt;p&gt;The choice people raise an eyebrow at is the other one. I call every outside service with plain &lt;code&gt;fetch&lt;/code&gt; - the AI providers, Stripe, the bank data, the text messages. No vendor SDKs, and it’s written into the instruction file the agent reads, so it doesn’t helpfully install one for me.&lt;/p&gt;
&lt;p&gt;The reasoning goes like this. An SDK is a big dependency that bends my code around one vendor’s idea of what a request looks like. A thin adapter over &lt;code&gt;fetch&lt;/code&gt; keeps providers swappable, and puts the retries, timeouts and tracing where I can see them. I keep four AI providers behind one interface, and switching between them is a config change.&lt;/p&gt;
&lt;p&gt;Is it free? It surely isn’t. The decision record says it plainly: new provider features don’t show up with an upgrade. Tool use, prompt caching, streaming; every one of those is an adapter change I get to write myself.&lt;/p&gt;
&lt;h2 id=&quot;the-front-end&quot;&gt;The front end&lt;/h2&gt;
&lt;p&gt;TanStack Start, with Router, Query and Form. One family covers routing, server functions, data fetching and forms, typed all the way down to the route parameters, and I get server rendering when I need it without signing up for Next.js’s conventions on everything else.&lt;/p&gt;
&lt;p&gt;Now, full disclosure. The decision record for this one literally says “Rationale not explicitly recorded”, and so does the one for Fly. Past me picked both early, before writing the reason down had become a habit, so the reasons you’re reading are the ones I’d give you today. Not ideal for a guy with 158 decision records.&lt;/p&gt;
&lt;p&gt;Styling is Tailwind v4 with the theme in CSS variables, and shadcn/ui for components. The component code is mine, sitting in my repo, so when a design wants something the library never planned for, there’s no library to argue with.&lt;/p&gt;
&lt;h2 id=&quot;where-it-runs&quot;&gt;Where it runs&lt;/h2&gt;
&lt;p&gt;Anything that renders pages goes on Cloudflare Workers: the web app, the marketing site, this site. Cheap, close to whoever is reading, and nothing for me to keep alive.&lt;/p&gt;
&lt;p&gt;The API is a long-running Node process that wants to live next to its database, so it’s a Docker image on Fly. Deploys are blue-green and migrations run before the new version takes any traffic, which is exactly why every migration has to work with the code that’s already running.&lt;/p&gt;
&lt;h2 id=&quot;what-i-got-wrong&quot;&gt;What I got wrong&lt;/h2&gt;
&lt;p&gt;Auth first. Decision number seven was WorkOS, and I moved to Clerk. Nothing wrong with WorkOS; its hosted redirect and sealed cookie just didn’t sit well with a web app and an API on separate origins, and Clerk’s components and bearer tokens did.&lt;/p&gt;
&lt;p&gt;Then email, which took me three decisions, so settle in. Round one: every message goes through Knock, with Resend behind it, so I can edit templates without a deploy. Sweet idea; never used it once. The templates ended up in the repo and shipped through CI anyway, so I was paying for a second system to do nothing. Round two: send email straight through Resend. Round three: delete email altogether. A text message did the job better, and the mail package was gone.&lt;/p&gt;
&lt;p&gt;Tests last. I’ve mocked databases on earlier projects and been burned by it - green tests, then broken constraints in production - so now every test runs against a real Postgres in a container, and auth is the only thing stubbed. What I got wrong &lt;em&gt;this&lt;/em&gt; time was the browser suite. I put it in CI as a gate and took it back out a day later, which is where &lt;a href=&quot;/notes/what-the-agent-reads/&quot;&gt;the other post&lt;/a&gt; starts.&lt;/p&gt;
&lt;p&gt;At the end of the day I used to defend all of this as taste. Strict types, one schema, boundaries a tool enforces, adapters I can actually read. Then an agent started writing most of the code, and every one of those turned out to be a place where its mistake stops at a compile error before it gets anywhere near me. What’s good for an LLM is good for the humans, and vice versa.&lt;/p&gt;
</content:encoded><category>engineering</category><category>stack</category></item><item><title>What the agent reads</title><link>https://christofferjohansen.com/notes/what-the-agent-reads/</link><guid isPermaLink="true">https://christofferjohansen.com/notes/what-the-agent-reads/</guid><description>People ask which model and which prompt. I think that is the wrong end of the problem; the work is in what the agent reads before it writes, and what checks it after.</description><pubDate>Wed, 02 Dec 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In November I put a browser test suite into CI, and it lasted exactly one day. To its credit it had already caught a real bug by then; it also fell over whenever the runner was busy, which on a shared runner is most of the time. So I pulled it back out, wrote down why, and somewhere in the writing landed on a sentence I’ve been repeating to myself ever since: a gate that fails on noise guards nothing.&lt;/p&gt;
&lt;p&gt;Now, why open a post about AI tooling with a flaky test suite? Because an agent writes most of the code these days, same as engineering at Elective built with coding agents from November 2025, and the question I get is always some version of &lt;em&gt;which model, which tool, what’s your prompt&lt;/em&gt;. Fair question; wrong end of the problem if you ask me. The agent is the easy part. What it reads before it writes, and what checks it once it has, is where all my time goes.&lt;/p&gt;
&lt;h2 id=&quot;one-file-every-tool-reads&quot;&gt;One file every tool reads&lt;/h2&gt;
&lt;p&gt;I have a single instruction file, &lt;code&gt;AGENTS.md&lt;/code&gt;, and every tool I use reads it. The file says so itself, right at the top:&lt;/p&gt;
&lt;pre class=&quot;astro-code css-variables&quot; style=&quot;background-color:var(--astro-code-background);color:var(--astro-code-foreground); overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;md&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;&amp;gt; This is the one instruction file every agent reads (ADR 0049).&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;&amp;gt; Rules that bind one directory live in an &lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-string)&quot;&gt;`AGENTS.md`&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt; beside it.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That’s it; that’s the whole trick. I try new tools constantly, and I surely wasn’t going to keep three copies of the rules in sync by hand.&lt;/p&gt;
&lt;p&gt;What’s in there is what I’d tell a new engineer on day one: who the app is for, how a use case is laid out, that we don’t hard delete anything, that a migration can never break the code that’s already running. Every rule links to the decision behind it, so the &lt;em&gt;why&lt;/em&gt; is one click away.&lt;/p&gt;
&lt;p&gt;It also grew to about 6,700 words, which is… a lot. Nobody, human or otherwise, needs all of that to change a button. So the rules that only matter in one directory now live in that directory - the web app has its own file, so does the marketing site, so does the MCP server - and the agent reads what applies to where it’s working. The stack all of this sits on has &lt;a href=&quot;/notes/the-stack-i-keep-coming-back-to/&quot;&gt;its own post&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;write-the-decisions-down&quot;&gt;Write the decisions down&lt;/h2&gt;
&lt;p&gt;158 decision records at the time of writing. Each one says what I decided, why, and what I turned down. An agent starts every session knowing nothing, so “why is it like this?” is the question it needs answered most, and it turns out future me needs the exact same answer about three weeks later.&lt;/p&gt;
&lt;p&gt;The catch is that docs rot. A change lands, a paragraph that was true yesterday is false today, and the agent will follow it off a cliff none the less. So on every push a check reads the diff and asks one thing: does this change make a section of the instructions, or one of the decision records, untrue? If it might, it tells me which one.&lt;/p&gt;
&lt;h2 id=&quot;a-model-sorts-code-writes&quot;&gt;A model sorts, code writes&lt;/h2&gt;
&lt;p&gt;One of those records is about the product itself, and its title is the rule: a model may sort the data, never write the sentence.&lt;/p&gt;
&lt;p&gt;Concrete example. I need to know whether a recurring charge is a commitment or a habit. The first version was a prompt that politely begged for JSON, plus a parser that quietly dropped whatever it couldn’t read. Not ideal. Now the model gets a typed question and hands back a typed choice with a confidence, and there’s no prose to parse because there is no prose. With the exception of the review written when a month closes, every sentence you read in the app comes out of code.&lt;/p&gt;
&lt;p&gt;I hold the tooling to the same rule. The useful question about a new tool is what happens when it’s wrong, and “it wrote me a very confident essay” is a much worse answer than “it said yes at 0.6”.&lt;/p&gt;
&lt;h2 id=&quot;checks-that-ask-questions&quot;&gt;Checks that ask questions&lt;/h2&gt;
&lt;p&gt;ESLint can tell me an import is in the wrong place. It can’t tell me a test is useless. So I built &lt;a href=&quot;/projects/semantic-lint/&quot;&gt;semantic-lint&lt;/a&gt; (on top of &lt;a href=&quot;/projects/drift/&quot;&gt;drift&lt;/a&gt;, both published from &lt;a href=&quot;https://dcwt.io&quot;&gt;dcwt, my build studio&lt;/a&gt;), where every rule is one yes-or-no question put to a small, fast model about one file. Here’s one of them, trimmed:&lt;/p&gt;
&lt;pre class=&quot;astro-code css-variables&quot; style=&quot;background-color:var(--astro-code-background);color:var(--astro-code-foreground); overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;ts&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;export&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt; const&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-constant)&quot;&gt; testAssertsBehavior&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-function)&quot;&gt; LintRule&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;  slug&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-string-expression)&quot;&gt; &quot;test-asserts-behavior&quot;&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-punctuation)&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;  title&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-string-expression)&quot;&gt; &quot;Test would pass against a no-op implementation&quot;&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-punctuation)&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-token-function)&quot;&gt;  appliesTo&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt; (path) &lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-constant)&quot;&gt; path&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-function)&quot;&gt;.endsWith&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-string-expression)&quot;&gt;&quot;.test.ts&quot;&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-punctuation)&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-token-comment)&quot;&gt;  // context and the rest of the question left out&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-token-function)&quot;&gt;  question&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt; (file) &lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-token-string-expression)&quot;&gt;    `File &quot;&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-constant)&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;.path&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-string-expression)&quot;&gt;&quot; is a test file. state.related[0], when present, is the unit `&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt; +&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-token-string-expression)&quot;&gt;    `under test. Reading both: would this test file still pass if the unit were `&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt; +&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-token-string-expression)&quot;&gt;    `replaced with an implementation that returns empty/zero/null for every output `&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt; +&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-token-string-expression)&quot;&gt;    `and performs no writes?`&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-punctuation)&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;  floors&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt; { error&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-constant)&quot;&gt; 0.75&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-punctuation)&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt; warn&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-keyword)&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-constant)&quot;&gt; 0.45&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt; }&lt;/span&gt;&lt;span style=&quot;color:var(--astro-code-token-punctuation)&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:var(--astro-code-foreground)&quot;&gt;};&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You know this test. It calls the function, checks that &lt;em&gt;something&lt;/em&gt; came back, goes green, and would go just as green against an empty function. I’ve written it; the agent writes it too, and with a lot more enthusiasm.&lt;/p&gt;
&lt;p&gt;The two numbers at the bottom are what make this usable and not just vibes. The model answers with a probability; 0.75 and up is an error, 0.45 is a warning. Those floors come from a folder of examples per rule - files that follow it and files that break it, some pulled from my test history, some made by taking a perfectly good test and weakening it on purpose - and the floor sits where the rule catches the bad ones and leaves the good ones alone.&lt;/p&gt;
&lt;p&gt;There are 20 rules at the moment: some for the architecture, some for the design system, three for the tests, and one that reads the copy a person actually sees on the page. And yes, I’m aware this is a model marking another model’s homework.&lt;/p&gt;
&lt;h2 id=&quot;where-the-checks-run&quot;&gt;Where the checks run&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;A gate that fails on noise guards nothing.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Which brings me back to the browser suite, because that sentence now decides where every check runs.&lt;/p&gt;
&lt;p&gt;On my machine they advise. They run on every push, print what they found and always exit clean, because the day a check blocks me on a &lt;em&gt;maybe&lt;/em&gt; is the day I start skipping it. In CI the build only fails on a finding above its error floor, and if the model provider is having a day, the job skips; an outage is noise too. That same push runs a second check that reads the diff and tells me whether it deserves a proper deep review. Some things always do: a migration that drops a column, anything near auth, a payment webhook.&lt;/p&gt;
&lt;p&gt;The browser suite still runs, on my machine, where a slow run is just a slow run. Next to it is &lt;a href=&quot;/projects/flow-lab/&quot;&gt;flow-lab&lt;/a&gt;: an agent gets a goal in the app and a budget of turns, and a second model judges the run against yes-or-no questions. 18 scenarios so far. When the agent can’t get there inside its budget, that tells me something about my design and very little about the agent.&lt;/p&gt;
&lt;h2 id=&quot;whats-new-and-unproven&quot;&gt;What’s new and unproven&lt;/h2&gt;
&lt;p&gt;Skills are the newest layer and I’ve had them for all of a few days, so take this part with some salt. I installed &lt;a href=&quot;https://github.com/mattpocock/skills&quot;&gt;Matt Pocock’s set&lt;/a&gt;: one interviews me until a plan has no holes left in it, one keeps the glossary and the decision records sharp, one turns a plan into a spec and the spec into tickets. This very post was planned with the first of them, which put forty-odd questions to me before I was allowed to write a word. Ask me in a few months whether they stuck.&lt;/p&gt;
&lt;p&gt;There are also hooks that stop an agent from running something destructive or reading a secret, and that’s all you’re getting out of me on those.&lt;/p&gt;
&lt;p&gt;So, if I started a fresh repo tomorrow, this is the order I’d go in:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;One instruction file that every tool reads, with the rules a new engineer would need and the reason for each.&lt;/li&gt;
&lt;li&gt;A decision record whenever I pick between two real options, so the reason outlives the session.&lt;/li&gt;
&lt;li&gt;One check that asks a question a normal linter can’t, with its threshold set against real examples, and only advising until it has earned the right to block.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you made it this far you’ve probably noticed none of it is new. It’s onboarding, documentation and code review, for a colleague who is very fast and forgets everything overnight.&lt;/p&gt;
</content:encoded><category>ai</category><category>engineering</category></item><item><title>The AI expectation gap</title><link>https://christofferjohansen.com/notes/the-ai-expectation-gap/</link><guid isPermaLink="true">https://christofferjohansen.com/notes/the-ai-expectation-gap/</guid><description>Every engineer I interviewed asked how we used AI. The answer sat somewhere between excitement and caution, and the caution is the interesting part.</description><pubDate>Thu, 18 Jun 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I’m interviewing engineers at the moment to come work with the team and I at &lt;a href=&quot;https://www.linkedin.com/company/electivedotcom/&quot;&gt;Elective&lt;/a&gt;, and in full deterministic fashion, har har har, the question of how we use AI has come up every single time. Now, the curious part: the read I’ve had when the question inevitably lands is that it’s rooted somewhere between excitement and caution.&lt;/p&gt;
&lt;h2 id=&quot;excitement&quot;&gt;Excitement&lt;/h2&gt;
&lt;p&gt;Well, because hell yea. It’s a fantastic tool, and we &lt;em&gt;should&lt;/em&gt; be using it, make it available to the team, and squeeze it for all our subsidized subscription is worth. We’d be fools not to expect our engineers to leverage the greatest thing since NFTs, I mean Crypto and Blockchain… errr… Microservices?&lt;/p&gt;
&lt;p&gt;Jokes aside, this genuinely feels different, and it has transformed my workflow on the daily.&lt;/p&gt;
&lt;h2 id=&quot;caution&quot;&gt;Caution&lt;/h2&gt;
&lt;p&gt;On the flip side, the hype is in full swing. We’re all gonna lose our jobs, then the person managing us is going to lose their job, and the person managing them. It’s a real-life matryoshka doll with no end in sight.&lt;/p&gt;
&lt;p&gt;So when I speak to caution in the question, I don’t need Claude to tell me it comes from a place where a deeply technical individual, who has adopted it into their daily routine, is excited about the potential and wants to leverage the LLM for all it’s worth to produce magic that would previously have taken hours, even days, is &lt;em&gt;also&lt;/em&gt; extra cautious about the extreme mismatch between their experience and the wishes of those who think one-shotting a todo list proves we should be able to stand up a fully regulated fintech application in a day. Clearly, if only we’d spent a little more time in the spec-driven development phase, it would have produced the magic we so wished for.&lt;/p&gt;
&lt;h2 id=&quot;where-i-land&quot;&gt;Where I land&lt;/h2&gt;
&lt;p&gt;I love what Claude has brought my team and I. Our documentation has never been better, understanding old code and drawing conclusions across the codebase has never been easier, and sparring with a genuinely smart search engine with deep context awareness has never been more useful.&lt;/p&gt;
&lt;p&gt;If you made it this far and you resonate with this take, perhaps you’ll resonate with what we do at Elective as well, and how we choose to fold AI into our daily flows. &lt;a href=&quot;https://www.linkedin.com/company/electivedotcom/&quot;&gt;We’re hiring.&lt;/a&gt;&lt;/p&gt;
</content:encoded><category>ai</category><category>hiring</category></item></channel></rss>