<?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: Jose Daniel Leon Ruiz</title>
    <description>The latest articles on DEV Community by Jose Daniel Leon Ruiz (@jdevleon).</description>
    <link>https://dev.to/jdevleon</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%2F4136592%2F0c0e5e02-1b52-4df2-9d9d-41229c500302.jpg</url>
      <title>DEV Community: Jose Daniel Leon Ruiz</title>
      <link>https://dev.to/jdevleon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jdevleon"/>
    <language>en</language>
    <item>
      <title>The AI Spend That Never Shipped</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Tue, 17 Nov 2026 15:55:21 +0000</pubDate>
      <link>https://dev.to/jdevleon/the-ai-spend-that-never-shipped-2hig</link>
      <guid>https://dev.to/jdevleon/the-ai-spend-that-never-shipped-2hig</guid>
      <description>&lt;p&gt;On a flat AI subscription, every session costs something the moment you open it, whether or not anything ships. ccusage and similar tools will tell you the total. They won't tell you which part of that total actually turned into a commit.&lt;br&gt;
We added two commands to Estela this month that try to answer that, starting from data the tool was already collecting for &lt;strong&gt;estela ai-cost --by branch&lt;/strong&gt;: the hours in a session, and whether that session's branch ever got a commit linked to it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Two different ways money disappears
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;estela ai-cost --undelivered&lt;/strong&gt; splits the unlinked spend into two buckets that never overlap:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sessions without a commit: a chat with no commit of yours in that repo during it, or in the half hour after it ends. If a commit does land on that branch later, it moves out of this bucket entirely, because iterating before you're happy with the result is still work.- Stale branches: a branch that has AI cost attached to it but has sat idle for 14 days by default (configurable with --stale-days), with nothing delivered on it since.The two cases are easy to confuse and worth keeping separate. The first is exploration you walked away from mid-session. The second is a branch you fully intended to come back to and didn't. Lumping them into one "wasted spend" number hides which problem you actually have.
### Nothing new is being tracked
This is the part we liked most about building it: there's no new instrumentation. Estela already links a session's cost to a branch to answer "what did this feature cost" for billing. --undelivered just asks the inverse question of the same linkage: which branches have cost attached to them and nothing to show for it.
That also means the same caveats from the attribution system apply here. A PR merged with squash leaves no merge commit, so a branch can look stale even after it shipped, unless the squash merge is read from the PR itself. Copilot sessions count their hours but carry no cost, since Copilot is a flat subscription with no per-token price. Anything with no basis for attribution goes to "Unattributed," not spread across projects by guesswork.
### Why bother
None of this is about feeling bad over an abandoned branch. It's about having a real denominator. "I spent $40 in AI this month" means something different once you know $6 of it never turned into a commit versus $6 of it is sitting on a branch you're still actively iterating on. Only one of those is actually a problem to go fix.
Estela is open source and runs entirely on your machine: &lt;strong&gt;npx estela setup&lt;/strong&gt; rebuilds your history from what Claude Code, Codex, Copilot and git already wrote to disk, nothing leaves it. If this is useful to you, a star helps more people find it: &lt;a href="https://github.com/jdleonruiz/estela-cli?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=undelivered-spend" rel="noopener noreferrer"&gt;https://github.com/jdleonruiz/estela-cli?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=undelivered-spend&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>claude</category>
      <category>showdev</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Your AI bill says how much. Git knows what for.</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Fri, 13 Nov 2026 15:30:36 +0000</pubDate>
      <link>https://dev.to/jdevleon/your-ai-bill-says-how-much-git-knows-what-for-p8l</link>
      <guid>https://dev.to/jdevleon/your-ai-bill-says-how-much-git-knows-what-for-p8l</guid>
      <description>&lt;p&gt;Most AI cost tools answer one question: how much did I spend? It's a useful number until someone asks a better one. What did the export the client asked for cost? What about the branch that got three afternoons of work and never merged?&lt;br&gt;
Estela is an open source CLI that reads your local coding-agent logs and your git history. Since 0.4 it answers that second question: what each AI dollar delivered, per PR and per ticket. The report is the easy part. The interesting part is the join, and what to do when the join doesn't work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two sources and one missing link
&lt;/h2&gt;

&lt;p&gt;Claude Code writes every session to disk, and each turn carries a timestamp, token counts and the git branch. Git knows which branches were merged, because a normal PR merge leaves a commit that says so: "Merge pull request #31 from …".&lt;br&gt;
Put those together and a turn maps to a branch, a branch to a PR, and a PR to its hours and its cost. &lt;strong&gt;estela ai-cost --by item&lt;/strong&gt; gives you that per ticket and PR, and &lt;strong&gt;--by branch&lt;/strong&gt; per branch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two costs, because there are two questions
&lt;/h2&gt;

