<?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: Phạm Cảnh</title>
    <description>The latest articles on DEV Community by Phạm Cảnh (@phamcanh).</description>
    <link>https://dev.to/phamcanh</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%2F4233083%2F7e2c2141-7218-4430-aacf-89a1dea2ae20.jpg</url>
      <title>DEV Community: Phạm Cảnh</title>
      <link>https://dev.to/phamcanh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phamcanh"/>
    <language>en</language>
    <item>
      <title>Building AI Agents Alone Taught Me That Getting Code to Work Is Not the Same as Knowing It Works</title>
      <dc:creator>Phạm Cảnh</dc:creator>
      <pubDate>Fri, 27 Nov 2026 07:35:28 +0000</pubDate>
      <link>https://dev.to/phamcanh/building-ai-agents-alone-taught-me-that-getting-code-to-work-is-not-the-same-as-knowing-it-works-n6j</link>
      <guid>https://dev.to/phamcanh/building-ai-agents-alone-taught-me-that-getting-code-to-work-is-not-the-same-as-knowing-it-works-n6j</guid>
      <description>&lt;h2&gt;
  
  
  What were you building, and why?
&lt;/h2&gt;

&lt;p&gt;I had spent a long time building a tool called opencode-harness-kit. It gives an AI coding agent ten specialized roles, including planning, coding, reviewing, and checking. I also wanted it to remember where a run had stopped, so the agent wouldn't have to find the same files again, ask the same questions, and waste tokens rebuilding context every time.&lt;/p&gt;

&lt;p&gt;More importantly, every task had to come with a check that could fail. If the check failed, the task wasn't done.&lt;/p&gt;

&lt;p&gt;I built it because I was tired of watching an agent write code that looked right and then fall apart three steps later. Sometimes the code worked and I couldn't fully explain why, which made it hard to trust that it would keep working. I wanted something that could check the work instead of trusting the model's confidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  What did you expect to happen?
&lt;/h2&gt;

&lt;p&gt;I expected the harness to make everything better. So I ran an internal benchmark on a fixed commit. I chose six small tasks, four code-search tasks and two small edits, and ran each task ten times with the harness and ten times without it. That was 120 runs. Both sides used the same model and the same starting commit.&lt;/p&gt;

&lt;h2&gt;
  
  
  The moment you realized something was off
&lt;/h2&gt;

&lt;p&gt;The short-task results came back: with the harness, 54 out of 60 runs were correct. Without it, 55 out of 60 were correct. The harness runs used more than five times as many input tokens and took twice as long. It was worse on cost.&lt;/p&gt;

