<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Gilson Leite Siqueira Junior</title>
    <description>The latest articles on DEV Community by Gilson Leite Siqueira Junior (@barateza).</description>
    <link>https://dev.to/barateza</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1116009%2F922b4822-4c84-45e4-8470-95cfe625cfa4.jpeg</url>
      <title>DEV Community: Gilson Leite Siqueira Junior</title>
      <link>https://dev.to/barateza</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/barateza"/>
    <language>en</language>
    <item>
      <title>The spread is wider than the gap</title>
      <dc:creator>Gilson Leite Siqueira Junior</dc:creator>
      <pubDate>Fri, 13 Nov 2026 03:15:02 +0000</pubDate>
      <link>https://dev.to/barateza/the-spread-is-wider-than-the-gap-4740</link>
      <guid>https://dev.to/barateza/the-spread-is-wider-than-the-gap-4740</guid>
      <description>&lt;p&gt;On task 920 the shipped model passed all four of the repository's acceptance checks, then two, then two. Three runs, identical weights, identical settings, same machine. The challenger went two, two, four on the same task.&lt;/p&gt;

&lt;p&gt;That is awkward for a benchmark post, because a leaderboard is built from exactly one of those runs. So I ran twenty-four cells and wrote down what would count as a difference before any of the numbers existed.&lt;/p&gt;

&lt;p&gt;Both models are the same 27B checkpoint compressed to about two bits per weight, which is how a 27B fits in a 12 GB card. The one already in production, the shipped model, is a single 8.7 GB file with its speculative head built in. The challenger is 7.6 GB, plus a separate 1.4 GB draft file from a different toolchain.&lt;/p&gt;

&lt;p&gt;The bench is four issues from a real TypeScript codebase. Each issue carries a rubric of acceptance checks: behaviours the patch has to demonstrate, and tests it has to fail before the fix and pass after it. Issue 920 has four checks, 928 has three, 940 and 966 four each, fifteen in total.&lt;/p&gt;

&lt;p&gt;A cell is one model on one issue for one draw. Two arms, four issues, three draws: twenty-four cells, each allowed an hour on one RTX 4070 SUPER.&lt;/p&gt;

&lt;p&gt;Nothing about the setup changed between those runs, because the model samples. The bench sends each step at temperature 1.0 with top_p 0.95, so the next token comes from a distribution instead of being taken as the most likely one. Drawing a different token early is enough to change which file the model decides to open.&lt;/p&gt;

&lt;p&gt;Sampling is the smaller part of it. A cell is not one answer but sixty or seventy of them, chained: the model calls a tool, the tool returns a stack trace or a diff, and the next step is conditioned on what came back. Two runs that diverge at step four do not meet again at step sixty. The runs I logged took between 40 and 90 steps and a median of about forty-seven minutes before they stopped or hit the hour.&lt;/p&gt;

&lt;p&gt;Time on the clock did not separate the draws. On 920 all six runs spent the full hour and still scored between two checks and four, so whatever was separating them was not the effort in them. Across the study the eight runs that reached the hour scored from two to four, and the fastest run, at 21 minutes, met every check on its issue.&lt;/p&gt;

&lt;p&gt;Longer runs did score slightly lower overall. That association is confounded: 920 is both the slowest issue and the issue where most checks go missing, so I cannot separate the two, and I am not claiming time as a cause.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkxhjsvqoit73xs5xmsae.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkxhjsvqoit73xs5xmsae.png" alt="When each draw stopped, by issue: all six 920 draws sit on the 60-minute limit with scores from two to four, while the other issues mostly finish earlier and mostly meet every check" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The 920 draws also split by what they touched. The four that missed checks edited one or two files and added between 89 and 201 lines; the two that met every check edited four and nine. Six runs is not a mechanism, but it points at a different question than time does: not how long the model worked, but how far the change reached.&lt;/p&gt;

&lt;h2&gt;
  
  
  The result
&lt;/h2&gt;

