<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rachit Jain on Medium]]></title>
        <description><![CDATA[Stories by Rachit Jain on Medium]]></description>
        <link>https://medium.com/@erachitjain?source=rss-77d3e5205442------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aEiXJOTSFtNZrHHw2MILMQ.jpeg</url>
            <title>Stories by Rachit Jain on Medium</title>
            <link>https://medium.com/@erachitjain?source=rss-77d3e5205442------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:17:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@erachitjain/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[An Agent Fixed 5 Errors and Deleted 1.6 Lakh Rows Before Lunch]]></title>
            <link>https://medium.com/@erachitjain/an-agent-fixed-5-errors-and-deleted-1-6-lakh-rows-before-lunch-fc6ea5acb05b?source=rss-77d3e5205442------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc6ea5acb05b</guid>
            <category><![CDATA[llm-guardrails]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Rachit Jain]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 14:54:55 GMT</pubDate>
            <atom:updated>2026-09-30T14:54:55.695Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>A read-only internal API secured with M2M OAuth2, a Cursor skill, and one rule that doesn’t bend: a human hits “merge,” not the agent.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o-SV2QFacqk0l3AfXu6Uig.png" /></figure><p>Every production exception gets logged, one row per occurrence. A single recurring bug doesn’t fire once, it fires constantly, sometimes hundreds of times a day, and nobody wants to look at that as hundreds of separate incidents when it’s really one thing happening over and over.</p><p>The first real problem wasn’t fixing errors, it was that the same error kept showing up as dozens or hundreds of separate rows, with no clean way to say “these are all the same thing.” Grouping by message text or timestamp didn’t hold up. The fix was hashing each error off its stack trace: same root cause, same hash, every time, no matter how many times it fired. That hash became the single identifier. When a hash won’t go away, a cron opens a GitHub issue for it.</p><p>What didn’t exist was the next step, turning those GitHub issues into an actual fix. Someone still had to pull the trace, paste it into a chat window, ask what’s causing it and where, then make the change and push a PR by hand. So why not let the agent do that part too?</p><p>So this agent closes that gap. It reads the most frequent unfixed errors from the last six months, fixes up to five real bugs in application code, and opens exactly one pull request. It doesn’t merge, deploy, or decide anything is actually fixed. That stays with a human.</p><h3>Playbook, not daemon</h3><p>Nothing here runs on a schedule. Automating the fix is one thing, automating when it ships without anyone watching is another, and that second part stayed a hard no for now. This runs only when a human explicitly kicks it off, using a skill file that spells out every step: fetch, filter, fix five, lint, one branch, one PR, stop.</p><p>The skill is the policy, the model just executes it. Leave gaps and the model fills them badly, usually by “fixing” something it shouldn’t touch. So there are no gaps left to fill.</p><h3>Narrow window, not database keys</h3><p>The agent never touches the database directly. It sees a filtered slice: unfixed hashes, ranked by frequency, one sample trace each. That’s it.</p><p>Access runs through machine-to-machine OAuth2, not a static key sitting in a config file somewhere waiting to leak. Local is the default target; production requires an explicit, deliberate flag. A stack trace is a guided tour of the internals of the app, and nobody wants that tour open to anyone who finds the door.</p><p>Opening the PR uses a separate, scoped credential from anything the application uses internally. The thing that reads error context and the thing that pushes code don’t share a key. If one leaks, it doesn’t hand over the other.</p><h3>Application code only, nothing else</h3><p>The instruction to the agent is explicit and non-negotiable: only touch files under the application code folder. Never the framework, never vendored libraries, never anything outside that boundary. If the real fix lives in a library, the agent skips the error and says why, instead of forking someone else’s code to make a number go down.</p><p>Fixes are meant to be boring: a null check, a bad query, a missing guard. No refactors, no new dependencies, no silently trimming invalid input to force a save through. Bad input gets rejected with a clear error, not quietly mutilated and stored.</p><h3>Five bugs, one PR, one commit each</h3><p>Five is the hard cap per run. Each fix gets its own commit carrying a standalone reference tag, the linked issue, a one-line quote of the error, and what changed. That tag is how the next run avoids re-picking an error already sitting in review, matched exactly, never as a loose substring.</p><p>The PR includes a cleanup step for after deployment: once a fix is confirmed live, a human runs it, and only then does that hash’s backlog clear out. If the bug resurfaces, the cron treats it as new. No manual state tracking anywhere in this loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K9bnQWTsQS--drk0K4dWJw.png" /></figure><h3>What stays human</h3><ol><li>Someone kicks off a run.</li><li>The agent reads the top errors, patches up to five, opens one PR.</li><li>A person reviews it, not just for correctness but for whether it’s the right fix, merges, deploys.</li><li>Once errors stop, that person runs the cleanup.</li><li>Next run, fresh five.</li></ol><p>The model is good at the middle: find the line, write the guard. It’s a bad judge of whether “the error stopped” means “the problem is solved.” That gap is why it’s an assistant, not an owner.</p><h3>The instructions kept needing rewrites</h3><p>The first run felt almost too clean: five bugs, one PR, merged same day. That made it tempting to loosen the leash. Continued use argued strongly against that.</p><p><strong>The fix that moved the problem instead of solving it.</strong> One error traced back to a form field accepting more input than the database column could hold. The agent’s first fix: accept it anyway, silently trim it on the backend to fit. Error gone, but now a user submits a full answer, sees success, and has no idea half of it got cut. The actual fix belonged on the frontend: catch the length before submission, tell the user clearly. Sent back.</p><p><strong>The fix that patched a symptom over a security signal.</strong> A queue consumer was throwing on a job ID it didn’t recognize. The agent added a lookup to skip invalid IDs before processing. Error gone, but that ID only ever gets generated automatically on the frontend during a specific user action. There’s no legitimate path for a bad one to show up. Someone was tampering with the request directly, and the agent’s fix quietly added a query to a hot path instead of surfacing what was actually happening.</p><p>Neither PR looked broken. Both passed lint, both would have merged on a quick skim. That’s the actual case for keeping review mandatory: the risk was never “agent writes bad code.” It’s agent writes code that works and solves the wrong problem, confidently, every time.</p><p>Someday this agent will need less supervision, ship faster, and require fewer humans in the loop. Today it needs a code review, a linter, and someone to double-check it isn’t quietly hiding a security hole behind a try-catch. Baby steps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc6ea5acb05b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[1 Year as a Software Engineer in the AI Era]]></title>
            <link>https://medium.com/@erachitjain/1-year-as-a-software-engineer-in-the-ai-era-15b0346a6c74?source=rss-77d3e5205442------2</link>
            <guid isPermaLink="false">https://medium.com/p/15b0346a6c74</guid>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Rachit Jain]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 16:30:37 GMT</pubDate>
            <atom:updated>2026-06-16T17:49:11.730Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lhl3hPiqTUERoeDmsYL3ng.jpeg" /></figure><p>16 June marks 1 year anniversary of my career as a software engineer. The memory of being a 2nd year BCA student who worried about placement every moment because our colleges did not have placements for SDE roles. I used to study 4–5 hours outside college every day learning React.js, Node.js, DSA because cracking an internship was hard.</p><p>Funny enough, how fate would have it, I got an internship at Internshala, the platform I used every single day for 2–3 hours. Still remember the call from HR when I got the role, at that time I was browsing Internshala, I had opened dev tools on the side to see some error or something I could help with, or text the senior engineers about, just so they would be aware of my presence as a potential candidate. Let’s leave the interview part, as it could be a whole article in itself. Here are some of my thoughts</p><h3><strong>Ask that damm question</strong></h3><p>I know I am junior and my colleagues, manager, all are very kind, they explain any doubt. I can ask every dumb question there is and still get a pass. I still use this everyday, if there’s something I don’t understand I ask everything that comes to my mind, I never think what the person in front of me will think about me, they might think of me as an idiot but it’s better to be an idiot in the moment rather than a lifetime.</p><p>Still remember asking the use of test and staging domain and how git works from my first mentor and he legit explained to me with a pen on my diary. He could have easily said figure it out.</p><p>Don’t just question about tech, try to understand why that specific tech or discussion helps the business because in the end that’s where our salary and fancy Macbooks come from.</p><p>I have a incident, I was surfing Internshala at 7am on a Saturday just to find what we can add to make user experience better and I got an idea, it was about a filter to check the latest jobs, and I messaged my tech lead about that. To be noted, it was Saturday, he had no obligation to reply to me since he was off the clock. He explained to me on text when things were still hazy, then he called me and explained to me for 30 mins. He explained to me why, in business terms, it didn’t make sense because it wasn’t going to help students in any way with their job hunt. That day I realised a great engineer not only writes great code, he should know business deeply.</p><p>He said this to me: “Thumb rule: If you have the answer for “why” then only you can propose “how”. Look for the “why” behind the task and then you can propose “how” to solve it in the best way.” This can come from experience only.</p><h3><strong>Consume good media</strong></h3><p>Consuming good media is underrated as an engineer. When you work with the same tech every day, you’re just solving different problems on the same stack but consuming content about new technology keeps you in tune with the market, especially now when there’s a new AI model dropping every other day.</p><p>I watch a lot of content from <a href="https://www.youtube.com/@hnasr">Hussein Nasser</a>, <a href="https://www.youtube.com/@AsliEngineering">Arpit Bhayani</a>, <a href="https://www.youtube.com/@gkcs">Gaurav Sen</a>, <a href="https://www.youtube.com/@Fireship">Fireship</a>, and <a href="https://www.youtube.com/@3blue1brown">3Blue1Brown</a>. These creators help me understand the technology I use every day at a much deeper level the kind of depth you don’t get from just shipping features.</p><p>I gravitate toward this kind of content because programming is always running in the back of my mind; I’m constantly thinking about some new project, problem, or technology to explore.</p><h3><strong>Use AI but only to some extent</strong></h3><p>AI is a great tool and it’s here to stay, there’s no denying that. I have seen senior engineers ship 2–3x faster because of their intern who they call Cursor. I got jealous at that moment, but then I realized he has been doing this for 10 years. He has seen the company grow from scratch, so he knows the tech and codebase deeply, sometimes even knowing the file name and line number of certain functions. That’s what makes them deadly with AI.</p><p>I, on the other hand, have a limited amount of business knowledge and there are many modules I have not worked on. So when I try to work with AI, it makes changes that can have rippling effects across various modules I have not worked with, resulting in more dev time rather than less. So I use AI to debate different approaches, which gives me pros and cons I hadn’t considered. I also use it to navigate large codebases, extract business logic from code, and generate boilerplate. Even then, on some days I disable AI autocomplete because it keeps me in the habit of writing code myself. I don’t wish to be in a situation where I have to write code in an interview or I run out of tokens and go blank.</p><p>As software engineers, our work depends heavily on code written by someone else. Be it operating systems, network protocols, databases, browsers, or different libraries, these are all abstractions we build on top of. So don’t let the code you write be a black box where you have no clue about how data flows or where the business logic lives. Because as a junior, that’s not where I want to be. I like to know what every line of code I wrote does.</p><p><strong>Special Mentions:</strong></p><p><strong>Vineet</strong> — Hands down the best mentor one can ask for. The kindest soul, never shy to share his knowledge. Hope to work with you again. Learnt so so much from you, and still going on.</p><p><strong>Amar</strong> — Being the tech lead, always having a ton on his plate, still never too busy to hop on a Google Meet to guide juniors. Never made me feel guilty when life got in the way of work.</p><p><strong>Prasan</strong> — A friend and mentor, always explaining new tech and his cool projects to me. Taught me a lot about good frontend practices, and I owe him a lot of samosas.</p><p>Adiós, amigo. Came a long way, even longer to go.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15b0346a6c74" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>