<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vivek Pathania</title>
    <description>The latest articles on DEV Community by Vivek Pathania (@vivek_pathania_bf7f401f6a).</description>
    <link>https://dev.to/vivek_pathania_bf7f401f6a</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2435684%2Fee4c0a40-9b06-43a4-866f-dbcb6921c946.png</url>
      <title>DEV Community: Vivek Pathania</title>
      <link>https://dev.to/vivek_pathania_bf7f401f6a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vivek_pathania_bf7f401f6a"/>
    <language>en</language>
    <item>
      <title>How 8 Claude Code Agents Run My Son's AI Maths Tutor, and What Broke</title>
      <dc:creator>Vivek Pathania</dc:creator>
      <pubDate>Tue, 01 Dec 2026 07:20:20 +0000</pubDate>
      <link>https://dev.to/vivek_pathania_bf7f401f6a/how-8-claude-code-agents-run-my-sons-ai-maths-tutor-and-what-broke-4jn0</link>
      <guid>https://dev.to/vivek_pathania_bf7f401f6a/how-8-claude-code-agents-run-my-sons-ai-maths-tutor-and-what-broke-4jn0</guid>
      <description>&lt;p&gt;Ollie is an AI maths tutor I built for my 10-year-old son. She's a cartoon owl who talks him through a 30-minute session on a web page each day. Behind her, eight Claude Code agents write the next session overnight while he sleeps.&lt;/p&gt;

&lt;p&gt;When I moved Ollie from my laptop to a real server, she started skipping her own sentences. On my laptop, every line of her voice played perfectly. On the server, lines got cut off halfway or never played at all.&lt;/p&gt;

&lt;p&gt;That wasn't even the worst of it. In the early versions, some answer keys were simply wrong, so a child who had worked a question out correctly could be told he hadn't.&lt;/p&gt;

&lt;p&gt;Claude Code built the first working version remarkably fast. Testing it with my son is what showed me everything it had missed. (Why I built it in the first place is &lt;a href="https://viveksinghpathania.medium.com/ae8c9651fe02?source=friends_link&amp;amp;sk=aa13d09c702be56774d875af02adaace" rel="noopener noreferrer"&gt;a separate story&lt;/a&gt;.)&lt;/p&gt;

&lt;p&gt;This is the builder's side of that story. First, how Ollie decides what to teach next, and where I overrule it. Then, how the repo and the eight agents are set up. Last, what broke once real use met all of it, and what I'd do differently. Everything quoted comes from the &lt;a href="https://github.com/vivekpathania/claude-maths-tutor" rel="noopener noreferrer"&gt;public repo&lt;/a&gt;, so you can open any file and check.&lt;/p&gt;




&lt;h2&gt;
  
  
  How Ollie decides what comes next
&lt;/h2&gt;

&lt;p&gt;There is no lesson plan. Nothing in the repo says "three practice sessions, then a test." What happens tomorrow is worked out each night from what happened today, and from every session before it.&lt;/p&gt;

&lt;p&gt;It all rests on two scores: completion, which counts every question he got to in the end, help included, and clean, which only counts right-first-try with no clue. The grader agent's file is blunt about which one wins:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;a 10/10-completed session that was only 6/10 clean is a *hold*,
not an *advance*.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The guided questions inside a lesson count toward neither. They get their own record instead, with one of four outcomes: landed, landed after a hint, needed the second explanation, or didn't land. That record turned out more useful than I expected. It builds up by concept across topics, so an idea he keeps needing a second explanation for shows up as a pattern, not as "cycle 2 failed again." The next time the teacher agent meets that idea, it has to come at it from a different representation: a picture instead of a rephrasing.&lt;/p&gt;

&lt;h3&gt;
  
  
  What moves him, and what holds him
&lt;/h3&gt;