&lt;p&gt;All twenty-four cells produced a score, and none had to be thrown out. The table keeps the three draws separate, because the draws are the finding.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;issue&lt;/th&gt;
&lt;th&gt;checks&lt;/th&gt;
&lt;th&gt;shipped, draws 1 to 3&lt;/th&gt;
&lt;th&gt;challenger, draws 1 to 3&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;920&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;4, 2, 2&lt;/td&gt;
&lt;td&gt;2, 2, 4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;928&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;3, 3, 3&lt;/td&gt;
&lt;td&gt;3, 3, 3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;940&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;4, 3, 4&lt;/td&gt;
&lt;td&gt;4, 4, 4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;966&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;4, 4, 4&lt;/td&gt;
&lt;td&gt;4, 3, 4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;total&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;13.33&lt;/td&gt;
&lt;td&gt;13.33&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two issues moved, one draw each, in opposite directions, and the two movements cancelled. The totals are 13.33 of 15 for each arm, averaged over the four per-issue means, which is the number the pre-registered rule compares. Summed raw it is 40 of 45 apiece, the same proportion. The spread inside a single model, which reaches two checks on 920, is wider than the gap between the two.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule
&lt;/h2&gt;

&lt;p&gt;The rule was written on 11 November, before the first cell ran, and it has two halves. A gap under two checks, with overlapping intervals, is a tie, and a tie keeps the shipped model. A swap needs at least two checks in the challenger's favour, and the challenger at least as good on two of the four issues.&lt;/p&gt;

&lt;p&gt;The two-check floor came from the design's power estimate. The design assumed a per-cell spread of 0.58 checks and, with three draws per cell, a standard error of 0.95 for the difference between the arms. On that estimate a two-check gap is the smallest the study could resolve, so a one-check gap is printed as unresolved rather than as a result.&lt;/p&gt;

&lt;p&gt;The measured difference was 0.00 checks. The shipped model stays. The challenger was not shown to be better, and it was not shown to be worse. The arms were indistinguishable on quality, so the tie goes to the simpler deployment: one 8.7 GB file against 7.6 GB plus a 1.4 GB draft.&lt;/p&gt;

&lt;p&gt;The rule only speaks to gaps of two checks or more. It says nothing about a one-check gap, which is the size most quantization comparisons claim, and nothing outside these four issues. Higher precision is out of reach anyway, since a 4-bit or 6-bit build of the same model does not fit in 12 GB. One difference between the arms is worth stating: the shipped model ran without the speculative-decoding flags its production configuration uses, which changes how fast tokens come out rather than which checks pass.&lt;/p&gt;

&lt;h2&gt;
  
  
  The noise floor was optimistic
&lt;/h2&gt;

&lt;p&gt;The 0.58 was measured on four earlier draws of the noisy issue, which scored 4, 3, 4, 3: a spread of 0.577 checks. Four draws is a small sample to estimate a variance from. The three draws in this study came back 4, 2 and 2, for 1.155.&lt;/p&gt;

&lt;p&gt;Run the same calculation on what the study produced and the standard error of the difference is 1.249 checks, not 0.95. The power estimate was 30 percent optimistic, which moves the smallest resolvable gap from two checks to about two and a half and leaves a 95 percent interval of plus or minus 1.86 checks on the difference. A two-check gap is now marginal, and a one-check gap was never going to be visible.&lt;/p&gt;

&lt;p&gt;The other three issues were stable. 928 returned 3, 3, 3 for both arms. 940 and 966 moved once each, in opposite directions, and neither moved far enough to matter on its own. All of the excess noise sits in 920, on both models.&lt;/p&gt;

&lt;p&gt;A future run of this bench should budget for two and a half checks rather than two. On 920 a single draw is worth anywhere from two checks to four, which is why the table above keeps three.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four runs that produced nothing
&lt;/h2&gt;

&lt;p&gt;Four of the twenty-eight attempts produced no score, and each one failed differently. Twice a model spent the full hour without editing a file: once with the shipped weights on 920, once with the challenger on 920. Both were retried under a fresh tag, and both retries scored 2 of 4.&lt;/p&gt;

&lt;p&gt;Once, on 940, the model committed its work to git. The cell prompt tells it to leave changes in the working tree and not to commit or push, and the harness reads the working tree, so the commit made a finished run invisible. That is an instruction-following failure rather than a harness fault, and it is the only one of the twenty-eight attempts where an explicit rule was broken.&lt;/p&gt;

&lt;p&gt;Once the challenger spent its whole output budget on a single thinking turn: 16,384 tokens, no edit, dead at step three. Raising the budget from 8,192 to 16,384 earlier in the project had reduced this failure without removing it. That cell was re-run by hand under a third tag and scored 4 of 4.&lt;/p&gt;