&lt;p&gt;I had put months into it and wanted it to work. I sat there and reread the table. I didn't want to twist the numbers just to prove my tool was useful. The code ran. The harness did what I built it to do. It just didn't do what I thought it did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Everything you tried (including what didn't work)
&lt;/h2&gt;

&lt;p&gt;First, I tried to understand what had gone wrong. Most of the time, I vibe-code: I describe what I want, and the agent writes it. When something is hard to understand, I ask platforms like ChatGPT for a clearer explanation, and then I have the agent redo the work. Those help me understand the problem, but they don't help me check the measurement. So I reran the test myself. I checked the commit, the model, the prompts. The cost stayed the same.&lt;/p&gt;

&lt;p&gt;The honest conclusion was this: on short tasks, the harness cost more than it saved. On a separate long task that touched twelve files, though, it did help. By dropping stale context, it cut input tokens by 69% and run time by 60% compared with the same task without it. The tool wasn't useless. It just wasn't useful everywhere.&lt;/p&gt;

&lt;p&gt;That was the first time I understood the difference between getting code to work and knowing it works. The first is a demo. The second takes evidence.&lt;/p&gt;

&lt;p&gt;Then I ran into a bug that mattered more than the benchmark. If the reviewer's verdict failed to save, the run still reported "pass." The run exited 0, the task was marked done, and there was no verdict file. A green result with no evidence is worse than a red one. I made saving the verdict a checkpoint: if it can't be saved, the task stays unfinished and the run stops.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who did you ask for help?
&lt;/h2&gt;

&lt;p&gt;Mostly ChatGPT. When something in the code was hard to understand, I asked it to explain, and then I had the agent redo the work. But ChatGPT could explain code; it couldn't tell me whether my benchmark was measured correctly. The agent I was testing wasn't neutral either, because it was the thing being judged. So for the measurement itself, I had no one. I reran the test and checked the commit, the model, and the prompts alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where things stand now
&lt;/h2&gt;

&lt;p&gt;The tool is on &lt;a href="https://www.npmjs.com/package/opencode-harness-kit" rel="noopener noreferrer"&gt;npm&lt;/a&gt; and &lt;a href="https://github.com/pham-canh/opencode-harness-kit" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;, but it's a personal project, not a proven product. What I have now is a habit: measure, write down the loss, and don't trust a green result without evidence.&lt;/p&gt;

&lt;p&gt;I've never worked as a software engineer at a company, and I've never been responsible for a production system. What I don't have is experience working in a team on a real project. Code review. Design review. A production incident. Someone saying "this is wrong" before a user does. I can build my own verification, but I can't replace a team.&lt;/p&gt;

&lt;h2&gt;
  
  
  Anything else you want our guests to weigh in on?
&lt;/h2&gt;

&lt;p&gt;I want to understand how a team designs systems, reviews each other's work, and makes decisions when there's no obvious right answer. I'm willing to hear that something I spent months on is wrong, and to rebuild it.&lt;/p&gt;

&lt;p&gt;I've learned a lot by building alone. Now I want to learn by building with other people. So the question I keep coming back to is this: how does someone who has learned by building alone develop the judgment needed to work on real software with a team?&lt;/p&gt;

</description>
      <category>codenewbiestory</category>
      <category>codenewbie</category>
      <category>ai</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Measuring agents like systems: 6 metrics that tell you if your harness helps or hurts</title>
      <dc:creator>Phạm Cảnh</dc:creator>
      <pubDate>Fri, 20 Nov 2026 09:11:46 +0000</pubDate>
      <link>https://dev.to/phamcanh/measuring-agents-like-systems-6-metrics-that-tell-you-if-your-harness-helps-or-hurts-3h3p</link>
      <guid>https://dev.to/phamcanh/measuring-agents-like-systems-6-metrics-that-tell-you-if-your-harness-helps-or-hurts-3h3p</guid>
      <description>&lt;p&gt;On a task that fits in one read, my harness used &lt;strong&gt;5.3× the tokens&lt;/strong&gt; and &lt;strong&gt;2× the wall time&lt;/strong&gt; — for the same correctness.&lt;/p&gt;

&lt;p&gt;On a 12-file task, a one-line change to the pruning rule cut &lt;strong&gt;69% of input tokens&lt;/strong&gt; and &lt;strong&gt;60% of wall time&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Same harness. Same model. Same benchmark. If you only measure one of those results, you will draw the opposite conclusion about whether the thing works.&lt;/p&gt;

&lt;p&gt;This post is not "use my harness." It is the scorecard I use to decide whether &lt;em&gt;any&lt;/em&gt; agent setup is helping — and the six ways I got the measurement wrong at first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; I maintain &lt;code&gt;opencode-harness-kit&lt;/code&gt;, the harness used in these numbers. The benchmark tables and the arm where it loses are in the repo, so you can check the numbers instead of trusting the summary.&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%2F7g7yky5ss11x93v76xbh.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%2F7g7yky5ss11x93v76xbh.png" alt="An agent is three layers, and each layer has somewhere to measure" width="800" height="547"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Model ≠ agent ≠ harness.&lt;/strong&gt; The model sets the ceiling. The harness decides how much of that ceiling you actually use. The loop decides whether there is evidence.&lt;/li&gt;
&lt;li&gt;"Effective" has to be answered with &lt;strong&gt;six metrics&lt;/strong&gt;: correctness, cost, latency, tool efficiency, context hygiene, process safety.&lt;/li&gt;
&lt;li&gt;Over &lt;strong&gt;6 short tasks (4 lookups + 2 edits), 120 runs&lt;/strong&gt;, the harness tied on correctness (&lt;strong&gt;54/60 vs 55/60&lt;/strong&gt;) but cost &lt;strong&gt;5.3× the uncached input&lt;/strong&gt; and &lt;strong&gt;2× the wall time&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Over &lt;strong&gt;60 real sessions&lt;/strong&gt;, the pruner cut &lt;strong&gt;80.5% of context&lt;/strong&gt;; per-turn history dropped &lt;strong&gt;64%&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;On a &lt;strong&gt;12-file task&lt;/strong&gt;, a pruner fix cut &lt;strong&gt;69% of input&lt;/strong&gt; and &lt;strong&gt;60% of wall time&lt;/strong&gt; versus the old pruner — and the harness &lt;em&gt;still&lt;/em&gt; cost more than no harness.&lt;/li&gt;
&lt;li&gt;Bad measurement is worse than no measurement: one grader scored the harness at 52/60; re-graded correctly, it won &lt;strong&gt;34/40&lt;/strong&gt; on the four lookup tasks.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;The point is not that harnesses are good or bad. It is that "effective" is a claim you have to pay for with a baseline, a counterfactual, and an external grader.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  1. The wrong question: "Is my agent smart?"
&lt;/h2&gt;

&lt;p&gt;That question is about the &lt;strong&gt;model&lt;/strong&gt;. The model is part of the story, but it is rarely the deciding part of daily work.&lt;/p&gt;

&lt;p&gt;The useful question is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;For &lt;strong&gt;this kind of work&lt;/strong&gt;, is the agent &lt;strong&gt;more correct, cheaper, faster, or safer&lt;/strong&gt; than what I accept today?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That forces three things: a &lt;strong&gt;baseline&lt;/strong&gt; before you change anything, a &lt;strong&gt;counterfactual&lt;/strong&gt; (the same work without the agent or harness), and a &lt;strong&gt;grader&lt;/strong&gt; that is not the agent itself.&lt;/p&gt;

&lt;p&gt;Without those three, "effective" is just a feeling you got after a nice demo.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Three layers, one equation
&lt;/h2&gt;

&lt;p&gt;A real agent is not a model. It is three layers stacked:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;What it decides&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;MODEL&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Reasons, produces actions, calls tools&lt;/td&gt;
&lt;td&gt;The capability ceiling&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;HARNESS&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Context, tool schema, permissions, pruning, routing, retention, verification&lt;/td&gt;
&lt;td&gt;How much of that ceiling you use&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;LOOP&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Plan → act → observe → verify → record&lt;/td&gt;
&lt;td&gt;Whether there is evidence, a stop condition, and a human in the loop&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The harness is the model's operating system: it allocates context, limits permissions, and decides what is remembered and what is cut. The loop is the control loop: it decides when an action counts as done.&lt;/p&gt;

&lt;p&gt;A better model does not rescue a bad harness. A better harness does not turn a weak model into a strong one. And a loop without verification is just a sequence of actions nobody checked.&lt;/p&gt;

&lt;p&gt;The practical equation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;effectiveness = correct work / (tokens × price + time × waiting + human intervention × price)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The numerator must be graded &lt;strong&gt;externally&lt;/strong&gt;. The denominator must come from &lt;strong&gt;real logs&lt;/strong&gt;, not estimates.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Effectiveness is a curve
&lt;/h2&gt;

&lt;p&gt;Here is the real result from &lt;code&gt;opencode-harness-kit&lt;/code&gt;, a harness for OpenCode. I ran the same set of 6 tasks, same model, two arms (harness vs. no harness). Ten runs per arm: &lt;strong&gt;120 agent runs&lt;/strong&gt; total.&lt;/p&gt;

&lt;h3&gt;
  
  
  Short tasks: the harness is a cost
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric (median)&lt;/th&gt;
&lt;th&gt;With harness&lt;/th&gt;
&lt;th&gt;Without harness&lt;/th&gt;
&lt;th&gt;Read&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Correctness&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;54/60&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;55/60&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tie within noise&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tool calls&lt;/td&gt;
&lt;td&gt;12.5&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;+56%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read calls&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Steps&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uncached input&lt;/td&gt;
&lt;td&gt;56,205&lt;/td&gt;
&lt;td&gt;10,540&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;5.3×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Final context&lt;/td&gt;
&lt;td&gt;39,928&lt;/td&gt;
&lt;td&gt;12,718&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wall time&lt;/td&gt;
&lt;td&gt;43 s&lt;/td&gt;
&lt;td&gt;21 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2×&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On the free route, three runs per arm showed the same shape: &lt;strong&gt;15/17 vs 16/16&lt;/strong&gt; correct, but &lt;strong&gt;6.4× the context&lt;/strong&gt; and &lt;strong&gt;2.9× the time&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Why? The harness has &lt;strong&gt;fixed overhead&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The skill list is &lt;strong&gt;25,151 tokens on every request&lt;/strong&gt; — 70% of the harness arm's fixed cost.&lt;/li&gt;
&lt;li&gt;Lane prompts, &lt;code&gt;GLOBAL.md&lt;/code&gt;, and the tool schema make up the rest.&lt;/li&gt;
&lt;li&gt;A short task is never long enough for that overhead to be repaid by context savings.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Put another way: &lt;strong&gt;a one-file task is not where you install a harness.&lt;/strong&gt; It is like installing a full operating system to open a text file.&lt;/p&gt;

&lt;h3&gt;
  
  
  Long tasks: the harness starts to have a job
&lt;/h3&gt;

&lt;p&gt;Once the task touches 12 files and needs about 50 tool calls, the picture changes. Same subject, same model:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric (median)&lt;/th&gt;
&lt;th&gt;With harness&lt;/th&gt;
&lt;th&gt;Without harness&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Correctness&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2/2&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2/2&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tool calls&lt;/td&gt;
&lt;td&gt;47&lt;/td&gt;
&lt;td&gt;46&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read calls&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;18&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uncached input&lt;/td&gt;
&lt;td&gt;78,280&lt;/td&gt;
&lt;td&gt;37,171&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Final context&lt;/td&gt;
&lt;td&gt;68,794&lt;/td&gt;
&lt;td&gt;42,732&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wall time&lt;/td&gt;
&lt;td&gt;121.4 s&lt;/td&gt;
&lt;td&gt;104.7 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;To be blunt: &lt;strong&gt;the harness still costs more here&lt;/strong&gt; — about 2.1× the input and 1.2× the time. What it buys is fewer reads (12 vs 18) and more process, not a smaller bill.&lt;/p&gt;

&lt;p&gt;But there is a more useful measurement: &lt;strong&gt;fixing the prune policy&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The old rule kept the 6 most recent tool outputs and replaced the rest with a stub. On a long session the agent read a file; six tool calls later the original output was stubbed, and the agent &lt;strong&gt;read the file again&lt;/strong&gt; — the output was cut, but the work was not.&lt;/p&gt;

&lt;p&gt;The new rule keeps &lt;strong&gt;the latest copy of each distinct output&lt;/strong&gt; and only stubs repeated ones. Measured on the same task:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Within the harness arm&lt;/th&gt;
&lt;th&gt;Old pruner&lt;/th&gt;
&lt;th&gt;New pruner&lt;/th&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Tool calls&lt;/td&gt;
&lt;td&gt;67.5&lt;/td&gt;
&lt;td&gt;51&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;−24%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read calls&lt;/td&gt;
&lt;td&gt;22.5&lt;/td&gt;
&lt;td&gt;18.5&lt;/td&gt;
&lt;td&gt;−18%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uncached input&lt;/td&gt;
&lt;td&gt;268,834&lt;/td&gt;
&lt;td&gt;84,325&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;−69%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Final context&lt;/td&gt;
&lt;td&gt;48,637&lt;/td&gt;
&lt;td&gt;75,705&lt;/td&gt;
&lt;td&gt;+56%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wall time&lt;/td&gt;
&lt;td&gt;307.5 s&lt;/td&gt;
&lt;td&gt;123.5 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;−60%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Final context is larger because the new rule keeps the latest copy of each distinct output; total input still fell because the agent stopped re-reading what it already had.&lt;/p&gt;

&lt;p&gt;This is the most important lesson: &lt;strong&gt;a rule that sounds sensible can still make the agent worse.&lt;/strong&gt; "Keep the last 6 outputs" is a sensible rule. It is only wrong when the work is longer than that window. Only measurement shows you that.&lt;/p&gt;

&lt;p&gt;And across 60 real sessions, the pruner cut &lt;strong&gt;80.5% of context&lt;/strong&gt; — from 15.1M characters to 2.95M, with 6,608 parts stubbed. Per-turn history dropped from 763 to 272 tokens (&lt;strong&gt;−64%&lt;/strong&gt;). The price of the harness is &lt;strong&gt;+469 tokens per request&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The whole story in one sentence:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;A harness does not make an agent cheaper on every task. It keeps long sessions from growing without bound — at a fixed price.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&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%2Fqsq7ra7mmzkriz24bvth.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%2Fqsq7ra7mmzkriz24bvth.png" alt="Effectiveness is a curve" width="800" height="507"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Six metrics you can actually measure
&lt;/h2&gt;

&lt;p&gt;This is the scorecard I use. It is small enough to run every week and specific enough that you cannot quietly fool yourself.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Definition&lt;/th&gt;
&lt;th&gt;How to get it&lt;/th&gt;
&lt;th&gt;Trap&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Correctness&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;pass@k on graded tasks&lt;/td&gt;
&lt;td&gt;Compare files after edits, compare &lt;code&gt;file:line&lt;/code&gt; citations&lt;/td&gt;
&lt;td&gt;The agent grading itself&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Cost&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;uncached input + output + cache read&lt;/td&gt;
&lt;td&gt;Provider or stream log&lt;/td&gt;
&lt;td&gt;Counting only &lt;code&gt;tokens.input&lt;/code&gt; — cache read can be &lt;strong&gt;20.6×&lt;/strong&gt; input&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Latency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;median wall time, p90&lt;/td&gt;
&lt;td&gt;The harness clock&lt;/td&gt;
&lt;td&gt;Using the mean; one 262.7 s outlier ruins the table&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Tool efficiency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;tool calls, reads/search, repeat-read rate&lt;/td&gt;
&lt;td&gt;Tool log&lt;/td&gt;
&lt;td&gt;More calls do not mean better&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Context hygiene&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;history/turn, prune %, final context&lt;/td&gt;
&lt;td&gt;Session log&lt;/td&gt;
&lt;td&gt;A smaller context with more re-reads is worse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Process safety&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;out-of-scope writes, verify, exit code, human intervention&lt;/td&gt;
&lt;td&gt;Diff, &lt;code&gt;run.json&lt;/code&gt;, exit code&lt;/td&gt;
&lt;td&gt;"Fix it" can override the reviewer lane — measured&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Add one &lt;strong&gt;confidence factor&lt;/strong&gt;: timeouts, excluded runs, and variance between runs. A clean number from 3 runs is a hypothesis, not a result.&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%2F7vfvycua7g4tdqhye5l4.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%2F7vfvycua7g4tdqhye5l4.png" alt="The six-metric scorecard" width="800" height="507"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Measure in five steps
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1 — Baseline before you install
&lt;/h3&gt;

&lt;p&gt;Without a baseline, everything after it is a feeling. Record sessions, context per request, tool calls, time, and cost.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2 — Pin the subject
&lt;/h3&gt;

&lt;p&gt;Same commit, same copy. If the subject changes between arms, you are measuring the subject, not the harness.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3 — Same model, same suite
&lt;/h3&gt;

&lt;p&gt;This is the mistake I made: the "no harness" arm used the default model and the "with harness" arm used a different one. That result says nothing about the harness.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4 — Grade externally
&lt;/h3&gt;

&lt;p&gt;Grade the file after the edit, or the citation the agent produced. Do not ask the agent, "did you do it right?"&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5 — Median, n, and a gate
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Median&lt;/strong&gt;, not mean. Agents have huge outliers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;10 runs per arm&lt;/strong&gt; is the minimum for signal; 2–3 runs only tell you to measure again.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;gate&lt;/strong&gt; should take its threshold from observed data, but &lt;strong&gt;a human decides&lt;/strong&gt; the threshold. A gate that lowers its own threshold on failure is a gate that cannot catch a regression.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The real commands in the repo (OpenCode + SQLite; swap in your own logs):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run baseline          &lt;span class="c"&gt;# measure a real install before changing anything&lt;/span&gt;
npm run measure           &lt;span class="c"&gt;# before/after, same window length&lt;/span&gt;
npm run measure:prune     &lt;span class="c"&gt;# replay the pruner over real sessions&lt;/span&gt;
npm run attribute         &lt;span class="c"&gt;# where context goes: fixed overhead vs history&lt;/span&gt;
node eval/ab.mjs --target &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;scratch&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/self --suite eval/tasks-self.json --reps 10
node eval/compare.mjs --target &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;dir&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --suite &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;suite&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --arm &lt;span class="s1"&gt;'name=command "$PROMPT"'&lt;/span&gt;
npm run thresholds        &lt;span class="c"&gt;# propose thresholds from data, never auto-apply&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The key distinction: &lt;code&gt;measure&lt;/code&gt; &lt;strong&gt;observes&lt;/strong&gt; an install; &lt;code&gt;measure:prune&lt;/code&gt; is &lt;strong&gt;attributable&lt;/strong&gt; because it replays the exact pruner over the exact messages; &lt;code&gt;ab&lt;/code&gt; is a &lt;strong&gt;controlled comparison&lt;/strong&gt;. Three measurements answer three different questions. Do not mix them.&lt;/p&gt;




&lt;h2&gt;
  
  
  6. Six ways to measure wrong
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Mean instead of median
&lt;/h3&gt;

&lt;p&gt;One run at 262.7 s next to runs at 42.4 s and 7.3 s turns a 42 s median into a 104 s mean — a number that represents no actual run. Agents have outliers; the median is your friend.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Comparing two different work windows
&lt;/h3&gt;

&lt;p&gt;"Before install" and "after install" are not the same amount of work. One measurement showed context &lt;strong&gt;up 16%&lt;/strong&gt;, but the later window had twice the reads and twice the messages. That number described the work, not the harness.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. A broken grader
&lt;/h3&gt;

&lt;p&gt;This is the most memorable one. One measurement said the harness lost &lt;strong&gt;52/60 vs 59/59&lt;/strong&gt;. It sounded clear. But the grader could not parse the citation format the agent wrote:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;**File:** `src/profile.js`
**Line:** 105
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The old pattern stopped at the newline, so the file and line number were never joined, and correct answers were marked wrong. Re-grading the same runs and counting only the four lookup tasks (40 runs per arm), with the fixed grader: &lt;strong&gt;34/40 vs 30/40&lt;/strong&gt; — the harness won.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A harness that measures itself with a broken ruler is worse than no measurement. Check the grader before you trust it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  4. Counting only &lt;code&gt;tokens.input&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;In a 153-session baseline: input 66.07M, output 3.00M, reasoning 1.45M — but &lt;strong&gt;cache read 1,358.49M, 20.6× the input&lt;/strong&gt;. If you only count "fresh input," you are measuring the smallest part of the bill. The same work was recorded at &lt;strong&gt;$0.40&lt;/strong&gt;; the estimate on a paid route was &lt;strong&gt;$53.36&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Generalizing from short tasks
&lt;/h3&gt;

&lt;p&gt;Six short tasks cannot measure the value of a pruner, because the session is never long enough for pruning to have a job. The honest conclusion has a condition: "on short tasks the harness is a cost; on long sessions it is insurance."&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Letting the gate lower its own threshold
&lt;/h3&gt;

&lt;p&gt;A threshold is a human decision based on an observed distribution. If it drops every time the check fails, the day the harness breaks is the day the threshold falls below it — and the gate goes green.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. When to use a harness, and when not to
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Use it when&lt;/th&gt;
&lt;th&gt;Do not use it when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The task is long, touches many files, needs many tool calls&lt;/td&gt;
&lt;td&gt;You are looking up one file or asking a short question&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A session can exceed 10–15 turns&lt;/td&gt;
&lt;td&gt;You need the lowest possible latency&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You need audit, verification, evidence, exit codes&lt;/td&gt;
&lt;td&gt;There is no verification — the harness only adds cost&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The model route changes and you need failover&lt;/td&gt;
&lt;td&gt;One stable model for one repeated job&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You need control over permissions, retention, data&lt;/td&gt;
&lt;td&gt;A minimal setup is enough&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You are seeing re-reads, context bloat, rising cost&lt;/td&gt;
&lt;td&gt;Context is always small and there are no large tool outputs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If your job is &lt;strong&gt;one file&lt;/strong&gt;, a harness is a cost. If your job is &lt;strong&gt;12 files and 50 tool calls&lt;/strong&gt;, a harness is insurance.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Ten questions before you say "the agent is effective"
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Did you have a baseline before you installed anything?&lt;/li&gt;
&lt;li&gt;Were both arms the same model, the same suite, the same commit?&lt;/li&gt;
&lt;li&gt;Was correctness graded externally?&lt;/li&gt;
&lt;li&gt;Did you count cache reads and output, or only &lt;code&gt;tokens.input&lt;/code&gt;?&lt;/li&gt;
&lt;li&gt;Are you using the median or the mean?&lt;/li&gt;
&lt;li&gt;Do you have at least 10 runs per arm?&lt;/li&gt;
&lt;li&gt;Are timed-out runs excluded, or counted as "fast but wrong"?&lt;/li&gt;
&lt;li&gt;Did you measure repeat reads and out-of-scope writes?&lt;/li&gt;
&lt;li&gt;Did you measure the harness's own fixed overhead?&lt;/li&gt;
&lt;li&gt;If the numbers are bad, will you report them?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the answer to #10 is "no," the other nine do not mean much.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. The conclusion
&lt;/h2&gt;

&lt;p&gt;After all the measurements, the conclusion is not "this harness is good" or "this harness is bad." It is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On &lt;strong&gt;short tasks&lt;/strong&gt;, the harness is a &lt;strong&gt;cost&lt;/strong&gt;: 5.3–6.4× the tokens, 2–2.9× the time, correctness tied.&lt;/li&gt;
&lt;li&gt;On &lt;strong&gt;long sessions&lt;/strong&gt;, the harness is &lt;strong&gt;insurance&lt;/strong&gt;: 80.5% of context cut, per-turn history down 64%, fewer re-reads, and a process with evidence.&lt;/li&gt;
&lt;li&gt;On &lt;strong&gt;long tasks&lt;/strong&gt;, the pruner fix cut 69% of input and 60% of wall time — but the harness can still cost more than a minimal arm. The value is in not losing control, not in a smaller bill.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Effectiveness is a &lt;strong&gt;trade with numbers attached&lt;/strong&gt;. If you cannot state the numbers, it is a belief.&lt;/p&gt;

&lt;p&gt;And if you are building an agent: build &lt;strong&gt;the ruler&lt;/strong&gt; before you build &lt;strong&gt;the shield&lt;/strong&gt;. A harness that cannot measure itself will struggle to prove it is helping anyone.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sources and how to reproduce
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Full results: &lt;a href="https://github.com/pham-canh/opencode-harness-kit/blob/main/eval/RESULTS.md" rel="noopener noreferrer"&gt;eval/RESULTS.md&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;153-session baseline: &lt;a href="https://github.com/pham-canh/opencode-harness-kit/blob/main/docs/RESEARCH.md" rel="noopener noreferrer"&gt;docs/RESEARCH.md&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Known limits: &lt;a href="https://github.com/pham-canh/opencode-harness-kit/blob/main/docs/KNOWN-LIMITS.md" rel="noopener noreferrer"&gt;docs/KNOWN-LIMITS.md&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Code and measurement commands: &lt;a href="https://github.com/pham-canh/opencode-harness-kit" rel="noopener noreferrer"&gt;github.com/pham-canh/opencode-harness-kit&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The numbers are medians over recorded runs; they depend on the model, the route, and the time of day. Re-run them on your own logs before you use any number here as a decision.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devtools</category>
      <category>opensource</category>
      <category>testing</category>
    </item>
    <item>
      <title>Stillpoint: a breathing guide that waits 32 seconds before it tells you what to do</title>
      <dc:creator>Phạm Cảnh</dc:creator>
      <pubDate>Wed, 11 Nov 2026 06:56:24 +0000</pubDate>
      <link>https://dev.to/phamcanh/stillpoint-a-two-minute-breathing-retreat-that-learns-your-rhythm-8k7</link>
      <guid>https://dev.to/phamcanh/stillpoint-a-two-minute-breathing-retreat-that-learns-your-rhythm-8k7</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/presage-2026-11-04"&gt;Presage SmartSpectra SDK Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Most breathing apps hand you a pace and ask you to match it. Stillpoint spends 32 seconds&lt;br&gt;
measuring how &lt;em&gt;you&lt;/em&gt; breathe, then starts the guide from that measurement — clamped to 6–12 seconds&lt;br&gt;
— and only ever slows it down (with a 12-second cap for usability). In the recorded run: &lt;strong&gt;2:05&lt;/strong&gt;,&lt;br&gt;
9 guided breaths, average pulse &lt;strong&gt;72 bpm&lt;/strong&gt;, average breathing &lt;strong&gt;12.4 /min&lt;/strong&gt;, HRV &lt;strong&gt;37 ms&lt;/strong&gt;, signal&lt;br&gt;
&lt;strong&gt;Good&lt;/strong&gt;. Camera only, nothing leaves the machine, and there is a demo you can run in two commands with no API key and no webcam.&lt;/p&gt;
&lt;h2&gt;
  
  
  Judge it in 3 minutes
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;If you have&lt;/th&gt;
&lt;th&gt;Look at&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;90 seconds&lt;/td&gt;
&lt;td&gt;The &lt;a href="https://youtu.be/MQLBcSP6_h8?t=36" rel="noopener noreferrer"&gt;demo video&lt;/a&gt; from &lt;strong&gt;0:36&lt;/strong&gt; (first guided breaths) to &lt;strong&gt;0:56&lt;/strong&gt;, then the &lt;a href="https://youtu.be/MQLBcSP6_h8?t=126" rel="noopener noreferrer"&gt;summary at &lt;strong&gt;2:06&lt;/strong&gt;&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2 minutes&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;npm install &amp;amp;&amp;amp; npm run demo&lt;/code&gt; → &lt;code&gt;http://127.0.0.1:4317&lt;/code&gt;. No key, no camera, the real pacer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 minute&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://github.com/pham-canh/stillpoint/blob/main/lib/session.mjs#L186" rel="noopener noreferrer"&gt;&lt;code&gt;lib/session.mjs&lt;/code&gt;&lt;/a&gt; for the SDK wiring, &lt;a href="https://github.com/pham-canh/stillpoint/blob/main/public/lib/pacer.js#L35" rel="noopener noreferrer"&gt;&lt;code&gt;public/lib/pacer.js&lt;/code&gt;&lt;/a&gt; for the rule, and &lt;a href="https://github.com/pham-canh/stillpoint/blob/main/test/pacer.test.mjs" rel="noopener noreferrer"&gt;&lt;code&gt;test/pacer.test.mjs&lt;/code&gt;&lt;/a&gt; for the edge cases&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10 seconds&lt;/td&gt;
&lt;td&gt;The pacer trace below: for both inputs, the guide period never goes below the measured period&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Stillpoint&lt;/strong&gt; is a two-minute, camera-only breathing retreat. It reads your breathing rate through a&lt;br&gt;
webcam with the Presage SmartSpectra SDK, waits while you settle, then paces you from where you&lt;br&gt;
already are.&lt;/p&gt;

&lt;p&gt;The rule that shapes the whole app: &lt;strong&gt;inside the 6–12 second range, the guide may slow you down but&lt;br&gt;
never speed you up.&lt;/strong&gt; Above 12 seconds a usability cap holds the guide at 12 seconds, which is the&lt;br&gt;
one deliberate exception.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A 32-second settle measures your breathing rate while the interface stays quiet. The breathing
estimate warms up during that window; the last moments are the transition into pacing.&lt;/li&gt;
&lt;li&gt;The pacer starts at your measured period, clamped to 6–12 seconds.&lt;/li&gt;
&lt;li&gt;If your rhythm is faster than 10 seconds, it eases toward 10 by 750 ms per breath: 6.0 → 6.75 →
7.5 → 8.25 → 9.0 → 9.75 → 10.0.&lt;/li&gt;
&lt;li&gt;If your rhythm is already 10–12 seconds, the target is your own period, so the guide holds.&lt;/li&gt;
&lt;li&gt;An orb grows on a 40% inhale and settles on a 60% exhale; the landscape's mist and the lake
reflection follow the same breath value.&lt;/li&gt;
&lt;li&gt;Reliable pulse samples add heartbeat ripples to the lake. HRV is shown when confidence is high
enough, never scored.&lt;/li&gt;
&lt;li&gt;Expression is optional and off by default; when enabled it tints the scene palette.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is no wearable, no account, no recording, and no upload.&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%2Fjplm5ym8a8zv3v6mh52l.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%2Fjplm5ym8a8zv3v6mh52l.png" alt="Stillpoint settle screen: a glowing orb, a small camera preview, the text &amp;quot;Settle in — Breathe naturally · 16s&amp;quot;, and pulse, breathing, and HRV fields showing dashes while the settle window fills." width="800" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The first 32 seconds: no pace is offered. The preview is only for framing, and the metric fields&lt;br&gt;
stay as dashes until the SDK has enough signal. The orb drifts on a slow idle rhythm so the screen is&lt;br&gt;
not frozen while it measures; it is not guiding the breath yet.&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  What makes this different
&lt;/h3&gt;

&lt;p&gt;Breathing apps are a crowded space, including in this challenge. Stillpoint is built around a&lt;br&gt;
negative constraint rather than a feature list: &lt;strong&gt;it never makes a slow breather go faster inside the&lt;br&gt;
6–12 second range.&lt;/strong&gt; The&lt;br&gt;
guide is a slow control loop that starts from your measurement, and the visual is there to support&lt;br&gt;
the pace, not to grade you. No score, no streak, no garden to keep alive.&lt;/p&gt;

&lt;p&gt;That difference is testable, not just a claim:&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%2Fe2f3g5v8yjmu51hrrnpb.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%2Fe2f3g5v8yjmu51hrrnpb.png" alt="Pacer trace for a 7.8-second and a 4.5-second natural breath. Both inputs are inside the 6–12 second range; the guide period rises from the measured value toward 10 seconds and never drops below the measured line." width="799" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Each step is one completed breath. Left: a 7.8 s natural breath is held, then eased toward 10 s.&lt;br&gt;
Right: a 4.5 s natural breath starts at the 6 s floor, then eases toward 10 s. The dashed line is&lt;br&gt;
the natural period fed in — the same value the app receives from the SDK's breathing rate — and the&lt;br&gt;
guide never crosses below it. The trace was produced by running &lt;code&gt;public/lib/pacer.js&lt;/code&gt; with those two&lt;br&gt;
inputs, not sketched for the post.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/MQLBcSP6_h8" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/MQLBcSP6_h8" rel="noopener noreferrer"&gt;Watch the 2-minute demo on YouTube&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The demo is a live session on a Linux x64 machine with a USB camera: the local camera preview, live&lt;br&gt;
SmartSpectra pulse and breathing readings (HRV when the signal is ready), validation hints, the&lt;br&gt;
adaptive pacer, and the summary. It runs the full default session.&lt;/p&gt;

&lt;p&gt;Chapters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;0:00&lt;/strong&gt; — consent and framing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;0:04&lt;/strong&gt; — settle: the app measures and says nothing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;0:36&lt;/strong&gt; — guided breathing from the measured rhythm&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2:06&lt;/strong&gt; — session ends; the summary with the run's averages&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  The recorded run, with numbers
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyevmsx6hdlorm76nkbyl.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%2Fyevmsx6hdlorm76nkbyl.png" alt="Stillpoint session summary: 2:05 total, 9 guided breaths, average pulse 72 bpm, breathing rate 12.4 per minute, HRV 37 ms, signal quality Good." width="800" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The summary from the session in the video. The app never shows a score; these are the four metrics&lt;br&gt;
from that run, not a judgement.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This is one participant on one machine, not a study. It is here so you can check that the numbers on&lt;br&gt;
screen come from the SDK rather than a random generator. The simulated mode is labelled&lt;br&gt;
&lt;strong&gt;Simulated&lt;/strong&gt; everywhere, precisely so the two cannot be confused.&lt;/p&gt;
&lt;h2&gt;
  
  
  Try it in two commands
&lt;/h2&gt;

&lt;p&gt;The pacer is the part worth feeling, so it also runs with a generated signal — no camera, no key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install
npm run demo
&lt;span class="c"&gt;# open http://127.0.0.1:4317&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The session is labelled &lt;strong&gt;Simulated&lt;/strong&gt; in the interface, and the pacer runs exactly as it does with&lt;br&gt;
the SDK. Nothing is measured. This is a demo of the pacing logic, not of the sensor.&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/pham-canh/stillpoint" rel="noopener noreferrer"&gt;https://github.com/pham-canh/stillpoint&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Full setup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/pham-canh/stillpoint.git
&lt;span class="nb"&gt;cd&lt;/span&gt; stillpoint
npm install
cp .env.example .env   &lt;span class="c"&gt;# add SMARTSPECTRA_API_KEY&lt;/span&gt;
npm start
&lt;span class="c"&gt;# open http://127.0.0.1:4317&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Requirements and platform notes are in the README. The SmartSpectra Node SDK ships native binaries,&lt;br&gt;
so a live session runs on macOS Apple Silicon, Linux x64/arm64, and Windows x64; Intel Macs are not&lt;br&gt;
supported by the SDK. The UI still loads on unsupported platforms, and &lt;code&gt;npm run demo&lt;/code&gt; works&lt;br&gt;
everywhere. A local video can drive the same pipeline through &lt;code&gt;DEMO_VIDEO&lt;/code&gt; for testing.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Responds to Human Signals
&lt;/h2&gt;

&lt;p&gt;Stillpoint uses three live SmartSpectra signals by default — &lt;strong&gt;pulse rate&lt;/strong&gt;, &lt;strong&gt;breathing rate&lt;/strong&gt;, and&lt;br&gt;
&lt;strong&gt;HRV&lt;/strong&gt; — plus &lt;strong&gt;expression&lt;/strong&gt; when the optional scene setting is enabled. It requests only those&lt;br&gt;
four metrics, not traces, landmarks, blinking, or talking.&lt;/p&gt;

&lt;p&gt;The integration path:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The local Node process opens the camera with the SDK's native
&lt;a href="https://github.com/pham-canh/stillpoint/blob/main/lib/session.mjs#L186" rel="noopener noreferrer"&gt;&lt;code&gt;useCamera(CameraSelection.byId(id), { width: 1280, height: 720, fps: 30 })&lt;/code&gt;&lt;/a&gt;
path. Frames stay inside that process; there is no browser-to-server frame hop and no browser
camera prompt in the default mode.&lt;/li&gt;
&lt;li&gt;The SDK emits metric buffers. &lt;a href="https://github.com/pham-canh/stillpoint/blob/main/lib/session.mjs#L217" rel="noopener noreferrer"&gt;&lt;code&gt;decodeMetrics&lt;/code&gt;&lt;/a&gt;
reads &lt;code&gt;metrics.breathing.rate.at(-1)&lt;/code&gt;, &lt;code&gt;metrics.cardio.pulseRate.at(-1)&lt;/code&gt;,
&lt;code&gt;metrics.cardio.hrv.at(-1)&lt;/code&gt;, and, when enabled, &lt;code&gt;metrics.face.expression.at(-1)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The SDK's &lt;code&gt;videoOutput&lt;/code&gt; event provides a processed frame. The server downsamples it to a 320×240
RGBA preview and sends it over the loopback control WebSocket, so you can check framing without a
second camera consumer.&lt;/li&gt;
&lt;li&gt;The server pushes deduplicated samples to the browser over Server-Sent Events. The optional
&lt;code&gt;CAPTURE_MODE=frames&lt;/code&gt; fallback keeps the browser &lt;code&gt;getUserMedia&lt;/code&gt; → 640×480 RGBA →
&lt;code&gt;useCustomInput()&lt;/code&gt; / &lt;code&gt;sendFrame()&lt;/code&gt; path for machines where the server cannot access a camera.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  What the pacer actually does
&lt;/h3&gt;

&lt;p&gt;The rule is small enough to check against the tests&lt;br&gt;
(&lt;a href="https://github.com/pham-canh/stillpoint/blob/main/test/pacer.test.mjs" rel="noopener noreferrer"&gt;&lt;code&gt;test/pacer.test.mjs&lt;/code&gt;&lt;/a&gt;):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measured breath&lt;/th&gt;
&lt;th&gt;Start of guide&lt;/th&gt;
&lt;th&gt;After a few breaths&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;4.5 s (13.3 bpm)&lt;/td&gt;
&lt;td&gt;6.0 s (clamped)&lt;/td&gt;
&lt;td&gt;6.75 → 7.5 → 8.25 → 9.0 → 9.75 → 10.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7.8 s (7.7 bpm)&lt;/td&gt;
&lt;td&gt;7.8 s&lt;/td&gt;
&lt;td&gt;8.55 → 9.3 → 10.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10.5 s (5.7 bpm)&lt;/td&gt;
&lt;td&gt;10.5 s&lt;/td&gt;
&lt;td&gt;stays 10.5 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;13.0 s (4.6 bpm)&lt;/td&gt;
&lt;td&gt;12.0 s (clamped)&lt;/td&gt;
&lt;td&gt;stays 12.0 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is the whole "adaptive" claim: inside the 6–12 second range a slow breather is never sped up,&lt;br&gt;
and the 6-second floor means a fast breather is slowed gradually rather than yanked to 10 seconds on&lt;br&gt;
the first breath.&lt;/p&gt;

&lt;p&gt;There is one deliberate exception: above 12 seconds the cap wins. A 13-second natural breath is&lt;br&gt;
guided at 12 seconds, which is faster than natural. The alternative was a guide that stretches past&lt;br&gt;
what feels usable on screen, so the cap is a product decision rather than hidden behaviour.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the SDK taught me
&lt;/h2&gt;

&lt;p&gt;Four things I did not get right the first time, all found on real hardware:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Breathing needs the chest, and that fights the laptop posture.&lt;/strong&gt; Expressions and pulse come
through from the face alone; breathing rate needs the shoulders and upper chest. The validation
hints ("Place more of the chest in view") are not cosmetic — without them the settle window
produces nothing useful.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The streams start at different times.&lt;/strong&gt; In my logs, pulse arrived first and the breathing rate
needed its 30-second window on top. The settle phase exists because of that, not because a
countdown looks nice. Anything that reacts before the window fills is reacting to noise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confidence is the useful part of a reading.&lt;/strong&gt; A value with low confidence moves around. The UI
hides the number below 10% confidence, the pacer ignores breathing below 25%, and the HRV summary
only uses samples above the 10% gate. Showing a shaky number would make the whole experience feel
fake.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frame rate matters more than resolution.&lt;/strong&gt; At 1280×720 the SDK is happy on a decent USB camera;
in poor light, the frame rate drops and the validation status says so. The 320×240 loopback
preview exists so the person can fix framing without opening a second camera consumer.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Limits, and what I did not test
&lt;/h2&gt;

&lt;p&gt;Being explicit about the edges:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One person has used it in a full live session. The pacer logic is unit-tested, but the "does it
feel calm" question has not been tested with a group.&lt;/li&gt;
&lt;li&gt;I have not measured the delay between a real breath and the orb's response. The breathing rate is
a 30-second average, so the guide is intentionally slow rather than twitchy; the exact lag is
unmeasured.&lt;/li&gt;
&lt;li&gt;The thresholds (confidence gates, 32-second settle, 750 ms ease, the 6–12 s clamps) are first
choices, not tuned
against a dataset.&lt;/li&gt;
&lt;li&gt;Live sessions need a supported platform and a key. Intel Macs cannot run the SDK's native binaries;
the simulated mode runs everywhere.&lt;/li&gt;
&lt;li&gt;Breathing needs the upper chest in frame. On a laptop at normal distance, expressions and pulse are
easier to get than breathing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Wellness only.&lt;/strong&gt; SmartSpectra metrics are not FDA-cleared and are not a diagnosis or treatment.&lt;br&gt;
Stillpoint does not provide medical advice, make medical decisions, or monitor anyone covertly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Consent and Data Handling
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Consent.&lt;/strong&gt; The camera is not opened until the person ticks an explicit consent checkbox and&lt;br&gt;
presses &lt;strong&gt;Begin&lt;/strong&gt;. In the default native mode the local Stillpoint process opens the camera at that&lt;br&gt;
point; the browser does not request camera access, so there is no extra browser prompt. Expression&lt;br&gt;
analysis is optional and &lt;strong&gt;off by default&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Frames.&lt;/strong&gt; Video only, never audio. In the default mode the local Node process opens the camera at&lt;br&gt;
up to 1280×720 and the SDK processes frames in memory. A downsampled 320×240 RGBA preview is sent to&lt;br&gt;
the page over a loopback WebSocket. Frames are not recorded, written to disk, cached, logged, or&lt;br&gt;
uploaded. The live preview can be hidden. The &lt;code&gt;CAPTURE_MODE=frames&lt;/code&gt; fallback uses browser capture and&lt;br&gt;
a loopback frame WebSocket instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Measurements.&lt;/strong&gt; Pulse, breathing, HRV, and optional expression are computed locally by the&lt;br&gt;
SmartSpectra SDK running natively in the Node process. Derived values are held in memory for the&lt;br&gt;
session, shown in the interface, and discarded when the session ends. Stillpoint does not persist&lt;br&gt;
them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Simulated mode.&lt;/strong&gt; &lt;code&gt;npm run demo&lt;/code&gt; / &lt;code&gt;SIGNAL_SOURCE=mock&lt;/code&gt; generates pulse, breathing, and HRV values&lt;br&gt;
in the local Node process. It opens no camera, needs no API key, measures nobody, and is labelled&lt;br&gt;
&lt;strong&gt;Simulated&lt;/strong&gt; on screen and in the summary.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Network and third parties.&lt;/strong&gt; Stillpoint does not send frames or measurements to Presage. The&lt;br&gt;
SmartSpectra SDK authenticates the API key, verifies the subscription, and may obtain its model or&lt;br&gt;
update files from Presage; those requests do not include Stillpoint's frames or measurements.&lt;br&gt;
Stillpoint has no accounts, analytics, ads, or tracking, and uses no optional AI service. The SDK&lt;br&gt;
telemetry option is explicitly disabled&lt;br&gt;
(&lt;a href="https://github.com/pham-canh/stillpoint/blob/main/lib/session.mjs#L115" rel="noopener noreferrer"&gt;&lt;code&gt;enableTelemetry: false&lt;/code&gt;&lt;/a&gt;).&lt;br&gt;
The page loads no external scripts, fonts, or images.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Retention and deletion.&lt;/strong&gt; There is no stored data to retain or delete. Stopping the session,&lt;br&gt;
pressing Escape, hiding the tab, disconnecting, or finishing normally releases the camera, closes the&lt;br&gt;
sockets, and releases the in-memory session state. Closing the tab clears the rest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security.&lt;/strong&gt; The server binds to &lt;code&gt;127.0.0.1&lt;/code&gt;, origin-checks WebSocket and control requests, and sets&lt;br&gt;
a strict Content Security Policy. The intended URL is &lt;code&gt;http://127.0.0.1:4317&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo video.&lt;/strong&gt; The recording was made separately, with the participant's consent, outside the app's&lt;br&gt;
data path. Stillpoint itself does not record the session. If the optional &lt;code&gt;DEMO_VIDEO&lt;/code&gt; setting is&lt;br&gt;
used, it reads a local clip chosen by the operator; that clip is not uploaded.&lt;/p&gt;

&lt;p&gt;Full details: &lt;a href="https://github.com/pham-canh/stillpoint/blob/main/PRIVACY.md" rel="noopener noreferrer"&gt;https://github.com/pham-canh/stillpoint/blob/main/PRIVACY.md&lt;/a&gt; and the in-app &lt;code&gt;/privacy&lt;/code&gt;&lt;br&gt;
page.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Do I need an API key to try it?&lt;/strong&gt; No. &lt;code&gt;npm run demo&lt;/code&gt; needs no key and no camera. The&lt;br&gt;
simulated mode is labelled on screen, and the pacer is the same code path as a live session.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is the video uploaded anywhere?&lt;/strong&gt; No. In the default mode the local Node process holds the camera&lt;br&gt;
and the SDK runs in that process. Only a 320×240 preview travels over loopback to the page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why not use a wearable?&lt;/strong&gt; The point is a two-minute break with nothing to charge, pair, or wear.&lt;br&gt;
The webcam is already there; the constraint is making it useful without turning the session into a&lt;br&gt;
vitals dashboard.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What happens with a very slow natural breath?&lt;/strong&gt; Between 6 and 12 seconds the pacer holds or&lt;br&gt;
lengthens your period; it never shortens it. Above 12 seconds it stays at 12 so the guide remains&lt;br&gt;
usable, which is the one case where the guide is faster than the natural breath.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;Entering &lt;strong&gt;both&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Most Creative or Delightful Use&lt;/strong&gt; — a webcam becomes a quiet, responsive landscape rather than a
vitals dashboard. The adaptive pacer starts from the person instead of a preset, and the optional
expression palette makes the same two minutes look different for different people.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Thoughtful Real-World Use&lt;/strong&gt; — a low-friction two-minute microbreak for desk workers,
students, and caregivers. No wearable, no account, no streak, no score. The session is short
enough to repeat, and the privacy design removes the main reason people avoid camera-based tools.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>buildinpublic</category>
      <category>devchallenge</category>
      <category>frontend</category>
      <category>presagechallenge</category>
    </item>
    <item>
      <title>A harness for OpenCode that admits when it costs more</title>
      <dc:creator>Phạm Cảnh</dc:creator>
      <pubDate>Mon, 09 Nov 2026 07:16:14 +0000</pubDate>
      <link>https://dev.to/phamcanh/a-harness-for-opencode-that-admits-when-it-costs-more-4dg7</link>
      <guid>https://dev.to/phamcanh/a-harness-for-opencode-that-admits-when-it-costs-more-4dg7</guid>
      <description>&lt;p&gt;A coding harness is model-specific even when the tool is not. Context reserve, effort levels, temperature and privacy terms change with the provider. Re-answer those in a prompt and the model reads them once. Hard-code them and you fork the project.&lt;/p&gt;

&lt;p&gt;opencode-harness-kit takes a different route: the model is data.&lt;/p&gt;

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

&lt;p&gt;OpenCode lets you point the CLI at almost any provider. The hard part starts after that. A free route, a paid route and a local route each have different context limits, different reasoning controls and different terms about what happens to prompts. If you switch routes often, you end up maintaining the same model-specific answers in several places.&lt;/p&gt;

&lt;h2&gt;
  
  
  The design
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;oc-harness use &amp;lt;provider&amp;gt;/&amp;lt;model&amp;gt;&lt;/code&gt; reads the live models.dev record and writes a profile to &lt;code&gt;~/.config/opencode/profiles/&amp;lt;id&amp;gt;.json&lt;/code&gt;. The profile is compiled into &lt;code&gt;opencode.jsonc&lt;/code&gt; as ten lanes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;plan&lt;/li&gt;
&lt;li&gt;build&lt;/li&gt;
&lt;li&gt;reviewer&lt;/li&gt;
&lt;li&gt;locate&lt;/li&gt;
&lt;li&gt;verify&lt;/li&gt;
&lt;li&gt;vision&lt;/li&gt;
&lt;li&gt;doc&lt;/li&gt;
&lt;li&gt;schema&lt;/li&gt;
&lt;li&gt;sweep&lt;/li&gt;
&lt;li&gt;longform&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each lane gets its own model, output cap and fallback chain. The plugin adds a pruner for old tool output, a guard and per-lane telemetry. &lt;code&gt;oc-harness verify&lt;/code&gt; checks that the config, prompts, plugin and skills still match the profile.&lt;/p&gt;

&lt;p&gt;There is no model name in &lt;code&gt;src/&lt;/code&gt;. The kit ships no model list and no default model, because which model you can reach is a fact about your account, not about the package.&lt;/p&gt;

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

&lt;p&gt;The README publishes the A/B where the kit loses. Same task, same model, ten reps per arm:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Arm&lt;/th&gt;
&lt;th&gt;Uncached input&lt;/th&gt;
&lt;th&gt;Wall time&lt;/th&gt;
&lt;th&gt;Correct&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;One read&lt;/td&gt;
&lt;td&gt;Without kit&lt;/td&gt;
&lt;td&gt;10,540&lt;/td&gt;
&lt;td&gt;21s&lt;/td&gt;
&lt;td&gt;55/60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One read&lt;/td&gt;
&lt;td&gt;With kit&lt;/td&gt;
&lt;td&gt;56,205&lt;/td&gt;
&lt;td&gt;43s&lt;/td&gt;
&lt;td&gt;54/60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Twelve files&lt;/td&gt;
&lt;td&gt;With kit vs without&lt;/td&gt;
&lt;td&gt;-69%&lt;/td&gt;
&lt;td&gt;-60%&lt;/td&gt;
&lt;td&gt;no regression&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On a task that fits in one read, the harness is a cost: more input tokens and more wall time for the same correctness. On a long task, the pruner earns its place. Both numbers are in the repo, not just the good one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx -y opencode-harness-kit@latest init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The initializer asks once for a provider/model, writes the profile, and prints the route it selected. You can re-run it when a free model disappears or a provider changes its limits.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does not do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;No mid-session failover. A plugin hook cannot change the model of a running session.&lt;/li&gt;
&lt;li&gt;No hosted service.&lt;/li&gt;
&lt;li&gt;No model list and no default model.&lt;/li&gt;
&lt;li&gt;No telemetry upload.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Node 22. OpenCode V1 and V2. MIT.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/pham-canh/opencode-harness-kit" rel="noopener noreferrer"&gt;https://github.com/pham-canh/opencode-harness-kit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm the author of opencode-harness-kit. The benchmark table and the losing arm are in the repo, so you can check the numbers rather than trust the summary.&lt;/p&gt;

&lt;p&gt;If you try it on a route I have not tested, the useful feedback is where the lane split breaks, not whether the install command works.&lt;/p&gt;

</description>
      <category>opencode</category>
      <category>ai</category>
      <category>opensource</category>
      <category>node</category>
    </item>
  </channel>
</rss>
