Spec-driven development: The AI engineering workflow at Notion | Ryan Nystrom
11 May 2026 · 48 min
In this episode of How I AI, engineering manager Ryan Nystrom walks host Claire Vo through Notion’s AI‑enhanced engineering workflow, which he calls “spec‑driven development.” He explains how he starts with an empty Markdown spec, uses Whisper to dictate feature ideas, feeds the transcript to Codex to generate a formal spec, and then asks Codex to build the feature in one shot. The spec lives in version control, includes verification steps, and can be re‑run by a CLI that spins up Notion AI to test the implementation. Nystrom also showcases a custom Notion AI “hot‑potato” agent that automatically assembles a daily stand‑up pre‑read by pulling data from Slack, GitHub, Honeycomb metrics, and previous meeting transcripts, posting a concise briefing to Slack just before the meeting. He describes the “Afterburner” project, a set of background agents and VM‑based workers (codenamed Boxy) that let engineers invoke Codex from Notion tasks, automatically generate pull requests, run UI verification, and resolve merge conflicts. Throughout, he emphasizes how faster CI pipelines amplify the benefits of AI agents, how the new workflow reduces meeting preparation and managerial toil, and shares prompting tactics—especially the “explain it like I’m five” and “defend your answer with evidence” patterns—to keep large language models honest. The conversation also touches on tool choices (Codex vs Claude Code), the cultural shift toward engineers staying hands‑on with code, and the broader impact on burnout, productivity, and cross‑team communication.
Chapters
One line that I've been putting in my prompts lately is, I literally don't know what I'm doing here. You gotta explain it like I'm a 5-year-old. I didn't start with writing code. I didn't start with anything. I just started with an empty Markdown document. I actually just opened up Whisper and just started yapping about how this feature should work. I gave the yap session to Codex and was like, write a spec. I then opened up Codex again, pointed it at this spec file, and I said, build it. and basically one-shotted this.
I've been in software engineering for 20+ years. We were writing these documents and we were sitting in meetings with other engineers debating the merits of one implementation versus another. And now no more waiting for the meeting, no more waiting for review.
I'm not a CI expert, but I kind of know what I want. And so other folks were kind of like, can you just bring some of your like puppy dog energy to like CI and just see what we can do?
Your AI, your agent is never gonna complain when you ask It to do this 5 minutes before the meeting starts.
It is more relaxing and it's more fun and I feel like I'm getting more done. It's weird to have this like win-win-win.
They do the triangle and they're like, pick 2. And you're like, no, I wanna pick all 3.
Give me the whole triangle.
Give me the whole triangle. Welcome back to How I AI. I'm Claire Vo, product leader and AI obsessive here on a mission to help you build better with these new tools. Today we have Ryan Nystrom from Notion, and he's gonna show us as an engineering manager how you can Never prep for a standup again. We're also gonna see how you can get a background agent to write code for a fix your friend texted you, and how spec-driven development really works in a codebase at scale. Let's get to it. This episode is brought to you by WorkOS. AI has already changed how we work. Tools are helping teams write better code, analyze customer data, and even handle support tickets automatically. But there's a catch. These tools only work well when they have deep access to company systems. Your copilot needs to see your entire codebase. Your chatbot needs to search across internal docs. And for enterprise buyers, that raises serious security concerns. That's why these apps face intense IT scrutiny from day one. To pass, they need secure authentication, access controls, audit logs, the whole suite of enterprise features. Building all that from scratch, it's a massive lift. That's where WorkOS comes in. WorkOS gets you drop-in APIs for enterprise features so your app can become enterprise ready and scale upmarket faster. Think of it like Stripe for enterprise features. OpenAI, Perplexity, and Cursor are already using WorkOS to move faster and meet enterprise demands. Join them and hundreds of other industry leaders at workos.com. Start building today. Ryan, welcome to How I AI. I am really excited because you're going to show us, I think, start, medium, advanced mode on some AI coding stuff. And so before we jump in, how has AI just changed how you live your life at work?
I mean, it's, it has completely upended the way I work. Like I've been doing this, I did a lot of like mobile iOS work in my past and I worked the same way every day for like 12+ years. And then the last year I have changed IDEs, terminals, tools, like whatever, like 10+ times. Um, so it's like really weird and scary to be like changing this stuff so much, but it's also, I feel that like I've been doing this for a while and I'm feeling like so much like joy and freshness and like newness in this that like I wake up every day super excited to like tinker and build things. Uh, and I'm also like working faster and harder than I feel like I ever have, but like in a, in a good way. I know people are like kind of freaked out about like, ah, everything's changing, the pace is up, but like it's, it's really energizing for me. Yeah.
Well, you are not alone. I think every How I AI guest has come on and said, I'm having more fun, I'm working faster, and everything is different. And what I love about what you're gonna show us is it's not just the set of tools, which I think has changed, or how we write code has changed, how you like run a team has changed. So, and I think for the better, you know, so I would love to see how you're using Notion AI to actually run Teams differently. Yeah.
For, so for context, I, I manage a team of like 6, 7 people. Um, I'm like an engineering manager or a tech, technical engineering tech lead manager or whatever we call it. I manage people and I write code.
And you code.
Uh, is like my role, which I love. And I've run a bunch of different projects here at Notion. The, the one I'm gonna show today, uh, we've, we've nicknamed Afterburner. Like kind of a quick backstory is I've been kind of vocal about our like DevEx CI for a while. I've just, I've worked at places where it's really slow. I've worked at places where it's really fast. And I came here and I was like, we're kind of like in between, but I feel like we're like slower than we need to be. And eventually this like caught up to me and somebody was like, could you just come fix it and like come work on it? And I'm not like a I'm not an infra expert. I'm not a CI expert, but I kind of know what I want. And I think also most importantly, the group that I manage and the org that I work in, we're a little notorious for being like really fast and like very, very AI-pilled. And so other folks were kind of like, can you just bring some of your like puppy dog energy to like CI and just like see what we can do? And that's what we've done. So we had this really aggressive goal to cut our CI into like a quarter of what it is. We're on the path to doing that. But so what I wanna show you is a little bit about how we run projects in Notion and how I'm using AI to kind of streamline those projects. So what we're looking at here is like our like project hub called Afterburner. And so in here I've got all this documentation, I've got databases, We'll look at some meetings. I have like an automation that looks for any sort of like little wins if we knock off seconds from different jobs or whatever. And we keep it, we keep track of them in here. But what I want to show you is basically how we run our meetings, our small group. We'd run a standup every single day and doing standups where everyone just like is kind of like dead-eyed and going around being like, I did this, I shipped this change, or, you know, no updates for me, thanks, is like painful. And in my opinion, like a huge waste of time. I want to like get to the meat. So we have this kind of like automated meeting template that shows up every single day that we run our meetings, which is basically every day. And it starts blank. And then what I have set up behind the scenes is a custom agent. So we chipped this Notion AI custom agent stuff a little bit ago. And this runs right after the meeting template gets generated. And it looks through all of our like Slack conversation in the last 24 hours, any tasks in Notion that we close, any pull requests that we've like merged, just like all sorts of context. Oh, and it looks at like yesterday's meeting transcript as well. And then it compiles it basically like a pre-read. And this is a, this is one from a week or so ago. And it, yeah, it shows, it pulls metrics. It can show us like what our latest CI time is. It shows some of the things we've decided, shows like progress on different like projects or like different things that we're trying to like make faster. Bugs, feedback, open questions, like anything that's like of concern. And like, I can basically work up until like the minute of our meeting without having done a bunch of like prep. And then we all get on a video call and we look at this screen and we're like, okay, here's what we need to talk about. And we'll like hit each bullet. We have like meeting notes that we run down here within Notion. And like all the context is basically like captured. All of the like agenda is like set up for me. So we spend the entire time talking about like problems, decisions, wins, findings. Like what are we gonna work on next? And it's less the like, oh, I did this thing.
Yeah. What I wanna call out for folks that are maybe listening and not watching is this is a very detailed meeting, like kind of like pre-read/status update. Which, if you're a TLM or an EM, running good meetings unfortunately is part of the job. And there's a really big difference between a good standup and a bad standup. And I think the ones you described, these like, wrote, like, I wrote this PR today, I'm going to start on this. And then basically like a notes document that's very high level because some human is putting it together.
Yeah.
It stinks. And you start to like do— the other thing that I found, and maybe I'm curious if this has impacted how you work or just made it easier, which is like you start to have those meetings less because the updates aren't super rich. People don't feel like it's a good use of their time. And I think you lose something by reducing the frequency. But if you can have high bandwidth, high quality meetings with high frequency without the overhead, Mm-hmm. I think you can get better, more detailed work done collaboratively, especially if you're running a remote team where not everybody's in the same room. So I'm curious, do you feel like just being able to get to this level of detail in your standup has improved how you can actually build this product and do this work basically?
I've been in way too many meetings where I can tell everybody's eyes are glazed over, nobody's paying attention. And I have run enough projects at this point where to me that's pretty dangerous because everybody in that room has ideas, they have insight, but because we've made it so nonproductive and not engaging that we're not, we're just like, we need, the point of the meeting is to exchange ideas and information. And if we're not doing that, literally what's the point? The whole, this could have been an email. That's what the meme is from.
Yeah.
And so I found that this is basically a good conversation starter. And a key thing to me that tells me that this is working is when I'm like, I'm running these meetings and kind of going through like bullet by bullet. And then I see like, oh, somebody like fixed our mock server environment in our Jest tests. And we're seeing a test improvement by like up to 13%. I'm like, oh, I missed that. You know, like, that's super cool. Like, tell, like, let's talk about it. And then from that, maybe like, oh, there's additional headroom that we can make on this. And so all of a sudden, like, let's drill into it. And so just like, I also think it sort of democratizes that, like, sharing so that you've got some people that, I could talk for an entire 30-minute meeting without shutting up. And then Other engineers are like, you know, kept keeping to themselves, but like brilliant and super talented. And I think it's great. This kind of like raises everything up to the top, um, and makes it very visible.
I was, I was thinking last night, truly, this is a little bit of a sidebar, but I was thinking last night how people don't know this. It's very, very confusing as Clairvaux the podcast hosts. I am such an introvert. I'm a crazy introvert. I will avoid humans with every fiber of my being. And I find like AI as a proxy for me to get over my own anxiety communicating with the outside world. It's like so insane, but I really feel it. Whenever I like message my OpenCLAW and I'm like, hey Polly, can you email so-and-so blah blah blah on my behalf? My anxiety is gone. But when I sit in front of my Gmail and start typing an email, my introvert starts showing and I'm like, I can't, I can't do it. So I think this is a real point, which is like, you gotta pull information out of everybody.
Yeah.
And there's like spikes and valleys of who is gonna come and show off their work, how detailed they're gonna be. It does not mean the work is not good. It does not mean they are not talented. They just have different skills in different environments. And so I love this call out of like, we're gonna pull equal amounts of information out of everybody because the playing field is is equal. I also want to go back to something you said, which makes me think about burnout, which you said, I can work up until this meeting starts. And I know so many people who feel like they're in meeting after meeting after meeting. One, because when they're not in meetings, they're preparing for meetings. So you're getting rid of that.
Yeah.
And then 2, I think managers being able to, for example, code up until the standup is such a burnout protection mechanism, which is you would much rather your managers' hands on the code, hands on doing work, filling a creative impulse than prepping for meetings. Sure, they're great at running the meetings, but let's do that in this just-in-time mechanism where they're supported through these automations. I just imagine I used to feel so stressed as a leader and as a manager being like, If I'm not in a meeting, I'm prepping for a meeting, and then I'm in a meeting. And if I can carve back more of my time to just do real things, that feels so much, so much, so much better. So I'm guessing you're having more fun just through the balance of the kind of work you're trying to do.
I'm— yeah, I'm having so much more fun working this way. I have done the, like, run a big engineering group where, yes, you're spending half of your time just Compiling information, synthesizing it, writing reports, like doing all this stuff. And I, I hated it. Like, it's so draining. And now I feel like I'm in a sweet spot where I can support and work with a team of like very talented individuals, but also not have to, yeah, be like doing like paperwork the entire time.
Yeah.
Like, yeah, I, I don't want to do like the tedium. I get a lot of joy out of Working with people. It's like why I like managing. I like talking with them, having fun. I love like solving hard problems together. And then I like building stuff. And yeah, I think that we're maybe at an inflection point where like, and maybe this is controversial or not, but like if you're like a line manager, like write code. You know, get in there and like 100% stay, stay close. Maybe don't do the, the, the P0 hero projects, but like, yeah, help your team fix bugs, like make optimizations, like whatever, you know. I, it's just, it's so easy now.
I mean, I'm gonna pull that thread all the way up, which is like directors of engineering, VPs of engineering, like CTOs.
Yeah.
CPOs, it, write, write some code. Now is the time. And I say this all the time on this podcast. This is the era of the hard skill. This is not how do I get better at my soft skills and managing stakeholders. This is literally like, how do you write code? How do you write automations? How do you learn these new tools? How do you understand what models do what for your own skills? That I think is super important. Okay, we could go on forever on this topic. I do wanna show folks how you built this.
Yes.
Because we haven't seen actually haven't seen. We've had a couple Notion folks on the podcast. We haven't seen Notion AI in action, and I just wanna see kind of your thought process on how you build something like this out.
So I'm gonna flip over to, uh, this is our custom agent. Don't ask me why we got this like potato theme for like the entire project. I, I think it was kind of something about like CI is just this like cobbled together like mess, and so we're gonna like make the potato, uh, like a rocket ship. I don't know. I don't even know if that makes any sense, but like Now we're having fun with it and we have reactions and like agents and it has spun off into its own thing, which is fun. But this is our hot potato agent. So you can see I have this set up to run at 9 AM every single day. It's also set up for chat. It's set up if the agents mention, but we never really use any of that. And probably the important part is the actual instructions. So in this instruction page, Giving context on like what the purpose of this agent is. I am telling it to run. Yeah, look back at 24 hours. So basically telling it your job is to run every single day and I only want you to look back for the last like 24 hours of activity. I'm explicitly telling it to use subagents, which is kind of a sleeper feature in Notion AI. Like this exists, but we don't, we don't really push it to use it very often yet. 'Cause it's one, it's very expensive and two, it can be kind of finicky sometimes, but. Um, I helped build it, so I'm, I know how this works. Uh, and then I ask it to kind of like fan out and do like a MapReduce where I'm saying, go use the Honeycomb MCP to figure out what the latest metric is. Look in our project channel and like find updates, feedback, questions. I tell it where the task, uh, database is and how to look for tasks within this project, and then how to find yesterday's meeting. And then I give it a template in the instructions where I'm like, this is your format. I care about CI speed, decisions, progress, changes, bugs, questions, risks, a little bit of guidance on writing. And then when it's done, I have it post to Slack and I emphasize this, I want it to be brief and fun. And sometimes it's really corny and then sometimes it's really good and it'll be very quirky and just Post this like link in our Slack channel and it's like, hey, here's your pre-read, some little quibble about like whatever, you know, like, hey, you guys are not making enough progress. And then that's it. And then it's, we have our meeting note, it's updated. What I like the most about this one, I can show you some of our like internal settings. So this is like, I give it access to all of these things and I'm like, you can only view all of this stuff 'cause I don't want it going and like modifying our task database, our project database. Like everybody at Notion uses those, but this meetings database in particular, I'm like, you know, you can edit content 'cause this is the one you're gonna like write and update the page. It can read from our Slack channels, respond to our project one. And then this, this was new to me actually when I set this agent up is our MCP. So we've had MCP and we have this other thing called workers, which is like kind of like writing code. I haven't used them very much within custom agents, but in this one in particular, I'm like, I know exactly where this metric is. It's in Honeycomb. And so I like just configured the MCP in Notion. And by the way, I like, I like used the agent to like set itself up because I was like, here's the query. I literally gave it a screenshot of the Honeycomb query. I was like, I don't know how this works. Can you just like update your instructions?
I love that you screenshot it. You didn't even copy and paste it. You're like, please OCR this screenshot.
Exactly. Too lazy. I'm like, here it is. Just take it, figure it out. And it, it kind of, it got it mostly, like most of the way there. I had to fiddle with it a little bit, but yeah.
What, what I appreciate about this, and again, for anybody trying to just brainstorm workflows where AI can actually have a huge impact on your productivity at work or life. I just feel like write down what you would do if you had time. If you had time every morning at 9, you would sit down and you with your eyeballs would go through Slack, you would go through Honeycomb, you would ask people what's going on, you would look at GitHub, and then you would compile it, and then you would try to be very fun in Slack. Like, it's, it's just A description of what you would do. And yep, it's, it doesn't have to be that complicated and you can iterate so quickly on it. What I appreciate about this, you know, versus old era of more deterministic, like workflow style builders, is the updates are so easy to make. Just change the natural language.
Yeah.
Redo the order, change the trigger, give it more, um, access to data, and then It's, it's ready, ready to go.
Yeah. And you know, I think the other thing I, I've gotten hung up on when trying to think about like these automations, and I, I've seen others do, is that like you get this, like you start gigabraining it and you're like, well, how am I gonna save like 5 hours of work a day? And I, what you just said made me realize too that like the, the tedium that this, removes for me is not like world-changing, but it's like 20 minutes a day. And that's like 20 minutes I can spend doing other stuff. And that like, it's not even just about like saving that 20 minutes, but it's like protecting my brain from like having to context shift about all this stuff and like ingest it. And instead, yeah, it's just, I know that the information will be there when I'm ready to like read it and I'm ready to like shift gears to this project. Um, rather than— yeah, I, I hate doing the like, read this update, copy all this information, like put it into like an update board. Like it's soul sucking.
I mean, you and I have been doing this for a while. That's like, that was, I feel like 70% of my job at some point, 70% of my job was just like, what's going on? Mm-hmm. And how do I massage it into a format appropriate for the audience at hand? And it's always the same information.
Yeah.
It's just like, what's the executive version of it? And what's the team version of it? And what's the full team version of it? And like, oh, like my shoulders drop out of my ears when I realize we don't have, like, we just don't have to do it anymore. And the other thing that I think people maybe underappreciate about AI and this like just-in-time delivery is your AI, your agent is never gonna complain when you ask it to do this 5 minutes before the meeting starts.
I know, right? So it's so great.
It's so great. It's just like when you have it, drop it, get it done and out of your brain. I think is just, again, I go back to like burnout and enjoying your work and reducing toil, and it just feels like a more relaxed way to work. Yeah.
Yeah.
We're happy.
It's so funny cuz it is more relaxing and it's more fun and I feel like I'm getting more done. Yeah, it's weird to have like this, like win-win-win.
Yeah. You know, they, they do the triangle and they're like, pick 2. And you're like, no, I wanna pick all 3. Yeah.
And I'm like, give me the whole triangle.
Give me the whole triangle. That stamp it for the YouTube thumbnail. Give me the whole triangle. All right. This episode is brought to you by Orkus, the company behind open source Conductor, which powers complex workflows and process orchestration for modern enterprise apps in agentic workflows. Legacy business process automation tools are breaking down. Siloed low-code platforms, outdated process management systems, and disconnected API management tools weren't built for today's AI-powered world. Orchest changes that. With Orchest Conductor, you get a modern orchestration layer that scales with high reliability and brings humans, AI, and systems together in real time. It's not just about tasks, it's about orchestrating everything. APIs, microservices, data pipelines, human-in-the-loop actions, and even autonomous agents. So build, test, and debug complex workflows with ease, all while maintaining enterprise-grade security, compliance, and observability. Orkus, orchestrate the future of work. Learn more and start building at orkus.io. Let's talk about, so we talked about how meetings happen. Love this. You do write code though.
I do write code.
Sometimes with your fingers and sometimes with your and my favorite harness of the moment. Um, so let's go to how you get coding.
Yeah, I, I wanna show the little bit of a new workflow that we have going on in Notion. Um, I honestly don't think this is necessarily a big feature that we're gonna ship or some, we might ship some version of this feature, so this is all Basically internal only at this point. But prior to this, the way, one, I love Codex. I've been a Codex stan for like, I don't know, 6, 7 months now. And we started building this like Codex integration into Notion. Prior to this, it was like, I mean, obviously you're using the CLI to like write your prompt and then they created the Codex app, which is which is nice, but I'm still like writing my prompt in this thing. So I started actually writing prompts in Notion pages where I can be a little bit more like freeform and structured. And, you know, I'm in like the CLI, I don't have to worry about like hitting enter and then like, oh shit, like I sent my prompt. I can actually like write a document in Notion, but then of course I'm like highlighting all of the text, copying it, going into my terminal, hitting paste and like letting it go. like fine. There's like MCPs and other stuff that I could be using, but I'm a very simple person. It was like too much stuff. So we built this thing that we're kind of like calling it, I think we're calling it both Software Factory, but I like its internal project name is Boxy. Because it's like all these little VMs that we install Codex and Clog code on. It's our little boxes. Where now we can actually invoke them from like tasks within Notion. And so, uh, literally it happened this morning. A friend of mine, um, who's a Notion fan texted me. He is like, hey, I like the tab block that you built. Um, which is this thing. He's like, but I really wish I could, like, you know, I can like copy, I'll show you now. If I click on the dot dot dot thing next to a block, there's like copy link to block. He was like, man, I really wish I could just like copy link to a tab and then like send it to somebody. And I was like, oh yeah, that, that sounds really easy. So I opened up this task and I just took some notes and I dropped in this screenshot showing him, uh, where it could live. You know, this is like on the, the tab block. If I right-click on it, we get this little flyover menu. And I just described the task. I was like, yeah, let's put a copy link button here. I also noticed that hovering over the delete button didn't change to red. So I was like, yeah, we should fix that. And I was like, I know one edge case is like, you're gonna have to like, if you land on a URL where we're like linking to this block and this tab, like it's gotta like switch to the tab on like fresh refreshes. So I like kind of outlined all the cases, but you can see here, this is 1, 2, 3 paragraphs, 4, like 4 sentences and a screenshot. I was like, not a lot. And then, uh, this new thing that we built, I can actually mention Codex from within our comments. And this triggers our like Boxy. Uh, this is all our like internal dev tooling stuff. And then it got to work and I was looking at the timestamps earlier and I think 10:40, 10:51 started the implementation and then another 10 minutes later. It replies with a pull request link and a preview URL, cuz we like, we do the, um, like preview environment stuff. And, uh, it had like built the entire thing. And if I switch actually over to, here's the pull request. It built like the entire thing and it was like, here's how I tested it. And this, this was actually the coolest part to me is like it actually uploaded screenshots of it doing its own like UI verification. And there was like a CI failure in it. So I was like, hey, I replied down here like, oh yeah, this part of this code change. I was like, I don't know what is going on here. This doesn't make sense. And there's some type check things. And it was like, cool, here's why we did this change and I fixed your types. And then there was a merge conflict.
Let's also talk about just Old world, new world. The emotions around code review.
Uh-huh.
Like, I love that you're like, I don't get this. Not, I'm gonna try to get it, or I've done my best to investigate and I'm pretty sure this is wrong. Like, literally just, I don't get it. I don't get it. Fix. Imagine like sending that to somebody. One of your human teammates. Be like, no, man, look it up. It makes it— so that's one of my code review mechanisms. As well as I'm just like, I don't think this is right.
I— yeah, one, one, one, uh, line that I've been putting in my prompts lately is I'm like, I literally don't know what I'm doing here. You need to explain this to me. Especially doing all this CI stuff, I'm like, I'm in over my head. Like, you gotta, you gotta like explain it like I'm a 5-year-old. And sometimes it's like literally like caveman style. Like, here are the things, and I'm like, I needed this.
Well, what I appreciate about this, and we'll talk about it a little bit later, I think, is we're not getting any of these Claude code warm fuzzies from Codex. I love it, but when it talks to me, I'm like, I feel real dumb when you're talking to me, Codex. Can you—
It's like, okay, okay, dumb dumb, here's what's going on.
So I think that sort of like, I don't understand what I'm doing, please explain it to me, is I love it, but I think it is a Codex-specific experience. Claude Code shows up and is like, hey buddy, guess what I made for you? Okay, so stepping back before we go too deep on the personalities of all these coding models you have built, just @mention, and I think people miss this, but it's important for particularly our engineering team and engineering leader listeners to pay attention to, which is Everybody that I know that's smart has some background agent hooked up to a virtual machine that they kick off so that you're not spinning up your local environment and doing all this stuff on your machine.
Yeah.
And it just, I think the velocity, we'll talk about this, but the velocity plus your DevEx plus your CI, I think is a huge piece of AI adoption in engineering. So if you are not, if you don't have a VM strategy and background agent strategy in your large engineering org, Time, time to get one. Time to do it.
Totally agree.
And we'll just ask Codex to build it. Be like, I don't know how to— I don't know what I'm talking about, but I think, I think this is— Claire said this was a good idea. Please build, make no mistake. Um, okay. Last, last one. We have a last use case you were gonna, you were gonna walk us through.
Yeah. So we recently rebuilt our entire agent harness. The quick TLDR is just like everybody else, we reached like this point of tool and instruction fatigue where you had this bloated system prompts. So we're like, okay, we need to dumb this down. And we borrowed the, the kind of like skills and progressive disclosure concept from coding agents and brought that to Notion AI. And when we were doing this big rewrite, we were asking ourselves like, you know, it, it had only been like 6 months since we shipped the last rewrite. And this time we were like, what would, what would we do differently? Like seeing the state of the art with coding agents. And someone had this really great idea to like, let's not start with code. Like let's just start with specs. And what we've ended up building is we have this like in our checked into our code base. You see this, we have this, we're looking at, this is a Notion repo, but we have this agent specs subfolder. And within this subfolder, we have all of these Markdown documents. This is one that I worked on. We have this thing in our AI called Ask Mode where we basically ban all of the mutating tools so it can only just read and answer questions. And so when I was building this, I didn't start with writing code. I didn't start with anything. I just started with an empty Markdown document. And I mean, I actually just opened up like Whisper and just started yapping about how this feature should work. And then at the end of it, I gave that, I gave the yap session to Codex and was like, here's our other like spec library, learn the format, take my information, write a spec. And then it spiked the first version. I did a couple revisions on it and it ended up with this Markdown document. Now, The Markdown document is like, it's nice, but what we did with it next, in my opinion, is, is I kind of think that this is like the future of software engineering where I then opened up Codex again, pointed it at this spec file, and I said, build it. And it basically one-shotted this because the entire spec file is so comprehensive with code pointers, with Um, down at the bottom we have verification and it was like, here is how you're gonna verify all of this stuff works. And we've even built our own, um, CLI tools so that you can run Notion AI from the CLI. And it could, once it's done seeing that all the tests pass, it can actually just spin up Notion AI itself, send it queries, send it questions, enable ask mode, disable ask mode, and then see the transcripts and like see what actually happens. And I think the first shot of this took a couple hours, but I came back to whatever, couple thousand lines, did some code review, played with it myself, and I was like, it's right. It's like done. And, you know, since then we've made, I can, the other beauty of this is like, this is in version control. So I can go to the past changes of this spec file and I can see how the spec has evolved. And it, it, I could go look through all of the code changes, which also have their own like history. But this is now the sort of like source of truth for how this part of Notion AI works. And it's just in plain English that can then be verified and implemented by agents.
Well, I think the other thing that people don't appreciate is, you know, taking this outside of the engineering flow is this plain English can be ingested by other parts of the business that need this information. So let's say you need to then release this feature via some sort of marketing. This is actually like a pretty good asset that explains how it works that can be translated into another, another thing in a way that like code itself is still a little intractable. And so this idea of spec-driven development, but what I like about what you said, I don't want people to miss, is the way you make these updates is you update the spec and go, Go look, make the update, change the thing.
Exactly.
And so, like, the spec is the source of truth. The spec as the changelog, I think, is a really interesting model. And for people that aren't watching, it's very detailed, it's very technical. So, it's not like there is not code in the spec.
That's right.
There's just not all the code in the spec.
Exactly.
And I think that's a really kind of good hybrid model for experienced engineers to start to bridge into what would it look like to have an agent do more of your coding work while you still do architecture work, while you still do design work, while you still make sure that the thing is gonna scale?
Yeah, exactly. I, I view our job as like engineers evolving into like systems thinkers and architects and not, and not even just necessarily writing like the spec and thinking about the behaviors, but most importantly is like the verification loop. Like, is it a, like, how should it verify correctness of this feature or this change? And honestly, it's like, if it can't, or if like the verification's a little hazy, it's like, that's the first thing you actually should be going and doing is like, do you have a tool to let the agent run itself? That's like one of the first things we did with this project was like, we should actually build a CLI So that I can tell Codex, like, send this prompt and like, see what happens. And now that we have that, then we can take these specs and actually just like go deeper and deeper and deeper. And so it's like, we're still doing engineering, but I'm not doing the like plumbing work of like wiring up this ask mode feature.
Well, and what I think is really funny is, I mean, I've been in software engineering for 20+ years. Like, we were writing these documents anyways. We were writing technical design documents and spec documents anyway. And we were sitting in meetings with other engineers debating the merits of one implementation versus another. And then we still had to go write the code.
Yep.
It is like really, it hasn't added work to go into this model. It's maybe like shifted the emphasis of where the human attention goes. But these were documents that at least I was in every org that I've ever been in writing before. And the other thing that I think has changed so much is those docs, Then waited for review and they waited for a meeting. And now no more waiting for the meeting, no more waiting for review. Ship it, have a verification loop, debate it on the merits of it being live and working versus the theoretical merits of it sitting in a document waiting for everybody's calendar to open up for an, you know, a live argument.
Yep. Yep. Couldn't agree more.
Let's, let's do it. This has been my— I just, you and I could talk all day about this. Just to recap for everybody, because I know I got to get you out of here. 3 use cases. One, never prep for a meeting again. Hook it up not only to your Slack, but to your meeting notes, your GitHub, your telemetry, and build the best standup meeting so no one has to stand there glassy-eyed being boring, giving updates. Second use case, background agents, @mention from wherever you work. Notion being a great place to do that, kicking off virtual machines, getting PRs done, just saying yes when your friend texts you, can you ship this feature? And then the last one, putting all your specs in your repo, using them as a source of truth for a more autonomous coding agent like Codex. Let it cook for a couple hours, review the code, and then when you update, update the specs, don't update the code. Did I get it right?
Nailed it.
Okay, let's do a couple lightning round questions and I'll get you out of here. You and I love Codex. Why do you love Codex? I'll tell you why I love Codex, but you go first.
Okay. Well, so I first fell in love— oh my God, did I just say that?
You did.
I first fell in love with Codex because when I was evaluating both Claude Code and Codex, I found Anytime Cloud Code like filled up its context window, it would just kind of like lose the plot really quickly. And Codex, I don't know exactly what it's doing, if it's the model, if it's the compaction, if it's like both, but it can grind for like hours. And with the way that I work, both the systems and things that I work on, and just like, I like to be able to fire off a bunch of them at the same time and then go to a meeting or go do something else or spend my time kind of like round robin managing all of these agents. I don't necessarily want to, I'm not the person that is sitting with the browser open and some agent next to it and iterate, look at the browser, iterate, look at the browser. I'm like, the more, the closer I can get to one-shotting solutions, the better.
Yeah.
Because that frees me up to do other stuff. And so I found that Codex was pretty good about that. I also just feel it's pretty simple. There's not a lot of bells and whistles. It's not too fancy necessarily. I'm happy with the addition of MCP and skills and some other stuff coming out. I also really love GPT-5.4. I think it's a great model. So I'm like, of those things together, it's just, it really like matches my working style, uh, and type of work a lot.
Yeah, I'll, I'll tell you why I love Codex, and I sent this to somebody. I said, worktrees everywhere, ports 3000 through 3009 spoken for. Like, we're just, we're just going across, across the board. Um, I do think it's good at long-running tasks. I like its concept of projects because I run a lot of different projects. I think it's just like a very helpful mental model. And then it's great at code review, honestly.
Oh yeah, it's pretty good.
It's just like a really good code reviewer. It's a really good security reviewer, tireless, uncomplaining with the most tedious of things. And so I find it's one of my daily drivers. I just, I really like it. It's good. Okay, second question, because you and I also agree on this. Give people the reason. This isn't even a question. This is a demand for you to share my point of view, which is, Why bang on developer experience and CI speed right now?
A couple things. To me, CI was super important prior to agents because in my opinion, I mean, it's not even an opinion, it's fact that the faster your CI completes, the faster you get signal, the faster you're, the more comfortable your engineers will feel with making changes and doing things because they know Like I can make a change and get it pushed into dev or into production really quick because I know my CI is fast. If it's slower, then you're building up these like monster changes and you're going to be even slower about like judiciously like reviewing every little like tiny thing when I'm like a learn through like doing sort of person. And if I can close the iteration loop like even tighter, Then I'm going to be putting out a change. People are going to be using it. I will take that feedback. I will make another change. And I don't have to worry about it taking another day before the deploy train is ready to go. I just want to crank really, really fast. And that was all pre-agent. And now that we're in the agent land, it's that, but on steroids because agents don't get tired. They can work on a VM. They can work while I'm sleeping. And if I've got a CI loop that takes an hour to run, your agent's just gonna sit there and spin for like an hour waiting for results to like do something. If it takes 3 minutes to run, like, holy crap, how much more stuff are you, you as a human, and then especially as your like little swarm of agents going to be able to get done? Like so, so much more. And so I, super important.
I agree. And we just had Steve from Stripe on and they're doing like 1,300 agent PRs a week.
Oh my God.
You cannot do— yeah, you like cannot do that if your CI is slow. It's just, you might as well be throwing all those PRs in the trash. And so, I do think there is just a true mathematical limit on your capacity to ship code to production that is a reflection of how fast your CI pipeline is. And so, if you are, again, engineering leaders, if you are not spending time on making that fast, and you are tolerating something slow there, you're not gonna get the benefits of AI that you could. And honestly, like, good for AI, good for humans. No engineer wants to sit waiting for their stuff to hit production. It's miserable on the engineer side, lots of downsides. So allocate time to your pipeline, please.
Yep, yep.
Ryan and Claire say so. All right, last question. When AI? Is not listening. It's writing bad specs. It's not being funny in Slack. What is your prompting strategy? Do you yell?
Yeah, I can, I can, I can be a little bit of a diva sometimes if it like really goes off the rails though. The, the other, the other prompting strategy that has like saved my ass working on the CI stuff lately is because like even the best models, I feel like can sometimes be a little sycophantic. I'll be like, I will just like be like, you're wrong. Like you need to defend your argument because I like, I want it to defend it in the way that I like, I want, but I'm like, I just need, I just need to see the evidence that if I push counter to what it has done, that it can like back up with like good pointed reasons rather than just be like, are, you know, are you sure this like change looks okay? It's like, oh boy, it's like totally fine. I'm like, no, no, no, I need like the cited hard argument against it. Because like, and a lot of times, like with the CI stuff, I'm like, I don't know what I'm doing. I know generally what I'm doing, but like the specifics are a lot more nuanced and I like, I need to get this right. Um, and that's been super helpful. And then when it goes off the rails, I'm like, I could be such a diva to it.
Escape. All caps. No, that's what I do. Interrupt and no, steer the conversation. Little arrow button has never gotten so much work. Ryan, this was so much fun. Where can we find you and how can we be helpful?
You can find me on X. I'm out there shilling for Notion right now a lot, but that's, that's basically where I spend my time. Yeah, my DMs are open, so if you have Notion problems, I like to try and fix them. I, you, I'll send it to Boxy and we'll get it done.
Perfect. Love it. Well, thanks for joining the podcast.
Thanks for having me, Claire.
Thanks so much for watching. If you enjoyed this show, please like and subscribe here on YouTube, or even better, leave us a comment with your thoughts. You can also find this podcast on Apple Podcasts, Spotify, or your favorite podcast app. Please consider leaving us a rating and review, which will help others find the show. You can see all our episodes and learn more about the show at howiaipod.com. See you next time.
More from Lenny


How Meta designed Muse: an AI agent people actually want to talk to | Alex Cornell (Design Director)


Why every company now needs to think and operate like a lab team | Josh Woodward (Google Labs, Gemini, AI Studio)


Jev: 8 real use cases for the fastest, cheapest model I’ve ever used | John Lindquist


The grief, loneliness, and burnout sweeping through the tech industry right now | Molly Graham