&lt;p&gt;None of the four was scored as zero. Each became a missing draw and was replaced, because entering an absent run as zero would penalise whichever model happened to fail more often.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the rubric misses
&lt;/h2&gt;

&lt;p&gt;Passing the rubric is not the same as leaving the repository working. Every cell also runs the surrounding test suites, and 6 of the 24 draws broke something there: all three 920 draws for the shipped model, one 928 draw, and two 920 draws for the challenger.&lt;/p&gt;

&lt;p&gt;The earlier single-draw runs had no regressions in the eight that carry a summary. What changed here is the output budget: it went from 8,192 tokens to 16,384 before this study, the diffs reached 11 files, and a patch that spans eleven files is more likely to break something nearby.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check any of this
&lt;/h2&gt;

&lt;p&gt;Every number here comes from a report tool that reads the run artifacts and does not score a missing draw as zero. It carries a self-test of 67 assertions, and a second analyser recomputes the totals under two alternative scoring policies: one that counts a weakly-evidenced check as failed, and one that discards every run which ended at the time limit. Both give the same verdict as the primary reading.&lt;/p&gt;

&lt;p&gt;The harness, the logs and the policy documents are in a private repository for now. If you want to run this design against a model of your own, or argue with the statistics, &lt;a href="https://github.com/barateza/barateza-blog/issues" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>machinelearning</category>
      <category>performance</category>
      <category>testing</category>
    </item>
    <item>
      <title>Building an internal AI assistant for support engineers with MCP</title>
      <dc:creator>Gilson Leite Siqueira Junior</dc:creator>
      <pubDate>Tue, 26 May 2026 16:31:18 +0000</pubDate>
      <link>https://dev.to/barateza/building-an-internal-ai-assistant-for-support-engineers-with-mcp-4ank</link>
      <guid>https://dev.to/barateza/building-an-internal-ai-assistant-for-support-engineers-with-mcp-4ank</guid>
      <description>&lt;p&gt;Support engineers lose time in a very specific way. A question starts in one place, the answer lives somewhere else, and before anyone notices you’ve got six tabs open and the actual problem is still half-hidden.&lt;/p&gt;

&lt;p&gt;I wanted to fix that because I’ve lived it myself. Not with a bigger dashboard, or with another chat bubble pretending to know everything: I wanted something smaller, gentler, and more honest.&lt;/p&gt;

&lt;p&gt;So I built an internal assistant built on Model Context Protocol that could reach into the systems we already trusted and pull back the right context when it mattered.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;On paper, the workflow looked clean enough.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A customer ticket lands with partial clues.&lt;/li&gt;
&lt;li&gt;The engineer checks the knowledge base for known fixes.&lt;/li&gt;
&lt;li&gt;They search previous tickets to see whether the issue was already solved.&lt;/li&gt;
&lt;li&gt;They jump to internal docs for product behavior or edge cases.&lt;/li&gt;
&lt;li&gt;They repeat the same search patterns when the first pass misses.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The problem wasn’t missing information; we had plenty of that.&lt;/p&gt;

&lt;p&gt;The real tax was friction.&lt;/p&gt;

&lt;p&gt;Every switch in context costs attention, and every repeated search chips away at momentum. You feel it in the middle of a live case, when the thread is still open and someone is waiting on an answer. It starts as something annoying and ends up draining more than you expect. If you’ve worked support long enough, you know the feeling immediately.&lt;/p&gt;

&lt;h2&gt;
  
  
  The solution
&lt;/h2&gt;

&lt;p&gt;For that, I developed an MCP server that exposes the internal search system as a set of tools a client like Claude Desktop or Claude Code can call.&lt;/p&gt;

&lt;p&gt;The important choice was what not to build. I didn’t want a chatbot that improvises its way through everything. I wanted a thin layer that keeps the source of truth where it already lives and gives the model structured access to it. That felt calmer to me, and more respectful of the systems people already rely on every day. There’s a kind of comfort in that simplicity.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Support engineer
      |
      v
Claude / AI client
      |
      v
MCP server
      |
      +--&amp;gt; KB search
      +--&amp;gt; Ticket search
      +--&amp;gt; Issue search
      +--&amp;gt; Product docs search
      |
      v
Internal search infrastructure
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That separation mattered more than I expected. The assistant is not the database. It’s the interface, and once I started treating it that way, the shape of the whole project became clearer. I could feel the difference right away.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why MCP fit this use case
&lt;/h2&gt;