&lt;p&gt;The grader starts from these defaults:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Advance a difficulty level&lt;/strong&gt; after a session at 80% clean or better, with no answers revealed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Move to a check&lt;/strong&gt; after two of those in a row, or one at 90% clean with no clues opened at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A slow or slipping trend&lt;/strong&gt; holds the level, or drops one. Nothing advances on schedule just because a session happened.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;As levels rise,&lt;/strong&gt; the clues available step down, from two to one to none.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Fail a check and he goes back to practice, with a different angle on the same idea, never the same questions. Fail a second check in a row and the system stops guessing: it goes back to the lowest prerequisite he hasn't mastered. That one isn't left to the agent. &lt;code&gt;save-grading.js&lt;/code&gt; refuses to save a second failed check unless a topic to go back to has been named.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8ve9h8tkevj5o8bnlwnf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8ve9h8tkevj5o8bnlwnf.png" alt="Flow of how a topic moves: placement, lesson, three practice levels with fewer clues each time, check, mastered. Arrows show the 80% and 90% clean-score thresholds, hold or drop a level, and a backtrack after two failed checks" width="800" height="623"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;How a topic moves. The thresholds are the grader's defaults. The backtrack is enforced by a script.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The defaults are only defaults. The grader can override any of them, as long as it says why in one line. The example in its own file is a placement where he scored 3 out of 10, but the three were real attempts, all correct, and the other seven were keyboard mash. That's not a weak result. It's a smaller sample.&lt;/p&gt;
&lt;h3&gt;
  
  
  Pace, not just difficulty
&lt;/h3&gt;

&lt;p&gt;Session length is a budget, not a target. I set a daily ceiling in minutes, and the grader spends against it without having to fill it. Growth is deliberately slow, two to four more questions at a time, and the stated goal is stamina: a child who can sit a longer stretch over months, the way an exam will one day ask him to.&lt;/p&gt;

&lt;p&gt;The rule I like most resists the obvious conclusion:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Fast and correct is a mastery signal, not spare capacity.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A child who finishes well inside the budget with a strong clean score is telling you the topic is nearly done. That argues for moving him on, not padding the session with more of the same.&lt;/p&gt;

&lt;p&gt;The opposite case has a rule too. If blank answers cluster on the later, harder questions, that's treated as a confidence problem before a knowledge gap: more early wins, a shorter session, and feedback that points at a question he got right. Never more difficulty. And if it keeps happening, the grader tells me, because tiredness and motivation aren't things an agent can diagnose from a database.&lt;/p&gt;

&lt;h3&gt;
  
  
  The card he reads
&lt;/h3&gt;

&lt;p&gt;The feedback card is gated on what comes next, not on how badly it went. If a lesson is coming, there's no card at all, because he'd be reading a diagnosis of a method he's about to be taught properly.&lt;/p&gt;

&lt;p&gt;The format is mostly a list of things not to do. The right path goes in short literal lines: what he wrote, the one fix, the right answer. About forty words, hard cap. No second paragraph, because a child won't read one. It ends with a rule he can carry, and when the same mistake comes back, the card must reuse the same wording for that rule. The repetition is the point.&lt;/p&gt;

&lt;p&gt;One line in the style guide binds harder than the rest:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;never shame a wrong answer, a skip or a reveal
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The card only exists because something went wrong. That's the worst possible moment to make him feel bad about it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Where I overrule it, and the one thing I can't
&lt;/h2&gt;

&lt;p&gt;Everything above happens whether I look or not. The parent dashboard is where I check whether it's working, and where I take over.&lt;/p&gt;

&lt;p&gt;Its headline chart is the clean score, labelled as exactly that: questions he got right first try, without a clue. Completion is there too, as the softer number. If I'd led with completion, the graph would be a flat line near the top and tell me nothing. Below it, a "keep an eye on" box holds whatever the grader thinks a parent should know and a child shouldn't read.&lt;/p&gt;

&lt;p&gt;The running order is mine. I can reorder, pause or skip topics, and putting one ahead of something it depends on gets a warning, not a block, because I might know something the dependency graph doesn't.&lt;/p&gt;

&lt;p&gt;One thing is blocked, and I think it's the most important rule in the whole API. If a session is finished but not yet graded, the queue freezes. Nothing can be moved or paused, and nothing can go ahead of it. The server says so in words meant for a person:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"2D shapes and triangles" is waiting to be graded, so it cannot be moved
and nothing can go ahead of it. Run /grade first.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;His work is evidence. Reshuffling the plan before reading what he actually did means choosing his next topic from an out-of-date picture.&lt;/p&gt;

&lt;p&gt;So the division of labour is this. The agents decide how to teach and when he's ready, from a record he creates himself. I decide what gets taught and in what order. And neither of us gets to skip looking at what he did.&lt;/p&gt;




&lt;h2&gt;
  
  
  How the repo is set up
&lt;/h2&gt;

&lt;p&gt;Claude Code forgets everything between sessions, so the repo has to remember for it. I used Claude chat to design the page and do the research, and Claude Code to build everything: about three weeks around a full-time job, two of them to the version he first used.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuvj3auv9izm4ch2ay79w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuvj3auv9izm4ch2ay79w.png" alt="One small manual every agent gets, and specialist notes only the right agent reads." width="800" height="560"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;One small manual every agent gets, and specialist notes only the right agent reads.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  CLAUDE.md: say what's at stake first
&lt;/h3&gt;

