Insecure Agents — Episode 65: Tejas Kumar, AI Engineer and Founder of Daiku Podcast: https://insecureagents.com Listen: https://open.spotify.com/episode/2oiEBGdYFVeKtNFjCCLHCb Transcript (auto-generated, lightly edited for clarity). Allie Howe: Welcome to another episode of the Insecure Agents podcast. I'm your host, Allie Howe, and today I'm super excited to be here in San Francisco at AI Engineer CODE. Today I'm here with Tejas Kumar. He is an AI engineer at IBM also the author of Fluent React. He's been involved in, in startups and has his own O'Reilly book and has done tons of amazing work in his career. And I'm super excited to talk to him today about the workshop he did yesterday personal agents and also reliable agent harnesses. So Tejas, would you like to introduce yourself? Tejas Kumar: Yeah, I think you just did. You did such a great job too. Perfect. I'm Tejas, I build AI. I talk about harnesses and evals and software factories and things like that. And I just I love, honestly, just a good conversation, so I'm really excited. Allie Howe: Awesome. Yeah, super excited to have you on the podcast. How was your workshop yesterday? What was that about? Tejas Kumar: It was so much fun. We had an hour to build... We started with an empty loop. So, if you're a programmer, while true, and then ask question, return answer. That's it. An infinite loop of ask question, return answer, right? And that's... And, and of course, the language model returns the answer. So just like our conversation, this is a loop, right? You talk, I talk, you talk, I talk infinitely or until it's over. And so we just started with this, and we said, "We gotta turn this into an agent harness for coding, a coding harness." Something like Claude Code or Codex or, you know, Windsurf or Cursor, whatever it is, right? And, and so that's what we did. So we started with that, and we're like, "Okay, Miss, Mister or Misses Agent, can you read the, this file?" And it's like, "No, I can't read the file, but you can paste it in." I was like, "What? Paste it in?" And so then I said, "Let's add a tool." So we added a tool to read a file from the file system, and then it could just do that, right? And then we said, "What if we have many tools to read files and write files?" And, and piece by piece, we built an entire, like, coding agent harness that rivals things like Claude Code and whatever. And at the end of it, you know, we even... I asked the room, I said, "Hey, do you feel comfortable?" Say you're maybe in an enterprise setting, and you're not allowed to use something like Claude Code. Are you comfortable rolling your own for air gapped e- enterprise infrastructure? And they're like, "Yes, I can do this now." And for me, this was the most satisfying thing, so. Allie Howe: Oh, that's so amazing. No, that makes total sense, the value and, and, you know, not being able to like, you know, add on a third-party vendor, which I feel like people are super, like, scared about nowadays. Yeah. Just because we see more and more security incidents, vendors getting popped, and so a lot of folks are choosing to roll their own software and, of course, now harnesses. What's the value in that? Like, why should the average person, like, make their own harness? Tejas Kumar: Yeah, I don't know that the average person should make their own harness. I, I think the... It's, it's highly specialized. For example, you, you could work in companies where You're just not allowed to use f- proprietary external company harnesses, right? Like, I work at IBM where our customers are all... Think of, like, the biggest companies you c- like Samsung and Siemens and I'm not naming them explicitly as customers, but we, we work with huge things, right? And oftentimes there's banks, there's insurance co- there's hospitals, right? And you can't, for HIPAA and things, you can't just, like, willy-nilly use Claude Code. And in these cases, you may want the benefits of an incredible harness but you, you, your options are limited. And, and so that's the value is you can make your own. And the best thing is most components of a harness can be applied across domains. Like a coding harness, for example, you know, needs to read files and write files and things like this. But it also needs context compaction. It needs, needs token caching. It needs a, a number of other things that you can keep and just change your tool set for different domains. And so this is also what I taught them is like, look, it doesn't have to be a coding harness. You could build a harness for whatever you want. You could build a harness for, like, personal finance and investments. And your context primitives are gonna stay the same, but you just have different tools, right? And so the value is just a feeling of empowerment where you're like, "I could do... I don't, I don't just have to be a user, I can be a builder." Allie Howe: Yes, absolutely. That's so important and empowering, and I feel like, you know, the next step maybe like after that is adding like the auth layer, the, you know, the reliable and secure like agent harness making sure that you can... All right, we can call this tool, but should we be able to call it like now for this instance for this runtime? Tejas Kumar: Exactly. After the tools, we literally did this. I, I said as we were building the harness, I said, "Hey, look, we can read files, we can write files, we can do these things. Let me just, let me send a prompt here, 'Delete everything.'" That's what I did on stage. And it actually just did it. It was like rm -rf everything, everything's gone, right? And I said, "Yo, that's, that's dangerous." And so I asked the room, I said, "What should we do now?" And they said, "Add guardrails." I was like, "Exactly." And so that's exactly what we did. We added some guardrails where we had like an allow list of tools that you could use that the agent could use rather. But we also had a list of tools where ask me before. And ask me could be just a simple binary like, "Do you wanna do this, yes or no?" Or it could be like, to your point authenticated, like, "I need your fingerprint. I need your face ID. I need something to prove that you're you before I do this thing." and so that's what we built next. Allie Howe: Yeah, that's amazing. And yeah, while the human in the loop is like super im- important, I think one thing that teams are struggling with like right now is like how do you like scale to like get humans only in the loop when they absolutely need to be? Tejas Kumar: Exactly. Allie Howe: That's just the hardest question, I feel like. Tejas Kumar: Yes, and, and the right human in the loop. Imagine you, you've got a team of like 15, right? And you don't want, definitely you don't want some notification to go out team wide. You want it to be targeted, like this specific person who has the, the best capacity and who isn't overloaded and, you know, who, who has the rights also. I think of like GitHub in the days where we used to write code. You would open a pull request on GitHub and review, request a review from whoever usually. It was very arbitrary. And I think agentically, we have the technology now to know who actually is avail- who's gonna review this fastest and best, right? And we can do more targeted selections there. Allie Howe: Exactly. And I think that's, that's a great direction to move towards. Tejas Kumar: Yes, absolutely. Allie Howe: And then next up, I was really interested to, as someone that has like built so many like agent harnesses and is working on that problem beyond like identity and auth what else seems like a huge like missing part of the stack that like everyone should be rolling into theirs? Tejas Kumar: I think by and large, people just don't know enough about context caching. This is nuts. Like, I, I talked about this at my workshop, and I said, "How many of you know, how context caching works?" Nobody, right? And it's so powerful because what a, how a lot of people are building today with external AI APIs is they send the entire conversation as input tokens every time a user, like, says something in a chat. So you've got assistant prompt, user message one, AI response, and the user f- sends a follow-up. What they have been doing is all the previous input tokens are treated as input tokens again, and they're paying for all of those input tokens. When the state-of-the-art ideally is all the previous input tokens, you, you cache them- or the response to them, and you only append, so it becomes much cheaper 'cause you're not computing the input tokens again, right? And this is just totally missing. In fact, one thing people didn't know also was if your context window crosses, I think it's 100,000 tokens of, of input on like Haiku with Claude you end up paying like five times more for subsequent tokens, 5X, right? And it just gets really expensive really fast. And so things are like this around caching, around cost-cutting is something that people just... is missing from most like self-rolled harnesses. Allie Howe: Yeah, so interesting. I think that becomes like particularly bad when you think about like certain incidents like the Resy incident not too long ago where an agent and it was like an Instinct personal agent that someone was using to book a restaurant reservation, and it made 200 API requests like an hour, ended up getting the user's like Resy account banned. Tejas Kumar: No. Allie Howe: Yeah, 'cause it just called it a downstream resource like way too many times. Yeah. And feel like, one, that's a huge waste of tokens, and two, it led to the, the bad outcome even though it was following like the right directions. Like, "Hey, I want you to book a restaurant reservation," but, you know, tried too hard, if you will. Yeah, yeah. And so it's like how do we Prevent that from happening. Like, there's new, like protocols like AAuth, which is the agent auth protocol that's gonna kinda be something new that evolves around away from like OAuth to AAuth. Tejas Kumar: Cool. Allie Howe: In fact, the guy that built OAuth is building AAuth. Tejas Kumar: No way. Allie Howe: And it's got this concept of, like, budgets for downstream resources. So you can, like, set a budget on, like, only call this so many times, and then once that budget runs out, you can, like, decide, "Okay, do I wanna, like, issue another credential so I could do this?" Yeah. Tejas Kumar: Wow. AAuth. Allie Howe: Yeah, AAuth. And the, the whole credential piece of, like, "Hey, should we issue another one?" Like, now given this, like, thing has happened, like, at runtime. Like, I work at Keycard, we do that, but... Tejas Kumar: That's... Keycard, what, offers AAuth for agents or? Allie Howe: Keycard does runtime auth for agents. Tejas Kumar: That's so cool. Allie Howe: Yeah, and we incorporate, like, the best of whatever protocols are available today, so you don't have to be an identity expert. Tejas Kumar: So it's a solved problem, essentially. Yeah, you just, like, use what is Keycard, and, and your agent authentication problems go away. Allie Howe: Basically, yeah, yeah, yeah. Tejas Kumar: Awesome. That is so cool. Allie Howe: Yeah, super cool. We actually... we're here at AI Engineer CODE as well. We have, like, a build lab downstairs. We par- I partner with or we partner with Nina from MongoDB who, like, started the build lab idea. Awesome. We each have our own software factory that we built using, like, Keycard and MongoDB. It's secure based on, like, an agent baseline reference architecture we just recently published for the Secure Software Factory, where it defines, like, four different security boundaries that teams should work towards. So we're actually doing a talk downstairs at 1:15 about that, which I'm super excited about. But yeah, no, I, every software factory, every agent needs runtime auth. You can't just have long standing access, especially with all these, like, supply chain attacks that are happening. And, yeah, you need to be able to act, an agent should act on behalf of itself at some times, and also should be able to act on behalf, behalf of a person. All of it should be tracked and logged and all of that. Tejas Kumar: So, so how does it work? Like, if I'm a developer, I just... I sign up for Keycard, I get an API key, and I give it to my agent And, and it's secure, or is there more to it? Allie Howe: Well, there's more to it. So yeah, you, you, you would g- put... It depends. So like I-- anyone really puts it in perspective or explains it as like an example. So I built a podcast agent that operates over, like, the Insecure Agents podcast, and it's, like, connected to three different resources. It's connected to a, a Neon database full of, like, transcripts. It's connected to a Notion database that says, like, who's coming up next on, like, the podcast and all that. And then there's, like, a Linear connection for, like, hey, if you have, like, feedback for this agent, how it should be better. Like, you could just, like, store that in a Linear ticket. I'll fix it later. So the way that Linear and Notion work is backed by, like, OAuth. And so you, through Keycard, you would go through an OAuth consent flow. So the agent would be accessing Notion and Linear on behalf of you. You go through that OAuth consent flow, and then there's that OAuth, like, grant is stored in Keycard. And so when I ask my agent to access those resources the Keycard evaluates policy on every single tool call. And if policy passes that, yes, Allie is allowed to, through this agent, is allowed to access Linear or Notion, it sends that grant to our gateway. The gateway uses the credential to call the downstream resources. So that way, nowhere, so your agent is deployed in Vercel or Render or, you know, Pickathing, the deployment doesn't have the credential, neither does the agent. There's no .env, none of that. Tejas Kumar: It's Keycard. It's Keycard. And so if the credential gets banned, Keycard is the one that technically gets banned, and you just create a new credential, assign it to Keycard, and then it's, it's-- it should just keep working. Allie Howe: Exactly, yeah. And you can also revoke a credential in Keycard, which is really cool if, like your agent starts, like, acting, like, super, like, rogue or, like, misaligned. You're like, "Oh my gosh," like, "I just need to shut it down somehow." Tejas Kumar: It's, it's, it's the power plug you can pull. Allie Howe: Exactly. Tejas Kumar: That's awesome. Yeah, yeah, yeah. That's so cool. Wow. Allie Howe: That's actually one of our CEO's, like, hot takes that he's been doing on, like, interviews and stuff. And when people ask him about, like, pDoom-. Tejas Kumar: What's that? Allie Howe: Of like... It's like this, it was like a viral thing of, like, what's the probability that, like, humans are killed. Yeah, pDoom. Yeah, yeah, yeah. Yeah. And he was like, "You can just, like, unplug the agents. It's, like, not a problem. You can just, like, you know, they're computers, we can just unplug them." Yeah. And people are like, "Oh." Tejas Kumar: That's awesome. Wow. I might explore this. This I'm working on things that, that could benefit from that, so, so thanks for telling me. Allie Howe: Yeah, of course. Yeah, we'd be happy to show you more and, you know, show you how the software factory works later if you like a free one-on-one-fifteen. But yeah, that was super fun. And you said you're jamming on a personal agent startup? Tejas Kumar: I am. Okay. Yeah. So this is completely nights and weekends, like, outside of my work at IBM. Literally, like, separate everything, separate hardware, separate time, separate, you know, all of it. It, it's, it could not be further away from my day job. But it's, it's... You know, I have the privilege of... My day job's fun. But I get to build things on the side 'cause I-- we work a 38-hour work week, and I just get to do other stuff. And, I'm building this thing. It's like, it's like Muse, right? But not vendor locked to Meta or, or Duet, but not vendor locked to Claude or Dots, but not locked to OpenAI or GroqBot, but not locked to X, right? It's, it's so cool because it is a computer that you give your agent to use on your behalf. But I don't mean your agent. Y-you give it to all your agents, and they can all drive it in parallel with all your context from whichever agent you happen to be using. And, and its state is also, like, long-lived. And so what I've been able to do is, you know, I just... I build this thing, so I wanna see what it's capable of naturally. And I was building it and I s- I sent a prompt via Claude Code to this thing. It's called Daiku. And, I sent a prompt and I said, "Hey, this is a great product. You should get yourself on Shark Tank." And, and it did. Like, on, on November 19th, I'm gonna be presenting this on Shark Tank just- Allie Howe: Oh my gosh, really? Tejas Kumar: Yeah, 'cause, like, it found all the forms, and it just, like, filled them out on my beh- It created a slide deck. It did everything, and then it said, "Cool, your date's November 19th. Good luck." You know? Yeah, seriously, this- Allie Howe: That's like the coolest thing ever. Tejas Kumar: Yeah, yeah. And, and so, like, it's, it's been so tremendous where similar, I had some issues with an airline flight where they charged me at the gate for an extra luggage thing, which they didn't ask me before, and I was like, "I gotta get a refund." So I landed at my destination, and I just opened ChatGPT and sent a voice prompt. I was like, "Get me a refund for this." Done. Within, like seven minutes, it found all the forms, all the receipts, everything, gathered it together and, and sent off, like, a request for refund while I was just chilling in a car, right? And so m- what I want is the ability for people to just Get stuff done while also living their lives. You know, just having the conversations that matter with the people that matter. And your government tax forms or whatever it is, it just, it's handled. And, and to, to Meta's point, like Muse is great at this, and so is, so is GroqBot. But none of-- I live in Europe, I live in Germany. Okay. None of those are available in Germany 'cause they're illegal actually in Germany because of data privacy laws. And sure, they may get there with time but I want something now. And so I'm building this, sort of as an answer to that. It also works in like air-gapped enterprise infrastructure 'cause you can bring your own model, you can bring your own harness, you can bring your own everything. And so yeah, that's, that's something that's very close to my heart because I've seen what it's capable of, and I just, I want that to be widely available, so. Allie Howe: Yeah. I was gonna say, like you're the perfect person to be building that. Tejas Kumar: Oh, thanks. Allie Howe: Like given the, you know, build your own harness. Tejas Kumar: Exactly. Allie Howe: And then that's such a p- perfect, like transition, and that is such a huge problem that's going on today. 'Cause yeah, you just, you end up like vendor locked. Tejas Kumar: Exactly. Exact- And then I, I really think that's not the right move, right? I, I, I want to be able to get the power of GroqBot and things without being vendor locked, so. Allie Howe: Yeah. No, absolutely. And yeah, we see it a- as well, like on the, like Keycard side of like, okay, like if you're only, you know, just using Claude, if you're just using like OpenAI, like maybe their platforms like implement some sort of like identity auth solution. Yeah. But the reality is, your agents and the tools they call are on AWS and then they're on, you know, Vercel, and then they're on this like weird enterprise legacy tool. Yeah. And like the identity, like, and the delegation chain across all those different hops, like one platform can't, you know, have insight to that. Tejas Kumar: And they could rug pull you whenever they want. Like GroqBot is suddenly $35 a month. You know, and, and it wasn't always. So exactly. You, you should just be able to switch. In fact, I'll say this as the last thing. Yeah. Is if you run out of your Claude usage, and you've got Claude and ChatGPT connected to Daiku it can detect when you're o- out of Claude usage, and if it's mid task, it will just pick up the task on ChatGPT and finish it for you. And so it, yeah, you can do all these cool things across harnesses because it's just a separate thing. Yeah. Allie Howe: Yeah. No, that's awesome. I would love to try it if it's like available to try. Tejas Kumar: I-- Absolutely, yeah. There's a wait list. I'd love to get you access and see what you think. Allie Howe: Oh yeah, yeah, that'd be awesome 'cause that's like, that's the dream. Like my data's private. I can, you know, have conversations with people that matter, do the thing that matters to me. I get time back. My agent does like half the stuff, and, and I don't get banned from Resy. Yeah. Exactly. You know, 'cause I'm doing the identity auth right in the downstream, like, you know, budgeting and all of that. And like we get all that right, like man, it's a really cool future. Tejas Kumar: Yeah. I'm excited. Thanks. Allie Howe: Yeah. Well, it was so good getting to talk to you. Thank you so much for coming on the podcast today. Is there anything that you would like to leave our audience with, like where to find Daiku or how to connect with you or anything like that? Tejas Kumar: Sure. Yeah. I'm on X TejasKumar_. Daiku is like haiku, but with a D, daiku.ai. There's a wait list. And yeah, just, you know, let's just hang out and chat. Allie Howe: Awesome. Yeah. Thank you so much. Tejas Kumar: Thank you as well.