&lt;p&gt;MCP gave me a clean boundary between the AI client and the internal services, which is exactly what I wanted: it made tool definitions explicit and search behavior easier to reason about. I could let the same backend serve different clients without hard-wiring the workflow into a single UI.&lt;/p&gt;

&lt;p&gt;The architecture splits cleanly into three layers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Client layer&lt;/strong&gt;: Claude Desktop or Claude Code makes tool calls over the MCP protocol. The model sees each tool’s description and parameters but doesn’t know about the backend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP server layer&lt;/strong&gt;: A Python process that translates tool calls into HTTP requests. It handles timeouts, error messages, and response formatting. This is where the business logic lives.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Service layer&lt;/strong&gt;: The remote search infrastructure that actually runs the queries and answer generation. The server calls it over standard HTTPS but shields the client from network details.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That separation meant I could evolve the server independently from the services. If an upstream API changed, only the server needed updating. If we wanted to swap one service for another, the client didn’t care. I also liked how MCP pushed me to think in capabilities instead of prompts. A support engineer doesn’t need a giant blob of instructions that tries to anticipate every branch. They need reliable tools for lookup, comparison, and follow-up, and they need those tools to behave predictably when things are already tense. That kind of steadiness matters more than cleverness.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tool design
&lt;/h2&gt;

&lt;p&gt;I split the server into separate tools instead of one generic search endpoint.&lt;/p&gt;

&lt;p&gt;That sounds like a minor detail; but i assure you it isn’t, at least not when you’re trying to keep the experience understandable for the person using it. Small boundaries can make a tool feel much kinder:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keyword search and semantic search solve different problems.&lt;/li&gt;
&lt;li&gt;Knowledge base lookup is not the same as ticket history lookup.&lt;/li&gt;
&lt;li&gt;A generated answer is not the same as a regenerated search result.&lt;/li&gt;
&lt;li&gt;Narrow tools are easier to test and easier to trust.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The model can ask for the specific corpus it needs. No guessing, and no hoping one universal search call will somehow infer the right intent every single time. That restraint made the whole thing easier to trust.&lt;/p&gt;

&lt;h3&gt;
  
  
  The tools
&lt;/h3&gt;

&lt;p&gt;The server has several tool categories, each serving a distinct purpose.&lt;/p&gt;

&lt;p&gt;The first handles search: semantic/neural queries across knowledge bases, tickets, issues, and documentation, paired with keyword search when you need exact phrases.&lt;/p&gt;

&lt;p&gt;For answers, I built two tools: one to generate grounded LLM responses, another to regenerate or reformat them in different tones (formal, casual, technical, etc.).&lt;/p&gt;

&lt;p&gt;Discovery tools let the model list available sources, tags, and sections without guessing. A fourth class handles structured metadata lookups to build more informed queries.&lt;/p&gt;

&lt;p&gt;Each tool is stateless except for answer generation, which stores a &lt;code&gt;chat_id&lt;/code&gt; so you can regenerate without re-searching. That minimal state felt right — the model can use these tools in any order, and results are cacheable.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the backend looked like
&lt;/h2&gt;

&lt;p&gt;Under the hood, the backend wrapped a Kubernetes-deployed semantic search service that already indexed multiple corpora. My job was to make that stack usable from an AI client without leaking the messy bits or making the experience harder than it needed to be. I wanted the person on the other side to feel help, not complexity.&lt;/p&gt;

&lt;p&gt;The practical work wasn’t glamorous:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Handling network access cleanly.&lt;/li&gt;
&lt;li&gt;Keeping the tool surface small.&lt;/li&gt;
&lt;li&gt;Returning results in a form the model could use.&lt;/li&gt;
&lt;li&gt;Preserving enough metadata for a human to verify the answer.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Implementation details
&lt;/h3&gt;

&lt;p&gt;The server is a Python FastMCP application that communicates with the AI client over stdio (the MCP protocol). If you’re setting this up locally, you’ll add a small configuration block to your Claude Desktop config that points to your Python environment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"kcs-search"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/path/to/python"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-m"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"server_module"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"HTTP_TIMEOUT_SECONDS"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"60"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;HTTP_TIMEOUT_SECONDS&lt;/code&gt; parameter is the only tuning knob most people need to touch.&lt;/p&gt;

