AI Agents Are BREAKING My User Experience Flows!

• 148 views

In this video, I talk through some of the challenges I had with AI agents building out bad user experiences and user interfaces.

vlogvloggervloggingmercedesmercedes AMGMercedes AMG GTAMG GTbig techsoftware engineeringsoftware engineercar vlogvlogssoftware developmentsoftware engineersmicrosoftprogrammingtips for developerscareer in techfaangwork vlogdevleaderdev leadernick cosentinoengineering managerleadershipmsftsoftware developercode commutecodecommutecommuteredditreddit storiesreddit storyask redditaskredditaskreddit storiesredditorlinkedin
📄 Auto-Generated Transcript ▾

Transcript is auto-generated and may contain errors.

Hey folks, we're going to do an AI discussion. I'm going to catch up on some things that uh I have gone back over after maybe I don't know feel like it's been a maybe almost 3 weeks now. um hope not not a month but basically um going across the repos I've been building in and trying to bring some uh some common patterns back some common lessons learned and put that into a repository I have called Genesis that I use for basically scaffolding applications and then uh not only from like a I don't know like a purely what you know libraries and best practice ices get established for the code itself but also for the agents right like the the different instructions and things like that but this ranges like from all things right whether it's uh code style the libraries I use um you know

different CI patterns like that kind of stuff as well as agentic things but I'm going to talk about uh I believe the ideas I have my mind are all around agentic things or at least how agents operate in my repository. So, um, figured we'd go through that. Uh, because that was one of the things that I was doing this weekend where I went to go spin up yet another repository for something and I said, "Hey, it's been a little while." Um I was running this thing periodically that would go across the repositories and and do the same type of activity, but um I didn't automate it so that it would integrate those things cuz I want to review them before they become like a a standard I guess. And uh it was just something I wasn't keeping on top of. Like I was kind of periodically checking out the emails I would send myself.

But then it's just like one more thing to to do and then I don't do it. So um the that loop I guess has to get back to a point where like it can be automatic integration of like learning those common patterns and bringing them back. I just it's a pretty like critical step, right? Because if I'm bringing that stuff back as like a a core concept that I want all of my repositories going forward to, you know, use as a template. I want to want to make sure that's right. I want to make sure it's actually how I want to approach things. So anyway, um that was one of the things I did over the weekend and I figured I'd talk a little bit about some of what I was expecting it to show up uh in the analysis. um some of the suggestions it had and then also um some things I'm still going to try.

So, kick things off. One of them that I really think I needed some focus on was I have a handful of things that are getting user interfaces built uh primarily like uh web apps uh andor just like when I say web app sometimes just like a like a static site, right? And one of the things I've been noticing is that um I got I feel like I got pretty lucky with putting my um my database workbench app together which is a you know like a web user interface and I I feel like like I said I feel like I got lucky because it put it together and I was like oh crap like that's actually like I don't hate that it's a AI user interface and I feel okay with it And I feel like everything else has just been crap. Um, which is really unfortunate.

And even in like a more established app that I have like Brand Ghost, the uh it's it was like hit and miss. I'd go to get like an AI feature built and in some cases it would, you know, reuse the same patterns and things like that that I that we have in the app already. And in other cases, it would just like completely ignore it. to the point where I'm like I feel like you had to try harder to to build something that's not like what the rest of the app looks like. So, um what's cool about this though is that it's kind of looking across my different repositories and they use different technologies, right? Like I have a uh internal dashboard for Brand Ghost that's that's in Blazer. Um I have Brando itself which is a Nex.js app. Um, I have some static sites that are um in Astro.

There's some stuff in Vite. Is it Vit? I think it's actually called VET. Um, and then even like, you know, one of the the RPG variants that I have is a it's a 3JS app, right? So, like there's some UI there. Um, there was something in Expo as well. So, like there's just a whole bunch of different tech stacks. And again, I think what's cool about this is that I suspect there's always going to be some things that are, you know, tech stack or language specific that we can go, oh, okay, like here's a lesson learned next time you're building in one of these, like, you know, pay attention to this specific to the framework. The other part that's really nice about this is the exact inverse which is it doesn't matter what you're using because we seem to have this common problem across all of these, right?

