ClarisTalk AI · the FileMaker AI podcast
Difficult tasks that are now easy, with Charles Delfs from Klai Studio
Charles Delfs of Klai Studio has not written a line of code since November. A working list of engineering problems that used to be hard in FileMaker and are now easy, plus the vocabulary to ask an agent for them: idempotency, mutex, message queues, race conditions, rich error objects, and test-driven development. Also vibe coding versus agentic engineering, rage coding, and Matt's first public walkthrough of Pythia.
Apple PodcastsSpotifyYouTubeAll episodes
Transcript
Transcribed by machine (whisper, large model), 12,201 words. Names and product terms are sometimes misheard; the audio is the record.
a lot of programming tasks that used to be hard are now easy thanks to ai so today i'm here to talk to my friend charles delps with clay studio about this topic welcome sir hey man welcome thanks for having me back looking forward to today all right yeah so there's like yeah i know you've been probably building a ton of stuff i think everybody i think everybody has would you say that you're having the most fun you've ever had in your career no i am no well you know here's the thing well like i think it's what what drives us right yeah is it is it the final outcome of something or is it the the challenge like where are you sort of goal oriented problem solving oriented task oriented um and for me it's always engineering problems i love that concept let me try to solve some problem solving of the problem got slightly easier um because i can do the research through with ai and i can get to that end goal quicker the building thing is was was okay right but i was i dabbled in lots of different technologies and did quite a bit of a you know relatively advanced coding over my my years so yeah yeah that that yeah i'm kind of i don't say missing that but i haven't written a line of code since
november of last year and um the other day i was doing a demo actually i was doing a demo for clay studio with a client and in my demos i have to actually type some file makers coming out this is weird i yeah i've actually forgotten little tiny bits yep and that's something i don't know if you've found that, but I never had that problem before of like remembering how to do stuff. So I was actually doing some coding with a client earlier today and there was a specific setting embedded deep within the panel, you know, design panel for a layout tool for something. And I had to think about like, where is that? And, you know, exactly how far down is the tool for transparency of text?
You know, which used to be muscle memory and it's not anymore. But I still am in FileMaker a lot, lot, lot. all right like you most of my time now is uh agentic engineering uh slash vibe coding um and can we do a quick aside not and just talk about maybe what what you feel the difference and you know i think everybody realizes what vibe coding is you know it's just i'm gonna fly by the seat of my pants and i'm gonna whip something out i'd put it a little differently i I would say vibe coding is building an application using a code technology that you can't read or understand. And I'm not sure that that's fair, but I think, you know, your other definition is a pretty solid tool to throw something together and not really understand what you're making.
So 20 years ago when we were coding in FileMaker, or say 30 years ago even, that wasn't vibe coding, you would say. That was, what would you call that? Well, everything we've done in our vibe coding or everything in FileMaker from the beginning has been if you could call it coding it was coding because we understood every bit of it obviously we had no idea what was going on under the scenes so i also see this as a parallel right like when we did something in filemaker and we made a relationship for something um all kinds of things were going on that climacal understands right but none of the rest of us do but we were able to use it at that high level well now we have cloud code And I can use cloud code, and I can put things in there, and I can see it, and I can see the result I get.
And I don't know what's happening under the surface, and I don't think it's fundamentally different. Okay. So I envision, I guess, you know, when I think it's Karpathy who originally coined that phrase, and that doesn't mean his definition was accurate either or great or well-matched. but I kind of feel like it's kind of, I got a vibe. I'm just kind of going to kind of wing it. I don't have a clear roadmap. I don't have a full PRD maybe. And I do feel that's how we, a lot of file maker systems are still, you know, built that way. We just, oh, I need a button that you lay out. Yeah, yeah, yeah, yeah. I guess it's a different spin on it, right? It's basically like how clear do you know what you're trying to build and how well understood are the tools and the business needs of what you're making.
And from that perspective, you're definitely right on. A lot of file maker systems didn't know that. What I love about it is even not knowing, they could still make a company really successful with the databases we built. Yeah. It's funny, you just mentioned something about not seeing or not knowing what you're building. The technology stacks that we agentic engineer, and we'll talk about that in a second, and the, that we vibe code, you know, I, we were, and our team was coding. That was our, that's our first language and, and FileMaker being a close second as far as what we do, maybe even a second arguably. But that whole concept of code introspection is something that we're doing actually. And we, maybe we'll talk about this on a different show, but we're doing a lot of r&d on and you know what what what's involved in that but what i wanted to talk about today is a couple things that are going back to yeah things that are easy and the first one is a true engineering because now like what used to be hard is research figuring out hey what module do i want to use what what concept do i want to use maybe i don't even know
those concepts um you know a company will release something like um like a message queue and everybody goes oh wow this is revolutionary when we've had that for you know decades but in our in our ecosystem the file maker ecosystem we we don't use that kind of stuff very often and i want to talk about some of those concepts that we can start to but just by having a um a little bit of awareness about them we can actually build significantly better code and it's not so much not so much about the the little pieces of how things work but the high level concepts because we again as you mentioned we don't really need to know those little pieces anymore we need to know conceptually hey this is how i'm going to tackle this problem right and just going back to your vibe coding have you found when when your llm gets um when you start to rage code a rage vibe and and you step back a second i've never heard this term and i love it so i yeah i i've done that sometimes but i do it intentionally and there is some there is some rage like anger like you're like you're yelling at the lm because yeah like i'll use acronyms like ffs and wtf and things like that all caps lots of caps yeah and they actually do
have and there's some studies that show that does have some effect because it increases the sort of the weight or the the importance of that that that term or whatever you're talking about but going back what do you find that you like what what puts you into that i'm getting into that rage mode now because what didn't the llm do what didn't it understand from your infer from your intent um gosh and then i've been doing so much with it even in the last days um missing a direction missing something that we already had working so like just now i was showing you something and it was a really cool little animation thing that it did before and then all of a sudden stopped i'm like why um or after a lot of conversation about some particular topic and making sure that we actually really are on the same page that it doesn't do it so it's basically like repetition repetition of something right but then i get the other side too like delight you know all these things that you know i can say what i want and have a conversation plan mode is huge huge huge huge um uh going in and out of plan mode all the time um yeah but i guess you're talking about the negative part i'm thinking about the positive stuff um yeah reach coding well that's that's what i'm getting at though like
the fact that you can actually truly engineer you can think about a problem we can do some research we can come up with some potential solutions yeah um the promise is that we would try a whole bunch of different things and because it was very inexpensive to try these these crazy options yeah i don't from my experience of watching people i don't see people trying a lot of things i feel that there's a lot what do they get sunk cost fallacy lost what what is that it's a lost cost sunk cost fallacy that one yeah i still feel that that's a human trait not an ai trait and i don't think everybody when they're coding is is putting the time to say you know what let's rip this all out and instead of trying to reconnect re-tack the boat and get it back on track again that makes that's when you get a lot of slop a lot of mess and do you do you periodically do that on your projects because i do like after a whole bunch of little small changes i'll say okay start fresh refactor think about the whole thing what you know talk about all these things that are a mess and then how would how would we do this now if you if we knew everything that we know now at the beginning and that's one of my first points here is one of the first thing we can do now is we can not try to build a v1 not try to build a proof of concept or a v0 but what about building
a v minus one v minus two so instead of going and saying hey i'm going to build something and i'm going to put all my research and this is really a hard one for me to get my head to you know my natural tendency is to want to do a ton of research but just go for it and this is where the quote vibe coders have a significant advantage over developers over programmers because they just go for it just and yeah and at the end of the day even if they've built a a big dog pile of stuff code in there because it's been ripped out it's been new pieces put in and they have no introspection of what's going on under the hood, you can point that whole thing at another LLM and say, hey, rewrite this, clean it up.
Yeah, yeah, yeah. I don't know. I'm going to push back. You know, my whole entire file maker career, I have started a project by diving in. Because I firmly believe that you can't, it's not possible to know at the beginning of a project the actual thing you're building. And so by starting and having a bunch of things that you can easily kill. Create a table, create a relationship. Do it as you're talking through it. It's like, what about if this? Do you need this join table here? No, okay, we don't really need that. So we just rip that out. It's like, oh, here we do need that join table. It wasn't there. So you just create it, populate it, kind of go on. Like what kind of a script thing here?
Basically the conversation with a client and live development, which is how I've always loved to work. very much is that kind of that vibe coding kind of thing right you're throwing yourself right into it do you is that not the way you've usually worked if you plan things more and think about things more well no i want to plan things out more what i'm saying is that that may not be better and this is a hard one for me to swallow but you know it's uh i think it's somewhat of a fact is there is some benefits to just going for it and and creating or building by the seat of your pants we did that in FileMaker for decades and we people still do um and I think we're going to do that even more once we have urgentic tools yep I don't think we'll plan things out I think we'll just hey I need this and who cares what joint tables what tables it makes and well before it was really expensive to clean up after you delete something correct it's not refactoring is cheap and so this is one of the things that should be on your list right it is on my list yeah the ability to refactor so the ability to plan is the first one right to to engineer to plan that way yeah we got the little our little yeah i might do that i think i might have to my turned off yeah yeah it's kind of funny as you say that because like i said a minute ago i really do
go into plan mode a lot which then forces me to not just be did you do that from the beginning or did you starting to do that after you made all the mistakes oh uh i mean they didn't have plan mode you know six months ago so yeah i i um i code like i would play jazz there's no such thing as a mistake if you play a wrong note play it again and call it jazz yeah that's right repeat it yeah um that's it bend it up a bit or something yeah well i don't think i would say it's for mistakes i think i would say i i've real recognize that i get much better results if i go into plan mode at various stages and then it forces me out and then it i get a bunch of little questions like do you want this here's four choices which one of these do you want i recommend this one and i'll have to stop and think about it's like i guess that does make more sense than what i was thinking or you know types of response i'm in there many many times i think in a session yeah so you had a list of things um but i want to look at of things that are that are easy now that used to be hard because i have maybe so yeah so i mean those are those are sort of high level organizational things right um one end is the planning and the other end is the refactoring those are those bookmark or a book and the the the all the other stuff the next one is is the
concept of conditionals um you know we can throw a conditional path into something and say you know if the user is if we are on dev our dev server if we're um if it's uh if it's me the developer or if it's on the north location instead of the south location we could do that before but it was a bit of a pain um now what we can do is we can take an organizational structure like a json object and throw a bunch of flags as keys like can access page x can do a thing y right true false number of total number of sessions per day five and we can take that concept and throw it throw it at our agent and it will now be able to create some code that we can release so we can ship more faster now because we don't have to worry about oh i have this thing that's i've have taken apart and accounting is going to see it and click on that button it's gonna i wrote a script that you know erases all the thing all the data so i can reset it each time while i'm testing it and they'll accidentally click it i don't have to worry about that stuff anymore so we can we can add a lot of those flags or gates um into our code and effectively even leave them there um we years ago we made a module called ham which is a headless authorization it's a i remember it's a
concept yeah it's a concept of basically a json object and it works so fabulously with with llms because it's like oh yeah i totally understand this because it's just a bunch of key values right so that's one of that's another thing there the next one is defensive coding the llms tend to overly do this a lot of times and you know you've probably found this yourself you're you're developing something and then you change and you know this is this is like version point zero zero zero zero one like you know 10 minutes into a project and the lm doesn't realize necessarily 10 minutes into the project and it says oh i see you've changed your mind on this you wanted this to support um the colors like the the noun of the color the name of the color like red green blue and now you want to turn it to a hex value oh i'll just add support for both of those now right and the lm throws up throws up the support and it's like overly overly guarded Just in case you go back and change your mind, which you're never going to do because you're in development mode.
And you can kind of tune a little bit out of that with some skills, but it still tends to... It's not gold plating, but I see what you mean. No. Like overly defensive, would you say? Overly defensive coding? It's overly defensive. But having said that, you can also take your regular FileMaker code, which probably isn't the best. Like, I worked with a developer years ago, and he was very meticulous, right? I worked with a number of different people. And, you know, in our careers, we pick up these different things. I used to be an electrical engineer, and my first four years working in the lab, the senior engineer, we did RF engineering. And I said, okay, I built this thing.
I built my project. And he would look at it, and he said, what's the value of this capacitor? And I'd say, you know, 20 picofarads, 20 puffs. And he goes, I want temperature. temperature it's working totally fine well temperature coefficients are a really important thing right yeah but this is going to be another space yeah exactly right and he would rip me to and then have you checked the price of that and i'll lock all of this really taught me the fundamentals of of of engineering or speccing something out and i hated him for it but i've since made up and i every couple years linkedin i go and send him a thank you um but nonetheless um we can do now is we can we can say to our code you know look for errors or look for ways of making this more robust or every time we have a failure in something we can point it we can throw it at at our whole code base walks through oh i see you're running perform script on server without weight and you're also doing this it's possible that this thing here can if it gets slow where it's if it slows down you have a race condition all right and suddenly the our llms are going to be able to see that or or agents that can see that that race condition way better than we ever because we have to understand that concept of a race condition right and if you've never
made multiple thread type applications define that for those yeah for those uh out there including me who maybe not don't know that term or don't know by that name race condition yeah so so a race condition is like a running race a speed thing and basically when you have two things that can happen at the same time and one thing finishes first before the other one that may cause some type of adverse uh reaction like it could lock a record or it could uh grab a value before it's incremented for example you have something that adds a number onto the invoice right so they they happen at different times yeah so if the output of the thing that's slower is required for the input if the thing is faster or something that's right they're coding they're they're dependent and because of that or or one thing locks up the other thing as well i'll talk about that one in a second so that kind of stuff for that type of defensive coding we can do really easy now we never could before but you have to be thinking about it and fortunately the lms for a lot of these items the lms will start to um they'll they'll mention hey you have it looks like you have a race condition it's like oh it's teaching me right about these things um so you you suddenly you don't have to be the senior engineer anymore which is pretty cool um another big one as well
and you mentioned something just um at the at the beginning of the uh of the of the podcast you mentioned that you built something and then you changed something and then something else broke right and that happens in a ton of ton of um ai code sure and regular code yeah and and um It used to happen more when we reproduced, like going back, say, late 2024, early 2025. Most of the strategy was you would reproduce the entire piece of code. Almost like you go into ChatGP, you would redraw all of that code. And depending on the type of harness that you have, the agent will either target a specific line, less likely to change other stuff, better option. And that's what they all do now.
like a diff patch, or they rewrite that entire piece of code. Whenever you're rewriting the code, there's a higher probability that it's going to rewrite that. So how do you prevent that? And this is something we don't do with most vibe-coded things, but we do with agentic-engineered things, is write tests, right? So TDD, or test-driven development, is a concept where you're basically, true TDD, you're writing a test, and you're saying, I need this invoice counter to increment by one every time I create a new VAT record, okay? So the test will be check the initial number and then check the number and did it increment, do the thing and did it increment. And you haven't written the code for that yet.
So it's going to fail. The test fails. So it's red. Then you write the code. This is how this would work. You'd write the code and then you would run it again. And then suddenly the test pass. And then you would say, yeah, but the number can't be negative. The number can't be, it can't exceed six digits. It should wrap around at this point. So you'd write tests for all of these little weird edge cases. You can do the same TDD with virtually any piece of code now. So you can do that with even like HTML and any code that you're going to render in the browser. You can have, there's test suites for that. There is unit testing, which is the running of all of these little mini tests put together.
There's integration testing, which is how this thing works as a system. There's UI testing, which is let me actually run the thing, click on the parts. Is it loading? Is it working? Every single thing you're talking about has been like not possible in FileMaker pretty much. Yeah. Yeah. But it's been possible from the beginning. Or not easy. It's not easy. Well, some of them have been just straight up not possible. Like, we, there's been people who have made attempts at test suites for FileMaker, and we have an internal one that we use. And it was never getting maintained because it's brutal. For every script I write that's 20 lines long, I'm writing 60 plus lines of test.
And it's like, wow, because I have to write, I have to test all of these edge cases, right? There's over, under, this, that. And it's really, really brutal. well our llms our agents love doing that that's not a problem at all right so we can say hey i don't have any test suites for this you don't even have to know anything about the framework yeah and if it says well i don't know how to test do a test suite with that well i won't usually say that i'll come up with something but you can just say that to your agents and it'll create that set of tests and you can do this with file maker scripts and you can have a right file maker scripts you can have it yep you can you can if you really want a great uh vibe this is an awesome project for anybody is go to your llm and say connect through the odata um um first of all here's a copy of all my scripts right if you don't have a agentic framework that can see the scripts give it a copy or save as xml here's my yeah something like that right and say i want you to test the snot out of this thing and here's how i want you to build the framework i don't want to build all these ugly tests inside file maker i can maybe put it in a second file better why even bother doing it there right quite honestly let's put it in some standalone file i don't even care about the language with what it does hit hit the odata api run the script give it the parameters
and say any scripts that are not easily testable i want you to add some extra arguments i want you to either exit with the script with the result or some some error trapping and so on and then Then suddenly you have all the FileMaker, and somebody will at some point create an entire test suite that's more or less AI-generated. That's a great opportunity or an idea there. I lost you for a little bit there. You didn't lose me. I was hearing you, but I have a cold, and I didn't think that blowing my nose on camera was befit. of a person of your stature yeah that's it um i'll try to keep my fingers out of my ears and those so well i mean i got a mute button so um can you show me the list that we started with or just before we started because that got a lot of things sure yeah yeah i think for the listeners i can uh let me let me i'll just let me just condition it off here just a sec all right so here's a few other here a few other little things here so we're on defensive
coding and test driven development error handling error handling is a kind of an interesting one and let me show you what i mean by that um we can just say to our ai uh trap for some errors but we can do something a little bit different i'm just going to pull up a slide here quick for a second and let me just see if i can find the proper one and um one of the things we can do now that we couldn't do easily before is create really really rich rich errors and i'll show you what i mean by that all right so here is a simple result for an error right and you know if you're doing this in your system today that's awesome like you're actually creating real error objects that have some type of code typically number uh coder can be text code in this case inventory insufficient a message that's human readable and a boolean that that indicates did this thing work sometimes you combine that with the code right so that's something you can you we can we can do but the beauty of this is now we can create an error that looks like this and for those people who are just listening the the first error was a json object and
it was yeah three three lines three lines yeah three keys success error code and message yeah the second one is a rich message so it has it's a bigger object let me just go back there we go It has a sub-object. Yeah, it has all the same keys. Yeah. So it's backwards compatible, but it has a ton of other stuff. Now, why do we want to throw all this extra stuff in? The request ID, the suggestion, the documentation, right? All of these things that the LLM can fire into your code easily is because now when we're debugging this, we can throw an agent at our debugging process, and it can see this, and it can zero right in really quick. So that rich error suddenly becomes exceptionally useful in your system rather than a simpler error.
Yeah, in other podcast episodes, we've talked about a system like this that can actually read all of these error codes and then go back and figure out where in your code that error was caused for that user. And then maybe even fix it, which is some serious next-level stuff, but really cool. But anyway, yeah, that's definitely aligned with that. And if somebody wants to get started with that, just literally say, create a rich error code. That's going to be your sort of buzz line there, right? Create a rich error code with lots of information so I can use this. Five word prompt. And even if you're not having the alum do it, the human can see it. Oh, it's this particular invoice.
Oh, it's Jennifer's machine. There must be, oh, she's on version 17 or whatever that is. Right, right, right, right. I mentioned earlier message queues. This is something that is a really big thing in applications that have to scale. We're building a new product, another product. It's a companion product to our Clay Studio. And we'll talk about that at a different time. But it has message queues that are designed to support 100,000 per second type events. right so that's a crazy number of business the system is designed to scale right and it's a whole different you have to sort of think about that from ahead of time and say okay this is where the pinch points are rather than running into them right um so message queue for everybody is basically it's a simple table that if i have a bunch of stuff to do and i only want to maybe run one thing at a time in those things for example i have to uh do an api call to a mail server and that has rate limiting on that i can't send too many emails at a time so that means i have to queue up all of those messages if i happen to do a batch of 10 000 found set right i can't
fire that off to to my transactional email provider because they'll they'll they'll maybe lock me out depending on how the data structure a simple example so the message queue basically takes and by the way the email is not just the message the message can be anything it can be create a record delete a record it can be any any kind of process it doesn't have stuff i've done it's actually just communication between different agents even absolutely um so the idea here is you have a simple table and you don't you don't have to even really understand it but just so you so so people can can sort of wrap their head around it the idea of a message queue is you have a table and then you have a a workflow or a thing that has to happen send the email delete invoice run run report generation and then you usually sometimes those messages messages can have a schedule so i want to do this every day and that does message usually doesn't delete from the table or if it's a one-time thing i put it into the table and if if it tries to send the email and the email fails it might even have a retry field i can retry this up to five times before i fail before i error so you can create these it's not like a dual system in there it is it is and you
can also you can build this into an even more complex thing is um to say after i send the email i want to log so i want to call my logging routine my logging script with the results yeah so that now you say what do i run next after a given a given state what do i run next and after that send email state i run something else when you start building it out like that it becomes what's called a pipeline so there's a little difference between a message queue and a pipeline a pipeline is a bunch of messages in a queue the pipeline is a little bit different so that's something that's that's really really cool say okay well how can i use that in my you know we build uh we build coffee tables and we use FileMaker to run our system right anytime that you have a system that's running and it starts to fail for some reason and you have to go either in and retry it or too many things happen at a time like running reports can be pretty computationally expensive on a machine so maybe I don't want to run that report every every every time somebody clicks a button i want to throttle it right so there's concepts called like debouncing or throttling and that'll maybe rate limit those types of things so these are all sort of sort of buzzwords if you will that you can start to incorporate into your system but if you
know that there's a way of solving this problem you'll be able to prompt your agent into solving the problem rather than letting the agent lead you if we think of it that way yeah i like that now we get to two really interesting things a couple of things that i feel sure a lot of people don't know you know they're not hard to build but it's so much easier now yeah i was just looking at the next two things on your list is what i'm talking about yeah i'm gonna get i'm gonna let me just pull up one of those here and the next one mutex uh actually i'm gonna go idempotency first oh okay all right yeah i've been seeing that term lately yeah and you'll see the llms throw it out And I swear, you know, all these LLMs are everybody's, you know, they're all, first of all, they're all measured by benchmarks, right?
As we know. Yeah. How would you pronounce it? Idempotency. Idempotency. Yeah. It was different. Yeah. It definitely comes up in a lot of spell checkers. Yeah. Here's the concept is when you have a system and you run a process, you run some kind of, you have a script and the script has 10 steps. First step is it creates an invoice. Second step is it calls another subroutine that takes items out of the inventory. The next one is it charges a credit card. And the last one is it logs it and sends an email the other way around. Right. So you have that workflow. Well, what happens when it's taking something out of inventory and the record's locked? Oh, yeah, we have record locking and management that way.
but it still fails right if somebody else is using the record if some other system is doing that so we need a way of of fixing that um so we want to rerun we want to rerun that workflow and not have it take the inventory out twice not have it send the user if the email failed but and we click it a couple more times the button we don't want that to send the invoice out too many times or charge their credit card a bunch of times right so the idea here and this is just a graphic on the screen for people who are listening is you have a button that says send a welcome email it runs to the server and then when every time a user clicks the button it sends it sends the email and everybody has one of these in almost every file maker system they got some simple workflow that oh you just click the button on this screen it's a big blue one here i made it bigger yeah right and it does something communication or whatever yeah yeah yeah yeah so by adding idempotency you basically can click the button a whole bunch of times but somehow the system has remembered that a successful email was sent to the client and suddenly you have this way better experience for the uh for the end user like the client uh on that side of the person i mean in final maker we would have solved this by
like having a date having a timestamp field in the customer record that says date you know timestamp welcome message set or maybe that's an error trap yes i've sent it yeah yes or is sent right so i would always yeah and that's exactly what this is but you can now this looks like it's more than that because you've actually got you've actually got a looking at the chart you've got something in the middle right a server that's tracking a key store that's actually tracking a well this key store here yeah yeah yeah your time stamp that that is your time stamp so basically you're remembering the state of this thing that's happened so you have this is another table though yeah maybe well it can be a key it's a field it's a field in somewhere so in this example here this image is a user on the left clicking a button and the user on the right receiving two emails right and then when you fix this problem the user on the left clicks the button twice we remember in the server we have some state there whether it's a timestamp a boolean a separate table of what got sent somehow there's a piece of information that's in in the server that indicates i shouldn't send this a second time and that's the uh that's the main that's the main concept there okay so if you even if you can't remember the word if you can remember the concept i i don't want this to
happen i want to make this this system idempotent then yeah i i really think that this is something filemaker developers have been doing all along and did it maybe know oh they can absolutely but do they have been i have been right they have they have been after some complaints absolutely right but i can guarantee that blue button didn't just naturally remember all of this stuff somebody clicked it twice probably yeah right and i'm i'm sure that i've listened to some people gonna say yeah yeah i got it i got a few yeah i guess i'm i guess i'm just thinking about like what i would do i mean i've got 40 years of development experience charles uh yeah there's certain mistakes i stopped making a long time ago um and there's certain other ones that i continually make whatever and and hopefully that's one of the the benefits of what we one of those things that we can do today is not make so many of those same mistakes yeah but it seems like in that particular example you'd actually probably want to make sure you're testing and you're prompting specifically builds the system with that in mind because it may or may not automatically do that correct if generally most things don't right it doesn't always do that if you're planning it out you can review your plan and and you know beat up your plan a little bit with with various
sources or agents and then you know you might discover that and this is one of the things that makes an agentic engineer versus a vibe coder yeah right this is a very subtle difference that's a good yeah that's a really good like uh i wouldn't say dividing line but a trait it's the knowledge right it's the knowledge of the system and i think it was i mean everybody can i think everybody even if you're not technically minded you can probably figure out how to change the oil in your car like okay there's a nut at the bottom i pour the oil in at the top i don't do them at the same time right that's fundamentally an oil change yeah make sure you put the make sure you put the uh you know the container at the bottom to catch all the oil yeah yeah but i mean that doesn't that's not even needed for an oil change but that's an experience thing right how do i undo the nut without getting oil all over my hand that's something that's a trait that a mechanic knows and somebody who's a little bit more skilled right but they've probably undone that not the first time it's like oh freak it's running all down my arm and my elbow and you know i smell like that for the rest of the day so you change the oil in your own car do you have no no i don't even get out of my car when i change the oil i pull up they come up to the door and that's it yeah my brother was an auto mechanic
but i think i i'm trying to remember if and how long i've changed the real in my own cars a long time anyway you know i have a i have a full set of suite of tools and a great garage for doing that my son does that stuff but i don't i don't bother i i ain't got no time for that so all right next yeah i like this one and here's another great term here's another great term mutex or my mutex yeah too so this is kind of a this is one that's super file makery like the other one was super file makery as well right because they almost all relate to workflows and systems and um so the concept of of mutex is that when we're running some kind of thing something that for example takes the inventory out of a system we generally want to run one thread for that thing so if i have something that has high volume and we got six locations and probably everybody who's built really big file maker systems has run into this kind of a thing yep and people are pulling stuff out of inventory how do we truly accurately control that inventory and know so many items have been taken out or banking is another common one of this anytime
where multiple sources can be potentially manipulating the data or we can potentially get multiple threads, and this is the same thing, but in a different spin, the same multiple threads of manipulating that data. So what the mutex does is it's mutually exclusive. Mutex. Yeah, I think that's what it is. Got to be. I think so, yeah. And basically, the gist here is that you allow only one thing to do the thing that you're supposed to do. This looks like just straight up transactional processing. very similar yeah but it's workflows as well like transactions we think we still transactions we associate with a record usually but a workflow is the same concept i don't i wish i was to me i always thought of a transaction it's kind of like a bank transaction or something it's a whole set of things it's not it's not just a record um that you're making sure that that record gets edited but like in your example here at least in my mind i've always thought. You click a button to create invoices, to create an invoice. It, you know, looks up a bunch of products, checks the skew of those, checks the quantity in stock. Or yeah, available.
Then, you know, creates the line items, rechecks the quantity in stock to make sure that someone else didn't check it out and make sure that they're correct and then commits a transaction. otherwise it undoes the whole thing right yeah it looks like it looks like your chart here yeah it's it's the same same concept we do this all the time it's super file maker like yeah yeah but it is uh that concept as a as a programming primitive if you will is is has a name to it yeah okay and by understanding what that thing is we can describe it better you It's just like having a better vocabulary of terms there. Yeah, I think all of these things are going to be filing under all these things we've been doing along as FileMaker developers.
Now we can have fancy terms for them, use them with our clients to make sure we seem smarter. We should come up with a list of those, Charles. Except when the clients get confused, like the whole benefit of filing. That's what we're here for. The benefit when we can put things in plain English. Anyway, yeah, I like this. It definitely makes a big difference. So where does this come in with AI? Is this also one of those things that you want to make sure is testing or make sure you're... Yeah, well, it's something that we can say to our system, hey, I'm having this problem. It only happens once every 10,000 runs. A number of years ago, I was doing a consulting gig for Dell Software.
And there was a company that Dell had bought, a software division, and they ran their own FileMaker systems. And they had four, I think, FileMaker servers. And at the time, WebDirect only scaled up to, I think, 50 users. And they had about 1,000 users, sales agents. Well, 50 concurrent users, yeah. Yeah, yeah, concurrent. So I built a server synchronization system that synchronizes these servers. And they had a lot of traffic, right? Because they literally have an average of 100 to 150 people on it online at any time. They're all hitting all of these similar accounts and things and whatever. And every three days, a piece of information got screwed up. Yep.
And like, holy cow, how do you find that, right? Like, that's a hard thing. You know, that took me a week to track down. I knew what it was. it was a hole in the and um i visualize it like a like a deck or something that has a little slot and you have you know synchronizations you know the expression is two hard things naming in programming is naming things and and cache invalidation which is effectively sync yep sync is can be really really tricky yeah for sure and two ways you have these demarcation times right but even when you set the demarcation time to the next physical script step there might be some time that's elapsed there might be a tick or two that's happened in there a microsecond 20 microseconds or you know millisecond even right so you have your audio just cut out test one two i still don't hear you i am back all right so all right i'll just just go back here so you have these these demarcation times using an example of a sink and maybe people at home can sort of uh um wrap their head around something similar um similar concepts where there's suddenly
there's this little tiny tiny millisecond or less space in your function that's something else probabilistically at you know 20 000 transactions a day over three days you know or something like that or over a week you have a hundred thousand transactions that it just you know one one shows up yep all right how do you find that right like how do you go and and find that little thing you really need to start to understand some of these concepts but if you can say to your to your agent hey this is the problem i think it's a race condition i think it's it's um it's a idempotency problem where something else is writing there or maybe it's one of these things or maybe it's something like that i use a lot of vague terms with my with my llms a lot like i don't usually say a statement i put a question mark like and that and that way it doesn't bias it i find anyway It doesn't buy us as much into coming up with an answer.
I try to put a question mark, but it almost always ends as a slash because my typing has gotten really bad because it can already read through so many errors. I just let it go. Who cares if I misspell something? Not good, but anyway. I get this, right? This was hard, and it's now easy. yeah putting like building higher quality code is now significantly easier and it's not that the first iteration of the code is maybe super high quality it will be probably better i'm gonna go on a limb and say that it will be better than what you usually write um the first time like the first round unless you're really really strict but the iteration now when we find the error when we're looking for the mistake and we're we're we're creating a version 1.1 or we're doing that little edit from a bug report is going to be significantly better now right because we're not going to be guessing as much right we significantly reduce the the amount of guessing that we do there yeah well yep true the last one is something that i think some people in the file maker land are doing already and sounds more genuinely new so this is add an agent to your domain
yeah so that is the next one and it's to i'm just going to get rid of this here and it's to um to add an agent into your administration workflow so every time you have to do something like oh i got to call chad he's the it guy who's runs the system and he goes in and he fixes it for me right that's probably a bug in the software that he had to go fix right and he usually goes into his admin workflows to do that but now you can create an agent and it can connect to file maker various ways mcpo data whatever sure that's that's almost trivial now but the agent can go in and it can it can do those workflows and i wanted to show you let me just see if i i'll show you another agent let me just see if i have this running here just give me a sec there and it is a um are these cron things or pardon me cron agents or prompt do you say sorry cron cron jobs like oh oh um no no these are these
are just a a chat widget that's talking to my data but from an administrative perspective i'm looking at it at fixing issues diagnosing things and unfortunately i wanted to show you one one more but i don't have it up and running here that's probably going to take a while um so one of the things we're doing is we are we are building um in our administrative and our products that we're building we have you know there's usually an admin or something i i need to to do this thing a special request support thing that i don't have built into the main software so what we do now is we're putting an agent a chat agent built into the software and the admin panel So this is another step up from this, this one here.
And the idea there is it has access to all of the data, all the tables. It has, it understands, understands the layouts and the things that are on the administrative layout that I'm looking at. And by doing that, let me just see, I'm just trying to see if I can get mine up and running here on the side here. By doing that, when I have a support issue or I need to make a change to some fundamental data that's in the system, for example, we have an email template, and the email template's stored in a record, and I don't have maybe necessarily a great UI for that, or I just need to change the language a little bit so it's a little friendlier or it includes a disclaimer at the bottom.
I can now go into that that admin agent that I've built and prompt that to to make that make that change. And that's kind of the idea. This is a little this one's a little bit harder or a little bit more advanced, I guess you could say, than than these other concepts. Well, it's of a different color, right? Because what you're talking about here is is an agent that actually actively manages data in the database. rather than, like, you put it really well. You don't have a good UI screen for it. And it can use AI to determine if a thing is right. So if you go into a letter template, and you can make a mistake and, whoops, take out a couple of merge fields, an AI agent is less likely to make that error.
Correct. So that would be a really good use case in your example, anyway. And if you have a log, if you've been doing the error trapping, And you say to your agent, create an error trapping log, you know, come up with your own system if you want, if you don't, if I don't have anything in my system, or you might know of a framework for error trapping or something like that, that's in framework that somebody's created, but if not, don't worry about it, it'll create a pretty decent one and create this error trapping log. And now to my agent, and again, we build the agents and new stuff, we build the agents right in, older stuff, it sits external and it talks through some type of an API.
But you say to the agent, go check out the log and summarize these problems. Sorry, these problems. I'm thinking of a support log. Summarize these issues. Look for problems in my support log or my log in general. And give me ideas on how I can fix it. And if that agent can see your code now, that's a massive loop closure. Yeah. Yeah, yeah, yeah, definitely. so that's uh so this is what you're researching it's testing implementing how are we doing for time i think that's the whole deep dive yeah yeah yeah we're close to the end because we're i think we have let me tell you i'll tell you what to start in future episodes oh yeah let's let's uh let's come back and i'll tell you about some of the research we're doing i'll tell you the topic though um we're doing a lot of R&D on ways of introspecting data so what we're finding is using code as a first example you mentioned that you're vibe coding a bunch of stuff but and I see this all the time and nobody looks
I don't look at my code and my vibe code anymore I used to look at the inspect stuff line by line but I find that's almost impossible with the amount that we're generating all right and you So when we wrote this stuff and typed it by hand, I already knew what was sitting up in my head. Now I have to zoom out a couple orders of magnitude there. So the gist is, how do you go about taking a massive code base and understanding what the heck is going on in there, aside from just asking the agent? You can do that. You can ask the agent, but I need to. Testing doesn't tell you there's cruft in there. Yeah, an adverse agent, as I do. Yeah, you can do that. So you can ask an agent to, say, go through there, right?
No, no, an adverse agent. Adverse. Yeah, yeah, yeah. So like what I do on some of the projects like that is I'll do all my development in cloud code, and then I'll have, and it all gets to a Git repo. I've been using GitHub for everything, basically, and then deploying everything on Fly.io. Man, we'll talk about that. I've discovered Nirvana in terms of like so many different things coming together. We'll end with that, actually. But then I'll have my OpenClaw machine, my Hermes machine, which is running Codex, will take a look at the repo and specifically say, find flaws with this. What's broken here? And very frequently, it'll find things that are broken.
And so it'll make a record in the communication table, the message queue, whatever you call it. send it back to cloud code cloud code will do a check and say oh you have a message from your adverse agent to fix something go fix it report back okay it's fixed and then uh and then hermes checks it again confirms that it's right so that's kind of my cue that's only really for the larger projects but i have definitely used that and it's caught some really important things well that's a that's a whole other whole other topic as well um i was just on a call with somebody and they have their system api key vibe coded into the front end of their application and i can't like i'm not an env file pardon me not in an env file but like actually no because that requires middleware right um so i mean that's one of the things why why you know people say well now you can vibe code an entire app where does clay studio fit into that And it's, well, first of all, we have infrastructure, right?
So there's zero deployment. There's version control. There's environments. There's security. There is known design code patterns so that you're not vibe coding. You're not exposing a whole bunch of things. And if something does get found, we can patch it really quick because we have a community to help us out there. and that's one of the things we're we're that we're we're shifting to we're really providing governance we're providing infrastructure very similar to FileMaker in that sense but for front ends and now we're finding like our team is not even using our our editor for we're using mostly MCP because now we can point the MCP to other sources of data like Notion for our our research and things like that and by doing that we take advantage of the best things of our of our platform and the fact that i can go boom boom boom and i have a system up and running connected to filemaker hosted and then i use a plugin like genie to to connect to the uh to the back end and i've generated the entire system in relatively short time genie is a whole other topic too you and i and bruno will talk about that on an upcoming episode i'm trying to know about that so yeah so that's um that's those are um that's sort of like the the the gist there
is how do you see all of that information and yes you can use your your llm another agent to look at that but how do i peruse it how do i understand the flow chart or something because it's not generating that it's not looking for the flow chart it's not generally and as you explicitly prompt it it's not necessarily looking for the optimum stuff and i find it's not a great way of of seeing into into code so what we're doing is we're researching on ways of taking that large corpus of data we distill it and then we project it into various views for various users so these are concepts of dynamic interface you know in FileMaker we have a few Tony White generates some pretty cool infographics and he takes this big body of information and infographic is one of them, take a big body of information, and it's distilled down into the stuff that I personally want to look at. The infographic for me might be different than the one for you. So that's the fundamental concept, right? The information that somebody in HR sees from this application might be totally different than somebody from IT. They want to know what APIs is it connecting to and so on. HR says, well, what documentation gets filed along that workflow? Totally different perspective
of the same piece of software yeah so that's something that we can come back and definitely talk to because there's some really super cool stuff in there yeah cool all right i'm gonna end with one little thing about my my workflow now and i'd love to get your feedback on it so um there's a ton of stuff that file maker can't do with ai integration so i've been teaching classes for a long time on how much you can do by adding a page of code and into a file maker system and and then have an API call, one API call. So where's the zero shot, right? But there's a huge amount you can do with that. You know, read a PDF, you know, chunk it out, chunk it, embed it, put it into a table and allow, you know, search on it, create a photo, interpret a photo, check a record for completeness.
There's a lot of these things like that. But if you wanna do something like, create a report that has circles and arrows and charts, whatever, and have it reference data that's not in your database and or download data that's not in your database by going out and finding it. Create a relationship of tables that don't have a relationship in your database. That's not something that's possible to do in FileMaker in any way that I can think of. So I've been building these apps. You're smiling like you think maybe there's a way Anyway, so I've been building these apps that I deploy on fly fly.io, which is amazing Really inexpensive. It's a you build a container You're basically deploying a little Linux machine that either is continuously running or runs when you call it And then pauses and it's it can be free. That's for a small service. That doesn't do a lot of money. It actually is free. I I have 20 different apps running in it right now, 22, I think.
And my bill last month was $13, right? And then production, some of them, so inexpensive. But what it can do is you'd have a chat, a regular old chat, and a conversation with your data. So you say, you know, give me a, you know, look at all my invoices for 2025 and summarize it by the top sales rep, but only show me for these particular product lines, right? That would be hard to do in FileMaker. So what this process does is it actually, it has all of the data synced to a local SQL database, in this case, DuckDB. So we're talking about, this is not necessarily new. Some other people are doing this. Like Marcel Marais, he's been advanced on this. So it syncs all the data there.
It keeps a cube, which is like on there, which is like a data cube of a bunch of that same data in the invoice table and all the other tables cross-referenced so they can easily do it. The report runs on the DuckDB data. So if it's a million records, it can slice and dice it instantly, which is impossible to do if you do an MCP call. It doesn't matter how much, you know, it'll process whatever, a hundred records or a million, kind of the same, you know, time almost. And then create the report and show it to you. And then say, oh, this is great, but I want to add this other thing and this other thing. And then I want to say, okay, great. Make a PDF of the whole thing, right?
So now we're way beyond what you can do at FileMaker and pretty simple. So this is a thing that I built that's in production. It's called Pythia, P-Y-T-H-I-A. Really easy to deploy, but I wish it was easier to deploy because it requires a fly account and it requires some way and it requires you do it, you're doing your development. You're maintaining the source code, actually, in Cloud Code. So the point of this application is not that you can do all this stuff. It's that you have access to the source code, and if you wanted to do something else, like, oh, I want 3D charts. Oh, I want multiple databases. Oh, I want whatever. You just code it in, and it gets added to the code, and you can do whatever you want to do.
Yeah. This is the thing I'm most excited about in years that I've done because it's such a good little companion. in and then it just keeps the data tables in sync one-way sync right they're not the hard kind through a couple of different methods for that and then it doesn't have any limits like one of the other things you could do is you could say you know download nasa weather data and cross reference it with these reviews you know cross reference this with national holidays in canada and u.s and it just goes oh okay i'll get that and it goes to the agent on the well that's the nature of that's the nature of vibe coding right yeah well it's more than that well i mean it is that but those are things you can't do with filemaker right filemaker can't go out to nasa download data store millions of records and cross-reference it on the fly right but this is something totally possible with this method so it's interesting because what you've done is is the first part of is called a fast function as a service you've created function as a service is a system i can call and it does some function and comes back or maybe not no i have a name for it yeah and um but but by having it be a little bit more agentic and now you can that workflow i think you're gonna like our next product that we're we're coming i can't talk about it too much
but so i'll tell you i'll tell you after the call you know a lot of people well i'm doing a class today um and i'm doing like a uh landscape of all the different file maker things out there and there's like 30 40 developers who have published tools for different aspects of ai and these are just this these are three more tools i'm introducing that one is called pithia and i have two others in different areas um and they're all going to be open source uh free and then what i'm hoping to do you know my my angle my business is to help people integrate them teach people how to use these these agents it's i don't think it's actually for for a regular file maker developer to really properly do this you would need a um a github account and you'd need to set it up to automatically sync to fly and just doing that in um cloud code is going to cost it's going to come with a lot of mechanics and a lot of stupid questions and a lot of how do i do this and whatever because your machine might not have certain things installed in terminal the process in windows is totally different and so in a half an hour we go through all that crap and then it's working and then once it's working it's just working you know and then if you want to unplug it there's nothing in file maker there's nothing to delete it's just oh this
app isn't going to work anymore poof gone and i've always liked that concept of having the light footprint i do things are good in certain places meaning business logic if then that if most of business logic is in FileMaker, which virtually every FM system is, I think it's good to keep it there. Unless that business logic is a totally separate standalone system. For example, if I have a system that can purchase online and then it takes care of payments and everything like that, then Shopify is great. Integrate that to FileMaker. So the business doesn't fully sit, all that business doesn't fully sit in FileMaker, then it's fine. But when you start having process or workflows that are distributed all over the place, then you start to have all of these other potential problems, I think, as well, to keep your head clear.
So your system, it sounds really good because you've separated that. This takes care of this. This says this is what I want. It makes the call. That thing does it. And then on the code generation side, you already have your workflow, your deployment pipeline. Yeah, and it's determinative, right? So it's not using AI to actually look and interpret the data. It's using AI to create a little Python program or whatever it needs to do to slice and dice it and then using a graphic tool to show it to you. Yeah, and it's a penny per prompt or whatever. So it's not a big overhead thing. But, yeah, anyway, I'm excited about it. Yeah, that sounds really cool. Well, it's been great, man.
I'm looking forward to our next episodes. Yeah, yeah. Let's plan something, and we'll talk about that data introspection because that's some really neat stuff. Yeah. We are really excited about that aspect alone even. all right charles it's always a pleasure likewise thank you sir
Have something to share?
Join me for a conversation on ClarisTalk AI.