&lt;p&gt;Response times vary by operation. Semantic search usually completes in 2–5 seconds. Keyword search is faster. Answer generation is slower (10–30 seconds) because it involves model inference on top of retrieval. I also had to respect something obvious but easy to ignore: internal systems are not built for free-form AI access. Some endpoints only work in specific contexts. Some assumptions that hold locally fall apart the moment you hit the real network. You learn that quickly, usually after a few false starts. That part can be humbling.&lt;/p&gt;

&lt;h2&gt;
  
  
  Security and guardrails
&lt;/h2&gt;

&lt;p&gt;I found an authentication gap while working through the integration, and I documented it instead of trying to sneak around it. That part mattered to me more than the workaround would have. I’ve always preferred the slower honest path there.&lt;/p&gt;

&lt;p&gt;That changed how I approached the rest of the implementation. Internal tools should default to the least surprising behavior:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Only expose what the client actually needs.&lt;/li&gt;
&lt;li&gt;Avoid broad write capabilities.&lt;/li&gt;
&lt;li&gt;Prefer read-only operations unless a workflow truly requires more.&lt;/li&gt;
&lt;li&gt;Make the source of each result visible so the human can verify it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For AI tooling, security isn’t a later phase. It has to be part of the interface design from the start, or the whole thing feels off. People can sense when something is missing, even if they can’t name it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Limitations and caveats
&lt;/h3&gt;

&lt;p&gt;A few hard constraints shaped this tool:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Network access&lt;/strong&gt;: The upstream services are only reachable from inside the internal network. The server returns a connection error if network access is not configured correctly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authentication&lt;/strong&gt;: At the time of building this, the upstream services had no authentication layer. This means the server should never run on shared or public machines. It’s designed for individual developer workstations only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Environment scope&lt;/strong&gt;: Both services run on staging infrastructure. There is no production endpoint at this point.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Streaming&lt;/strong&gt;: The underlying answer generation API supports streaming, but v1 of this server does not. Answer generation returns the full response when complete instead of streaming tokens as they arrive. This adds latency but simplifies the client implementation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These constraints shaped the tool’s scope on purpose. It works well for solo developers on internal networks with staging data. I didn’t try to make it something it isn’t — that simplicity is the whole point. There’s less to go wrong when a tool admits what it can’t do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adoption
&lt;/h2&gt;

&lt;p&gt;The strongest sign that the project was useful wasn’t the code. It was that I shared it with other engineers on the team.&lt;/p&gt;

&lt;p&gt;That changes the bar immediately. A private prototype can be clever and still be useless. A shared internal tool has to survive real usage, inconsistent questions, and the pressure of helping someone in the middle of a live support case. That’s a different kind of test entirely, and it asks for a different kind of care.&lt;/p&gt;

&lt;p&gt;Once other engineers could use it, the project had to be understandable, dependable, and fast enough to stay out of the way. If it gets in the way, people stop trusting it, and trust is the whole game here. I felt that responsibility pretty strongly.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;This project taught me a few things that go beyond one internal assistant.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;AI tooling becomes much more useful when it is attached to real operational systems.&lt;/li&gt;
&lt;li&gt;Retrieval quality matters more than flashy prompting.&lt;/li&gt;
&lt;li&gt;Narrow, explicit tools are easier to trust than one large abstraction.&lt;/li&gt;
&lt;li&gt;Production constraints shape the product as much as model choice does.&lt;/li&gt;
&lt;li&gt;The best AI systems for support work are the ones that reduce context switching.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It also reinforced something I’ve seen over and over in support and infrastructure work: reliability is a feature. If the tool only looks good in demos, people will leave it behind, no matter how clever it seemed at first. Real usefulness is quieter than that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing thought
&lt;/h2&gt;

&lt;p&gt;I like building AI systems that make expert work feel lighter instead of replacing the expert. This project did that in a very concrete way. It turned scattered knowledge into something engineers could query directly, right in the flow of work, which is exactly the kind of thing I want to keep building. That kind of work feels good to me.&lt;/p&gt;

&lt;p&gt;That’s the kind of AI product I want to keep building.&lt;/p&gt;