&lt;p&gt;The first lines of &lt;code&gt;CLAUDE.md&lt;/code&gt; don't describe the code. They describe the job:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You are running a real child's daily maths programme: grading what they did,
deciding what their topic needs next, and building that next session. The
child never sees Claude directly — only a plain web page — so all of your
teaching reaches them through the feedback and sessions you produce.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That last sentence changed the output more than any rule below it. Once Claude knows the child only ever sees what it writes, it stops treating the words on the page as an afterthought.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt; is also loaded into every agent automatically, so everything in it costs every agent on every run. Only what several agents need stays there: the database shape, the scoring rules and the guardrails. The rest lives in &lt;code&gt;docs/&lt;/code&gt;, with a table telling each agent which file to read.&lt;/p&gt;




&lt;h2&gt;
  
  
  Eight agents, and the scripts that overrule them
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5w4cq7lkyecqh4oh3xa9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5w4cq7lkyecqh4oh3xa9.png" alt="What one /grade does. Agents write, scripts check, and it only stops for me when something fails." width="799" height="571"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;What one /grade does. Agents write, scripts check, and it only stops for me when something fails.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Every night, after my son is asleep, I type &lt;code&gt;/grade&lt;/code&gt;. Agents do the judging and the writing. Scripts sit between them as gates. The run only stops for me if a check fails, or if he has failed a topic check twice and needs to go back a step. What I see at the end is three small tables: his score, what he got wrong, and what's being built for tomorrow.&lt;/p&gt;

&lt;p&gt;Three choices did most of the work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One job per agent.&lt;/strong&gt; The grader decides what happens next, and a separate feedback agent writes the card my son reads. The grader's file says why:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You do not write the child-facing feedback card. That is the separate
feedback agent's job, run after you, from the diagnosis you produce here —
keeping it separate means that agent can focus entirely on making the card
read well, instead of copywriting being squeezed in alongside grading.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Read-only is one line of frontmatter.&lt;/strong&gt; The verifier and the curriculum reviewer can report a problem but never fix it. That takes no clever prompting. An agent can only use the tools its file lists, so theirs just leave out Write:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;---
name: verifier
tools: Read, Bash
model: sonnet
---
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Scripts make the calls that change what he learns.&lt;/strong&gt; &lt;code&gt;verify-session.js&lt;/code&gt; works out every arithmetic answer itself, without &lt;code&gt;eval&lt;/code&gt;, because the input was written by a model. &lt;code&gt;save-grading.js&lt;/code&gt; writes both scores from the raw attempt record, so the grader can't. And &lt;code&gt;answer.js&lt;/code&gt;, the one file that decides whether an answer counts, is loaded by both the browser and the tests, so there's no second copy that could drift.&lt;/p&gt;

&lt;p&gt;The expensive model runs once. Only the &lt;code&gt;curriculum&lt;/code&gt; agent uses Opus, because it runs once a school year and everything else depends on its topic map. The nightly agents all run on Sonnet.&lt;/p&gt;




&lt;h2&gt;
  
  
  What my son found
&lt;/h2&gt;

&lt;p&gt;Claude Code built every one of these, and every one got past my own testing. Each cost some of his attention, which is the one thing a tutor can't afford to waste.&lt;/p&gt;

&lt;h3&gt;
  
  
  Ollie went quiet on the server
&lt;/h3&gt;

&lt;p&gt;The audio clips were streamed, so each one started playing before it had finished downloading. On a slower connection, playback ran out before the file arrived. On my laptop the files were local, so it never happened.&lt;/p&gt;

&lt;p&gt;Now a line holds its speech bubble until the clip has fully downloaded, waits four seconds at most, and keeps clips cached. The whole voice bank, about 3.5 MB, downloads in the background once the first screen is up. Safari on the iPad needed its own fix: it only lets audio start from a tap, so the first tap starts one shared player that every later line reuses.&lt;/p&gt;

&lt;h3&gt;
  
  
  The iPad couldn't type "equilateral"
&lt;/h3&gt;

&lt;p&gt;Every question showed a number keypad, including the ones whose answer is a word. On an iPad, "equilateral" was literally impossible to type. The page already knew what kind of answer each question expected, so the keyboard now follows it.&lt;/p&gt;

&lt;h3&gt;
  
  
  The hint button hid under the keyboard
&lt;/h3&gt;