&lt;p&gt;Every row carries two money figures, and they measure different things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;API price&lt;/strong&gt; measures usage: what those tokens would have cost if you paid per token.- &lt;strong&gt;Your share of the subscription&lt;/strong&gt; is money actually paid: the flat fee, divided according to real usage.They can disagree, and the disagreement is useful. On a light month the subscription can cost more than the API would have, which is worth knowing before you renew.
The share has to be honest in aggregate too. In &lt;strong&gt;estela summary&lt;/strong&gt;, the report meant for finance, a closed month adds up to exactly your subscription. Months follow your local clock, not UTC.
## Every row says why it was attributed
A cost per PR is only as good as the reason it landed on that PR, so each row names its basis: the branch the agent recorded, a number in the branch name (feat/12-login), a #12 in a commit, a manual &lt;strong&gt;estela entry link&lt;/strong&gt;, or the PR's merge commit.
Whatever has no basis goes to "Unattributed", whole. We don't spread it across PRs so the totals look tidy. That line is information in its own right: it's how much of your spend you can't explain.
## Where the join breaks
Most of the work went into the cases where the clean story above isn't true:&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Squash merges&lt;/strong&gt; leave no merge commit, so git alone can't tie the branch to its PR. If &lt;strong&gt;estela delivery&lt;/strong&gt; has read the PR through gh, the squashed branch at least stops being counted as unmerged.- &lt;strong&gt;A session that changes branch&lt;/strong&gt; used to land entirely on the last one. Now the block is split at the moment of the switch and each branch gets its own hours and cost. The day's total doesn't change.- &lt;strong&gt;GitLab numbers issues and merge requests separately&lt;/strong&gt;, so issue #45 and MR !45 are different things. We were storing them under the same key, which could merge their costs. An MR is now !45.- &lt;strong&gt;Copilot doesn't store tokens&lt;/strong&gt;, so its hours count but its cost is unknown, and the row is marked. Agents whose sessions we don't read yet, like Cursor, produce no AI cost at all.## Planned versus delivered
&lt;strong&gt;estela delivery&lt;/strong&gt; compares a plan, defined by a label or a milestone in GitHub or GitLab, with what actually shipped. You get three blocks, each with hours and AI cost: planned and delivered, planned and not delivered, and delivered without being planned.
It reads the tracker through your own gh or glab, and &lt;strong&gt;--offline&lt;/strong&gt; skips that call. One caveat: GitLab doesn't distinguish an issue closed as done from one closed as not done, so closed counts as delivered unless the issue moved to another project.
&lt;strong&gt;estela delivery --by client&lt;/strong&gt; does the same for client requests, using labels like cliente:acme. Work that served several clients isn't divided by guesswork.
## The uncomfortable number
&lt;strong&gt;estela ai-cost --undelivered&lt;/strong&gt; adds up, per project, the cost of sessions with no commit at all and of branches still unmerged after 14 days (configurable). It's a signal to review, not a verdict: exploring and investigating are work too. And what can't be known, like a deleted branch that may have been a squash, is shown apart and doesn't count.
## Try it
&lt;strong&gt;npx estela setup&lt;/strong&gt; needs Node 22.5 or later, with no account. Everything stays local by default, and the code is here: &lt;a href="https://github.com/jdleonruiz/estela-cli?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=novedades-0-4" rel="noopener noreferrer"&gt;github.com/jdleonruiz/estela-cli&lt;/a&gt;
When you look at your own AI spend, how much of it could you tie to something that shipped?&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>claude</category>
      <category>showdev</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>What You See Is What Gets Charged: Fixing a Double-Billing Bug in a Modular SaaS</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Tue, 10 Nov 2026 20:38:53 +0000</pubDate>
      <link>https://dev.to/jdevleon/what-you-see-is-what-gets-charged-fixing-a-double-billing-bug-in-a-modular-saas-1m2i</link>
      <guid>https://dev.to/jdevleon/what-you-see-is-what-gets-charged-fixing-a-double-billing-bug-in-a-modular-saas-1m2i</guid>
      <description>&lt;p&gt;Most billing bugs aren't about the invoice math. They're about having two code paths that both think they're responsible for charging the customer.&lt;br&gt;
