AI agents are built using a two-loop architecture (inner loop for tools, outer loop for user interaction), and English has become the new programming language for AI software because skills written in English serve as the new programs, allowing subject matter experts to understand, review, and modify agent behavior directly.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Zero to Agent in 30 Minutes: Build a Workflow Agent Without Code with John Berryman
Added:Good morning everybody. Thank you for joining us today on a first in the series and today we're going to talk about why English I believe is the language of AI software. My name is John Berryman. I am a consultant contractor for ArchRival Labs. I build products. I do AI consulting. Um, and the thing that I'm so interested in these days is all of the new opportunities and and possibilities that are made possible by AI and I'm excited how fast things are changing and I want to give you some of the knowledge that I feel like I've gained about how good AI product can be built.
So, let's dive in.
First off, let's talk about what we're going to learn today.
Number one, we need to get a shared understanding about what an agent is.
And the good news here, despite last year everyone kind of hand-wringing about exactly how we define these things, an agent is really not that complicated. And that's going to that's going to be kind of a clarifying factor for the rest of this talk and hopefully something that you get to bring away is a just a clear understanding that makes all of your work easier.
The next thing is that because of recent changes, I believe that English is now clearly the the language for AI software. It is easier than ever to express AI behavior in terms of natural language and it's it has some really good benefits to it as well as far as being able to communicate what a program actually does to the subject matter expert. We'll dig into that. And finally, most importantly, given how simple an agent is and how English is becoming like the the new de facto standard for the the language, I'll show you how you can build AI products that actually work.
So, let's start with that first one.
What exactly is an AI agent? Um, we've had them around for a while and they've been basically the same thing.
In 2023, uh, an AI agent was just an LM wrapped in loops.
Yeah, and so, you know, look to the right, I'll show you a little diagram here and I'll underneath keep your eye on the program, the little tiny program, because it's actually a complete program of what an agent is.
In the beginning, the agent, before the agent, uh, there was the large language model. It was just text in, text out. Initially, they had no knowledge of being a chat agent or anything like that. It just you'd give it the first half of a document and these models became quite good at mimicking language enough to create the last half of the document. Old MacDonald had a farm, E-I-E-I-O.
But, chat GPT came on the scene, uh, very famously in 2023, right at the beginning, as the fastest-growing consumer product of all time.
And all it did was wrap a simple loop around the large language model.
And basically, again looking on the the code on the right side, it's just a loop that trades back and forth.
It's a loop that trades back and forth between the user message and the model responding to the user's message and making a completion.
Now, it's a chatbot. It can't really see, can't really do anything, but it can speak to you and speak back. It's a good therapist. Uh, it's a kind of a fun thing that you can do.
The next thing we do, we have another loop that we introduce on the inside.
So, on the outside there's still this loop where we're going back and forth between in model and the user. Now, on the inside we've got this notion of tools. And it's just a It's still underneath the hood, it's still just a large language model, uh but the large language model is looking at this document that looks like a transcript.
It's looking at this document that looks like it's got some like programming language in it. And we have by putting this nice affordances of uh a tool loop on the inside and user loop on the outside, now you can talk to the agent. The agent can uh via the model, its brain, select the correct tools to use, and uh it can see into the world. It can use the tools to access the world and and do things in the world.
And really, that's all a model uh an agent was in 2023, and today it's still the same thing.
But there's a problem.
In 2023, these agents, as interesting as they were, they actually kind of sucked. They were really terrible at following instructions.
Um I was an early production engineer for GitHub Copilot, and one of the things that I built was um the the little uh chat implementation if you go to GitHub, and it's still there today. Uh but in the early days of that, when we built this, you know, dual loop thing, the agent, you give it instructions, and it would obey you for about uh one or two steps, and then it would like get distracted by its own input, uh it get distracted by the context you put in, it get distracted by the the the information coming out of tools, and it would start doing something completely different. They were very distractable.
In an effort to fix that in much of 2024 and 2025, we did what you needed to do.
We put the things on rails. We built uh systems using like um state machines to to create workflows and to say like you get in this step, and then you there's only a few choices after that. And if you get one of these choices, you go here and here. And that allowed us to keep these agents on the rails and get some very useful work out of them. So, while one part of AI product was going in that direction and making useful tools, agents of the loopy variety continued to live on inside coding harnesses and actually there they grew and they thrived. And the big difference was why they're so useful in a coding harness is because the developer was closely in lockstep with the agent, watching what it was doing, figuring out if it agreed with it, and they could kind of we grew up together, right? Uh they we we helped guide the agent, we served as the rails keep it on track.
And slowly the the companies, uh especially Cloud Code very famously, uh improved the situation until we have the the things that work so phenomenally well today.
We improved them even though it's the same exact structure, two loops.
Uh we improved them by giving them the right tools.
And it doesn't have to be a ton of tools.
Very importantly, you can have a minimal set of tools, something that that allows you to read the file system, read files, something that allows you to write files.
Uh sometimes files are really big, so you don't want your agent to rewrite everything every time. So, something that allows you to edit files is of practical importance. And finally, the shell.
Because guess what? In training these these models have seen a lot of they've seen tons of bash shell stuff. They know how this stuff works. They're naturally good at it. And so, when you give an agent these four simple tools as a minimum, but they're really good, effectively you have have made your agent a general agent. If it needs something that it doesn't have, then it can lean back on the training say, "Oh, curl. I can use curl to pull down information. I can use curl to uh do web searches. I can, you know, pull down packages and take the contents of web page and turn them into markdown." In principle, this agent is a is a universal agent. Um they still aren't super good yet, but they're getting better.
The next thing if your agent can look at the file system and read files, then why not just stick a readme in there? We use readmes, but we call these readmes agents.md. We call these readmes skills.
And a skill is basically a the onboarding manual for your intern.
Your poor intern, he can't remember one day to the next, but he can wake up every day and whenever he needs to do something, he can say, "Okay, I've got all these manuals, flip through them, and I'll get the right skill and learn exactly what to do."
And we also we've we've done other things around that, but still this is still just read write edit and shell and just the correct set of instructions.
Please read these skills. Um and then lastly, something magic happened.
Something that I have started calling the Christmas miracle of 2025.
Coding agents at the end of 2025 suddenly got shockingly better, and we started hearing about it from different sources. Karpathy uh wrote about it.
Simon Willison wrote about it. And it's, you know, whereas we used to have to baby sit the agents as they're building code, with the release of some of the newer models at that time, they became really good at staying on track and continuing to uh follow directions until the the program was complete. Not perfect, still not perfect, but very usable at that point.
So, at this point, we only rarely have a need for bespoke state flow machines when we're doing code stuff.
Uh instead, all we have to do is just give the agents the right tools, and the right instructions, and the right skills to get the job done.
So, at this point in in my development, this is starting to set in. I'm starting to under you know, starting to rock it, but there's one big thing that I hadn't figured out yet. This is a recap.
The recap is just to reiterate the simplicity of agents. You don't have to be scared about what is an agent.
Core of an LLM, it's got an inner loop that runs tools, it's got an outer loop that is actually speaking to the user, and based on just that, we have been able to give it the instructions of uh skills, and uh we have the ability to use computers, operating system, file system. So, it's a very general agent at this point. But, there was a day in early 2026, uh when I was hacking with a couple of friends. I I do these things. If you talk to me at some point, track me down, I do like little miniature hackathons with random people. I try to put people together. And one such day, me and Shawn Symister and uh a friend from Copilot GitHub, and uh Nick Schuur, were meeting to just have fun hacking on something.
And what we decided to do, we had a brainstorm at the beginning, and the brainstorm was maybe we can make some sort of agent, like uh a Zoom agent that would join us in our meetings, and not just take notes, but you could actually talk to it. Uh it would stay quiet until you said its name, whatever we named it.
Herbie.
Uh and then, but the whole time it would be listening, looking up stuff online, doing research, finding stuff inside your documents, so that when you finally said, "Hey, Herbie, what do you think?"
It would be able to pop in and tell you something.
I was getting ready to sit down and write this with LangGraph or something, just one of the tools that I got used to.
But I didn't get the keyword that day.
Shawn got it.
And Shawn started programming. And he didn't program with Python or TypeScript, he started writing a skill that was to be run in Claude Code.
And I was like, "Holy cow, this is it."
Because Claude if it took, you know, 15 minutes to write a a skill that made Claude Code act like the agent, but it was just text in and text out.
If you could figure out how to write that thin layer of adapter code to plug it into Zoom, then that's the whole thing. So, the core of an entire product is actually just a skill written in English.
All right. So, having finally made this realization, I was eager to take it into real life with me. And I was lucky one of my next clients had an application that is like, "Oh, this is going to be perfect for this." Instead of a bespoke state machine, I'm going to build something that that is exactly what I talked about. The core is just going to be a really simple agent, and then the outside I'll build whatever traditional code that I need.
It's a good way of dividing the the mind space into traditional software and a core of AI that is effectively written in English.
So, demo time.
The application that we're building today, basically we're building a review pipeline for job candidates, okay?
Uh you pop into the application and you've got a list of candidates who happen to be all all my AI friends and uh statuses, you can do searches and stuff, all traditional code, no AI.
And this is roughly what uh a an H a reviewer would have to have to do.
They would go to somebody like Hamel Husain and they would review their name, their background, uh their stuff on LinkedIn, and they would compare all this information to a job opening. You know, who's the opening for, what's the what's the job description, what's the company.
But the story doesn't end here. There's a lot of effort that has to go into picking this person, making sure that this actually does correspond to this person right here, uh making sure that they the background that they have is appropriate to the new job. And so there's several steps that a reviewer has to do. That involves a lot of research, a lot of toil, and a lot of things that could be automated if you just had a smart little agent somewhere in the core.
So, we built one.
And probably the best way to demonstrate it is with this one right here. Consider my good buddy Turn Doug Turnball.
Um he and this is the truth.
He is a search relevant consultant uh and he's known for information retrieval. He wrote a fantastic book on uh relevant search. You guys should check it out.
Um and he This is the fake part.
He's applying for a job as a principal mobile product designer.
Uh lead mobile product It's something that is not really good fit.
So, where as used to, the user the reviewer would go through and make all all of these assessments and then uh advance or decline or, you know, do something with a candidate, maybe have some correspondence with them. Uh what we can do now is just have requests that the AI do a review.
And the way obviously we'd set this up if this a real product is we would have uh have the AI automatically trigger it when a new uh application came in.
All right.
So, by triggering that, we sparked off a whole series of uh agentic stuff. Now, we're inside the loop.
Always, always, always find a way that you can get to the prompt. Show me the prompt. Always be able to see exactly through your the agent's eyes, and then you can have empathy towards him. It's important because if something screws up, but you don't know what they're looking at, you won't be able to help fix it.
In this case, a user message sends all the information that we know about Doug.
Um I've also, something I guess uh it's scrolled off the screen in the the uh instructions, but we also say, "By the way, dear agent, you have all these skills.
Um in particular, there's a skill called screen candidate." And so, obviously, the agent uh thinks about it for a while uh and chooses to find load the skill.
The skill, it everything's going to be truncated cuz it's quite long, but the skill tells how to look at the candidates. We'll look closely at that in a moment.
Um and then it does the steps. It gets a LinkedIn profile for Doug. Uh there it is, right there. It So, it's reading information. It then reads through the different resources about how to look for this candidate, how to screen them.
Uh and here's, you know, the instructions, the skill instructions dumped out there.
Um And then finally, after enough thinking, it provides a response, a structured response, which is exactly what you see here.
It has a checklist of all the things that worked out and some of things that broke, and it has correspondence. Doug, thank you for applying. After careful review, your background search relevance does not match terribly well with blah blah blah. And now the toil of your human reviewers is significantly decreased. It's still up to them.
Alexander P, we're not going to have a lawsuit. It's if we still make put it on the the back of the reviewer to make sure they agree. If they don't, they get asked the AI to do something. They can send a little note to the AI, but you can also copy the whatever the AI said, and this makes the work of the the reviewer significantly easier. No more typing and stuff. We update it. There we go.
So, how do we build such a thing?
We build it by an outside-in approach.
The first thing you do is lean upon our great history of traditional software.
Build the user interface. Build all the pieces that you could build with traditional software practices, right?
The next thing you do, don't worry about AI yet, but do make sure you have defined exactly the what the AI should be doing. What's the input information?
What's the output information? In our case, the input is the information about the candidate and their application. The output is a recommendation for what's the next steps. Advance, decline, or ask them for some more information. That's possible, too.
And also, the output includes optionally correspondence that we can send back to the agent to the candidate.
So, whenever we know what the interface is, we plug it into something fake. This is not our agent. This is a cardboard cut out of our agent. It's something made in traditional software input and a static output, something to make sure the system works.
Then, we connect this to a real agent.
Uh it doesn't have to be a smart agent at first, but it's something to make sure that the idea of AI even works at all. Uh and then once that's going, then we take that real agent and we make it smarter by writing English instructions for how it's supposed to work. So, let's dig into some of these ideas.
The code base is um traditional stuff, and I'm not going to show you all that stuff cuz the core thing you're interested in is how it plugs into AI.
And basically, we have an AI reviewer, which uh you can use tons of stuff these days, but I'm using Pydantic AI's agent.
And an AI reviewer, the core thing once we instantiate this is it's going to have a review method, which we've implemented here. But initially, I don't start with the real review method. I start out with something that just works. It fulfills the the the API.
You take an application in, and the way I've got it set up here, you you update um the the database effectively for the new application uh state. Yes, you you've got the internal notes, uh you recommend a follow-up correspondence, and this is a static response every time.
As soon as we see that that works, then we go from traditional software to something more interesting. We implement the review um function.
It takes an application, and this time, just like we saw in the the behind-the-scenes transcript, it is assembling a prompt. We're making sure the user uh the agent can see all of the stuff about the applicant.
Once we've got that, we run the prompt, and this goes to the agent, which is just a loop.
The agent comes back with structured results, and once we have them, we update the database.
Now, so clearly, the core line, the most important thing is what are we running the prompt against?
Well, self, this thing is an AI reviewer, which is an agent. And it's really amazing these days. We've gotten to the point where it's like building with LEGO blocks. Uh you say, "Here's the model that I'm using."
You say, the assumption is that it is this kind of a loop agent. So, you say, "Okay, well, I'm going to give you uh capabilities uh and tools. Like, I can just start plugging in tools and capabilities.
Like, poof, you know how you know what an agent skill is, and you know how uh which directories to look for uh for the agent skill.
Uh I'll give you web search, web fetch, and I'll give you the ability to think.
And then, uh I can say, "Here are the basic instructions. You're an agent that does candidate screen."
It's also really easy to add tools to agents. You just define them. And in this case, you just define them as a function and annotate it with tool. But, everything's getting easy.
So, keep an eye out for creating your own tools. Give the agent the tools it needs.
And finally, very important for this particular application is we want to make sure we guide the agent towards a structured output. This is one place where Identic AI really shines. If you say the output of this agent has, you know, three fields, update type, internal notes, correspondence, and you can even do validator stuff. Like, make sure it's not an empty string. Make sure it's actually got something there.
Uh then Pydantic does a really good job about re-asking the the model if it screws up and gives you something that does not quite work.
All right. So, at this point, as you see it on the screen, we're connected to the dumb agent. It is an AI agent, but it's not super duper smart.
The cool part is where you make it smarter.
And I'm not programming it in Python anymore. I am programming in English.
This is the contents of the skill. I hope you guys all know what agent skills are.
And it explains the context around what is the job we're doing. You know what?
We're we're solidifying this notion of the output. What output do we expect you to make?
Um we're we're telling it how it's supposed to make its decision. What rules, uh evidence, follow-up do we do?
But, the most important thing that I got once you guys to focus on is that we have a set of steps.
So, what used to be a bespoke state machine workflow in Python, we can write the the code as a set of steps, and you can even include like if statements effectively. Like, if you get this type of situation here, then go to this other section. So, you write a workflow in a way that is very, very easy to read.
And another final trick is you can guide the agent. One one trick I like doing is I make the agent fill out its own little checklist, so that it doesn't come back to me unless it's got all these boxes checked, or unless it's failed something, and then it can uh fast fail.
At that point, it really is English being the language of AI software. And it's so cool, because what you can do is you can give this uh this code, the English skill, to your subject matter experts.
Uh the reviewer of these applications could be like, "Oh, it's broken." And instead of the traditional, let's talk to the product manager who's going to talk to the engineer who's going to implement what they thought they heard, which is like it's playing the phone game. Now, the reviewer, the subject matter expert, is reading English.
And they can say, "Oh, I see what why they got it wrong." They can even reprogram it themselves.
Very different world we live in.
>> [snorts] >> All right.
So, we have come to the end. Let's review what we've learned.
Number one, agents are easy and they always have been. Two loops. Inside loop is iterating around the model and tools.
Outside loop is just pulling in another message from the user.
Once we give the agent the right tools where it can read files and with the right instructions, uh, skills, this set of instructions has become like the new program. So, the agent is the new programming runtime. The skill is the new program. And English is the new programming language.
Uh, and thirdly, much of AI is uh, when you build AI software, I'm not saying you can do everything using this pattern, but be really aware that you can do a lot of stuff and the models are only getting stronger. Today, when they still go off the rails uh, from that time to time, that's going to get less and less and less. It won't ever completely go away, but it it's the models are getting a lot smarter.
There's a code base, by the way, so that you can see all these things. I've got some some good stuff in there to get you started and see how it works.
But, this is just the start.
We have a lot more to learn even about what I I've talked about today. So, even though I can set up the AI, I can make it smarter. Uh, but how do you how do you gather the training data from people actually using the application. How do you make sure that you're using this data to evaluate instead of what used to be just like one prompt, now you're evalu- waiting this whole skill.
So, evaluations are changing over time and become all the more important. And finally, like how can we create this virtuous cycle? There is a way that you can have just the running of the application and people using it and users these reviewers, for example, guiding it toward better behavior. That itself creates a set of training data that is going to be used to to just make the agent better and better and better until you can start pulling away some of the human tasks and confidently giving it over to the agent.
And finally, oh, we're in for some big changes coming through because even though in this talk, I've said that the inside core of AI product is an agent, I think the future of user experience a lot of it is going to be AI agents on the outside helping you work through the applications. The applications you use will be the secondary thing. A lot of them will be made just in time just for you and your agent will help you work with it and your agent will help you navigate the internet and find the data and the APIs you need to get your work done.
So, if you're interested in where we're going from here, make sure to check out the O'Reilly Superstream on July I will be digging into that and and I think it's going to be an interesting talk.
Related Videos