&lt;p&gt;The layout sized itself to the screen height. But iOS lays the keyboard over the page instead of shrinking it, so the clue button sat underneath, exactly when he needed it. The page now measures the space that's actually visible, and the clue button moved to the top.&lt;/p&gt;

&lt;h3&gt;
  
  
  He was marked wrong for being right
&lt;/h3&gt;

&lt;p&gt;It happened two ways. First, every question with no letters in it got "= ?" added to the end, even when it already had a blank. So "1/3 = ?/6" became "1/3 = ?/6 = ?". He saw two things to answer, typed 2/6 and then 2, and was marked wrong.&lt;/p&gt;

&lt;p&gt;Second, the early versions had no verifier agent, and some answer keys were simply wrong. Now &lt;code&gt;verify-session.js&lt;/code&gt; checks every arithmetic answer, and the &lt;code&gt;verifier&lt;/code&gt; agent re-solves everything from scratch before he sees it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F54nlu4lyjurut8zkw654.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F54nlu4lyjurut8zkw654.png" alt="Three bugs that only existed on an iPad. All three passed my testing on a laptop." width="800" height="629"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Three bugs that only existed on an iPad. All three passed my testing on a laptop.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Lessons were lectures
&lt;/h3&gt;

&lt;p&gt;The early lessons were a full walkthrough, one question, then practice. By step six he had forgotten step one. The &lt;code&gt;teacher&lt;/code&gt; agent's file now opens by saying so:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You teach in cycles: a bit of teaching, then the child works on that bit,
then the next bit. That is what a human tutor does, and it is the whole
shape of your output.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One lesson was wrong in a quieter way. The equivalent-fractions lesson started with a worked example and never said what "equivalent" means. He was left to guess the idea from watching numbers move. The teacher agent must now define the idea in plain words first, explain why the rule works, and report whether it did both, so a missing definition shows up without me reading the session file.&lt;/p&gt;

&lt;h3&gt;
  
  
  Text and sound weren't enough
&lt;/h3&gt;

&lt;p&gt;This was the biggest miss. The sessions were words and a voice, and he was losing interest, most of all in geometry.&lt;/p&gt;

&lt;p&gt;One triangle-naming session went out with no pictures at all. The author agent had reasoned, correctly, that a drawn triangle would let him answer by eye, and decided the fix was to ship it without one. The real fix was timing: the picture now arrives after he has committed to an answer.&lt;/p&gt;

&lt;p&gt;Another session had fraction bars under "1/2 = 2/4" that didn't show equal shaded amounts. The picture contradicted the lesson it sat under. &lt;code&gt;verify-session.js&lt;/code&gt; now checks diagrams against their words and blocks a save exactly as it would a wrong answer. It caught one on its first real run.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;illustrator&lt;/code&gt; agent draws all of this. The odd part of building it is that the agent has no eyes, and its file has to say so:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You cannot see the picture you make, so the checker is your eyes —
use it after every change.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the geometry sessions had real triangles in them, he loved them.&lt;/p&gt;




&lt;h2&gt;
  
  
  What nobody would have noticed
&lt;/h2&gt;