We just shipped a fix for exactly that in DymCore, our invoicing and billing platform for small businesses. The commit message says it plainly: "lo que se ve es lo que se cobra" — what you see on screen should be what gets charged, no more, no less.&lt;br&gt;
DymCore lets businesses add paid modules on top of their base plan. Module purchases touch two places in the codebase: a module-billing service that handles the module's own lifecycle, and the store/billing service that aggregates everything into what the customer actually pays. When both paths compute a charge for the same module instead of agreeing on a single total, the business ends up billed twice for one thing.&lt;br&gt;
The fix consolidates that logic into one place: a new consolidated-billing.ts module that becomes the single source of truth for what a combination of modules should cost. billing.service.ts, module-billing.service.ts and store.service.ts were all updated to go through it instead of calculating their own partial totals.&lt;br&gt;
We also added a dedicated spec file, cobro-consolidado.spec.ts, with 111 lines of tests just for the consolidated path, covering module combinations that previously had no coverage at all. The billing dashboard on the frontend was updated too, so what the business owner sees on the page matches what the consolidated service actually charges.&lt;br&gt;
None of this is glamorous work. It never shows up in a changelog a user reads, but it's the difference between a business trusting its invoice or opening a support ticket. If you're building anything with modular pricing, it's worth asking early: is there exactly one place in your code that decides what a customer pays, or did that logic quietly grow in two places at once?&lt;br&gt;
DymCore is an invoicing and billing platform built for small businesses in Ecuador and Latin America, including SRI-compliant electronic invoicing. More at &lt;a href="https://dymcore.com?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=double-billing-fix" rel="noopener noreferrer"&gt;dymcore.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>saas</category>
      <category>testing</category>
    </item>
    <item>
      <title>A Deleted Log File Was Quietly Doubling Our Billable Hours</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Tue, 03 Nov 2026 15:30:06 +0000</pubDate>
      <link>https://dev.to/jdevleon/a-deleted-log-file-was-quietly-doubling-our-billable-hours-25ol</link>
      <guid>https://dev.to/jdevleon/a-deleted-log-file-was-quietly-doubling-our-billable-hours-25ol</guid>
      <description>&lt;p&gt;Estela is a CLI that turns your local Claude Code and Codex session logs into billable hours. It does this two ways: it reads the agent's own transcripts to measure real work sessions, and it looks at your git commits to catch the work that happened without an agent open. Those two sources have to agree on who gets credit for a given stretch of time, or you end up billing the same hour twice.&lt;br&gt;
Last week we shipped a fix for exactly that: a bug where deleting a file you never touch directly — Claude Code's own transcript — could quietly double your invoice.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the two sources are supposed to not overlap
&lt;/h2&gt;

&lt;p&gt;Every commit gets checked against the agent sessions that were scanned from disk. If a commit falls inside a session's time window and matches its repo, it's folded into that session — the agent already measured that time, so the commit adds nothing new. If a commit falls outside every known session, it's treated as unassisted work and billed at an estimated rate based on the diff size.&lt;br&gt;
That filter only works if "the agent sessions that were scanned from disk" is actually the full picture.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug: disk isn't the source of truth, the database is
&lt;/h2&gt;

&lt;p&gt;Claude Code prunes its own old transcript files. That's expected behavior on its end — it's not meant to keep every session forever. But Estela's overlap check was built around re-scanning whatever transcripts currently exist on disk. Once Claude Code cleaned up an old one, that session stopped existing as far as the overlap check was concerned.&lt;br&gt;
The commits made during that now-deleted session didn't disappear, though. On the next import, they no longer matched any visible agent session, so they fell through to the "unassisted work" path and generated a brand new estimated-hours entry — on top of hours that had already been measured once, and in some cases already invoiced.&lt;br&gt;
The fix sounds almost too simple: stop comparing against what's on disk right now, and compare against everything Estela has ever saved to its own local database instead. Every turn Estela ingests gets written to a local table and nothing ever deletes from it, even after the source transcript is gone. Once the overlap check reads from that permanent record instead of the ephemeral one, a pruned transcript can't resurrect its commits as new work.&lt;br&gt;
The deeper lesson generalizes past this one bug: when you reconcile two sources of truth and one of them is a live filesystem scan, "not found in today's scan" is not the same fact as "never happened." Any logic that treats absence from a live scan as absence, period, will eventually mistake something it already knew for something new.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two smaller bugs from the same week, same root shape
&lt;/h2&gt;

&lt;p&gt;Fixing this one surfaced two related double-counting bugs that had been sitting in the same code path.&lt;br&gt;
The first: the overlap check matched sessions to commits by exact repository path. A commit made at the root of a repo didn't match a session that was open in a subfolder of that same repo — so an agent session in &lt;strong&gt;repo/src/ui&lt;/strong&gt; didn't cover a commit made in &lt;strong&gt;repo&lt;/strong&gt;, and the commit got billed again on top of the session. The fix treats "same repository" the way the rest of the codebase already did when attaching commits to sessions: the commit's folder being the session's root or a subfolder of it counts as a match.&lt;br&gt;
The second isn't a double-count, it's a different kind of integrity problem: re-running the hours calculation could silently rewrite a day the user had already approved. Approving a day is supposed to mean "this number is final" — often it's already been shared with a client. A later change to how hours are computed was overwriting approved entries along with everything else. The fix adds &lt;strong&gt;approved&lt;/strong&gt; as a second guard alongside the existing &lt;strong&gt;already invoiced&lt;/strong&gt; guard: once a day is approved, a recompute leaves it alone until someone explicitly un-approves it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we told existing users
&lt;/h2&gt;

