After the Go tiny coding agent, I rewrote the same thing in Python, this time pointed at the Sarvam 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 test-agent-v2, managed with uv.
Functionally it is the same agent: a stdin-driven loop, the same three file tools (read_file, list_files, edit_file), 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.
...