&lt;p&gt;The second list is worse, because none of it showed on screen. My son couldn't have found any of these. I found them by going back through what Claude Code had built.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fojruivuaay5hqru2whwo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fojruivuaay5hqru2whwo.png" alt="Every part of the system knew about the goal. One threw it away, and a fallback hid the loss." width="800" height="377"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Every part of the system knew about the goal. One threw it away, and a fallback hid the loss.&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A field deleted on every save.&lt;/strong&gt; Each session has a goal. &lt;code&gt;save-session.js&lt;/code&gt; built what it saved from an allowlist of fields, and the goal was never on it. Four parts of the system agreed the field existed and one quietly threw it away. A fallback on the page always showed something plausible, so nobody noticed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;My own testing became his history.&lt;/strong&gt; When I clicked through sessions in my browser to check them, my answers were graded as his. They went into his topic progress and the profile of how he learns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An open database about a named child.&lt;/strong&gt; Every route was unauthenticated, on a URL about to go public. Reading his records was the obvious risk. The worse one was that the endpoint saving his attempts feeds the grader, so a stranger could have changed what he gets taught. There are now two levels of key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The demo could have shown his real data.&lt;/strong&gt; Demo mode fell back to a default database name, which was his. It now refuses to start unless a separate demo database is set explicitly. Separately, a preview server I started served his real data because it was reading settings from the wrong folder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;59 server calls per demo visitor.&lt;/strong&gt; 58 of them were Ollie's voice clips, each going through a serverless function. On the free quota that was about 2,100 visitors a month, and running out would have taken the whole demo down, not just the voice. The clips now come from static hosting, and a visit costs one call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Small things that look like "it doesn't work".&lt;/strong&gt; A Netlify rewrite stripped the &lt;code&gt;/api&lt;/code&gt; prefix, so every API route returned 404. The database helper cached the finished connection instead of the one in progress, which caused a race when several requests arrived at once. And &lt;code&gt;npm test&lt;/code&gt; failed on a fresh clone with "MONGODB_URI is not set". I only found that by downloading the repo and running it the way a stranger would.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;99 hard-coded "he"s.&lt;/strong&gt; Both dashboards called every child "he", with no setting to change it. Anyone using it for a daughter would have seen it on every line. Pronouns are now optional, defaulting to they/them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One more, from the repo itself. A &lt;code&gt;git add&lt;/code&gt; with an out-of-date file path produced a commit of 59 file renames and no code. Pushed, it would have broken every audio reference. I caught it only because I checked what the commit contained before pushing.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;p&gt;If I started again tomorrow, I'd change six things.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Put the checker in on day one.&lt;/strong&gt; The verifier came after wrong answer keys had already reached him. Anything a model writes that a child will be marked against should be checked by something that didn't write it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test where it will actually run.&lt;/strong&gt; The audio bug, the keyboard and the keypad were all invisible on my laptop. Put it on the real server and the real iPad in the first week.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Get it in front of the user sooner.&lt;/strong&gt; Claude Code can build a lot in an evening. It can't tell you the lessons feel like lectures or that a page of text is boring. A 10-year-old tells you in one session.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make it fail closed.&lt;/strong&gt; The open API and the demo falling back to his data had the same cause: when a setting was missing, the code carried on with a default. Now a missing setting stops everything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run it as a stranger would.&lt;/strong&gt; Download it fresh, follow the README, and see what breaks. Then read what each commit actually contains before you push it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write down the why, not just the rule.&lt;/strong&gt; The comments in &lt;code&gt;answer.js&lt;/code&gt; and the agent files explain why each rule exists. That's what stops a later Claude session, or me, from undoing a fix nobody remembers making.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The gap I haven't closed yet is the one a reader pointed out after my first article: he still has no way to tell Ollie "I think you're wrong" other than quitting. That's next.&lt;/p&gt;




&lt;p&gt;&lt;a href="https://demo-math-tutor.netlify.app/" rel="noopener noreferrer"&gt;&lt;strong&gt;Try a session&lt;/strong&gt;&lt;/a&gt; (get one wrong on purpose).&lt;br&gt;
&lt;a href="https://github.com/vivekpathania/claude-maths-tutor" rel="noopener noreferrer"&gt;&lt;strong&gt;Code on GitHub&lt;/strong&gt;&lt;/a&gt;: MIT licence.&lt;br&gt;
&lt;a href="https://vivekpathania.github.io/claude-maths-tutor/" rel="noopener noreferrer"&gt;&lt;strong&gt;Full architecture&lt;/strong&gt;&lt;/a&gt;: the whole system on one page.&lt;br&gt;
&lt;a href="https://viveksinghpathania.medium.com/ae8c9651fe02?source=friends_link&amp;amp;sk=aa13d09c702be56774d875af02adaace" rel="noopener noreferrer"&gt;&lt;strong&gt;The original story&lt;/strong&gt;&lt;/a&gt;: why I built Ollie.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If you're building something similar, or you think a script shouldn't get the final word, I'd like to hear it. &lt;a href="https://www.linkedin.com/in/viveksinghpathania" rel="noopener noreferrer"&gt;Connect with me on LinkedIn&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>agents</category>
      <category>webdev</category>
    </item>
    <item>
      <title>From Pip to Lightning: How uv Opened My Eyes to Better Python Workflows</title>
      <dc:creator>Vivek Pathania</dc:creator>
      <pubDate>Wed, 02 Apr 2025 09:02:42 +0000</pubDate>
      <link>https://dev.to/vivek_pathania_bf7f401f6a/from-pip-to-lightning-how-uv-opened-my-eyes-to-better-python-workflows-20m7</link>
      <guid>https://dev.to/vivek_pathania_bf7f401f6a/from-pip-to-lightning-how-uv-opened-my-eyes-to-better-python-workflows-20m7</guid>
      <description>&lt;p&gt;&lt;em&gt;If you build LLM agents, fine-tune models, or stitch together vector stores and APIs—&lt;code&gt;uv&lt;/code&gt; will save you time, reduce friction, and simplify your stack.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem with Python for AI Projects