&lt;p&gt;If you'd been invoicing from Estela since this bug was introduced, the honest answer wasn't "it's fixed now, don't worry about it." It was: go check the commit-derived time entries you haven't invoiced yet, because some of them might be the ghost of a session you already billed. We said that directly in the release notes instead of papering over it.&lt;br&gt;
Estela is open source. If you're tracking AI-assisted work for billing and want to see how the session/commit reconciliation works end to end, the repo is here: &lt;a href="https://github.com/jdleonruiz/estela-cli?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=double-billed-hours" rel="noopener noreferrer"&gt;https://github.com/jdleonruiz/estela-cli?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=double-billed-hours&lt;/a&gt;. If it's useful, a star helps more people run into this before it costs them a client's trust.&lt;br&gt;
Have you hit a similar "the live scan forgot something the database still knew" bug in your own tooling? I'd like to hear how you caught it.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>showdev</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>The Rate-Limit Data Was Already in Claude Code's Own Logs</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Wed, 28 Oct 2026 14:45:14 +0000</pubDate>
      <link>https://dev.to/jdevleon/the-rate-limit-data-was-already-in-claude-codes-own-logs-730</link>
      <guid>https://dev.to/jdevleon/the-rate-limit-data-was-already-in-claude-codes-own-logs-730</guid>
      <description>&lt;p&gt;When Claude Code hits a rate limit, it doesn't just show you a banner and move on. It writes the full rate-limit response into your own session transcript — which window got hit, and exactly when it resets. Most people never look at that line again.&lt;br&gt;
We ran into this building &lt;strong&gt;estela plan&lt;/strong&gt;, a command that tells you whether your Claude subscription (Pro, Max 5x, Max 20x) actually fits how you work. The obvious way to answer that is to start sampling your usage percentage going forward — which is what we shipped first, in 0.2.4: the status line already reports a 5-hour and a 7-day percentage, so we log it locally every few minutes.&lt;br&gt;
But that only gives you data from the day you installed it. The real question — has this plan been blocking me — needs history, and we assumed there was none to recover.&lt;/p&gt;

&lt;h2&gt;
  
  
  It was already there
&lt;/h2&gt;

&lt;p&gt;Every time a request comes back as a 429, or Claude Code marks it rejected, it writes a &lt;strong&gt;quotaLimits&lt;/strong&gt; block into the JSONL transcript: the window type (&lt;strong&gt;five_hour&lt;/strong&gt; or &lt;strong&gt;seven_day&lt;/strong&gt;) and the timestamp it resets at. That's an official record from the tool itself, sitting on disk since before we wrote a single line of estela plan.&lt;br&gt;
So the hard part wasn't finding the data. It was reading it safely.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading months of transcripts without re-reading months of transcripts
&lt;/h2&gt;

&lt;p&gt;A month of transcripts can run into hundreds of megabytes, across dozens of files that keep growing while Claude Code is running. Re-parsing everything on every check was never going to work, so the scanner keeps a byte offset per file and only reads what's new since last time.&lt;br&gt;
The detail that actually mattered: it never trusts the last line of what it just read. It cuts at the last complete newline and remembers that exact byte position, so a line that's half-written when we read it gets picked up whole on the next pass, instead of failing to parse, or worse, parsing a truncated JSON object into garbage.&lt;br&gt;
Matching is intentionally narrow: it only even attempts to parse a line if it contains the literal string quotaLimits, then checks that the window type is one of the two valid values, the reset timestamp is a real number, and the status actually indicates a block. Anything else, a malformed or partial line, is skipped, not guessed at.&lt;/p&gt;

&lt;h2&gt;
  
  
  A smaller lesson in the same release
&lt;/h2&gt;

&lt;p&gt;The plan prices and session multipliers Anthropic publishes are hardcoded in one small file, on purpose, with the exact date they were last checked against claude.com/pricing next to them. If that date is more than 90 days old, &lt;strong&gt;estela plan&lt;/strong&gt; says so instead of quietly showing a number that might not be true anymore. Anthropic doesn't publish how the weekly limit compares across plans at all, so that comparison is simply left out rather than estimated.&lt;/p&gt;

&lt;h2&gt;
  
  
  The actual takeaway
&lt;/h2&gt;

&lt;p&gt;Before you build a new logging layer on top of a tool, it's worth checking what that tool already wrote down when it failed. In this case, the monitoring we thought we had to start from zero already existed, as a side effect of Claude Code just doing its job honestly when it rejected a request.&lt;br&gt;
&lt;strong&gt;estela plan&lt;/strong&gt; is open source, part of the Estela CLI: &lt;a href="https://github.com/jdleonruiz/estela-cli?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=429-blocks" rel="noopener noreferrer"&gt;github.com/jdleonruiz/estela-cli&lt;/a&gt;&lt;br&gt;
Have you found a case where the tool you were trying to monitor had already logged exactly what you needed?&lt;/p&gt;

</description>
      <category>claude</category>
      <category>showdev</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Validating ID numbers from 7 Spanish-speaking countries with check digits</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Tue, 27 Oct 2026 15:32:54 +0000</pubDate>
      <link>https://dev.to/jdevleon/validating-id-numbers-from-7-spanish-speaking-countries-with-check-digits-bbh</link>
      <guid>https://dev.to/jdevleon/validating-id-numbers-from-7-spanish-speaking-countries-with-check-digits-bbh</guid>
      <description>&lt;p&gt;People paste contracts, client lists and bank emails into ChatGPT every day. We built &lt;a href="https://github.com/zaisor-technology/veloprompt?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=lanzamiento-veloprompt" rel="noopener noreferrer"&gt;VeloPrompt&lt;/a&gt;, an open-source (MIT) browser extension that spots personal data before it reaches an AI chat and swaps it for labels like [CEDULA_1] or [IBAN_1]. The AI works with the labels; the real values come back only on your screen.&lt;br&gt;