Like I literally have evidence in my pull request history where there was just like rework of things getting done. And so I was able to show that to co-pilot um and have it do the analysis and say like hey look like across these there seem to be some challenges with getting user interfaces right like I would like you to go do that analysis see what's going on and then come up with recommendations for uh for like agent instructions skills whatever else right like really just to generalize agentic guidance and So, so it did. Um, and I think the the major takeaway was that it was saying that a lot of the time the user interfaces were being built sort of uh I I don't know a good way to say this almost like back to front.

So it was really thinking about like okay like what is my API contract which I think is helpful like thank you for for paying attention to that because that's an integration point but basically it was designing the user interface based on an API contract and so one of the things that really gets missed with that is like what are you as a user trying to accomplish in that user interface, right? what what workflow are you doing? What data are you focused on? And uh I mean literally what was happening across these different repositories is that focusing on what data shape is from the back end or or even if the back end wasn't built yet but thinking about just like the the contract itself and not putting the user sort of experience first was consistently creating user interfaces that functioned but they were awful.

you would go to load up this user interface, whatever it was, and it it was very obvious that like it's it's not it's not made for a person to use, right? you'd see like uh what's a good example I had um was doing like a deployment dashboard for brand ghost to make sure that uh with our blue green deployments that I can focus on like you know if something's ever wrong that I can see what's going on I can see like a timeline of things like I want to have this stuff very visible and so okay no problem and this one's in Blazer uh so co-pilot goes and builds it Great. I can see the like APIs and stuff. So, I can I can see that across what it's communicating with it's integrating. Great. And then I go to use it and it has a page of like 100 previous revisions and I'm like and sorry and not only that but above and below that, right?

So imagine these cards that have information about um you know the different instances that have been deployed the last 100 of them. Above that and below that there's information that I need to use to like understand the current deployment. So 100 of these cards meant that I was scrolling vertically for a couple of pages and then at the very bottom it had some like other things buried there. And so again, like it focused on getting the information that's available and I would, you know, as as hideous and unusable as the user interface was, I would argue in its defense that like, yeah, it was it was pulling data that was helpful. It was it's good information, but like what is the point of that screen actually, right?

like what as a user what am I trying to accomplish there and so just like you know one very simple example of where it was getting a lot of data but the user experience was truly just like it it wasn't considered um even to jump to something completely different right the tactical RPG um it was building a user interface that was like when you're done combat and you're like between your different missions It was dumping every possible type of like interaction you might do on the same screen. So, for example, your entire character roster. You could expand the entire uh paper doll inventory stat sheet for all your characters on the same screen. By the way, um you could open up like their skill trees all on the same screen. Um, you could you could see the different um they're called assignments. Like if you want to go send out some of your team members on background missions, so you could see all of those listed.

You could hire new recruits all on the same screen. Like just an insane amount of things. And again, because those are things that are available in the game, it just put them all onto onto one screen because there was no focus on like what is this screen for and what is the user, you know, hoping to accomplish on this screen. So without kind of like bel laboring this anymore um you know co-pilot identified that from the poll request and it was interesting like that's not I didn't exactly know what it was going to highlight but once it said that I was like oh that that definitely that's definitely consistent like that really resonates with me. So um what it did was couple of common instruction file changes. Um but a lot of the pathbased instructions are are primarily for things that are like text stack based or project specific.

So it couldn't do too much with that. But there is uh a couple of skills. One for like code review or basically when it's like self review. So, the agent is finishing up work and it's like, "Okay, I need to go check what I've been doing and make sure that I've been doing things proper." It's it's one step that happens when the agent is done before it wants to go push up changes. So, it made uh changes to that. And then another thing was that there is a UI design skill and the UI design skill does get used. I see it happen when I'm watching co-pilot. And the problem or I mean I just told you what the problem is. What it was doing with that skill was uh I guess there was no there was nothing in there that basically said like start with start with the user.

So it added a lot of extra detail in there that's like you know don't don't neglect that you need to understand like data contracts between a front end and a back end but definitely make sure that you're thinking about the user's trying to do. So um those two things uh we'll see like over the next little bit if when I'm building UIs if that starts to get better. I'm I'm hopeful of that. Uh it did call out that there was a lot of like you know composable user interfaces like a lot of you know central theming central styling like so a lot of things that historically I have been trying to push it in the right direction for so that's good but yeah the the user interfaces are just kind of trash in terms of usability. Um, okay. I talked way more about that than I was planning to.