&lt;/h2&gt;

&lt;p&gt;When you're building AI agents or orchestration systems, you're not just writing code. You're juggling:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;transformers&lt;/code&gt;, &lt;code&gt;langchain&lt;/code&gt;, &lt;code&gt;llama-index&lt;/code&gt;, &lt;code&gt;openai&lt;/code&gt;, &lt;code&gt;pydantic&lt;/code&gt;, &lt;code&gt;torch&lt;/code&gt;, &lt;code&gt;uvicorn&lt;/code&gt;, &lt;code&gt;numpy&lt;/code&gt;, and twenty others.&lt;/li&gt;
&lt;li&gt;Environments across local dev, notebooks, cloud functions, Docker containers.&lt;/li&gt;
&lt;li&gt;Rapid iteration cycles and fast-moving dependencies.&lt;/li&gt;
&lt;li&gt;Dependency conflicts and compatibility issues.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a long time, I used &lt;code&gt;pip&lt;/code&gt;, &lt;code&gt;venv&lt;/code&gt;, and &lt;code&gt;pip-tools&lt;/code&gt;. They worked—until they didn't.&lt;/p&gt;

&lt;p&gt;Eventually, I hit the wall. And then I found &lt;code&gt;uv&lt;/code&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Day I Realized I Was Doing It All Wrong
&lt;/h2&gt;

&lt;p&gt;I was working on two of my personal AI projects:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://github.com/vivekpathania/ai-experiments/tree/main/mcp" rel="noopener noreferrer"&gt;&lt;strong&gt;MCP SQL Server&lt;/strong&gt;&lt;/a&gt; – a lightweight server that lets LLM agents interact with SQL databases.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/vivekpathania/ai-experiments/tree/main/mcp-agent-experiment" rel="noopener noreferrer"&gt;&lt;strong&gt;MCP SQL Chatbot &amp;amp; Dashboard&lt;/strong&gt;&lt;/a&gt; – a project that combines natural language querying with an interactive dashboard.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Both were pushing the limits of what I could manage with &lt;code&gt;pip&lt;/code&gt;, &lt;code&gt;pip-tools&lt;/code&gt;, and &lt;code&gt;venv&lt;/code&gt;. Every time I touched a dependency, something broke. Docker builds got bloated. Dev setup instructions kept growing.&lt;/p&gt;

&lt;p&gt;Then I tried &lt;code&gt;uv&lt;/code&gt;. Within 20 minutes, I had:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Killed off my &lt;code&gt;requirements.txt&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Replaced multiple tools with one&lt;/li&gt;
&lt;li&gt;Cut my Docker build time by over half&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It felt like I had been living under a rock. I genuinely couldn’t believe how much simpler Python dev could be.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I Ditched Pip and Adopted &lt;code&gt;uv&lt;/code&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;code&gt;uv&lt;/code&gt; is Unreasonably Fast
&lt;/h3&gt;

&lt;p&gt;Installing heavy packages like &lt;code&gt;torch&lt;/code&gt; or &lt;code&gt;sentence-transformers&lt;/code&gt; used to take 30+ seconds. With &lt;code&gt;uv&lt;/code&gt;, it's often done in under 2 seconds. No exaggeration.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. One Tool for Everything
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;uv&lt;/code&gt; replaces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;pip&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;virtualenv&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pip-tools&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pipx&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;poetry&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pyenv&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;twine&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And it's fast at every step.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Reproducibility Just Works
&lt;/h3&gt;

&lt;p&gt;With &lt;code&gt;pyproject.toml&lt;/code&gt; and &lt;code&gt;uv.lock&lt;/code&gt;, your environments are consistent across machines, platforms, and Python versions.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is &lt;code&gt;uv&lt;/code&gt;, Really?
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;"A single tool to replace pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv, and more."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Built in Rust by Astral (creators of &lt;code&gt;ruff&lt;/code&gt;), &lt;code&gt;uv&lt;/code&gt; isn't a wrapper—it's a full rethinking of Python packaging, designed for speed and simplicity.&lt;/p&gt;




&lt;h2&gt;
  
  
  My Workflow with &lt;code&gt;uv&lt;/code&gt; (No More &lt;code&gt;requirements.txt&lt;/code&gt;)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv init agentlab