Most tools in this space are built around US and English formats. Our users are in Spain and Latin America, where the sensitive numbers are a cédula, a RUC, a DNI, a CURP or a RUT. This post is about the part that took the most care: detecting those numbers without flagging every order ID and invoice amount.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shape is not enough
&lt;/h2&gt;

&lt;p&gt;A 10-digit number can be an Ecuadorian cédula, a phone number, an order ID or a timestamp. If you match by shape alone, the extension warns on everything and people turn it off. So every rule validates the number's own check digit before it counts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three examples
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Ecuador, cédula (modulo 10).&lt;/strong&gt; The first two digits are the province (01-24 or 30). Multiply the first nine digits by 2,1,2,1,..., subtract 9 from any product above 9, sum them, and the check digit is (10 - sum mod 10) mod 10.&lt;br&gt;
&lt;strong&gt;Spain, DNI/NIF (letter).&lt;/strong&gt; The letter is "TRWAGMYFPDXBNJZSQVHLCKE"[number mod 23]. For a NIE, replace the leading X, Y or Z with 0, 1 or 2 and apply the same rule.&lt;br&gt;
&lt;strong&gt;Chile, RUT (modulo 11).&lt;/strong&gt; Multiply the digits from right to left by 2,3,4,5,6,7 (and repeat), take 11 - (sum mod 11); 11 means 0 and 10 means K. It has to accept both 12.345.678-5 and 12345678-5.&lt;br&gt;
The same idea covers Mexico (CURP, RFC, CLABE), Colombia (NIT), Peru (RUC), Argentina (CUIT/CUIL, CBU), Spanish CIF and IBANs (mod 97), plus cards with Luhn.&lt;/p&gt;

&lt;h2&gt;
  
  
  When there is no check digit
&lt;/h2&gt;

&lt;p&gt;A Peruvian DNI or a Colombian cédula has no checksum. For those, the number only counts if a context word is nearby ("DNI", "C.C.", "cédula"). And a valid-looking number is still ignored if it follows words like "pedido", "factura" or "seguimiento", or looks like an amount.&lt;br&gt;
When two rules match the same number (a Peruvian RUC and an Argentine CUIT that both start with 20 share the same arithmetic), the one with context wins. Either way the value gets masked; only the label can differ.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing without real people
&lt;/h2&gt;

&lt;p&gt;The test suite never uses real documents. A separate generator builds valid numbers with its own implementation of each algorithm, so the tests do not validate the code against itself. Each rule is tested with valid numbers, numbers with a wrong check digit (which must not match) and look-alikes such as order IDs and dates. detect() runs on 50,000 characters in about 3 ms.&lt;/p&gt;

&lt;h2&gt;
  
  
  Everything stays local
&lt;/h2&gt;

&lt;p&gt;The engine (veloprompt-core) is plain TypeScript with no runtime dependencies. The extension makes no network requests, and the label-to-value map lives only in the tab's memory.&lt;br&gt;
Each country is one rules file with its tests, so adding a country is a small, self-contained pull request. If you work with IDs from a country we do not cover yet, we would love the contribution: &lt;a href="https://github.com/zaisor-technology/veloprompt?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=lanzamiento-veloprompt" rel="noopener noreferrer"&gt;github.com/zaisor-technology/veloprompt&lt;/a&gt;&lt;br&gt;
What do you do today to keep personal data out of AI chats?&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Why "Approved" From a Payment Gateway Isn't Enough</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Thu, 22 Oct 2026 16:45:50 +0000</pubDate>
      <link>https://dev.to/jdevleon/why-approved-from-a-payment-gateway-isnt-enough-3ch8</link>
      <guid>https://dev.to/jdevleon/why-approved-from-a-payment-gateway-isnt-enough-3ch8</guid>
      <description>&lt;p&gt;If your payment gateway responds with approved: true, do you also check that the approved amount matches what you asked it to charge?&lt;br&gt;
