<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Ai-Agents on Bharath's Blog</title><link>https://bharathbhushan1.github.io/blog/tags/ai-agents/</link><description>Recent content in Ai-Agents on Bharath's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 03 Jul 2026 09:00:00 +0530</lastBuildDate><atom:link href="https://bharathbhushan1.github.io/blog/tags/ai-agents/index.xml" rel="self" type="application/rss+xml"/><item><title>Claude Code in Action</title><link>https://bharathbhushan1.github.io/blog/posts/2026-07-03-claude-code-in-action/</link><pubDate>Fri, 03 Jul 2026 09:00:00 +0530</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2026-07-03-claude-code-in-action/</guid><description>&lt;p&gt;I took Anthropic&amp;rsquo;s &lt;a href="https://anthropic.skilljar.com/claude-code-in-action"&gt;Claude Code in Action&lt;/a&gt;
course. I just wanted to get a comprehensive view of the features. I learnt a
few nice things.&lt;/p&gt;
&lt;p&gt;The fact that tools are the main conceptual breakthrough for most of the
advancements of LLMs became apparent. The composability and versatility of
tools contributes to a lot of the problem solving abilities of LLM based
agents.&lt;/p&gt;
&lt;p&gt;Context management is very important. You should know how to manipulate
and maintain the context in order to get Claude code to work well.&lt;/p&gt;</description></item><item><title>A Tiny Agent, v2: Python and the Sarvam API</title><link>https://bharathbhushan1.github.io/blog/posts/2026-06-28-tiny-agent-v2-sarvam/</link><pubDate>Sun, 28 Jun 2026 18:00:00 +0530</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2026-06-28-tiny-agent-v2-sarvam/</guid><description>&lt;p&gt;After the Go &lt;a href="https://bharathbhushan1.github.io/blog/posts/2026-06-28-building-a-tiny-agent/"&gt;tiny coding agent&lt;/a&gt;,
I rewrote the same thing in Python, this time pointed at the
&lt;a href="https://www.sarvam.ai/"&gt;Sarvam&lt;/a&gt; API instead of Gemini. Sarvam is an Indian
company which is trying to work Indian Sovereign. The models are strong on Indian
languages, which made it interesting to target. The code lives in
&lt;a href="https://github.com/bharathbhushan1/ai-learning/tree/main/test-agent-v2"&gt;&lt;code&gt;test-agent-v2&lt;/code&gt;&lt;/a&gt;,
managed with &lt;a href="https://docs.astral.sh/uv/"&gt;uv&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Functionally it is the same agent: a stdin-driven loop, the same three file
tools (&lt;code&gt;read_file&lt;/code&gt;, &lt;code&gt;list_files&lt;/code&gt;, &lt;code&gt;edit_file&lt;/code&gt;), the same Sudarshana ☸️ agent. I had typed
out most of the v1 agent by hand with as little AI help as possible. I just wanted to
get into the weeds of the mechanics, ser-deser, order of various operations, different
data structures needed etc. This time I felt confident I could relate to the different
parts of the agent. So I just asked Claude to rewrite it in python.&lt;/p&gt;</description></item><item><title>Building a Tiny Coding Agent in Go</title><link>https://bharathbhushan1.github.io/blog/posts/2026-06-28-building-a-tiny-agent/</link><pubDate>Sun, 28 Jun 2026 09:00:00 +0530</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2026-06-28-building-a-tiny-agent/</guid><description>&lt;p&gt;I built a small CLI coding agent in Go, following Thorsten Ball&amp;rsquo;s
&lt;a href="https://ampcode.com/notes/how-to-build-an-agent"&gt;How to Build an Agent&lt;/a&gt;. It
runs against the free tier of Gemini (&lt;code&gt;gemini-2.5-flash-lite&lt;/code&gt;), so the whole
thing costs nothing to play with. The code lives in
&lt;a href="https://github.com/bharathbhushan1/ai-learning/tree/main/test-agent"&gt;&lt;code&gt;test-agent&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;Agent&lt;/em&gt; abstraction has a method to get user input, an api key to call the
LLM and a list of tools. The Agentic loop gets textual user input, sends it
to the LLM, and displays the output back to the user.&lt;/p&gt;</description></item><item><title>AI Agents</title><link>https://bharathbhushan1.github.io/blog/posts/2026-06-24-ai-agents/</link><pubDate>Wed, 24 Jun 2026 09:00:00 +0530</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2026-06-24-ai-agents/</guid><description>&lt;p&gt;&lt;img alt="AI Agents" loading="lazy" src="https://bharathbhushan1.github.io/blog/images/ai-agents.svg"&gt;&lt;/p&gt;
&lt;p&gt;This is the architecture of a typical AI Agent. There is a user operating the agent in order to get his/her task done. There is some local state which the agent can read and write. The agent itself has the following components:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The control loop or the agentic loop allows the user to interact with agent. It also orchestrates the complete user interaction flow. Along with this it also handles compaction behaviour, hooks, etc.&lt;/li&gt;
&lt;li&gt;The system prompt, other prompts and skills comprise the instructions and code needed for the agent to work.&lt;/li&gt;
&lt;li&gt;Together the above two sets of components can be called the &amp;ldquo;harness&amp;rdquo;.&lt;/li&gt;
&lt;li&gt;Code sandbox allows execution of code generated by the LLM. Tools allow various kinds of processing. MCP server and client allow connecting to various sources of data.&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>