&lt;span class="nb"&gt;cd &lt;/span&gt;agentlab
&lt;span class="o"&gt;![&lt;/span&gt;Image description]&lt;span class="o"&gt;(&lt;/span&gt;https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zu5q8l793xmrn266etcp.png&lt;span class="o"&gt;)&lt;/span&gt;
uv add langchain openai llama-index sentence-transformers
uv run app.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Want to add dev-only packages?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv add &lt;span class="nt"&gt;--dev&lt;/span&gt; pytest black
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Upgrade everything?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv lock &lt;span class="nt"&gt;--upgrade&lt;/span&gt;
uv &lt;span class="nb"&gt;sync&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Need Python 3.11?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv venv .venv &lt;span class="nt"&gt;--python&lt;/span&gt; 3.11
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Managing Packages with &lt;code&gt;uv pip&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Stick to the interface you know:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv pip &lt;span class="nb"&gt;install &lt;/span&gt;transformers
uv pip uninstall numpy
uv pip freeze
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same syntax, faster performance, better reproducibility.&lt;/p&gt;




&lt;h2&gt;
  
  
  Running Python Code with &lt;code&gt;uv run&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;No need to activate &lt;code&gt;.venv&lt;/code&gt;. Just run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv run train.py
uv run python scripts/agent_cli.py
uv run pytest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This syncs your environment and runs the command in one go. Useful in CI scripts, notebooks, or any dev loop.&lt;/p&gt;




&lt;h2&gt;
  
  
  &lt;code&gt;uv sync&lt;/code&gt;: The Backbone of Everything
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv &lt;span class="nb"&gt;sync&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This one command:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Installs Python if needed&lt;/li&gt;
&lt;li&gt;Sets up &lt;code&gt;.venv&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Installs dependencies&lt;/li&gt;
&lt;li&gt;Updates the lock file&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It replaces:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python &lt;span class="nt"&gt;-m&lt;/span&gt; venv .venv
&lt;span class="nb"&gt;source&lt;/span&gt; .venv/bin/activate
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  &lt;code&gt;uvx&lt;/code&gt;: Disposable Tools On-Demand
&lt;/h2&gt;

&lt;p&gt;Want to run a CLI tool without cluttering your environment?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uvx pycowsay &lt;span class="s2"&gt;"Hello from uv"&lt;/span&gt;
uvx django-admin startproject newapp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In my MCP projects, I used &lt;code&gt;uvx&lt;/code&gt; to test tools and setup scripts without polluting my main environment. This saved me countless hours cleaning up old installs or reverting accidental global changes.&lt;/p&gt;




&lt;h2&gt;
  
  
  Dev vs Prod Dependencies and CI Integration
&lt;/h2&gt;

&lt;p&gt;One of the best features in &lt;code&gt;uv&lt;/code&gt; is how it handles &lt;strong&gt;dependency groups&lt;/strong&gt;. These let you clearly separate packages based on how and where they’re used—keeping your production environments lean and your development environments rich.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;uv&lt;/code&gt; supports named groups, like &lt;code&gt;dev&lt;/code&gt;, &lt;code&gt;prod&lt;/code&gt;, &lt;code&gt;testing&lt;/code&gt;, or even custom ones like &lt;code&gt;notebooks&lt;/code&gt;, &lt;code&gt;viz&lt;/code&gt;, or &lt;code&gt;docker&lt;/code&gt;. By default, there’s an implicit &lt;code&gt;main&lt;/code&gt; group for core dependencies.&lt;/p&gt;