&lt;h2&gt;
  
  
  Related Project
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://barateza.org/blog/projects/dubweave.md" rel="noopener noreferrer"&gt;&lt;strong&gt;dubweave&lt;/strong&gt; — Fully local AI dubbing pipeline&lt;/a&gt;. Like this KCS Search MCP project, dubweave is built on the principle of keeping everything local, measurable, and under your control. Both are systems that respect the data they handle and the people who use them.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>productivity</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Dubweave, for Aline</title>
      <dc:creator>Gilson Leite Siqueira Junior</dc:creator>
      <pubDate>Tue, 26 May 2026 16:26:25 +0000</pubDate>
      <link>https://dev.to/barateza/dubweave-for-aline-aof</link>
      <guid>https://dev.to/barateza/dubweave-for-aline-aof</guid>
      <description>&lt;p&gt;I built dubweave for my wife, Aline. She speaks Portuguese, and I kept finding these videos (essays, documentaries, interviews) that I wanted to show her. Subtitles help, yeah, but it is not the same. When you dub something, you can both just… listen. You sit together and watch without the reading part happening in your head.&lt;/p&gt;

&lt;p&gt;So I built this for that. To not send our videos to some company’s server. To keep it mine. And as I built it, it got complicated in the ways that feel honest to me, because I like (and obviously prefer) systems I can understand and trust.&lt;/p&gt;

&lt;p&gt;If I had to explain what dubweave actually does, I would say it is like a workshop. Not a fancy one. Just a series of stations where each person passes the work to the next person: just clear handoffs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The workshop tour, step by step
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Station 1: Get the video
&lt;/h3&gt;

&lt;p&gt;If you give it a local file, it converts to mp4 and pulls out the audio. If you give it a video link, yt-dlp tries a few different ways to download it. Sometimes it is fast, sometimes it falls back. The pipeline has a bunch of ways to keep trying. It rotates client profiles. It uses your cookies if you have them. If all else fails, it just extracts the audio from the video file itself. The point is not to be clever about it. The point is to keep working.&lt;/p&gt;

&lt;h3&gt;
  
  
  Station 2: Listen and mark the time
&lt;/h3&gt;

&lt;p&gt;Whisper does two things: First it listens and figures out what language the audio is. Then it transcribes what it hears and marks down the exact time each word starts and stops. That timing is everything; it is like the skeleton. If I do not respect it, the dubbed voice will start moving around and the speaker’s mouth will not match. Thus I keep that timing sacred.&lt;/p&gt;

&lt;h3&gt;
  
  
  Station 3: Glue the pieces together
&lt;/h3&gt;

&lt;p&gt;Whisper chops up speech into tiny bits. A lot of tiny bits.&lt;/p&gt;

&lt;p&gt;But translation works better on whole thoughts, not fragments. So I have a few simple rules: do not make utterances too short, do not make them too long, if there is a big gap in the audio maybe split there, if there is punctuation maybe stop there. I keep track of which original fragments I combined, so later I can spread the translation back across the original timing. This is not just tidying up. This is the difference between a translation that sounds natural and one that sounds broken.&lt;/p&gt;

&lt;h3&gt;
  
  
  Station 4: Translate, then fix it
&lt;/h3&gt;

&lt;p&gt;If you have an API key, translation goes through Gemini. I break it into chunks, number them, and give it a bit of context from previous translations so pronouns and tone stay consistent. If the API fails or you do not have a key, it falls back to a local model instead. Either way, the translation then gets run through a PT-BR fixer.&lt;/p&gt;

&lt;p&gt;Most systems either guess at these rules or bury them. I keep 36 explicit regex rules in code and in a JSON file so I can edit them without redeploying:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;_PTPT_TO_PTBR&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\btu\b"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"você"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\bteu\b"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"seu"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\bestás\b"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"está"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\bautocarro\b"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"ônibus"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\btelemóvel\b"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"celular"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="c1"&gt;# ... and 31 more rules for pronouns, verbs, vocabulary&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The rules get loaded from a JSON file first. You can edit them. You can test them. You can see what is actually happening.&lt;/p&gt;

&lt;h3&gt;
  
  
  Station 5: Does it fit?
&lt;/h3&gt;

&lt;p&gt;This is the center of everything. Each translated sentence is checked against how long it has to fit. Here is the unique part: I measured the actual speech rate for every voice, not guessed it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="no"&gt;VOICE_CALIBRATION&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"pf_dora"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;13.3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;           &lt;span class="c1"&gt;# Kokoro female&lt;/span&gt;
    &lt;span class="s2"&gt;"pm_alex"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;13.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;           &lt;span class="c1"&gt;# Kokoro male  &lt;/span&gt;
    &lt;span class="s2"&gt;"pt-BR-FranciscaNeural"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;11.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# Google (fast)&lt;/span&gt;
    &lt;span class="s2"&gt;"M1"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;16.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"F1"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;16.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="c1"&gt;# Supertonic&lt;/span&gt;
    &lt;span class="s2"&gt;"default"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;15.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;_estimate_synth_duration&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;15.1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;cps&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These numbers come from autoresearch loops where I ran actual samples and measured them. Not guesses. The data.&lt;/p&gt;

