<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pratham Mhatre on Medium]]></title>
        <description><![CDATA[Stories by Pratham Mhatre on Medium]]></description>
        <link>https://medium.com/@prathammhatre5?source=rss-466d32f2de02------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ztXsrjlFQ03cneC4</url>
            <title>Stories by Pratham Mhatre on Medium</title>
            <link>https://medium.com/@prathammhatre5?source=rss-466d32f2de02------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 08:38:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prathammhatre5/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Download Manager in Rust That AI Agents Can Drive]]></title>
            <link>https://medium.com/@prathammhatre5/building-a-download-manager-in-rust-that-ai-agents-can-drive-8b32c9ae5387?source=rss-466d32f2de02------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b32c9ae5387</guid>
            <category><![CDATA[rust]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Pratham Mhatre]]></dc:creator>
            <pubDate>Sat, 14 Nov 2026 20:19:35 GMT</pubDate>
            <atom:updated>2026-11-14T20:19:35.141Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*okceM0gjrqrVrb-13HO9uQ.png" /></figure><p>I wanted IDM, but something an agent could use safely. Nine days, 108 commits, 22 releases, one feature I decided never to ship.</p><h3>It started with a slow download</h3><p>I was in the middle of a project that needed a few large model files. The browser’s downloader gave me one connection and no real resume. IDM is faster, but I had been fed up with it for a while. It is closed, it looks its age, and it is built purely for a human clicking buttons.</p><p>Then I noticed something else. My AI agent was doing half of the downloading. It used curl and wget: one connection, no resume, no limits, no questions asked.</p><p>So the first idea was small. A fast downloader that both a person and an agent could drive.</p><h3>Then one thing led to another</h3><p>The moment you let an agent download things, you get questions a normal download manager never has to answer:</p><ul><li>What stops the agent from fetching http://192.168.1.1/admin or some internal service?</li><li>What stops it from overwriting a file, or writing outside the folder I picked?</li><li>What if it quietly downloads an .exe?</li><li>Is this PDF really a PDF?</li></ul><p>Every answer became a feature. A small downloader grew into a safety layer, a scanner, a browser extension, an updater, and a very large pile of tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8vJQ1ZnJHiGQQPzax3aTA.png" /></figure><h3>What it is</h3><p>Cascade Download Manager (CDM), by Blueflame OPC, is a Windows app plus a command-line tool. Both are written in Rust and share one engine. There is no account, no ads, and no telemetry.</p><ul><li>cdm: the CLI. cdm get &lt;url&gt; --json streams one JSON event per line (NDJSON) and exits with a meaningful code.</li><li>cascade-dm: the GUI, a queue with live progress, settings and approval prompts.</li><li>A browser extension (Edge and Chromium family, Firefox build included) that takes over browser downloads and hands them to the app.</li></ul><h3>The devlog: nine days in a row</h3><p>Here is what my git history actually says.</p><ul><li><strong>Day 1 (Nov 7), 40 commits.</strong> Engine, SQLite job store, the CLI, the GUI, the download scanner, and the update and rollback system ported from an earlier app of mine. Release v0.1.0 went out the same day.</li><li><strong>Day 2 (Nov 8).</strong> A built-in browser with ad and tracker shields, popup blocking and incognito tabs. Releases v0.1.5 through v0.6.1.</li><li><strong>Day 3 (Nov 9).</strong> The browser extension, a native messaging host, and encrypted DNS inside the engine. Then the big one: the edition split (more on that below).</li><li><strong>Day 8 (Nov 14).</strong> Public v1.0.0 with a licence, third-party notices and a dependency audit gate. Then the extension learned to take over a download before the browser’s Save As box appears.</li><li><strong>Day 9 (Nov 15).</strong> v1.2.1. 22 releases and 108 commits in total.</li></ul><p>Early on I decided the built-in browser would be frozen, and that Cascade DM should be a download manager, not a browser. The extension replaced it as the main way to catch downloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JnINT6ExDFfcN7wwR2fM-g.png" /><figcaption>Nine days, three tracks: what was built, what was made safe, and what shipped.</figcaption></figure><h3>The architecture</h3><p>Everything is Rust, in one workspace of small crates.</p><ul><li>cdm-core is the engine. No UI, no CLI parsing, no database.</li><li>cdm-store is the shared SQLite job store.</li><li>cdm-scan is the download security scan.</li><li>cdm-cli builds cdm.exe, a console program.</li><li>cdm-gui builds cascade-dm.exe, using wry and tao to host an HTML/CSS/JS interface in WebView2 (no Electron).</li><li>cdm-host is the native messaging host the browser extension talks to.</li></ul><p>One rule held the whole thing together: <strong>no download logic outside </strong><strong>cdm-core.</strong> The CLI and the GUI only translate.</p><p>There are two executables on purpose. A windowed Windows program cannot reliably print to a console or to an agent’s pipe, so the console tool is separate.</p><p>There is also no daemon. Agents run cdm get &lt;url&gt; --json in the foreground, or --detach to start a background worker that returns a job id. status, list, cancel, pause and resume read and write the shared SQLite file. A worker writes a heartbeat about once a second. If the heartbeat goes stale (a crash, a reboot), the job is marked interrupted and can resume from where it stopped.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nkRRiJidj9Jn6k8a398_kA.png" /><figcaption>One engine, three front doors: the CLI, the GUI and the browser extension.</figcaption></figure><h3>How a download actually works</h3><p><strong>Probe first.</strong> CDM sends a GET with Range: bytes=0-0. The reply tells it the file size, whether the server supports ranges, the ETag, and the filename.</p><p><strong>Segments.</strong> If ranges work, the file is split into segments that download in parallel. If not, it falls back to a single stream.</p><p><strong>Dynamic re-splitting.</strong> Segments never finish at the same time. When a worker goes idle, it takes the back half of the slowest active segment. That way the last few percent do not crawl along on one connection.</p><p><strong>Safe writing.</strong> The file is pre-allocated as &lt;name&gt;.cdmpart. Progress is only committed after the bytes are flushed to disk, and the file is renamed atomically at the end. A crash never leaves a &quot;finished&quot; file that is actually half empty.</p><p><strong>Resume that does not lie.</strong> A small versioned state file records the URL, the validators, the total size and each segment’s durable position. On resume it is checked against a fresh probe. If the server’s file changed, CDM restarts instead of stitching two different files together. Every range request carries If-Range for the same reason.</p><p><strong>Retries.</strong> Per-segment retry with exponential backoff and jitter, a stall timeout, fail fast on 4xx, retry on 408, 429 and 5xx. Optional SHA-256 verification before the final rename.</p><p><strong>Encrypted DNS.</strong> Optional DNS over HTTPS lives in the engine, not in a browser. I decided early that there would be no Tor and no VPN feature. Cascade DM is a download manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t4EK8LhRzxnn84tymLUGIw.png" /></figure><h3>The safety layer</h3><p>This is the part that was not in the original plan, and the part I am proudest of.</p><p><strong>1. A policy enforced in the engine.</strong> Output is limited to allowed folders. Filenames are reduced to one safe component, so no path traversal and no reserved Windows names like CON. Nothing is silently overwritten. There is a size limit, a domain allowlist, a redirect limit, and http/https only. Agents get a strict profile; people get a permissive one.</p><p><strong>2. SSRF protection that survives DNS tricks.</strong> Checking a URL once is not enough, because a hostname can resolve to a private address, or change after you check (DNS rebinding). CDM uses its own DNS resolver that drops loopback, private, link-local and CGNAT addresses. It checks IP-literal URLs and every redirect hop too.</p><p><strong>3. An approval gate for agents.</strong> With the setting on, cdm get probes the URL and creates a job waiting for approval, showing the filename, size, type and destination. A popup asks me. Approve and it runs. Reject and the agent gets a dedicated exit code and {&quot;state&quot;:&quot;rejected&quot;}, so it can tell me what happened.</p><p>I wrote down honestly what this is: <strong>a consent prompt, not a security boundary.</strong> An agent running as the same Windows user could edit the settings file. So the toggle can only be changed from the GUI, the worker re-checks approval before it starts, and anyone who needs a hard boundary should run the agent in a separate account.</p><p><strong>4. A scan on every finished download.</strong> The scanner compares the real file type (magic bytes) against the extension, flags dangerous types and double extensions, inspects archives without extracting them (zip bombs and .. paths), checks Authenticode signatures, applies Mark of the Web, and hands the file to Windows Defender or whatever antivirus is installed. It never runs the file. A blocked file goes to a quarantine folder and is never auto-deleted. The wording is &quot;no threats found&quot;, never &quot;safe&quot;, because detection is only as good as your antivirus.</p><p><strong>5. Updates that cannot brick the app.</strong> Every file in an update package is hash-checked. The new build runs a self-test, the old one is backed up, files are swapped, the result is re-verified, and any failure restores the backup automatically. Installing an older version from a file is blocked; Roll back is the way back.</p><p><strong>6. Security as a gate, not a last step.</strong> After each stage (engine, store, CLI, GUI, updater) I ran a security review and fixed or knowingly accepted each finding. Before v1.0.0 I added a dependency audit gate, and two crates got upgraded because of open advisories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ze7g_V_ld4EElD3KGMWCfw.png" /><figcaption>Every job passes the consent gate and the scan before it counts as done.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYBRuBZpJVM4CdvmLzyhwA.png" /></figure><h3>The part I decided never to ship</h3><p>There was another feature. A video downloader.</p><p>It started inside the built-in browser: spot a video stream on a page, let me save it, grab the subtitles too. Later it moved into the extension. It worked, and it worked well.</p><p>Then I stopped and looked at what I had actually built. A download manager for files is ordinary software. A tool whose headline trick is pulling video out of any website a person visits is something else. In public hands it is a ticking bomb: copyright and terms-of-service problems that land on the person who wrote it, constant cat-and-mouse with sites, and a very different reputation for a tool I wanted to be known for safe downloads.</p><p>So I made a hard rule. <strong>The public edition is a plain segmented download manager. The video downloader exists only in a private edition, for my own use, and will never be uploaded.</strong></p><p>A rule you only follow by remembering is not a rule, so I built it into the structure:</p><ul><li>All video code lives in a separate video/ folder. The public code contains only neutral empty stubs.</li><li>A script stages the private edition by laying the video files over the public tree. The public edition is built from a clean export that cannot see video/.</li><li>A deny-list of markers is scanned in the source export, in the dependency files, and inside the finished zip and executables. If one marker appears in a public build, the build fails.</li><li>Publishing is gated: a verified public zip, its build record, a clean scan, and me typing the version by hand. Private builds can only go to a private repository, and the tool re-checks that the repository is private before uploading.</li><li>The versions that contained video were never uploaded anywhere.</li></ul><p>Splitting the code was the hardest refactor of the project, because roughly a thousand lines of video logic were woven into the browser module. In the end the public and private editions share the same engine, and the private one is simply the public one plus an overlay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xBt1jRqcPQbPKkwAkczV0Q.png" /></figure><h3>Challenges, and the fun bugs</h3><ul><li><strong>Windows reports a virus as a read error.</strong> A blocked file shows up as error 225 or 226, not a friendly “threat found”. CDM now treats those codes as a blocked detection.</li><li><strong>The antivirus test file problem.</strong> The standard EICAR test file would trigger my own antivirus if an automated test wrote it to disk. The real detection test is manual and ignored by default.</li><li><strong>Single-use links.</strong> Some sites make a download link that works exactly once, and the browser has already used it by the time CDM intercepts it. CDM falls back to letting the browser finish that one itself.</li><li><strong>My release builds leaked my own name.</strong> Compiled Rust binaries contain machine paths. I added path remapping, and the packager now refuses to ship any binary that contains them. The first attempt failed because the RUSTFLAGS variable splits on spaces and my folder names have spaces. CARGO_ENCODED_RUSTFLAGS fixed it.</li><li><strong>A dialog that froze for 15 seconds</strong> when a server was down. The probe now fails fast.</li><li><strong>The extension must not hijack the browser.</strong> It only takes over downloads that start now, never history entries, and the host refuses a burst of more than 12 downloads in 10 seconds instead of flooding the list.</li><li><strong>A flaky end-to-end test I could not explain.</strong> My real-Edge end-to-end test failed seven times in a row, then passed more than seven times in a row. I never found the cause, so it is written down in the handover notes instead of pretending it was fixed.</li><li><strong>A tiny bug with big consequences.</strong> A parser for stream jobs accepted any object at all. A test caught it, and it now requires an actual playlist URL.</li></ul><p>You also cannot trust a download engine you only tested against real websites. The integration tests run against a local server that simulates ranges, missing range support, flaky connections, changing ETags, redirects, and SSRF attempts. The public workspace passed 364 tests when I last counted, the private one 413.</p><h3>What I would tell another builder</h3><ul><li>Design the agent interface first. Stable events, exit codes and no interactive prompts matter more than the progress bar.</li><li>Be honest about what a safety feature is. “Consent prompt” is not “security boundary”, and saying so out loud made the design better.</li><li>Decide what you will never ship, and make the structure enforce it.</li></ul><h3>A small note</h3><p>Most of this code was vibecoded with an AI assistant. What I did was set the direction, decide the rules (like the public/private split), review the security findings, and test it by hand. I mention it because it fits the story of building a tool for agents, not because it is the point.</p><h3>Try it</h3><p>Cascade DM is for Windows. The source is private, so this is a download, not an open source release.</p><p>Get it here: <a href="https://github.com/blizwing/cascade-dm">https://github.com/blizwing/cascade-dm</a></p><p>If you give agents access to your machine, how do you handle their downloads today? I would like to know.</p><p><a href="https://www.linkedin.com/in/prathammhatre/">https://www.linkedin.com/in/prathammhatre/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b32c9ae5387" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A CI regression gate caught a bug I didn't write.]]></title>
            <link>https://medium.com/@prathammhatre5/a-ci-regression-gate-caught-a-bug-i-didnt-write-19ab1796b2ac?source=rss-466d32f2de02------2</link>
            <guid isPermaLink="false">https://medium.com/p/19ab1796b2ac</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Pratham Mhatre]]></dc:creator>
            <pubDate>Fri, 11 Sep 2026 06:57:44 GMT</pubDate>
            <atom:updated>2026-09-11T06:57:44.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6p_6JcM3YCzQto-ypYfliw.png" /></figure><h3>The day my CI went red for a reason my code didn’t cause</h3><p><em>A CI regression gate is supposed to catch bugs. Mine caught something else entirely: a model provider silently swapping the model behind an alias I’d been calling unchanged since day one.</em></p><p><strong>TL;DR:</strong> My eval harness’s CI failed on a push that touched none of the code it flagged. The cause turned out to be a third-party model provider quietly repointing an alias to a new model. I re-baselined rather than patched, which meant deliberately lowering the bar CI enforces rather than fixing anything. That same incident reversed a conclusion I’d treated as settled for weeks, and a follow-up experiment I ran to test a fix taught me more about my own methodology than about the fix itself.</p><p>I’m building an LLM evaluation harness, a CLI tool that scores LLM-generated test cases against a labeled dataset, using both deterministic assertions and an LLM-as-judge. The whole point of the project is to catch quality regressions in AI output before they reach production.</p><p>Partway through the build, it caught one. Just not the kind I was expecting, and not one my code introduced.</p><p>Here’s what happened, in the order it actually happened, including the parts where my first read on the data was wrong.</p><h3>The gate does its job</h3><p>By this point in the project I had three weeks of CI infrastructure in place:</p><ul><li>A GitHub Actions workflow that runs the harness on every push</li><li>A pass-rate regression gate that fails the build if either the assertion pass rate or the judge pass rate drops more than 5 points against a saved baseline</li><li>A cost guardrail that aborts a run if projected spend exceeds a cap</li></ul><p>All three had been individually tested. The regression gate had already caught a deliberately sabotaged prompt in a throwaway branch. The cost guardrail had been proven to abort cleanly at a $0.001 cap.</p><p>A routine push landed a small change to the cost guardrail on main. Instead, CI came back red.</p><p>Not because the guardrail tripped. It had plenty of headroom, the run cost $0.0042 against a $0.02 cap. It failed the regression gate instead: assertion pass rate had dipped from 97.1% to 88.6%, and judge pass rate had collapsed from 94.3% to 40.0%.</p><p>My first instinct was to treat it as noise and rerun. I didn’t just assume that, though. I reran the identical CI job against the identical commit to check.</p><p>Assertion pass rate bounced back to 97.1%, which matched a known, already-documented pattern of ordinary invalid-JSON noise. But judge pass rate stayed collapsed on the rerun too, at 45.7%. Two independent live runs, same commit, both showing the judge pass rate cut roughly in half.</p><p><strong>That ruled out “noise” as the whole explanation.</strong></p><h3>Ruling things out before blaming something external</h3><p>The honest version of debugging is boring: you check the things you actually changed before you blame the things you didn’t. Nothing in my code had touched the judge rubric in weeks. The scorer logic was untouched for just as long. The generation prompt, the thing most likely to move these numbers, hadn’t been touched since an earlier round of improvements, the ones that had made numbers go <em>up</em>, not down.</p><p>So I looked at the actual failure reasons in the CI log, and they had a familiar shape: hedging language in the model’s expected_result field, things like &quot;if X is unspecified, this cannot be verified&quot; or &quot;may leave it unchanged.&quot; I&#39;d seen this exact failure pattern before, on two adversarial requirements out of 35. Now it was showing up on roughly 21 of 35.</p><p>The real confirmation came from a live diagnostic call, not a guess.</p><p>My code has always requested model=&quot;deepseek-v4-flash&quot;, unchanged since the project&#39;s earliest days. A saved output file from a much earlier run recorded the API&#39;s own response.model field as deepseek-v4-flash. A fresh diagnostic call, same request, same model string, came back deepseek-flash, a different model entirely.</p><p>DeepSeek had shipped a new model that day, and the alias I’d been calling since the start of the project had been silently repointed to it. Same code. Same model name in my request. Different model actually running.</p><blockquote><em>This is the exact risk category the whole project exists to catch: a third-party hosted model changing behavior under an alias that looks stable, with zero code changes on my end to point to.</em></blockquote><p>I left CI red on main that night rather than patch anything. Whether to accept the new behavior, tighten the prompt against it, or pin a model version were all real decisions, and none of them belonged in a rushed end-of-day fix.</p><h3>Closing the incident meant lowering the bar, on purpose</h3><p>Once the incident was confirmed, I looked into whether pinning a model version was even possible. It wasn’t. DeepSeek doesn’t offer a dated snapshot model name at all, so there was no version to pin regardless of which alias I requested. That narrowed it to two real options: tighten the generation prompt against the new hedging behavior, or accept the new behavior and move the baseline to match it.</p><p>I chose to re-baseline, and reran the full pipeline end to end rather than hand-editing numbers: runner, scorer, reporter, then save the new baseline, then immediately diff against it to confirm self-consistency. It came back clean, a +0.0% delta on both metrics.</p><p>But I want to be direct about what re-baselining actually means here, because it’s the opposite of every other baseline decision I’d made up to this point. Earlier in the project I’d improved the generation prompt and pass rates went up, and I deliberately left the baseline frozen, because the whole point of a baseline is that it’s a fixed comparison point, not something that quietly tracks whatever is currently true.</p><p>This time the underlying generation quality had genuinely dropped, for reasons entirely outside my prompt or code, and I moved the baseline down to match it.</p><p>Metric Old baseline New baseline Assertion pass rate 97.1% (34/35) 91.4% (32/35) Judge pass rate (strict) 94.3% (33/35) 42.9% (15/35) Total cost (USD) $0.0050 $0.0070 Borderline verdicts 0 6 (17.1%)</p><p><em>Table: the incident’s full impact, measured before and after re-baselining.</em></p><p>Future CI runs will go green against this lower floor. Not because anything got better. Because I decided, deliberately, that this is now the honest baseline for what this model actually produces. That distinction matters, and I don’t want to bury it under a clean-looking table.</p><h3>An old conclusion that turned out to be wrong</h3><p>That last row in the table, six borderline verdicts, the most ever seen on this dataset, forced me to revisit something I’d concluded earlier in the project and had treated as settled.</p><p>My judge has three possible verdicts: good, bad, and borderline. Across 35 requirements, for weeks, it had used exactly two. I’d written that off as “borderline is structurally unreachable, the model just isn’t discriminating enough,” a conclusion about the judge.</p><p>The re-baseline data says that conclusion was probably wrong, or at least aimed at the wrong component. The old model’s outputs were consistently clear-cut, solidly fine or clearly broken, so there was never a genuine middle case for the judge to land on. The new model’s hedging habit produces outputs that are <em>actually</em> ambiguous, and the judge, given real ambiguity for the first time, used the verdict that exists for exactly that.</p><p><strong>The judge rubric probably wasn’t the limiting factor. The input distribution was.</strong></p><p>I don’t think this fully closes the question. It’s one data point at real volume, not a controlled comparison, but it’s a big enough shift that I logged it rather than letting the old conclusion stand unchallenged.</p><h3>Testing whether “thinking” fixes the hedging</h3><p>With the incident re-baselined rather than fixed, the obvious next question was whether giving the generator model more “thinking” effort would reduce the hedging behavior, a third path distinct from both “accept it” (done) and “tighten the prompt” (not started).</p><p>I’d run something adjacent before, but that earlier experiment varied thinking effort on both generation and judging simultaneously, so it couldn’t isolate which side of the pipeline any change came from. This time I built a version that holds the judge fixed, same model, thinking disabled, same rubric, and only varies thinking effort on the generator.</p><p><strong>Round one</strong> (2,048 token budget, disabled/low/high effort) said thinking doesn’t help and low effort actively hurts: good-rate went from 60% (disabled) to 20% (low) to 50% (high). I almost wrote that up as the finding.</p><p>Then I looked at <em>why</em> low effort scored worst. One requirement had spent 1,998 of its 2,048 token budget on internal reasoning, leaving essentially no room for the actual JSON output, and came back as invalid JSON, a failure mode that doesn’t exist in the disabled-thinking baseline at all. The token budget was just wrong, and I’d nearly shipped a conclusion that was really a resourcing bug wearing a data costume. A prior experiment of mine had already used a 4,096 budget for exactly this reason, and round one hadn’t checked that precedent before running.</p><p><strong>Round two</strong> (8,192 tokens, disabled/low/high/max) reversed the finding: 40% (disabled), 50% (low), 60% (high), 60% (max), a clean-looking improvement with more effort.</p><p>Except the disabled-thinking control itself swung from 60% (round one) to 40% (round two) with zero configuration change between runs, a bigger swing than the improvement I was trying to measure. This is the same non-determinism finding from the very start of this project, showing up somewhere I hadn’t thought to check it: single-run pass-rate comparisons at this sample size aren’t trustworthy evidence, even when the trend looks clean.</p><p>The more honest signal turned out to be per-requirement, not aggregate:</p><ul><li><strong>Three requirements</strong> improved consistently across every thinking-enabled config versus disabled. Three quasi-independent data points agreeing is real signal.</li><li><strong>Two requirements</strong> stayed bad under every config, genuinely too vague for more reasoning effort to rescue.</li><li><strong>The rest</strong> moved non-monotonically between configs, which is noise, not signal.</li></ul><p>Cost, measured directly rather than assumed: thinking-enabled calls used roughly 750 to 935 reasoning tokens on average, about 4 to 5 times the cost of a disabled-thinking call, for a benefit this sample size can’t confirm either way.</p><p>I logged this as inconclusive and didn’t adopt it. Getting a real answer needs repeated runs per configuration to separate signal from the non-determinism noise floor, the same lesson my regression-baseline logic already applies to detecting prompt regressions, just not yet applied to generator experiments. That’s now a backlog item with an explicit revisit condition, not a dropped thread.</p><h3>What I’d actually take from this</h3><p>None of this was on the roadmap. The plan for that stretch said “add tests for the harness,” and I did that too. But the thing worth writing up isn’t the planned work.</p><p>It’s that the tool caught a real, external quality shift it had no way to anticipate, that my first read of the resulting data was wrong twice (noise, then a clean thinking-effort trend), and that both times the fix was the same unglamorous thing: rerun before trusting a single result, and check the mechanism before trusting the conclusion.</p><p>If there’s a reusable idea here, it’s this:</p><blockquote><em>An eval harness’s job isn’t to keep your numbers looking good. It’s to tell you, honestly, when the ground has moved, even if the honest answer is “we have to lower the bar,” and even if the more interesting finding is a reversal of something you’d already written down as settled.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19ab1796b2ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My LLM Judge Never Said “Maybe” - Here’s What That Was Actually Telling Me]]></title>
            <link>https://medium.com/@prathammhatre5/my-llm-judge-never-said-maybe-heres-what-that-was-actually-telling-me-11a326d9e5a7?source=rss-466d32f2de02------2</link>
            <guid isPermaLink="false">https://medium.com/p/11a326d9e5a7</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Pratham Mhatre]]></dc:creator>
            <pubDate>Thu, 03 Sep 2026 06:42:52 GMT</pubDate>
            <atom:updated>2026-09-03T06:44:22.891Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apxzkxyc1_f3ZrjLTDNS-w.png" /></figure><p>I’m building an eval harness that judges LLM-generated test cases against software requirements. Somewhere around requirement 20 of 35, I noticed something odd: my judge, a deepseek-v4-flash model scoring outputs as good, bad, or borderline, had never once said borderline. Not once, across 35 real requirements.</p><p>I assumed the dataset just hadn’t produced a genuinely ambiguous case yet. I was wrong about why, and figuring out why turned into the most interesting few hours of this project so far.</p><h3>The setup</h3><p>The harness auto-generates structured test cases from plain-English software requirements, then grades the output two ways: deterministic assertions (valid JSON? all fields present? under a token cap?) and an LLM-as-judge that scores against a five-criterion rubric and lands on one of three verdicts: good, bad, or borderline.</p><p>Three verdicts exist because real requirement quality isn’t binary. Some test cases are clearly solid, some are clearly broken, and some are fine, technically, but built on a vague enough requirement that you wouldn’t want to ship it without a second look. That third bucket is the judge’s whole reason for having three options instead of two.</p><p>By requirement 35, it had never used the third option.</p><p>One limitation worth naming up front: both the test case generator and the judge run on the same model family, deepseek-v4-*, across every configuration in this post. That&#39;s a deliberate cost decision, not an oversight. Phase 1 of this project runs on a hard $10 spend cap, and mixing model families (say, DeepSeek for generation, a different provider for judging) would have meant either burning budget on two providers or losing the direct config-to-config comparison I wanted. It does mean this whole investigation can&#39;t rule out family-specific quirks. A different generator family might produce outputs a DeepSeek judge scores differently, or vice versa. Worth flagging now, because it matters more by the end of this post than it does here.</p><h3>First attempt: hand-writing adversarial cases myself</h3><p>My first instinct was the obvious one. Write some deliberately tricky requirements by hand and see if I could get the judge to say borderline. I&#39;ve done this before in the project; an earlier batch of adversarial requirements (vague, contradictory, missing preconditions) had already been useful for stress-testing the assertion layer.</p><p>It didn’t work the way I expected. Not only did I fail to hit borderline, in a few cases the judge called something good that I&#39;d written specifically to be bad. That&#39;s a worse signal than a missed borderline. If I can&#39;t reliably author a case that lands where I intend, I can&#39;t tell whether the judge is wrong or my hand-written cases just aren&#39;t adversarial in the way I think they are. I was effectively debugging two unknowns at once, the judge&#39;s behavior and the quality of my own test inputs, with no way to hold one fixed.</p><h3>Second attempt: using Claude to author the test set deliberately</h3><p>So I changed the approach. Instead of hand-writing more cases and hoping they’d land where intended, I asked Claude to write a small set of requirements explicitly targeting each of the three verdict buckets: a case aimed at good, one aimed at bad, and a few aimed specifically at the seam in between. The point wasn&#39;t to offload the writing so much as to get a more deliberate instrument, cases built with the verdict boundary as the actual design goal, rather than cases I hoped would land there.</p><p>That gave me five requirements:</p><ul><li>Two paired a concrete, checkable anchor (an SLA threshold, a cancellation-fee window) with a subjective qualifier that has no natural default. The kind of thing where a strict reader says “not specific enough” and a lenient reader says “good enough to work with.”</li><li>One paired a hard, well-defined state transition with a sufficiency condition that has no canonical placeholder value at all.</li><li>The rest anchored the good and bad extremes, as a sanity check that the set wasn&#39;t just uniformly ambiguous.</li></ul><p>I ran the set twice through the real pipeline, same judge, same rubric, temperature=0, for 7 total judge calls.</p><p><strong>Still zero borderline verdicts.</strong> One case (req_b03) didn&#39;t even land consistently. It flipped from good on the first run to bad on the second, at temperature zero, on a requirement deliberately engineered to be hard to call. That&#39;s real judge variance, and it&#39;s landing on opposite poles, not the middle.</p><p>This time the evidence looked stronger, not weaker. It wasn’t a quirk of my 35 real requirements, and it wasn’t a quirk of my own inconsistent hand-writing either. This was a purpose-built, verdict-targeted set, and the judge still refused the middle option. My working conclusion was that the judge’s borderline path was effectively dead code: reachable in principle, unreachable in practice, regardless of how deliberately I tried to hit it.</p><h3>Third attempt: what if it’s not the rubric, it’s the model</h3><p>I almost stopped there. It’s a clean, defensible finding: five deliberately verdict-targeted cases, two full runs, zero hits, one flip demonstrating real variance without a middle ground. Good enough for a backlog note and a README line.</p><p>But the finding only holds for that specific model configuration. Every one of those 7 calls used deepseek-v4-flash with thinking disabled, the harness&#39;s default for cost reasons, not a deliberate choice about judge quality. I hadn&#39;t tested whether borderline was unreachable, full stop, or whether it was unreachable for this particular model at this particular reasoning budget.</p><p>So I re-ran the same 5 requirements through 3 additional whole-pipeline configurations. Same model and thinking-setting used for both generation and judging in each config, so I couldn’t accidentally attribute a shift to the wrong half of the pipeline:</p><ul><li>deepseek-v4-flash + thinking enabled</li><li>deepseek-v4-pro</li><li>deepseek-v4-pro + thinking enabled</li></ul><p>borderline fired. Once. Under pro+thinking, on the requirement I&#39;d deliberately written to be so vague it should score bad outright.</p><p>The judge’s reasoning: the test case covered the requirement at a high level and had a clear expected outcome, but its preconditions and steps leaned on vague placeholders, “involved parties,” “appropriate notification,” that made it insufficiently concrete to execute. That’s precisely the specificity soft-fail the rubric was designed to catch, with the hard pass/fail criteria still intact. It’s a genuinely calibrated middle-ground call, not a coin flip.</p><p>What made this more convincing than a single lucky roll: the hit didn’t come from either of the two cases I’d purpose-built to sit in the ambiguous seam. Both of those stayed good even under pro+thinking. It came from the case where plain pro had called it bad outright and flash+thinking had called it good outright. A stronger, more deliberate model catching real vagueness that two other configurations, in different directions, had both missed.</p><h3>The actual finding</h3><p>borderline isn&#39;t structurally unreachable. deepseek-v4-flash without extended reasoning just isn&#39;t discriminating enough to land there. It behaves close to a binary classifier, sorting everything into a confident good or a confident bad even when the honest answer is &quot;sort of.&quot;</p><p>That’s a materially different conclusion than where I started, and it only showed up because I treated my own strong-looking result as something to stress-test rather than something to report.</p><h3>The caveat I’m not going to smooth over</h3><p>This is one sample. Five requirements, one model comparison, one borderline hit. I varied model and thinking setting together for both generation and judging, which means I can&#39;t yet say whether the effect is really about judge quality specifically, or about the interaction between a stronger generator and a stronger judge. Every configuration in this experiment also stayed within the same model family, DeepSeek, a budget call for Phase 1, not a claim that the finding generalizes across providers. A different generator, or a judge from a different lab entirely, could behave differently in ways this setup simply can&#39;t see. pro+thinking is also meaningfully more expensive per call and roughly 3 to 4 times slower than the flash default. Not a free upgrade, a real tradeoff against the same cost-guardrail work later in this project.</p><p>I logged it as a deferred backlog item rather than switching the harness’s default judge model. A proper comparison needs the judge varied in isolation, against a larger sample, before that’s a decision rather than a hunch.</p><h3>Why I’m writing this up at all</h3><p>This whole thread started because Cynthia Omovoiye left a comment on an earlier post about this project. Her point was that the “silent wrong answer” problem doesn’t just apply to the model being evaluated. It applies to the grader itself. She’d seen a real case where eval fields sat at zero-percent populated with no errors raised anywhere; the dashboard reported full coverage that simply wasn’t real. Her question was direct: does the harness assert on the grader’s own output, or only on the thing being graded?</p><p>At the time, I already had a name for a live instance of exactly that problem: my judge’s borderline path, sitting unused across every real row, with nothing anywhere flagging that it might not be working as designed. Her comment turned an interesting but inert observation into something I actually went and tested.</p><p>Two concrete things came out of it. First, the harness now has an integrity check on its own grading output. Every scored row is checked for a complete, valid result before it’s trusted, and the harness fails loudly rather than silently returning a partial score. Second, the finding itself is now sharper and, more importantly, correct. “Borderline is unreachable” was wrong. “Borderline is unreachable for this specific cheap default” is the real story, and it comes with a concrete next step instead of a shrug.</p><p>Neither of those happens without someone with real production experience pushing back on a plausible-looking finding. That’s the part worth remembering past this one project: an eval result that looks clean is worth exactly as much as your effort to break it.</p><p>Check Out the Project Building here -&gt; <a href="https://github.com/blizwing/eval-harness">https://github.com/blizwing/eval-harness</a></p><p>Great Thanks to Cynthia Omovoiye for pointing this out to me. Check her LinkedIn here -&gt; <a href="https://www.linkedin.com/in/cynthia-omovoiye/">https://www.linkedin.com/in/cynthia-omovoiye</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11a326d9e5a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Magic Trick Nobody Talks About]]></title>
            <link>https://medium.com/@prathammhatre5/the-magic-trick-nobody-talks-about-d4fad53d0c1b?source=rss-466d32f2de02------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4fad53d0c1b</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[worldbuilding]]></category>
            <category><![CDATA[fantasy]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[storytelling]]></category>
            <dc:creator><![CDATA[Pratham Mhatre]]></dc:creator>
            <pubDate>Sat, 01 Aug 2026 08:05:40 GMT</pubDate>
            <atom:updated>2026-08-01T08:05:40.938Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WzUsr7IlHS6d_TyeCC3YQ.png" /></figure><p>It was one of those rare days off, the kind that felt earned after a stretch of weeks that had blurred into each other. No office projects running laps in my head, no timelines to track, nothing pulling at my attention before I had even opened my eyes. I woke up late, the way you only can when nothing is waiting for you. No alarm, no rush.</p><p>I took my time. Made tea slower than I needed to. Sat with my own thoughts for a bit instead of immediately reaching for my phone. And when I finally did open YouTube, I was not looking for anything in particular. Just scrolling, the way you do on a morning that belongs entirely to you.</p><p>That is when I saw it. A video recommendation with a title I could not scroll past. *The Most Powerful Type of Magic System*, by the channel Curious Archive, hosted by a creator who goes by The Archivist.</p><p>I am a sucker for the fantasy genre. Always have been. And magic, specifically, is one of those things I never get tired of watching done well. The colors. The fluidity. The explosions and the flows and the weird aftereffects that linger on screen a second too long. It hits something primal in me every time.</p><p>So I clicked. And by the end of it, I wasn’t just entertained. I was a little bit rewired.</p><h3>What Makes Magic Feel Real</h3><p>The Archivist opens with a deceptively simple question: why does some fictional magic feel genuinely powerful, and some feel like nothing at all, even when both are drawn or written with equal skill?</p><p>The answer he lands on is not about rules. It is not about how detailed your magic system’s mechanics are, or how consistent your power scaling is across three hundred pages of lore. The answer is about mess.</p><p>He opens his case with a line from musician Brian Eno, who once described art as “the sound of things going out of control.” Distortion. The jitter of bad digital video. The crunch of an 8-bit sound chip straining past its limits. The point, as The Archivist frames it, is that a medium feels most alive right at the moment it feels like it might break.</p><p>Turns out magic works the same way.</p><h3>The Rule of Waste</h3><p>Here is the actual craft lesson, and it is the kind of thing that once you see it, you cannot unsee it. Every real physical process has waste. When you boil water, you are not trying to make steam. You just get it anyway, because energy never converts cleanly. Some of it always leaks out sideways as heat, noise, light, residue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3Qx9wtqfnwMzcPap" /></figure><p>Good magic systems understand this instinctively, whether or not the writer ever puts it into words. A spell that works too cleanly, with no cost and no mess, reads as fake, because we already know from a lifetime of watching real physical processes that clean conversions do not exist.</p><p>The Archivist uses the show *Arcane* to make this concrete. People online love to say Arcane’s magic system is too soft, too vague, not enough hard rules. He pushes back on that a little. Sure, if you tried to diagram exactly how a spell gets cast frame by frame, you would struggle. But the show nails something most systems miss entirely: waste. Its magic drips. It corrodes. It leaves residue that reacts differently depending on what it touches. The batteries that power it get gunked up. Even in its most controlled state, it feels like it is one bad day away from spiraling.</p><p>That mess is not a flaw in the worldbuilding. It is the entire reason the magic feels dangerous and real, even without a rulebook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*h_tgZc5IJElq-a6w" /></figure><h3>Why Your Brain Already Knows This</h3><p>The part that actually got me thinking, more than the examples themselves, is the explanation for why this works on us at all. None of us have ever cast a spell. So why do we have such strong, immediate gut reactions to whether a magic system feels earned or cheap?</p><p>Because we are not actually reacting to the magic. We are reacting to physics.</p><p>Freezing, burning, decaying, dissolving: these are processes we have watched our entire lives. We know what fire looks like when it burns wrong. We know what ice looks like when something is freezing too fast. So when a spell on screen sparks or smokes or leaves scorch marks that do not quite make sense, some part of our brain that has never studied a single worldbuilding guide still goes, yeah, that tracks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/0*zIix4G4cgsoL5mTy" /></figure><p>We absorb almost all of this subconsciously. Nobody watches a movie and thinks “ah yes, the residue on that spell is doing a lot of narrative work right now.” You just feel like the magic in one story hits different than the magic in another, and you move on with your day, never questioning why.</p><p>That is the part that got me. Not the examples. The realization that so much of what makes fiction feel true is happening below the level where we are consciously paying attention to it at all. We think we are just watching the picture and hearing the sound. Underneath that, our brains are running a constant, silent check against everything we know about how the real world behaves, and grading the fiction accordingly.</p><h3>The Point Behind the Point</h3><p>The Archivist closes on a line from Brandon Sanderson, the writer most associated with tightly ruled hard magic systems, and it undercuts the whole video’s premise in the best way. Sanderson says people always want to talk about his magic systems, but a magic system only matters if an interesting character is struggling against it. Rules for the sake of rules are worthless. What matters is the story they let you tell.</p><p>So maybe the real lesson is not “add waste to your magic system” as a checklist item. Maybe it is a reminder that craft only works when it serves feeling. The mess, the chaos, the residue: none of it matters because it is technically correct. It matters because it makes an audience feel something they cannot quite name.</p><p>I did not expect a random YouTube video on a lazy day off to leave me thinking this hard about subconscious perception and craft. But that is kind of the whole point of the algorithm working exactly once. Sometimes the internet accidentally teaches you something real.</p><p><strong>All credit for the ideas above goes to The Archivist and the channel Curious Archive. The video that started this rabbit hole: [The Most Powerful Type of Magic System](</strong><a href="https://www.youtube.com/watch?v=ODc9oE9ND-0)*"><strong>https://www.youtube.com/watch?v=ODc9oE9ND-0)</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4fad53d0c1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude Code and the Rise of Agentic Software Engineering]]></title>
            <link>https://medium.com/@prathammhatre5/claude-code-and-the-rise-of-agentic-software-engineering-63a85d726a2c?source=rss-466d32f2de02------2</link>
            <guid isPermaLink="false">https://medium.com/p/63a85d726a2c</guid>
            <category><![CDATA[ai-agents-in-action]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Pratham Mhatre]]></dc:creator>
            <pubDate>Sat, 24 Jan 2026 19:48:25 GMT</pubDate>
            <atom:updated>2026-01-24T19:48:25.513Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YZdxX_RQ0wxQVf-1zUMFPg.png" /></figure><h3>Why AI-Assisted Development Is Moving Beyond Autocomplete</h3><p>Most AI coding tools today are still variations of the same idea: faster autocomplete. They predict the next few lines of code based on the current file and cursor position. This works well for boilerplate, but it breaks down as soon as tasks become multi-step, stateful, or architectural.</p><p>The <strong>Claude Code</strong> course from Anthropic presents a different model entirely.</p><p>Instead of treating AI as a passive assistant embedded in an editor, Claude Code treats it as an <strong>active agent</strong> operating inside the developer’s real environment: the terminal, the file system, the test runner, and CI workflows.</p><p>After working through the course and reviewing its hands-on examples, it becomes clear that Claude Code is not about better prompting. It’s about <strong>control, extensibility, and governance</strong>.</p><h3>From Code Completion to Agentic Workflows</h3><p>Claude Code operates through a simple but powerful loop:</p><ol><li><strong>Observe</strong><br> The agent reads files, directory structures, and command output.</li><li><strong>Reason</strong><br> It maintains context across tasks, understanding how files relate and what the current goal is.</li><li><strong>Act</strong><br> It executes real commands like npm test, grep, or edits files directly.</li><li><strong>Evaluate</strong><br> It reads the results of those actions and iterates.</li></ol><p>This loop allows Claude Code to do something autocomplete tools cannot: <strong>run the code it writes, see failures, and correct itself</strong>.</p><p>The course demonstrates this repeatedly through test generation, debugging, and iterative refinement.</p><h3>Why Claude Code Lives in the Terminal</h3><p>A key design choice is that Claude Code runs in the terminal rather than inside an IDE sidebar.</p><p>This matters for two reasons:</p><ul><li><strong>Tool parity</strong><br> Claude uses the same tools the developer uses. If your workflow relies on ripgrep, jest, or shell scripts, Claude uses those exact tools. There is no artificial sandbox or abstraction layer.</li><li><strong>Composability</strong><br> Because it operates in the CLI, Claude Code fits naturally into existing scripts, pipelines, and workflows. It behaves like another programmable tool rather than a sealed UI feature.</li></ul><p>This design enables Claude to participate meaningfully in real-world engineering environments instead of operating in isolation.</p><h3>Conversation Control and Context Management</h3><p>Long-running AI sessions introduce a practical problem: <strong>context pollution</strong>.</p><p>As conversations grow, irrelevant debugging logs, resolved errors, and tangential discussions accumulate. This increases cost and degrades focus.</p><p>The course introduces explicit conversation control tools to address this:</p><blockquote>/compact</blockquote><p>Summarizes the current conversation into a concise representation that preserves learned context while removing noise. This is ideal when a subtask (like debugging a dependency issue) is finished but the broader task continues.</p><blockquote>/clear</blockquote><p>Wipes the entire conversation history. This is essential when switching to a completely unrelated task. Carrying old context forward is often worse than starting fresh.</p><h3>Rewind (Esc twice)</h3><p>Allows jumping back to an earlier point in the conversation history, effectively undoing a bad path without adding more noise. This is particularly useful when the agent goes down an unproductive route.</p><p>These tools turn context from an uncontrolled liability into something the developer actively manages.</p><h3>Custom Commands: Automating Repeated Reasoning</h3><p>Claude Code supports <strong>custom slash commands</strong> defined inside the project.</p><p>Commands live in a project-level configuration directory and are written as Markdown files. When invoked, Claude treats them as structured instructions.</p><p>Examples demonstrated in the course include:</p><ul><li>Auditing dependencies and fixing vulnerabilities</li><li>Generating tests for specific files</li><li>Running multi-step workflows consistently</li></ul><p>Commands support argument injection, allowing dynamic input such as file paths or feature names. This turns frequently repeated reasoning into reusable, version-controlled automation.</p><p>Instead of rewriting prompts, teams encode intent once and reuse it.</p><h3>Extending Claude with MCP (Model Context Protocol)</h3><p>Claude Code can be extended using <strong>MCP servers</strong>, which expose external tools and capabilities to the agent.</p><p>One example shown in the course uses a Playwright MCP server, enabling Claude to:</p><ul><li>Launch a browser</li><li>Navigate to a local application</li><li>Inspect rendered UI</li><li>Evaluate behavior and styling</li><li>Update code based on runtime observation</li></ul><p>This creates a closed feedback loop where Claude validates its output against the real system, not just static code.</p><p>Permissions are explicitly controlled. By default, Claude asks before using tools. Trusted tools can be whitelisted for autonomous operation when appropriate.</p><h3>GitHub Integration and CI Automation</h3><p>Claude Code integrates directly with GitHub via Actions.</p><p>Once installed, it can:</p><ul><li>Respond to @Claude mentions in issues or pull requests</li><li>Review pull requests automatically</li><li>Execute investigations inside CI environments</li></ul><p>The course demonstrates how to configure workflows so Claude can run the application, execute tests, and even interact with a browser inside CI.</p><p>This effectively turns Claude into an automated reviewer or QA assistant that operates before human intervention.</p><h3>Hooks: Enforcing Safety and Quality</h3><p>Hooks are one of the most important features introduced in the course.</p><p>Hooks allow developers to run custom logic <strong>before or after</strong> Claude executes a tool.</p><h3>Pre-tool hooks</h3><p>Run before an action occurs and can block it entirely.</p><p>Example shown:</p><ul><li>Preventing Claude from reading .env files</li><li>Intercepting file reads and denying access with a clear error</li></ul><h3>Post-tool hooks</h3><p>Run after an action completes and can analyze results.</p><p>Examples shown:</p><ul><li>Running a TypeScript type check after edits</li><li>Feeding compiler errors back to Claude</li><li>Triggering immediate self-correction</li></ul><p>Hooks allow the codebase itself to enforce rules, safety boundaries, and architectural standards, even when an AI is modifying it.</p><h3>Programmatic Use via the SDK</h3><p>Claude Code can also be invoked programmatically through a TypeScript or Python SDK.</p><p>Key properties demonstrated:</p><ul><li>Read-only by default</li><li>Explicit permission required for edits</li><li>Suitable for automation, scripts, and hooks</li></ul><p>This enables Claude to be embedded into larger systems rather than used only interactively.</p><h3>What This Signals About the Future of Development</h3><p>The Claude Code course does not present AI as a replacement for engineers.</p><p>It presents a shift in <strong>where engineering effort is applied</strong>.</p><p>Instead of spending time on repetitive implementation and verification, developers define:</p><ul><li>intent</li><li>constraints</li><li>workflows</li><li>guardrails</li></ul><p>Claude handles execution, iteration, and validation within those boundaries.</p><p>The defining skill is no longer typing speed or syntax recall, but <strong>orchestrating intelligent tools safely and effectively</strong>.</p><h3>Closing Thoughts</h3><p>Claude Code is not just another AI coding assistant. It is a framework for building agentic workflows that operate inside real engineering environments.</p><p>The course makes one thing clear:<br> AI becomes truly useful when it is <strong>constrained</strong>, <strong>extensible</strong>, and <strong>accountable</strong>.</p><p>The future of software development will belong to engineers who understand how to design those systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63a85d726a2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Multiverse is Bad Code: Why An Engineer Rejects Infinite Realities]]></title>
            <link>https://medium.com/@prathammhatre5/the-multiverse-is-bad-code-why-an-engineer-rejects-infinite-realities-9f0df2c3f049?source=rss-466d32f2de02------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f0df2c3f049</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[quantum-mechanics]]></category>
            <dc:creator><![CDATA[Pratham Mhatre]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 18:51:27 GMT</pubDate>
            <atom:updated>2025-12-19T18:51:27.411Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hN7_GKTbecl5kfIVja5_Mg.png" /></figure><p><em>From “spooky action at a distance” to pixelated space — a 3 AM deep dive into why the universe must be finite.</em></p><p>It started with a simple YouTube video.</p><p>You know the kind. You click on a <a href="https://youtu.be/NIk_0AW5hFU">Veritasium </a>thumbnail asking <em>“Is There Something Faster Than Light?”</em> and, twenty minutes later, you’re staring at the ceiling questioning the fundamental nature of existence and whether sleep was ever part of the plan.</p><p>That video introduced a concept that reliably breaks human brains:</p><p><strong>Local Realism.</strong></p><p>Einstein believed in it. He thought objects had defined properties (<strong>Realism</strong>) and could only be influenced by their immediate surroundings (<strong>Locality</strong>).</p><p>Quantum mechanics disagreed.</p><p>Very loudly.</p><p>According to experiments, the universe is either:</p><ul><li><strong>Non-local</strong> — spooky connections across vast distances<br><strong>or</strong></li><li>A <strong>Many-Worlds Multiverse</strong>, where every decision spawns a new timeline</li></ul><p>Most people hear <em>multiverse</em> and think:</p><blockquote><em>“Cool. Infinite possibilities.”</em></blockquote><p>As a computer engineer, I hear:</p><blockquote><em>“Who approved this architecture?”</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*teJz9EhI4oROK4QKLQ8lew.png" /><figcaption><strong>“Spooky Action at a Distance”:</strong> This diagram shows how two particles (A and B) can become so deeply linked that the measurement of one instantly determines the state of the other — even if they are separated by the entire universe.</figcaption></figure><h3>The Engineering Objection: The Ultimate Memory Leak</h3><p>The <strong>Many-Worlds Interpretation</strong> suggests that every time a quantum interaction happens, reality branches.</p><p>Measure an electron?<br><em>Bam.</em> New universe.</p><p>Eat a sandwich?<br><em>Bam.</em> Infinite sandwich timelines.</p><p>From a systems perspective, this fails the most basic rule of design:</p><p><strong>Optimization matters.</strong></p><p>Why would reality — an apparently efficient system — waste infinite resources rendering near-infinite possibilities every nanosecond?</p><p>That’s not elegant physics.<br>That’s a memory leak with confidence.</p><p>It also violates Occam’s Razor:</p><blockquote>Entities should not be multiplied without necessity.</blockquote><p>If our equations predict infinity, I don’t think that means the universe is infinite.</p><p>I think it means <strong>our equations are breaking</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cadt3HXu20IzsbRV407n7g.png" /><figcaption><strong>“Everything That Can Happen, Does Happen”:</strong> This diagram illustrates the Many-Worlds Interpretation (MWI) of quantum mechanics. Unlike the standard view where a measurement “collapses” a particle into a single state, MWI suggests the universe splits to accommodate every possible outcome.</figcaption></figure><h3>The Glitch: Smooth vs. Chunky Reality</h3><p>The real issue is that our two best instruction manuals refuse to cooperate.</p><h3>1. General Relativity (Einstein)</h3><ul><li>Describes gravity</li><li>Treats space as <strong>smooth</strong>, like a stretched rubber sheet</li><li>You can zoom in forever and it never gets jagged</li></ul><h3>2. Quantum Mechanics</h3><ul><li>Describes particles</li><li>Says reality is <strong>quantized</strong></li><li>Energy and matter come in discrete packets</li></ul><p>Individually?<br>Brilliant.</p><p>Together?<br>Catastrophic.</p><p>Try to apply both to black holes or the Big Bang and the math explodes. The smooth equations of gravity try to process chunky quantum inputs, and the result is always the same:</p><p><strong>Infinity.</strong></p><p>The multiverse feels less like a discovery and more like a patch applied to hide a crash.</p><p>So I went looking for the actual fix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*so9aQ5TCQ4qMtgjkKEdSzA.png" /><figcaption><strong>“The Great Incompatibility”:</strong> This illustration captures the central conflict in modern physics. General Relativity treats space and time as a smooth, continuous fabric that bends and curves. Quantum Mechanics, by contrast, describes reality as fundamentally discrete — a pixelated structure made of individual quanta of energy.</figcaption></figure><h3>The Alternative: A “Pixelated” Universe</h3><p>The rabbit hole led somewhere surprisingly sane:</p><p><strong>Loop Quantum Gravity (LQG).</strong></p><p>LQG proposes that space isn’t an empty backdrop. It’s a structure made of finite loops.</p><p>Think <strong>chainmail</strong>, not silk.</p><p>Think of a high-resolution image on your computer:</p><ul><li><strong>Zoomed out:</strong> Perfectly smooth</li><li><strong>Zoomed in enough:</strong> You hit pixels</li></ul><p>There is <strong>no image between pixels</strong>.<br>The information simply stops existing.</p><p>Loop Quantum Gravity suggests the universe works the same way:</p><ul><li><strong>No infinities</strong> — you can’t zoom in forever</li><li><strong>A smallest unit of space</strong> — the Planck scale</li><li><strong>No singularities</strong> — the Big Bang becomes a <em>Big Bounce</em></li></ul><p>Reality has a maximum resolution.</p><p>Which feels… responsible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j40WAoEsaztvF_GbGwGuGw.png" /><figcaption><strong>“Pixels of the Universe”:</strong> This image visualizes the transition from <strong>General Relativity</strong> to <strong>Quantum Gravity</strong>. On the large scale (left), spacetime appears as a smooth, flexible fabric that curves around massive objects. However, when zoomed in to the <strong>Planck Scale</strong> (right), that smoothness breaks down into a discrete, geometric lattice — essentially the “pixels” that make up reality.</figcaption></figure><h3>Why “Emergence” Wins</h3><p>If the universe isn’t literal code — because who built the computer — maybe it’s closer to <strong>thermodynamics</strong>.</p><p>Enter <strong>Emergent Gravity</strong>.</p><p>This idea suggests gravity isn’t a fundamental force at all. It’s emergent, like heat.</p><p>You can’t point to a “heat particle.”<br>Heat is just what atoms do collectively.</p><p>Likewise, gravity may just be the statistical outcome of the universe maximizing entropy.</p><p>Not a rule written for every object.<br>Just what happens when the system runs long enough.</p><p>No cosmic script.<br>No infinite branching timelines.<br>Just math behaving itself at scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RsKX_5_MiqpMj6wxPqDX9A.png" /><figcaption><strong>“Order from Chaos”:</strong> This illustration visualizes the theory of <strong>Entropic Gravity</strong>. It suggests that the smooth, curved spacetime we experience (top) is not a fundamental structure. Instead, it is an <strong>emergent phenomenon</strong> — a macroscopic effect that arises from the statistical averaging of countless chaotic, microscopic fluctuations of information or entropy (bottom).</figcaption></figure><h3>Conclusion: Reality Has a Maximum Resolution</h3><p>I believe one consistent set of equations should describe <strong>one finite universe</strong>.</p><p>We don’t need infinite worlds to explain quantum weirdness.<br>We just need to accept that space has a <strong>file size limit</strong>.</p><p>The universe probably isn’t a simulation.</p><p>But it absolutely behaves like something with constraints.</p><p>And honestly?<br>That’s comforting.</p><p>I don’t have the RAM for a multiverse.</p><h3>Blog Tags</h3><p>Physics · Philosophy · Quantum Mechanics · Engineering · Science</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f0df2c3f049" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rebuilding DreamTrim: From Hand-Rolled HTML/CSS to a React Ecosystem]]></title>
            <link>https://medium.com/@prathammhatre5/rebuilding-dreamtrim-from-hand-rolled-html-css-to-a-react-ecosystem-8e45ea504881?source=rss-466d32f2de02------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e45ea504881</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[my-coding-journey]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Pratham Mhatre]]></dc:creator>
            <pubDate>Thu, 13 Nov 2025 04:16:40 GMT</pubDate>
            <atom:updated>2025-11-13T04:16:40.616Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ct9GFsFl_Y1zIJCHUEadAw.png" /></figure><p>I recently rebuilt my DreamTrim Holidays website. It started as a simple static landing page for a client’s business — just me, a text editor, some HTML, and a CSS file that slowly turned into a mini-boss fight. I’m not a frontend developer by trade, but I did have one quiet superpower in the background: <em>Claude Code</em>.</p><p>Not the star of the show, but definitely the tablespoon of olive oil that helps the pasta dough behave.</p><p>This rebuild wasn’t just about upgrading the site. It was about learning React from scratch and understanding how it could make the project easier to grow over time.</p><h3>How It Started</h3><p>DreamTrim began with the usual first-version formula:</p><ul><li>One index.html</li><li>A few copy-pasted pages for About, Contact, and Gallery</li><li>One expanding styles.css file</li><li>A lot of “I’ll clean this later” edits</li></ul><p>It was straightforward and deployable within minutes. But every new section meant more duplication, more scrolling, and more chances to break something somewhere else.</p><h3>Early Folder Snapshot</h3><pre>dreamtrim/<br>├── index.html<br>├── about.html<br>├── contact.html<br>├── gallery.html<br>└── styles.css</pre><p>No components. No build system. Just raw files and discipline.</p><h3>The Pain Points</h3><p>The static setup eventually became uncomfortable:</p><ol><li>Shared elements like navbars and footers had to be maintained across multiple files.</li><li>CSS grew into an unpredictable jungle of selectors.</li><li>Refactoring always involved search/replace across several pages.</li><li>Adding dynamic UI felt like forcing a sculpture out of wet tissue paper.</li><li>Experiments required manually editing multiple files instead of centralizing logic.</li><li>The more pages I added, the more fragile the whole thing became.</li></ol><p>Little issues added up until the site felt heavier than it should be.</p><h3>Why I Moved to React</h3><p>The migration wasn’t about trends. It was about structure.</p><p>React gave me:</p><ul><li>Reusable components</li><li>Scoped styling</li><li>Cleaner state-driven UI</li><li>Clearer project organization</li><li>Faster iteration loops</li><li>Room to grow the site without hacks</li></ul><p>I wanted DreamTrim to feel extendable rather than patchy.</p><h3>Migration Mindset</h3><p>I approached the rewrite slowly:</p><ul><li>Kept the visual layout familiar at first</li><li>Extracted repeated parts into components</li><li>Avoided the “install every library known to mankind” trap</li><li>Let the structure evolve naturally</li></ul><p>These small steps kept the project moving without overwhelming me.</p><h3>Before vs After</h3><p>Aspect Before (HTML/CSS) After (React) Structure Multiple pages Component tree Reuse Copy/paste Props + composition Styling One global CSS file CSS modules / scoped styles Navigation Hardcoded links React Router State Minimal Hooks like useState Refactors Changing 5 files Changing 1 component Growth Manual and risky Organized and scalable Tooling Bare text editor Dev server, linting, formatting</p><h3>The New Structure</h3><p>React reorganized everything into cleaner boundaries:</p><pre>dreamtrim-react/<br>├── src/<br>│   ├── components/<br>│   │   ├── NavBar/<br>│   │   ├── Footer.jsx<br>│   │   ├── Card.jsx<br>│   │   └── GalleryItem.jsx<br>│   ├── pages/<br>│   ├── data/<br>│   ├── App.jsx<br>│   └── index.jsx<br>├── public/<br>└── package.json</pre><p>Data moved into arrays, components grouped by purpose, and styling became more manageable.</p><h3>Before and After Code Snippet</h3><p><strong>Before:</strong></p><pre>&lt;div class=&quot;gallery-card&quot;&gt;<br>  &lt;img src=&quot;images/item1.jpg&quot; alt=&quot;Item 1&quot;&gt;<br>  &lt;h3&gt;Item 1&lt;/h3&gt;<br>  &lt;p&gt;Short description...&lt;/p&gt;<br>&lt;/div&gt;</pre><p><strong>After:</strong></p><pre>function GalleryItem({ image, title, description }) {<br>  return (<br>    &lt;div className=&quot;gallery-card&quot;&gt;<br>      &lt;img src={image} alt={title} /&gt;<br>      &lt;h3&gt;{title}&lt;/h3&gt;<br>      &lt;p&gt;{description}&lt;/p&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p>Now I update one component instead of multiple HTML pages.</p><h3>Tools I Used</h3><p>A lightweight, practical stack:</p><ul><li>React</li><li>React Router</li><li>ESLint + Prettier</li><li>CSS Modules</li><li>Simple animation libraries (experimental)</li><li>NPM scripts for dev/build workflows</li></ul><p>I kept the stack intentionally small.</p><h3>Improvements I Actually Felt</h3><ul><li>Editing no longer felt like tiptoeing through a minefield</li><li>Styles stopped leaking everywhere</li><li>Adding a new feature now feels logical instead of chaotic</li><li>Components simplified reasoning about the UI</li><li>Data and markup finally lived in different places</li></ul><p>The project became easier to maintain in the long run.</p><h3>Small Aha Moments</h3><ul><li>Thinking in components shifted how I approached layouts</li><li>Early prop-drilling pains taught me about future scaling issues</li><li>Hot reloading made experimentation fun</li><li>Routing felt surprisingly clean compared to multiple .html files</li></ul><p>All tiny steps, but meaningful.</p><h3>Learning Curve Reality</h3><p>There were bumps:</p><ul><li>Getting used to component thinking</li><li>Deciding folder structure</li><li>Choosing the right level of component granularity</li><li>Letting the tooling ecosystem settle in</li></ul><p>But nothing was overwhelming. Just part of the journey.</p><h3>What Didn’t Change</h3><ul><li>Performance didn’t skyrocket (it was already fine)</li><li>Design consistency still required deliberate effort</li><li>Now I have a build step and dependencies to maintain</li></ul><p>React isn’t a magic wand; it’s a better toolbox.</p><h3>Was It Worth It?</h3><p>Absolutely.</p><p>React didn’t turn DreamTrim into a completely different product — but it made the code healthier, more organized, and easier to extend. For a small but growing site, that’s a huge win.</p><h3>Try the Live Website</h3><p>If you want to see the final result, explore the updated DreamTrim website here:</p><p>👉 <a href="https://dreamtrimholidays.com/"><strong>Visit DreamTrim Holidays</strong></a></p><p>It’s simple, clean, and built with the new React structure described above.</p><h3>Closing Thoughts</h3><p>Rebuilding the Website in React wasn’t a dramatic, cinematic transformation. It was a grounded upgrade — one that taught me more about modern UI structure than any tutorial could.</p><p>If you’re thinking about migrating your own static website, you don’t need a giant project to justify it. Even small sites can benefit from components, reusable patterns, and a more maintainable foundation.</p><p>And as long as you take it step by step, the learning curve feels more exciting than intimidating.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e45ea504881" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an AI-Powered Escape Room Game: A Journey Through LLMs, Game Design, and Spec-Driven…]]></title>
            <link>https://medium.com/@prathammhatre5/building-an-ai-powered-escape-room-game-a-journey-through-llms-game-design-and-spec-driven-d1150a28dd82?source=rss-466d32f2de02------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1150a28dd82</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Pratham Mhatre]]></dc:creator>
            <pubDate>Tue, 14 Oct 2025 11:10:00 GMT</pubDate>
            <atom:updated>2025-10-14T11:10:00.303Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u5B9BKlGQ1jAew4wuG2lBw.png" /></figure><h3>Building an AI-Powered Escape Room Game: A Journey Through LLMs, Game Design, and Spec-Driven Development</h3><h3>Introduction: Why Build This?</h3><p>A few years ago, 2019 to be specific, when the world was going all mad about AI. <strong>OpenAI </strong>released<strong> GPT-2</strong> in February 2019, but refused to publish the full model at first because it was supposedly “too dangerous.” Everyone suddenly started talking about “AI text generation,” “deepfakes,” and “synthetic media.” The internet was on fire.</p><p>A while after OpenAI finally released the GPT-2 Model to public, I came across a bizarre little experiment named <strong>AI Dungeon</strong>. It wasn’t much of a game in the classical sense — it was more like a text adventure that had managed to dream. You could type anything, anything at all, and the AI would go with it. It was messy, unpredictable, sometimes genius, and sometimes damned, but it was alive.</p><p>That was before I even knew what a <strong>Transformer </strong>architecture was or how text generation models even functioned. All I knew was that this AI was making up stories with me, in real-time, and it was performing them better than most scripted games I’d ever played.</p><p>It left me to ask: <em>If a machine could craft entire adventures out of thin air, what would occur if that same intelligence operated an escape room — one that changed to suit every choice, created puzzles on the fly, and redefined the world as players ventured into it?</em></p><p>That thought stayed with me. Years later, with improved tools and a clearer sense of how these models work, I decided to create one myself.</p><h3>The Vision: AI-Generated Worlds + Natural Language Understanding</h3><p>The core concept is simple but powerful:</p><ol><li><strong>Dynamic World Generation</strong>: Instead of manually creating rooms, puzzles, and items, let AI generate complete, playable game worlds on demand</li><li><strong>Natural Language Commands</strong>: Let players interact naturally — no more memorizing exact command syntax</li><li><strong>Unique Every Time</strong>: Every game session generates a new world with different puzzles, items, and narratives</li></ol><p>Think of it as a dungeon master that never runs out of ideas, available 24/7.</p><h3>The Tech Stack: Choosing the Right Tools</h3><h3>Backend Framework: FastAPI</h3><p>I chose <strong>FastAPI</strong> for several reasons:</p><ul><li><strong>Native async support</strong> for handling AI API calls without blocking</li><li><strong>Automatic API documentation</strong> with OpenAPI/Swagger</li><li><strong>Type safety</strong> with Pydantic for request/response validation</li><li><strong>Fast development</strong> with Python 3.12’s modern features</li></ul><h3>Database: PostgreSQL with SQLAlchemy 2.x</h3><p>The game needs to persist complex state across sessions:</p><ul><li>User accounts and authentication</li><li>Multiple game sessions per user</li><li>Dynamic content (rooms, items, puzzles) per session</li><li>Action history for each playthrough</li></ul><p><strong>SQLAlchemy 2.x’s async ORM</strong> was perfect for this, allowing me to write clean, non-blocking database operations.</p><h3>AI Integration: Multi-Provider Architecture</h3><p>Rather than locking into one AI provider, I built support for multiple:</p><ul><li><strong>OpenAI GPT</strong> — Primary choice for rich narratives</li><li><strong>Anthropic Claude</strong> — Alternative with great instruction following</li><li><strong>DeepSeek</strong> — Cost-effective option for world generation</li><li><strong>OpenRouter</strong> — Access to 100+ models through one API</li></ul><p>This gives flexibility for cost optimization, testing and ensures the game doesn’t break if one provider has issues.</p><h3>Game Architecture: How It All Works Together</h3><h3>1. World Generation Pipeline</h3><p>When a player starts a new game, here’s what happens:</p><pre>Player creates session with theme (e.g., &quot;fantasy&quot;)<br>    ↓<br>AI receives structured prompt with game requirements<br>    ↓<br>AI generates JSON with rooms, items, puzzles, and connections<br>    ↓<br>Backend validates the generated content<br>    ↓<br>Content is saved to database (per-session tables)<br>    ↓<br>Player enters the starting room</pre><p>The AI prompt is designed to return consistent, valid JSON:</p><ul><li>3–10 interconnected rooms with descriptions</li><li>Themed items placed throughout the world</li><li>Multi-step puzzles with prerequisites</li><li>Logical connections between rooms</li></ul><p><strong>Challenge</strong>: Getting AI to consistently return valid, parseable JSON was harder than expected. I had to implement strict schema enforcement and validation layers with Pydantic.</p><h3>2. Natural Language Command Processing</h3><p>The real magic happens when players interact with the game:</p><pre>Player types: &quot;look under the dusty old rug in the corner&quot;<br>    ↓<br>Command sent to AI with full game context:<br>  - Current room description<br>  - Player inventory<br>  - Visible items<br>  - Available exits<br>  - Puzzle states<br>    ↓<br>AI interprets intent and returns structured response:<br>  - Narrative text describing what happens<br>  - State updates (inventory changes, puzzle progress)<br>  - Status effects<br>    ↓<br>Backend validates state changes against game rules<br>    ↓<br>Database updated, response sent to player</pre><p>This approach bypasses traditional parser limitations. Players can be creative, use synonyms, and interact naturally.</p><p><strong>Challenge</strong>: Balancing AI creativity with game rules. The AI might suggest actions that break the game world, so I implemented a validation layer that checks if state updates are legal.</p><h3>3. Multi-Session Game State Management</h3><p>Players can have multiple ongoing games:</p><ul><li>Each session has isolated content (rooms, items, puzzles)</li><li>Sessions can be paused and resumed</li><li>Full action history for generating transcripts</li><li>Progress tracking (puzzles solved, items collected, playtime)</li></ul><p><strong>Database Design</strong>:</p><ul><li>game_sessions - metadata (theme, character, status)</li><li>game_states - current state (inventory, location, world state)</li><li>session_rooms - room definitions per session</li><li>session_items - item definitions per session</li><li>session_puzzles - puzzle definitions per session</li><li>action_logs - complete action history</li></ul><p><strong>Challenge</strong>: Ensuring content isolation between sessions while maintaining referential integrity and performance.</p><h3>The Development Process: Spec-Driven with Claude Code</h3><p>Here’s where things get meta: I used AI to build an AI-powered game.</p><p>I developed this project using <strong>Claude Code</strong> with GIthub’s spec-driven approach:</p><h3>Traditional Development:</h3><ol><li>Think about feature</li><li>Write code</li><li>Debug</li><li>Refactor</li><li>Repeat</li></ol><h3>Spec-Driven with Claude Code:</h3><ol><li>Write detailed specification, requirements and user journeys for features</li><li>Claude Code generates implementation</li><li>Review generated code</li><li>Test and iterate on spec</li><li>Refine as needed</li></ol><p>This workflow had several advantages:</p><p><strong>Faster Iteration</strong>: I could experiment with different architectural approaches by updating specs rather than rewriting code</p><p><strong>Better Documentation</strong>: Specs double as documentation, making the codebase easier to understand</p><p><strong>Learning Accelerator</strong>: Seeing how AI approaches problems taught me new patterns and techniques</p><p><strong>Focus on Design</strong>: More time thinking about architecture, less time wrestling with syntax</p><h3>Example: Authentication System</h3><p>Instead of implementing JWT auth from scratch, I wrote a spec:</p><pre>Authentication Requirements:<br>- JWT-based stateless authentication<br>- Email verification flow with tokens<br>- Refresh token rotation<br>- Secure logout with token blacklisting<br>- bcrypt password hashing<br>- HS256 signing </pre><p>Claude Code generated the entire auth service, security utilities, and API endpoints. I reviewed, tested, and made adjustments to the spec until it met my requirements.</p><h3>Technical Challenges &amp; Solutions</h3><h3>Challenge 1: AI Response Consistency</h3><p><strong>Problem</strong>: AI doesn’t always return valid JSON, especially under token limits or with complex prompts.</p><p><strong>Solution</strong>:</p><ul><li>Strict JSON schema enforcement in prompts</li><li>Response validation and sanitization</li><li>Fallback to template-based content if AI fails</li><li>Retry logic with exponential backoff</li></ul><h3>Challenge 2: Async Python Patterns</h3><p><strong>Problem</strong>: SQLAlchemy 2.x async patterns as a concept was new to me, especially with connection pooling and transaction management.</p><p><strong>Solution</strong>:</p><ul><li>Deep dive into async/await patterns</li><li>Proper context manager usage</li><li>Connection pool configuration for production</li><li>Testing async code with pytest-asyncio</li></ul><h3>Challenge 3: Game State Complexity</h3><p><strong>Problem</strong>: Managing complex relationships between rooms, items, puzzles, and player state across multiple sessions.</p><p><strong>Solution</strong>:</p><ul><li>Normalized database schema with foreign keys</li><li>Per-session content tables for isolation</li><li>Lazy loading with caching for performance</li><li>Comprehensive validation layer</li></ul><h3>Challenge 4: Token Blacklisting in Stateless Auth</h3><p><strong>Problem</strong>: JWT is stateless, but logout requires invalidating tokens.</p><p><strong>Solution</strong>:</p><ul><li>Token blacklist table in database</li><li>Background task to clean expired tokens</li><li>Short access token lifespan (15 min)</li><li>Refresh token rotation for long-term sessions</li></ul><h3>What I’m Learning</h3><h3>1. Prompt Engineering is a Skill</h3><p>Crafting prompts that consistently return valid, useful responses requires iteration and testing. Small changes in wording can dramatically affect output quality.</p><h3>2. AI Needs Constraints</h3><p>Giving AI complete freedom leads to chaos. The best results come from structured prompts with clear boundaries and validation.</p><h3>3. Async Programming is Powerful but Complex</h3><p>Non-blocking I/O makes the application much more scalable, but requires careful thinking about state, transactions, and error handling.</p><h3>4. Database Design Matters</h3><p>Early decisions about schema design have cascading effects. Normalizing data, planning for multi-tenancy (sessions), and thinking about query patterns upfront saves pain later.</p><h3>5. AI-Assisted Development is Iterative</h3><p>Spec-driven development with AI isn’t “write spec, get perfect code.” It’s a conversation: write spec, review code, refine spec, iterate.</p><h3>Current Status &amp; What’s Next</h3><h3>✅ What’s Working:</h3><ul><li>Dynamic world generation with multiple themes</li><li>Natural language command processing</li><li>Multi-session support with save/load</li><li>JWT authentication with email verification</li><li>15+ RESTful API endpoints</li></ul><h3>🚧 What’s In Progress:</h3><ul><li>Fixing a lot of FrontEnd Application Bugs</li><li>Refining puzzle complexity and balance</li><li>Improving AI prompt engineering for better narratives</li><li>Enhanced error handling and edge cases</li></ul><h3>🔮 Future Ideas:</h3><ul><li>AI-generated illustrations (DALL-E/Midjourney)</li><li>Mobile app</li></ul><h3>Key Takeaways</h3><ol><li><strong>LLMs are powerful for dynamic content generation</strong> — With proper constraints and validation, they can create engaging, varied experiences</li><li><strong>Natural language interfaces remove friction</strong> — Players love being able to interact naturally without memorizing commands</li><li><strong>Multi-provider AI architecture adds resilience</strong> — Don’t lock into one provider; build abstraction layers</li><li><strong>Spec-driven development accelerates learning</strong> — AI-assisted development lets you focus on architecture and design</li><li><strong>Database design for game state is complex</strong> — Think carefully about isolation, relationships, and performance</li><li><strong>Testing is crucial with AI</strong> — Since AI is non-deterministic, comprehensive testing of the surrounding system is essential</li></ol><h3>Code Structure</h3><p>For those interested, here’s the high-level project structure:</p><pre>escape-room-backend/<br>├── src/<br>│   ├── core/              # Security, database, middleware<br>│   ├── game_engine/       # Game logic (puzzles, state, rooms)<br>│   ├── models/            # SQLAlchemy ORM models<br>│   ├── repositories/      # Data access layer<br>│   ├── routers/           # API endpoints<br>│   ├── schemas/           # Pydantic request/response models<br>│   ├── services/          # Business logic (AI, auth, sessions)<br>│   └── main.py            # Application entry point<br>├── tests/                 # Unit, integration tests<br>├── alembic/               # Database migrations<br>└── requirements.txt       # Dependencies</pre><h3>Conclusion</h3><p>Building this AI-powered escape room game has been an incredible learning experience. It’s taught me about:</p><ul><li>AI integration and prompt engineering</li><li>Async Python and modern web frameworks</li><li>Complex database design</li><li>Game state management</li><li>AI-assisted development workflows</li></ul><p>The most exciting part? This is just the beginning. As LLMs improve, the possibilities for dynamic, AI-powered gaming experiences are endless.</p><p>If you’re interested in building something with me or have questions about the implementation, feel free to reach out!</p><p><strong>Tech Stack</strong>: Python 3.12 | FastAPI | PostgreSQL | SQLAlchemy 2.x | OpenAI | Anthropic Claude | DeepSeek | JWT | Pydantic | Claude Code</p><p>Thanks for reading!</p><p>LinkedIn: <a href="https://www.linkedin.com/in/prathammhatre">https://www.linkedin.com/in/prathammhatre</a></p><p>Github: <a href="https://github.com/blizwing">https://github.com/blizwing</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1150a28dd82" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Illusion of Luck: Inside Computerized Randomness]]></title>
            <link>https://medium.com/@prathammhatre5/the-illusion-of-luck-inside-computerized-randomness-8dc22f416e9e?source=rss-466d32f2de02------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dc22f416e9e</guid>
            <category><![CDATA[game-dev-rng]]></category>
            <category><![CDATA[random-number-generation]]></category>
            <category><![CDATA[blackjack-tech-deep-dive]]></category>
            <category><![CDATA[cryptography-security]]></category>
            <dc:creator><![CDATA[Pratham Mhatre]]></dc:creator>
            <pubDate>Sun, 06 Jul 2025 15:58:51 GMT</pubDate>
            <atom:updated>2025-07-06T17:03:42.967Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V7QQ7j311zte6O-ShvwH4Q.png" /></figure><h3>Summary</h3><p>It all began with a harmless-looking Blackjack minigame in Schedule 1, which led me to dig deep into randomness on the computer. You will understand why unpredictability has to be from the physical world, how quickly algorithms known as PRNGs mimic randomness, why they will eventually repeat, and how cryptographically secure PRNGs (CSPRNGs) capture the best of both worlds. We’ll also address true random number generators (TRNGs) — the hardware components that scavenge noise from nature — and what all of this implies for gaming, cryptography, and everything in between.</p><h3>My Blackjack Epiphany</h3><p>Last week, I fired up Schedule 1 and gave its Blackjack minigame a shot — never having played in my life, I figured each card draw was completely random. But then it dawned on me: computers are deterministic machines, so where is all this randomness? ????</p><h3>Computers Are Fundamentally Deterministic</h3><p>By nature, computers run instructions literally- with the same inputs, the same outputs, every time. Though this predictability is what allows software to exist, it creates an issue when unpredictability is required. To simulate randomness, software relies on algorithms that seem random but are not.</p><h3>Pseudo-Random Number Generators (PRNGs)</h3><h3>What Is a PRNG?</h3><p>A pseudorandom number generator generates sequences whose statistical behavior resembles true randomness but whose whole sequence is fixed by an initial “seed” value. Change the seed, and you have a different sequence; use it again, and you’ll have repeats.</p><h3>Linear Congruential Generators (LCGs)</h3><p>One of the most ancient and elementary PRNGs, the LCG calculates each new number through:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/0*3tT7vwPpk-p8p0rR.png" /></figure><p>While it is fast and simple, an LCG’s output will repeat after at most m values, and bad parameter selection may lead to very brief cycles.</p><h3>Xorshift Generators</h3><p>George Marsaglia invented Xorshift PRNGs, which utilize bitwise XORs and shifts on a binary state. They are incredibly fast in software and will have very long periods, but occasionally they will not pass rigorous statistical tests unless augmented with non-linear steps.</p><h3>Harvesting True Randomness: TRNGs</h3><p>When unpredictability is crucial — such as in high-stakes lotteries or cryptography — hardware comes into play. TRNGs draw entropy from physical phenomena that can’t be predicted or modeled.</p><ul><li><strong>Atmospheric noise</strong> (radio static) is a favorite source; RANDOM.ORG’s service has offered true random bits online since 1998 by scanning radios and quantizing atmospheric oscillations</li><li>Other sources are <strong>photoelectric effects</strong>, <strong>cosmic background radiation</strong>, and <strong>radioactive decay</strong>, all of which display essentially random behavior.</li><li>A 2003 <strong>LavaRnd </strong>project even utilized a lens-capped webcam to take thermal noise and applied hashing to generate cryptographically secure outputs.</li></ul><p>TRNGs, however, are slower and hardware-specific. If you request a TRNG for more bits than its physical entropy can provide, it just blocks until additional randomness accrues.</p><h3>The Best of Both Worlds: CSPRNGs</h3><p>To get the best of both worlds, systems today utilize <strong>cryptographically secure PRNGs (CSPRNGs)</strong>. These algorithms:</p><ol><li><strong>Seed </strong>with a genuine random value (usually from a TRNG)</li><li><strong>Create </strong>big streams of random-seeming data through cryptographic primitives (e.g., AES in counter mode).</li><li><strong>Withstand </strong>sequence prediction even when an attacker is aware of the algorithm but lacks knowledge of the seed.</li></ol><p>CSPRNGs drive TLS/SSL handshakes, VPNs, SSH keys, and any application demanding unguessable numbers. E-commerce, online banking, and secure messaging would be susceptible to pitiful attacks without them.</p><h3>Implications for Gaming and Security</h3><ul><li><strong>Game Developers</strong> frequently employ PRNGs for shuffling, loot drops, and procedural world creation. Though these are “random enough” statistically, clever players or cheaters might be able to predict results if they somehow manage to obtain the seed.</li><li><strong>Casinos </strong>combine PRNGs with regular re-seeding, heavy third-party audits, and occasional hardware entropy sources to provide fair play for slots and internet Blackjack.</li><li>In <strong>cryptography</strong>, weak randomness has led to catastrophic breaches — e.g., early Bitcoin wallets on Android suffered thefts when their PRNG implementation was flawed.</li></ul><h3>Conclusion: Deal with Determinism</h3><p>The next time you hit “Deal” on a virtual Blackjack table, recall that what you’re seeing is a sophisticated illusion of randomness — one designed by seeds, modular arithmetic, bitwise tricks, or maybe even cosmic radiation. Whether you have faith in an LCG, Xorshift, or bank-quality CSPRNG, learning about these mechanisms provides a new appreciation for the engineering that makes our games honest and our data safe.</p><blockquote><strong><em>Enjoyed this deep dive?</em></strong><em><br></em>Let me know your thoughts in the comments, and share how randomness shows up in your world!</blockquote><p><strong>References</strong></p><ol><li>“Pseudorandom number generator,” <em>Wikipedia</em> <a href="https://en.wikipedia.org/wiki/Pseudorandom_number_generator?utm_source=chatgpt.com">en.wikipedia.org</a></li><li>“Linear congruential generator,” <em>Wikipedia</em> <a href="https://en.wikipedia.org/wiki/Linear_congruential_generator?utm_source=chatgpt.com">en.wikipedia.org</a></li><li>“Xorshift,” <em>Wikipedia</em> <a href="https://en.wikipedia.org/wiki/Xorshift?utm_source=chatgpt.com">en.wikipedia.org</a></li><li>“Random number generation,” <em>Wikipedia</em> <a href="https://en.wikipedia.org/wiki/Random_number_generation?utm_source=chatgpt.com">en.wikipedia.org</a></li><li>“DRBG,” <em>NIST CSRC Glossary</em> <a href="https://csrc.nist.gov/glossary/term/pseudorandom_number_generator?utm_source=chatgpt.com">csrc.nist.gov</a></li><li>“RANDOM.ORG,” <em>RANDOM.ORG</em> <a href="https://www.random.org/?utm_source=chatgpt.com">random.org</a></li><li>“Pseudorandomness,” <em>Wikipedia</em> <a href="https://en.wikipedia.org/wiki/Pseudorandomness?utm_source=chatgpt.com">en.wikipedia.org</a></li><li>LavaRnd thermal noise RNG, <em>Wired</em> <a href="https://www.wired.com/2003/08/random?utm_source=chatgpt.com">wired.com</a></li><li>“CSPRNG,” <em>Wikipedia</em> <a href="https://en.wikipedia.org/wiki/Cryptographically_secure_pseudorandom_number_generator?utm_source=chatgpt.com">en.wikipedia.org</a></li><li>Casino RNG fairness, <em>New York Post</em> <a href="https://nypost.com/2024/04/12/casino-rng/?utm_source=chatgpt.com">nypost.com</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dc22f416e9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effortlessly Create, Share, and Host Mock APIs with Mockoon and Ngrok]]></title>
            <link>https://medium.com/@prathammhatre5/effortlessly-create-share-and-host-mock-apis-with-mockoon-and-ngrok-a07ffec92d4a?source=rss-466d32f2de02------2</link>
            <guid isPermaLink="false">https://medium.com/p/a07ffec92d4a</guid>
            <category><![CDATA[mock-server]]></category>
            <category><![CDATA[ngrok]]></category>
            <category><![CDATA[mockoon]]></category>
            <category><![CDATA[mock-api]]></category>
            <category><![CDATA[heroku]]></category>
            <dc:creator><![CDATA[Pratham Mhatre]]></dc:creator>
            <pubDate>Mon, 09 Dec 2024 10:22:28 GMT</pubDate>
            <atom:updated>2024-12-09T10:35:51.876Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V70Yg2tcNf5QV6SuquU8cA.png" /></figure><p>When developing or testing applications, you often need an API to simulate data exchanges, validate workflows, or prototype functionalities. Mock APIs serve as a handy solution, providing a quick and controlled way to mimic real-world API behavior. Tools like <strong>Mockoon</strong> and <strong>Ngrok</strong> enable developers to create local mock APIs and expose them to the internet for seamless collaboration and integration testing.</p><p>In this blog, you’ll learn not only how to create a mock API using Mockoon and Ngrok but also how to host it on the cloud for continuous availability. Let’s dive in!</p><h3>What You’ll Learn</h3><ul><li>Setting up a mock API using Mockoon.</li><li>Exposing the mock API to the internet using Ngrok.</li><li>Hosting the mock API on the cloud for 24/7 access.</li><li>Advanced tips for customization and security.</li></ul><h3>Why Mock APIs?</h3><p>Mock APIs are essential for developers and testers when:</p><ul><li>The backend services are still under development.</li><li>There’s a need to simulate API responses without hitting live servers.</li><li>Testing edge cases like timeouts, errors, or specific status codes.</li><li>Reducing costs associated with using production or staging APIs for testing.</li></ul><p>Mockoon and Ngrok offer a fast and efficient way to address these needs. Mockoon allows you to create APIs locally, while Ngrok makes them publicly accessible without complex configurations.</p><h3>Step 1: Set Up Your Mock Server with Mockoon</h3><h3>What is Mockoon?</h3><p>Mockoon is a free, cross-platform application that lets you design and run mock APIs locally. It’s easy to use and comes with features like dynamic responses, error simulations, and request logging.</p><h3>Steps to Create a Mock Server</h3><ol><li><strong>Download and Install Mockoon</strong></li></ol><ul><li>Visit the <a href="https://mockoon.com/">Mockoon website</a> and download the app for your operating system.</li></ul><p>2.<strong> Create a New Environment</strong></p><ul><li>Open Mockoon and create a new environment.</li><li>Add a route to your environment (e.g., /users).</li><li>Choose the HTTP method (GET, POST, etc.) and set the response details (status code, headers, and body).</li></ul><p>3. <strong>Customize Responses</strong></p><ul><li>Use Mockoon’s templating engine to create dynamic responses. For example:</li></ul><pre>{<br>  &quot;id&quot;: &quot;{{uuid}}&quot;,<br>  &quot;name&quot;: &quot;John Doe&quot;,<br>  &quot;created_at&quot;: &quot;{{date &#39;YYYY-MM-DD&#39;}}&quot;<br>}</pre><p>4.<strong> Start Your Mock Server</strong></p><ul><li>Click the “Play” button to run the server.</li><li>Your API will be available at http://localhost:{port} (e.g., <a href="http://localhost:3000).">http://localhost:3000).</a></li></ul><h3>Step 2: Expose Your Mock Server with Ngrok</h3><h3>What is Ngrok?</h3><p>Ngrok is a tunneling tool that allows you to expose local servers to the internet via a public URL. This is especially useful for sharing mock APIs with teammates or external clients.</p><h3>Steps to Set Up Ngrok</h3><ol><li><strong>Download and Install Ngrok</strong></li></ol><ul><li>Visit <a href="https://ngrok.com/">Ngrok’s website</a> and download the tool for your platform.</li></ul><p>2. <strong>Authenticate Your Ngrok Account</strong></p><ul><li>Sign up for a free Ngrok account and get your authentication token.</li><li>Run the following command to configure Ngrok:</li></ul><pre>ngrok config add-authtoken &lt;your_auth_token&gt;</pre><p>3. <strong>Expose Your Mockoon Server</strong></p><ul><li>Start Ngrok to forward your Mockoon server’s port:</li></ul><pre>ngrok http 3000</pre><ul><li>Ngrok will generate a public URL (e.g., https://abcd1234.ngrok.io) that redirects to your local server.</li></ul><p>4. <strong>Test the Public URL</strong></p><ul><li>Open the Ngrok URL in your browser or testing tool like Postman to confirm that your mock API is accessible.</li></ul><h3>Step 3: Hosting Your Mock API in the Cloud</h3><p>If you want your mock API to be available 24/7 without keeping your computer running, hosting it in the cloud is the way to go. Here’s how you can do it on popular platforms:</p><h3>Option 1: AWS Lambda</h3><ol><li><strong>Export Your Environment</strong></li></ol><ul><li>Export your Mockoon environment as a .json file.</li></ul><p>2. <strong>Deploy to AWS Lambda</strong></p><ul><li>Set up a lightweight Node.js server (e.g., using Express) that reads your environment file.</li><li>Deploy the server as an AWS Lambda function.</li><li>Use API Gateway to create a public endpoint for your Lambda function.</li></ul><h3>Option 2: Heroku</h3><ol><li><strong>Prepare Your Project</strong></li></ol><ul><li>Export the Mockoon .json file and set up a Node.js server.</li></ul><p>2. <strong>Deploy on Heroku</strong></p><ul><li>Use the Heroku CLI to create and deploy your app. Heroku will provide you with a public URL.</li></ul><h3>Option 3: Render</h3><ol><li><strong>Deploy Your Repository</strong></li></ol><ul><li>Upload your Mockoon environment to GitHub along with a Node.js server.</li><li>Deploy the repository on Render, which simplifies hosting and provides a live URL.</li></ul><h3>Step 4: Advanced Tips for Mockoon and Ngrok</h3><ol><li><strong>Simulate Real-World Scenarios</strong></li></ol><ul><li>Add error responses (500, 404) or delays to mimic real-world conditions.</li></ul><p>2. <strong>Secure Your Ngrok URL</strong></p><ul><li>Protect your mock API with basic authentication:</li></ul><pre>ngrok http -auth=&quot;username:password&quot; 3000</pre><ol><li><strong>Monitor Logs</strong></li></ol><ul><li>Use Ngrok’s web interface (http://127.0.0.1:4040) for real-time tunnel logs.</li></ul><p>4. <strong>Automate with Mockoon CLI</strong></p><ul><li>Use Mockoon’s CLI to integrate your mock server with CI/CD pipelines.</li></ul><h3>Conclusion</h3><p>Mockoon and Ngrok make it incredibly easy to create and share mock APIs. By hosting your mock server on the cloud, you can ensure uninterrupted access and collaboration. Whether you’re testing workflows, simulating error scenarios, or sharing prototypes with your team, these tools simplify your development journey.</p><p>Ready to start? Download Mockoon and Ngrok today and take your API testing to the next level!</p><h3>Further Resources</h3><ul><li><a href="https://mockoon.com/docs/">Mockoon Documentation</a></li><li><a href="https://ngrok.com/docs">Ngrok Documentation</a></li><li><a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs">Deploying Node.js Apps on Heroku</a></li></ul><p>Have thoughts, questions, or additional tips? Let’s discuss in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a07ffec92d4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>