&lt;p&gt;Here’s how you might organize them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;main&lt;/code&gt;: core app dependencies (e.g., &lt;code&gt;langchain&lt;/code&gt;, &lt;code&gt;llama-index&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;dev&lt;/code&gt;: tools used in development (e.g., &lt;code&gt;pytest&lt;/code&gt;, &lt;code&gt;jupyter&lt;/code&gt;, &lt;code&gt;black&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;prod&lt;/code&gt;: deployment-time packages (e.g., &lt;code&gt;gunicorn&lt;/code&gt;, &lt;code&gt;uvicorn&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;notebooks&lt;/code&gt;: interactive and experimental tools (e.g., &lt;code&gt;matplotlib&lt;/code&gt;, &lt;code&gt;pandas&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Adding packages to groups
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv add &lt;span class="nt"&gt;--dev&lt;/span&gt; jupyterlab
uv add &lt;span class="nt"&gt;--group&lt;/span&gt; prod fastapi gunicorn
uv add &lt;span class="nt"&gt;--group&lt;/span&gt; notebooks seaborn plotly
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This updates your &lt;code&gt;pyproject.toml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="nn"&gt;[project]&lt;/span&gt;
&lt;span class="py"&gt;dependencies&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="s"&gt;"llama-index"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s"&gt;"langchain"&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="nn"&gt;[dependency-groups.dev]&lt;/span&gt;
&lt;span class="py"&gt;dependencies&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="s"&gt;"jupyterlab"&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="nn"&gt;[dependency-groups.prod]&lt;/span&gt;
&lt;span class="py"&gt;dependencies&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="s"&gt;"gunicorn"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s"&gt;"fastapi"&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="nn"&gt;[dependency-groups.notebooks]&lt;/span&gt;
&lt;span class="py"&gt;dependencies&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
  &lt;span class="s"&gt;"seaborn"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s"&gt;"plotly"&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Installing specific groups
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv &lt;span class="nb"&gt;sync&lt;/span&gt; &lt;span class="nt"&gt;--no-group&lt;/span&gt; dev &lt;span class="nt"&gt;--group&lt;/span&gt; prod
uv &lt;span class="nb"&gt;sync&lt;/span&gt; &lt;span class="nt"&gt;--group&lt;/span&gt; dev &lt;span class="nt"&gt;--group&lt;/span&gt; notebooks
uv &lt;span class="nb"&gt;sync&lt;/span&gt; &lt;span class="nt"&gt;--no-group&lt;/span&gt; dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Using Groups in GitHub Actions (CI/CD)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;build&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v3&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Install uv&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;curl -LsSf https://astral.sh/uv/install.sh | sh&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Sync only prod dependencies&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
          &lt;span class="s"&gt;uv sync --no-group dev --group prod&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Run tests&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;uv run pytest&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Docker-Friendly by Design
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;ENV&lt;/span&gt;&lt;span class="s"&gt; UV_PROJECT_ENVIRONMENT=/code/.venv&lt;/span&gt;
&lt;span class="k"&gt;COPY&lt;/span&gt;&lt;span class="s"&gt; pyproject.toml uv.lock /_lock/&lt;/span&gt;
&lt;span class="k"&gt;RUN &lt;/span&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /_lock &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; uv &lt;span class="nb"&gt;sync&lt;/span&gt; &lt;span class="nt"&gt;--frozen&lt;/span&gt; &lt;span class="nt"&gt;--no-group&lt;/span&gt; dev &lt;span class="nt"&gt;--group&lt;/span&gt; prod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Cheatsheet: &lt;code&gt;uv&lt;/code&gt; vs Traditional Tools
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Operation&lt;/th&gt;
&lt;th&gt;Traditional Tool&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;uv&lt;/code&gt; Equivalent&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Install Python&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;pyenv&lt;/code&gt;, &lt;code&gt;apt&lt;/code&gt;, &lt;code&gt;brew&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;uv python install 3.11&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Create venv&lt;/td&gt;
&lt;td&gt;&lt;code&gt;python -m venv .venv&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;uv venv .venv&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Install packages&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pip install&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;uv pip install&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compile lockfile&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pip-compile&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;uv pip compile&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sync environment&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pip install -r requirements.txt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;uv sync&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Add dev package&lt;/td&gt;
&lt;td&gt;Manual edit + install&lt;/td&gt;
&lt;td&gt;&lt;code&gt;uv add --dev&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Run Python in env&lt;/td&gt;
&lt;td&gt;&lt;code&gt;source .venv &amp;amp;&amp;amp; python&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;uv run&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Use CLI tool temporarily&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pipx run&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;uvx tool&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;uv&lt;/code&gt; didn’t just save me time. It changed how I think about Python environments.&lt;/p&gt;

&lt;p&gt;If you're building AI agents or ML workflows and are tired of the friction in Python's toolchain, give &lt;code&gt;uv&lt;/code&gt; a shot. It's fast, clean, and it finally feels like modern Python environment management was done right.&lt;/p&gt;

&lt;p&gt;I ditched &lt;code&gt;pip&lt;/code&gt;, &lt;code&gt;requirements.txt&lt;/code&gt;, and even &lt;code&gt;virtualenv&lt;/code&gt; workflows. I haven’t looked back.&lt;/p&gt;




&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.astral.sh/uv/" rel="noopener noreferrer"&gt;Official docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://hynek.me/articles/docker-uv/" rel="noopener noreferrer"&gt;Docker guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/astral-sh/uv/" rel="noopener noreferrer"&gt;uv GitHub&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>python</category>
    </item>
  </channel>
</rss>