TOP 15 Data compression Interview Questions and Answers 2019 Part-2 | Data compression | Wisdom jobs
wisdomjobs
281 views•2019-06-28

CTS 158: 802.11w Management Frame Protection
ClearToSend
4K views•2019-02-04

NDSS 2019 Send Hardest Problems My Way: Probabilistic Path Prioritization for Hybrid Fuzzing
NDSSSymposium
496 views•2019-04-02

How realistic is Cities: Skylines?
CityBeautiful
159K views•2019-02-14

GUIs & TUIs: Choosing a User Interface for Your Python Project | Real Python Podcast
realpython
2K views•2025-04-04

The OSI Model - Explained by Example
hnasr
225K views•2019-05-12

Cloud Computing - Introduction
elithecomputerguy
98K views•2019-10-07

From Traveler's Dilemma to Dynamic Routing | Demystifying Networking
IITBombayJuly
5K views•2019-08-04
Trending

Gremlin Arrives… While Dorothy May Takes Another Step Forward
The-moons
10K views•2026-07-23

Playstation NO DISC/NO BUY Fight Is Over...
DavidJaffeGames
4K views•2026-07-23

Americans Confused in Australia for 17 Minutes Straight
IWrocker
17K views•2026-07-23

FURIOUS Raskin CORNERS DOJ over Trump DARK PAST!!!!
MeidasTouch
237K views•2026-07-23