---
title: "Harshavardhan Katkam (@harshakatkam) | Hashnode"
description: "Senior Backend Engineer | Java | Distributed Systems | GenAI & AI Agents. Read the latest articles by Harshavardhan Katkam on Hashnode."
url: "https://hashnode.com/@harshakatkam"
---

@harshakatkam

# Harshavardhan Katkam

@harshakatkam · Hyderabad, India · Joined April 2026

Senior Backend Engineer | Java | Distributed Systems | GenAI & AI Agents

[Website](https://about.harshakatkam.dev/)

## Comments

[Agreed, and it's a point the series runs into head-on. One clarification on Day 03: the repo size is only the up-front estimate. The meter itself records the usage the server reports on every request, so whatever is in the transcript gets counted, tool outputs included. Neither side of the ledger is guessed. You're right about where the pressure moves, though. Once the agent can call tools (Day 06), file reads pile up in the transcript and soon outweigh everything else. Day 08 is about exactly that: tools that return a bounded slice of a file instead of the whole thing. A later memory day handles what to drop from a long transcript without breaking it.](https://hashnode.com/posts/a-repo-does-not-fit-in-context/6acf2d667530ca888e78c002/comment/6ad00b4098c3239726421406#reply-6ad0575a8f709b369fc0bb96)

Reply · Article · Oct 15 · [Day 03: Your repo does not fit in the context window. Now what?](https://hashnode.com/posts/a-repo-does-not-fit-in-context/6acf2d667530ca888e78c002)

[Good question, and an honest answer: not yet. The Day 03 meter keeps running totals only (calls, input tokens, output tokens, cost), because the point that day was the first number, not the breakdown. You're right that a total hides where the cost came from. Here, almost all of it is the transcript being resent on every call. The breakdown comes later in the series. A LangGraph day counts calls per node and per run. The tracing day records each model call as its own span, with its usage, so you can see which step resent what. On drift: every measurement is recorded with the model and the commit it was taken at, for exactly that reason.](https://hashnode.com/posts/a-repo-does-not-fit-in-context/6acf2d667530ca888e78c002/comment/6acfc29bcf4c90bdcdacf5a7#reply-6acfc89d48f3a6d08f190dd5)

Reply · Article · Oct 14 · [Day 03: Your repo does not fit in the context window. Now what?](https://hashnode.com/posts/a-repo-does-not-fit-in-context/6acf2d667530ca888e78c002)

[Thanks! The measured number surprised me too: on the free model I'm using, code came out at about 2.58 characters per token, well below the usual rule of thumb. That's why the ratio gets calibrated, not assumed. Next up, Day 04: making the model return structured output instead of prose I have to parse.](https://hashnode.com/posts/a-repo-does-not-fit-in-context/6acf2d667530ca888e78c002/comment/6acf652ab4fd765f1d1325b9#reply-6acfc82321d79888bfc6fde6)

Reply · Article · Oct 14 · [Day 03: Your repo does not fit in the context window. Now what?](https://hashnode.com/posts/a-repo-does-not-fit-in-context/6acf2d667530ca888e78c002)

[Thanks, Kartik. Yes, and you've named the exact case. Next up is Day 01, the 40-line loop. Day 06 hand-rolls tool calling and breaks it on purpose: a tool name the model invented, arguments cut off mid-JSON, a parameter that doesn't exist. None of them crash the loop. Each one goes back to the model as the tool's result, an error message listing what's valid, so it can correct itself on the next turn. Day 04 covers the same idea for the final answer: a strict schema instead of parsing prose. And glad "fluently wrong" landed. It's the one idea I'd want a beginner to keep.](https://hashnode.com/posts/agents-from-zero/6ac49c571cb9ba743d0f807b/comment/6ac7dea827460a85d20f17fb#reply-6ac8c219c2fa57c3dbbfc3b9)

Reply · Article · Oct 9 · [Day 00a: Six ideas that explain every AI agent, before any code](https://hashnode.com/posts/agents-from-zero/6ac49c571cb9ba743d0f807b)

[Thanks! Real codebases are the point. Day 07 is the first full run, on a well-known open-source Python project pinned to one release, so anyone can reproduce the result and check the map against the actual source. Later it gets scored against a second project too.](https://hashnode.com/posts/pilot-thirty-days-one-agent/6ac4990972f4e3cdcb5f87f2/comment/6ac73c234628abaa49ccd9dc#reply-6ac7d34cb4c7ee7f010db65e)

Reply · Article · Oct 8 · [Day 00: Learn AI agents by building one, in 30 days](https://hashnode.com/posts/pilot-thirty-days-one-agent/6ac4990972f4e3cdcb5f87f2)

[Thanks, Kartik. The stop-reason trap is a good one; a truncated answer that looks finished is exactly the kind of bug the series is about. Tool-call failures are handled in week one, not deferred. On day 06 a bad call doesn't crash the loop: an invented tool name, arguments cut off mid-JSON, or a wrong parameter go back to the model as the tool's result, an error message listing what's valid, so it can correct itself next turn. The loop is also capped at a fixed number of turns, so a model that keeps calling tools can't run forever. Week four's hardening (day 28) is about the failures that don't raise anything: a run that finishes cleanly with a map that's quietly wrong. On truncation: day 05 sets max\_tokens so a cut-off answer surfaces as malformed JSON rather than passing as finished. You've convinced me it's worth checking finish\_reason explicitly as well.](https://hashnode.com/posts/pilot-thirty-days-one-agent/6ac4990972f4e3cdcb5f87f2/comment/6ac695995f0354844ab4418b#reply-6ac73ddf23ed085b3a0a6c23)

Reply · Article · Oct 8 · [Day 00: Learn AI agents by building one, in 30 days](https://hashnode.com/posts/pilot-thirty-days-one-agent/6ac4990972f4e3cdcb5f87f2)

[Thanks, Julian. That's exactly the bet. Once you've written the loop yourself, a framework stops being magic and becomes a set of choices you can judge. That's why LangGraph only shows up in week 3, after the hand-built version has already hit the problems it solves. Curious which part of the loop fought you hardest?](https://hashnode.com/posts/pilot-thirty-days-one-agent/6ac4990972f4e3cdcb5f87f2/comment/6ac61cd542b3d61ebed7fe68#reply-6ac65b72a37bf56d1860b76d)

Reply · Article · Oct 7 · [Day 00: Learn AI agents by building one, in 30 days](https://hashnode.com/posts/pilot-thirty-days-one-agent/6ac4990972f4e3cdcb5f87f2)

[Agreed, and that's the bar I'm holding it to. From day 01 the loop only counts a step when a tool result comes back, and the map has to point at what it read: a file and a line, not a summary of a summary. What I'd refuse to call done on day 30: a map whose claims don't cite a file and line the agent actually opened a "better" version that hasn't been scored against the eval set any version that can write to the repo it's reading. It writes docs, never code. If it can't show its evidence, it's narration, and you're right that 30 days of that would teach the wrong thing. Thanks for pushing on it.](https://hashnode.com/posts/pilot-thirty-days-one-agent/6ac4990972f4e3cdcb5f87f2/comment/6ac50d41227b5fbb0e892d14#reply-6ac5f11af8b91a9254605cdc)

Reply · Article · Oct 7 · [Day 00: Learn AI agents by building one, in 30 days](https://hashnode.com/posts/pilot-thirty-days-one-agent/6ac4990972f4e3cdcb5f87f2)
