<?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>Python on Anthony Mineer</title><link>https://anthonymineer.me/tags/python/</link><description>Recent content in Python on Anthony Mineer</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 08 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://anthonymineer.me/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Counting Tokens Without Spending Any</title><link>https://anthonymineer.me/field-notes/counting-tokens-locally/</link><pubDate>Mon, 08 Jun 2026 00:00:00 +0000</pubDate><guid>https://anthonymineer.me/field-notes/counting-tokens-locally/</guid><description>&lt;p&gt;I kept guessing at how much context my agent prompts were eating. Not a great way to run things.&lt;/p&gt;
&lt;p&gt;The obvious fix is a token counter. The less obvious part is that you don&amp;rsquo;t need an API to build one. If you&amp;rsquo;re already running models locally, the tokenizer is right there.&lt;/p&gt;
&lt;p&gt;So I wrote a tiny CLI. Point it at a file, name a model, get a count. That&amp;rsquo;s the whole thing.&lt;/p&gt;</description></item></channel></rss>