&lt;p&gt;Then if something is too long, I try an LLM rephrase. If that fails, I trim to the nearest word boundary. Because the worst failure is when the voice keeps going and the mouth is already closed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Station 6: Speak
&lt;/h3&gt;

&lt;p&gt;I support a bunch of different text-to-speech engines — Kokoro, XTTS v2, Edge, Google, Gemini, ElevenLabs, Supertonic. They all work differently but I make them all follow the same rules: generate audio, measure how long it is, then speed it up or slow it down to fit the time slot. If one breaks, it becomes a short silence instead of killing the whole run. That is not fancy. That is just reliability.&lt;/p&gt;

&lt;h3&gt;
  
  
  Station 7: Mix it all together
&lt;/h3&gt;

&lt;p&gt;I build the final audio directly in a numpy array. Each clip sits at its time offset. Then I make sure nothing is clipping loud, and I put it back into the original video with ffmpeg. Subtitles are generated separately using basic reading-speed math, and tiny gaps get merged so the subtitles feel like they were written by a person, not an algorithm.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it persists and resumes
&lt;/h2&gt;

&lt;p&gt;Another unique part. If you run dubweave for hours and it stops at station 5, you restart from stage 5 without redoing 1–4. This is baked in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;save_project_stage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;project_dir&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# projects/my_project/&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;stage&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"download"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;shutil&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;copy2&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v_src&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="s2"&gt;"video.mp4"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;stage&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"translate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="s2"&gt;"translated.json"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;stage&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"synthesize"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="s2"&gt;"timed_clips.json"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# each stage: one file on disk&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;load_project_stage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# Load back from disk at any point&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="s2"&gt;"translated.json"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every stage is a file. Pause. Come back. Tweak manually if needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes it different
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Local and resumable&lt;/strong&gt;: Everything runs local by default. Every stage saves to disk. Stop and restart from where you left off.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Timing is measured, not guessed&lt;/strong&gt;: 13.3 chars/sec for Kokoro pf_dora. 11.1 for Google Francisca. These come from actual measured output, kept per-voice in code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Normalization is explicit and editable&lt;/strong&gt;: 36 regex rules for PT-PT → PT-BR. Not buried in code. In a JSON file. You can edit pronouns, verb forms, gerunds, vocabulary. Change them and run again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Translation has a safety net&lt;/strong&gt;: Gemini with context windows for consistency. If the API fails or you do not have a key, it falls back to a local NLLB model. Normalization runs either way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Seven TTS engines, one contract&lt;/strong&gt;: Kokoro, XTTS v2, Edge, Google, Gemini, ElevenLabs, Supertonic. All generate audio, get time-stretched to fit, fail silently. Same code path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Measured, not guessed&lt;/strong&gt;: Autoresearch loops with KEEP and DISCARD logged. I do not assume something is better. I measure it. The numbers are in the README.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I work
&lt;/h2&gt;

&lt;p&gt;I am autistic. I do not build by guessing. I measure, I calibrate, I make small changes and then check if they actually worked. I keep logs. I write rules down in JSON. I tune things like speech rate over and over until the numbers match what I hear, because my ears alone are not reliable enough. Ambiguity exhausts me, so I build systems with explicit rules instead. This is not a personality thing. This is how I keep systems honest, and this is how I keep myself functional.&lt;/p&gt;

&lt;h2&gt;
  
  
  That is it
&lt;/h2&gt;

&lt;p&gt;dubweave is a technical system but also a personal one. It was built for my wife. It was built the way I know how to build. If you are thinking about hiring me, this is what you are hiring: someone who builds things by measuring them, not guessing. Someone who keeps explicit rules and keeps them in files. Someone who cares about timing and context windows and graceful failure. Someone who would rather spend an hour understanding a thing than thirty minutes assuming it works.&lt;/p&gt;

</description>
      <category>privacy</category>
      <category>showdev</category>
      <category>sideprojects</category>
      <category>systems</category>
    </item>
  </channel>
</rss>