We didn't, until this week.&lt;br&gt;
We're building DymCore, an invoicing platform for small businesses, and one of its payment integrations is PayPhone, a payment gateway used in Ecuador. Like most integrations, our code trusted the boolean the gateway returned: if PayPhone said the transaction was approved, we marked the order as paid.&lt;br&gt;
The boolean told us the transaction went through. It never told us it went through for the right amount.&lt;br&gt;
This week we added an explicit check before confirming any order: compare the amount PayPhone approved against the amount we expected to charge. If they don't match, the payment isn't silently accepted. It raises a critical alert and the order stays unconfirmed instead of moving forward.&lt;br&gt;
We also added dedicated test coverage for the mismatch case specifically, because this is exactly the kind of check you want to be sure never regresses silently.&lt;br&gt;
The lesson generalizes past this one gateway: when a third-party system tells you "this succeeded," the amount is usually the part worth re-verifying server-side, not just the success flag. A field saying "approved" is a claim from someone else's system, not a receipt you generated yourself.&lt;br&gt;
Have you run into a payment or billing integration that approved a different amount than what was requested? Curious how other teams guard against this.&lt;br&gt;
We write about things like this while building &lt;a href="https://dymcore.com/?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=payphone-amount-check" rel="noopener noreferrer"&gt;DymCore&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>security</category>
      <category>webdev</category>
      <category>fintech</category>
    </item>
    <item>
      <title>Logging Your Own Rate-Limit History (Since Claude Code Won't)</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Tue, 20 Oct 2026 15:30:06 +0000</pubDate>
      <link>https://dev.to/jdevleon/logging-your-own-rate-limit-history-since-claude-code-wont-5fhb</link>
      <guid>https://dev.to/jdevleon/logging-your-own-rate-limit-history-since-claude-code-wont-5fhb</guid>
      <description>&lt;p&gt;Claude Code's status line will tell you you're at 73% of your 5-hour window. What it won't tell you is whether you got there gradually over four hours, or in the ten minutes after you dumped a huge file into context.&lt;br&gt;
That distinction matters more than the number itself. A slow drain means you can keep working and watch it. A sharp spike means something in your workflow is burning quota fast, and you won't know what unless you were staring at the screen when it happened.&lt;br&gt;
The problem is structural, not a bug: the percentage Claude Code reports is a live reading with no memory. The moment it updates, the previous value is gone. There's no file, no log, nothing to look back on after the fact.&lt;br&gt;
We ran into this building Estela, the open-source tool we're building to reconstruct billable hours from your coding agent sessions, so in the latest version we started keeping that history ourselves.&lt;br&gt;
It's a plain local log, ~/.estela/rate-limits.jsonl, one line per sample. The sampling is deliberately sparse: at most once every 5 minutes, unless the percentage moves by at least a point or a new reset window starts - no point logging the same number forty times an hour. Entries older than 120 days get pruned automatically. Each line stores exactly three things: the percentage, its reset time, and the Claude Code version that reported it. No session content, no file paths, no project names, and nothing leaves your machine.&lt;br&gt;
One limitation worth being upfront about: Claude Code's own transcripts don't carry these percentages, so there's no way to reconstruct history retroactively. The log starts the day you update.&lt;br&gt;
Small related note if you rely on it: the status line only renders in Claude Code's terminal - the VS Code extension doesn't show it at all.&lt;br&gt;
We're not shipping an analysis view on top of this yet - that's a line we're exploring, not a feature that exists today - but the log is there now, in case you want to query it yourself before we do.&lt;br&gt;
Repo, if you're curious how it's wired: &lt;a href="https://github.com/jdleonruiz/estela-cli?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=rate-history" rel="noopener noreferrer"&gt;github.com/jdleonruiz/estela-cli&lt;/a&gt;&lt;br&gt;
Do you track your own rate-limit usage over time, or only find out the shape of it after you've already hit the wall?&lt;/p&gt;

</description>
      <category>claude</category>
      <category>showdev</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>What clients actually mean when they ask "did you use AI for this?"</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Fri, 16 Oct 2026 15:30:27 +0000</pubDate>
      <link>https://dev.to/jdevleon/what-clients-actually-mean-when-they-ask-did-you-use-ai-for-this-l11</link>
      <guid>https://dev.to/jdevleon/what-clients-actually-mean-when-they-ask-did-you-use-ai-for-this-l11</guid>
      <description>&lt;p&gt;A client asking "did you use AI for this?" rarely means what it sounds like.&lt;br&gt;
Keito, a billing platform built around AI-assisted agency work, put it plainly in a recent post: &lt;a href="https://keito.ai/blog/billing-clients-for-ai-work/" rel="noopener noreferrer"&gt;"Clients demand visibility into whether AI was used and what value it delivered."&lt;/a&gt; That's two different questions wearing one sentence.&lt;br&gt;
The first one — did you use it — is rarely what they actually care about. Nobody refuses a chair because a machine cut the wood. What they're really asking, even when they don't phrase it that way, is closer to: can you show me the work happened, and was it worth what I'm paying?&lt;br&gt;
A token count doesn't answer that. A client doesn't know what a token is, and an invoice line that says "4.5 hours" doesn't say whether those hours built the feature or re-read the same three files after a failed attempt.&lt;br&gt;
What answers it is closer to a paper trail: hours that map to commits, commits that map to a shipped feature, on a timeline the client can open without pinging you for a status update. Not a transparency stunt — just evidence that survives a second look.&lt;br&gt;
That's the part already built into &lt;a href="https://github.com/jdleonruiz/estela-cli?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=client-transparency" rel="noopener noreferrer"&gt;Estela&lt;/a&gt;, the open-source tool we're building: a read-only panel, one per client, from the hours and cost it reconstructs locally from Claude Code and Codex session logs plus git. The client opens a link instead of asking you for an update.&lt;br&gt;
If you bill clients for work an agent touched, what do you actually show them when they ask?&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>freelancing</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Which project ate my Claude Code quota?</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Thu, 15 Oct 2026 15:15:03 +0000</pubDate>
      <link>https://dev.to/jdevleon/which-project-ate-my-claude-code-quota-1p2a</link>
      <guid>https://dev.to/jdevleon/which-project-ate-my-claude-code-quota-1p2a</guid>
      <description>&lt;p&gt;You're on a flat plan, it's mid-afternoon, and Claude Code tells you you've hit your limit. The usage screen confirms it. What it doesn't tell you is where it went.&lt;br&gt;
If you work on one repo, that's annoying. If you work on four, or you launch subagents, it's the question that matters: which project used it?&lt;br&gt;
So I added a command to &lt;a href="https://github.com/jdleonruiz/estela-cli" rel="noopener noreferrer"&gt;Estela&lt;/a&gt;, the open-source CLI I'm building: &lt;strong&gt;estela quota&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it shows
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Tokens per project for the &lt;strong&gt;current 5-hour window&lt;/strong&gt; and for &lt;strong&gt;this week&lt;/strong&gt; (Monday to today, in your time zone).&lt;/li&gt;
&lt;li&gt;Input, output, cache read and cache write as separate numbers, because they don't weigh the same.&lt;/li&gt;
&lt;li&gt;This week against the &lt;strong&gt;average of your previous 4 weeks&lt;/strong&gt; over the same stretch of days, so you can tell a heavy week from a normal one.&lt;/li&gt;
&lt;li&gt;Claude Code and Codex shown separately: they draw on different quotas.
There's also a &lt;strong&gt;--json&lt;/strong&gt; flag for scripts, and the same breakdown is a card in the Summary tab of the local dashboard (&lt;strong&gt;estela web&lt;/strong&gt;).
## What it refuses to do
It never tells you how much you have left.
Neither Anthropic nor OpenAI publish their plans' limits, so any "X tokens left" or "you'll run out on Thursday" would be a made-up number. On top of that, anything you use on claude.ai or on another machine counts against the same quota but never touches this disk.
The 5-hour window is labeled as an estimate for the same reason: how its start gets rounded isn't public.
I'd rather show real consumption with an honest caveat than a precise-looking countdown that's wrong.
## Where the numbers come from
Claude Code already writes every session to &lt;strong&gt;~/.claude/projects/&lt;/strong&gt; as JSONL, and Codex to &lt;strong&gt;~/.codex/sessions/&lt;/strong&gt;. Estela reads those files, dedupes repeated turns (Claude Code can write the same turn several times), and maps each session to a project by its working directory. Nothing leaves your machine.
Copilot is left out of this view: its local logs don't record reliable token counts.
## Try it
&lt;strong&gt;npx estela setup&lt;/strong&gt;, then &lt;strong&gt;estela quota&lt;/strong&gt;.
It's free, MIT, zero runtime dependencies. If you've ever burned through a limit and couldn't tell why, I'd like to hear what ate it. And if you find a case where the numbers look wrong, an issue on &lt;a href="https://github.com/jdleonruiz/estela-cli" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; helps a lot.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>claude</category>
      <category>showdev</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Your AI cost dashboard tells you how much. Not why.</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Tue, 13 Oct 2026 20:51:13 +0000</pubDate>
      <link>https://dev.to/jdevleon/your-ai-cost-dashboard-tells-you-how-much-not-why-1hof</link>
      <guid>https://dev.to/jdevleon/your-ai-cost-dashboard-tells-you-how-much-not-why-1hof</guid>
      <description>&lt;p&gt;A cost dashboard tells you how much you spent. It almost never tells you why.&lt;br&gt;
$340 in exploration — an agent re-reading the same three files across five failed attempts before it finds the right approach — looks identical, on most dashboards, to $340 that shipped a feature. Same currency, same token count, completely different story.&lt;br&gt;
A breakdown of Anthropic's enterprise analytics on Finout put it well: the console can tell you how much a workspace spent, but &lt;a href="https://www.finout.io/blog/anthropics-enterprise-analytics" rel="noopener noreferrer"&gt;"what it can't tell you is which human beings caused it"&lt;/a&gt; — or, I'd add, what kind of work caused it. Someone asked for exactly this gap to be closed in a &lt;a href="https://dev.to/pederaa/how-to-track-claude-code-usage-in-2026-built-in-commands-ccusage-and-desktop-dashboards-compared-1kk1"&gt;dev.to comment&lt;/a&gt;: "I want cost by workflow shape: exploration, implementation, review, failed attempts, and rework."&lt;br&gt;
That's a harder thing to build than it sounds.&lt;br&gt;
To classify a session by workflow shape you'd need to correlate agent logs (which you have) with what actually reached a commit (which lives somewhere else entirely — git, not the session file). And even then the signal is messy: not every expensive exploration is waste. Sometimes five failed attempts are what make the sixth one land in two minutes instead of twenty. A shape-based view that treats all "exploration" cost as bad would just train people to stop exploring, which is worse.&lt;br&gt;
Where this is actually useful, I think, is pattern-spotting over weeks, not judging a single session. A project where exploration cost keeps climbing relative to shipped cost is telling you something — maybe the codebase got harder to navigate, maybe the task descriptions got vaguer. A project where it stays flat is probably fine. You only notice either way if cost is tagged with some notion of what the work was, not just a daily total.&lt;br&gt;
It's a line we're exploring for &lt;a href="https://github.com/jdleonruiz/estela-cli?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=cost-workflow-shape" rel="noopener noreferrer"&gt;Estela&lt;/a&gt;, the open-source CLI we're building that already splits AI cost and hours by project from your local Claude Code and Codex logs. Linking cost to commits to tell apart exploration-that-paid-off from exploration-that-didn't is the next question on the list, not one it answers today.&lt;br&gt;
If your dashboard showed cost by workflow shape instead of by day, would you actually change anything?&lt;/p&gt;

</description>
      <category>claude</category>
      <category>showdev</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Why Your AI Cost Dashboard Never Matches Your Invoice</title>
      <dc:creator>Jose Daniel Leon Ruiz</dc:creator>
      <pubDate>Thu, 08 Oct 2026 22:56:55 +0000</pubDate>
      <link>https://dev.to/jdevleon/why-your-ai-cost-dashboard-never-matches-your-invoice-4eba</link>
      <guid>https://dev.to/jdevleon/why-your-ai-cost-dashboard-never-matches-your-invoice-4eba</guid>
      <description>&lt;p&gt;If you've ever looked at a token counter after a long session with Claude Code, Codex, or Copilot and tried to reconcile it with your actual bill, you've probably hit a wall. Here's why that number is structurally unreliable, not just imprecise.&lt;br&gt;
&lt;strong&gt;1. Most dashboards show list-price tokens, not what you paid.&lt;/strong&gt;&lt;br&gt;
Anthropic's own docs are explicit about it: spend figures in the Claude Code console "are estimates for analytics purposes" (&lt;a href="https://code.claude.com/docs/en/analytics?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=cost-estimate" rel="noopener noreferrer"&gt;https://code.claude.com/docs/en/analytics?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=cost-estimate&lt;/a&gt;). If you're on a flat-rate plan like Max or Copilot Business, there's no per-request price at all — you're paying for a quota, and the tool still shows you an API-equivalent cost that has nothing to do with your invoice.&lt;br&gt;
&lt;strong&gt;2. Cache pricing moves 60-75% between model launches, and nothing recalculates your old numbers.&lt;/strong&gt;&lt;br&gt;
Teams that set quarterly token budgets are already redoing that math by hand after this quarter's model releases changed cache pricing — it's a live complaint on LinkedIn right now, not a hypothetical.&lt;br&gt;
&lt;strong&gt;3. Flat-rate limits track what's reserved, not what's used.&lt;/strong&gt;&lt;br&gt;
Developers have reported burning through a full Claude Max quota in about an hour of work instead of lasting a full day (&lt;a href="https://www.devclass.com/ai-ml/2026/04/01/anthropic-admits-claude-code-users-hitting-usage-limits-way-faster-than-expected/?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=cost-estimate" rel="noopener noreferrer"&gt;https://www.devclass.com/ai-ml/2026/04/01/anthropic-admits-claude-code-users-hitting-usage-limits-way-faster-than-expected/?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=cost-estimate&lt;/a&gt;), and some found their own console analytics blank when they went looking for an explanation (&lt;a href="https://www.theregister.com/2026/01/05/claude_devs_usage_limits/?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=cost-estimate" rel="noopener noreferrer"&gt;https://www.theregister.com/2026/01/05/claude_devs_usage_limits/?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=cost-estimate&lt;/a&gt;). There's no visibility into which project or session actually consumed the quota.&lt;br&gt;
&lt;strong&gt;4. None of the usage dashboards know about your git history.&lt;/strong&gt;&lt;br&gt;
A GitHub Discussions thread on Copilot usage metrics puts it plainly: "I need project-level attribution to charge development costs to the correct application" (&lt;a href="https://github.com/orgs/community/discussions/207634" rel="noopener noreferrer"&gt;https://github.com/orgs/community/discussions/207634&lt;/a&gt;). An open ccusage issue asks for the same thing (&lt;a href="https://github.com/ryoppippi/ccusage/issues/281" rel="noopener noreferrer"&gt;https://github.com/ryoppippi/ccusage/issues/281&lt;/a&gt;). Vendors meter by workspace or seat. Nobody meters by project or client, because that mapping only lives in your repo.&lt;br&gt;
Put together, these four gaps mean the number on your screen and the number on your invoice are measuring different things on purpose, not by mistake.&lt;br&gt;
We ran into this building Estela (&lt;a href="https://github.com/jdleonruiz/estela-cli?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=cost-estimate" rel="noopener noreferrer"&gt;https://github.com/jdleonruiz/estela-cli?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=cost-estimate&lt;/a&gt;), an open-source CLI that reconstructs hours and AI cost per project and client from your local agent logs and git history instead of trusting any single vendor's dashboard. It doesn't solve the pricing-page problem — nothing can, short of vendors publishing real per-request invoices — but it gives you your own numbers to check against theirs.&lt;br&gt;
Have you found a reliable way to reconcile what a tool shows you against what you actually get billed?&lt;/p&gt;

</description>
      <category>claude</category>
      <category>showdev</category>
      <category>ai</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