Um, andor the drive to CrossFit was pretty quick. So, I think the other major one uh for me, and this still needs a lot more work. I'm not not done on this, is uh sort of like the the purely from the perspective of shipping code. Like, so code is done, right? air quotes, it's done from the agent and it wants to put it up for, you know, on a PR and then get to a point where we can get it merged. So, I've said this in a few other videos semi-reently that one of the things that I keep noticing is that if left, it will keep making things that go into continuous integration like more and more and more checks. There's no cleanup ever. There's no optimization. It's just dumping more and more and more. And so I've had a couple of different instances where, you know, brand new project goes from like a build in like, you know, 1 2 3 up to 5 minutes and then out of nowhere again left unattended.

Now suddenly I'm having builds that are 1 hour, 2 hours long. Like what what are you possibly doing? that's 2 hours long and it's like things that are we're we're writing we're running tests on like the tests for the repository and I'm like what what the hell? Um you know just like some of the the silliest things. Um so one sec. I just want to make sure this intersection. Um there's there's a lot of things that are like that and then when I'm looking at them I'm like okay like some of these things I can tell that it's trying to do something useful and in other cases I'm like you know it had a a one-off thing that it was fixing that it's like trying to permanently regression test against. And what I mean by that that's that doesn't sound quite right.

um it like when I say it fix something it's like oh I you know we had this feature I'm removing the feature so that feature doesn't exist and so I'm going to write a regression test or like a a category of a whole classification of regression test that makes sure this feature is turned off going forward and I'm like that's not that's actually not useful like you only need to check that feature is removed once like and I don't need a regression test that the feature is removed for forever because that would mean anytime we touch code like I want regression tests against behavior but like if you've removed an entire feature like I don't need you to prove that that feature the whole thing like doesn't come back at some point um that's kind of crazy so uh just doing ridiculous things sometimes but

one of the the big points that I had co-pilot looking at first for this was around this idea of like how do we get checks done early that are valuable and quick because if we can move them uh you know the the buzz phrase for this is shift left. So if I can shift left and have it done sooner um and not even in like a GitHub action uh then then perhaps we can get even more agility. So things like uh commit hooks or other hooks with co-pilot and cloud code. So um that was sort of the first pass is like can we identify what types of checks we're doing and then where they're being run. Um the drift because in some repositories it's been tuned a little bit more. Uh in others it is like completely behind. So like what's the drift look like? What are the patterns we want to follow?

Um and then how do we start bringing those back into the core repository? So that is sort of this next focus that I have. Um that one's really around like um consistency and then optimizations for delivering code because I don't want things to get to a point where I have to be checking in on like if it's doing stupid things in CI, I want to make sure that it's constantly trying to make CI effective. I want focus tests. I want I want good test coverage. I want to feel confident, but I don't want to have it so that in order to get there, we need to run for like 5 hours. Like, no, I need the agility. So, I'll report more on that um once I see some more patterns going. But that's my little update from the weekend. And uh if you got questions about software engineering, career development, leave them below in the comments or go to codecute.com.

You can submit stuff anonymously that way and I'll make a video response for you. Take care.

Frequently Asked Questions

These Q&A summaries are AI-generated from the video transcript and may not reflect my exact wording. Watch the video for the full context.

What did you learn about UI design when evaluating AI-generated interfaces across different tech stacks?
I found that the UIs were being designed around an API contract rather than the user's actual workflow. I asked what the user is trying to accomplish, what data they're focused on, and what the data shape is, and I saw that focusing on the contract often produced screens that functioned but were awful.
How do you plan to improve the speed and value of checks in your CI/CD process?
I want to shift checks left and have them run earlier, not only in CI. I’m looking at commit hooks or other hooks with co-pilot and cloud code to identify what checks are valuable and where they should run, and then bring those patterns back into the core repository.
What did Co-pilot reveal about UI work and what concrete changes did it propose?
Co-pilot identified that UI work across repositories often lacked a focus on the user experience and suggested changes to common instructions plus a UI design skill. It emphasized starting with the user and their goals instead of only considering data contracts. For example, it highlighted the deployment dashboard issue with too many cards, showing how the UI could be made more usable.