Day 04: Stop parsing prose. Make the model return a structThe working version of cartographer answered in paragraphs, so to get anything countable out of it I wrote a parser. Twelve lines of regex against the bullet list the model kept producing: a backticke9 min read·harshakatkam.dev98MKPOct 27
Day 03: Your repo does not fit in the context window. Now what?Handing cartographer files one at a time had been working, so I did the obvious next thing and wrote the four lines that walk a repository and concatenate every source file into one string. Large cont9 min read·harshakatkam.dev38KNBOct 14
Day 02: An LLM is a stateless function. Everything else is youI pointed the forty-line version of cartographer at a second file and asked the obvious follow-up: how does this one relate to the last one? It asked me which file I meant. My first instinct was that8 min read·harshakatkam.dev64BVNOct 11
Day 01: Why your first agent should be 40 lines, not a frameworkThe first agent I ever got working, I did not understand. I had installed a framework, pasted eleven lines out of its quickstart, and watched a correct answer appear. Then I changed the prompt slightl9 min read·harshakatkam.dev52KNOct 9
Day 00a: Six ideas that explain every AI agent, before any codeSomewhere in the first hour of reading about AI agents, you meet a diagram. A box labelled Thought, an arrow to Action, an arrow to Observation, and an arrow curling back to the start. The captions sa24 min read·harshakatkam.dev42KOct 6