<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Dev Log]]></title><description><![CDATA[Dev Log]]></description><link>https://devlog-notes.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 00:01:34 GMT</lastBuildDate><atom:link href="https://devlog-notes.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Turning a generator result into a shareable PNG card with Canvas]]></title><description><![CDATA[People like to share a result as a picture, not as a link. For a small Christmas elf name generator I built, the result is a "card": the elf name, a…]]></description><link>https://devlog-notes.hashnode.dev/turning-a-generator-result-into-a-shareable-png-card-with-canvas</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/turning-a-generator-result-into-a-shareable-png-card-with-canvas</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[canvas]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Fri, 04 Dec 2026 10:48:05 GMT</pubDate><content:encoded><![CDATA[<p>People like to share a result as a picture, not as a link. For a small Christmas elf name generator I built, the result is a "card": the elf name, a workshop job, a guild badge and a short story, which the user can save as a PNG or send through the phone's share sheet. It's all drawn on a <code>&lt;canvas&gt;</code> in the browser, with no server rendering.</p>
<p>These are the parts that took more than one try.</p>
<h2>1. Wait for the web fonts before you draw</h2>
<p>Canvas text uses whatever font is loaded <strong>at the moment you call <code>fillText</code></strong>. If the web font isn't ready yet you get the fallback serif, and nothing raises an error. So load the exact faces the card uses first:</p>
<pre><code class="language-js">function cardFonts() {
  if (!document.fonts || !document.fonts.load) return Promise.resolve();
  return Promise.all([
    document.fonts.load('700 100px "Cormorant Garamond"'),
    document.fonts.load('400 30px Inter'),
    document.fonts.load('600 30px Inter'),
  ]).then(() =&gt; document.fonts.ready).catch(() =&gt; {});
}
</code></pre>
<p><code>document.fonts.load</code> takes a CSS font shorthand, and the weight has to match. Loading <code>400</code> won't give you the <code>700</code> face.</p>
<h2>2. Shrink long names until they fit</h2>
<p>Names vary a lot in length. Rather than truncating, step the font size down until <code>measureText</code> says the name fits:</p>
<pre><code class="language-js">let size = 92;
ctx.font = `700 ${size}px ${serif}`;
while (ctx.measureText(name).width &gt; innerW &amp;&amp; size &gt; 40) {
  size -= 4;
  ctx.font = `700 ${size}px ${serif}`;
}
</code></pre>
<h2>3. Wrap text yourself</h2>
<p>Canvas has no line wrapping, so the story paragraph goes through a small greedy wrapper:</p>
<pre><code class="language-js">function wrapLines(ctx, text, maxW) {
  const words = String(text).split(/\s+/);
  const lines = [];
  let cur = '';
  for (const w of words) {
    const next = cur ? cur + ' ' + w : w;
    if (ctx.measureText(next).width &gt; maxW &amp;&amp; cur) { lines.push(cur); cur = w; }
    else cur = next;
  }
  if (cur) lines.push(cur);
  return lines;
}
</code></pre>
<p>If the story runs past six lines, the card shrinks the font by 2px and wraps again, up to six times, and then cuts the last line with an ellipsis. This keeps the layout fixed at 1000×1500 (2:3, which suits Pinterest and phone screens).</p>
<h2>4. Share the file where the browser supports it, otherwise download it</h2>
<p>On phones, <code>navigator.share</code> with files opens the native share sheet. On desktop it usually isn't available, so check with <code>canShare</code> and fall back to a download:</p>
<pre><code class="language-js">const file = new File([blob], 'elf-name.png', { type: 'image/png' });
if (navigator.canShare &amp;&amp; navigator.canShare({ files: [file] })) {
  navigator.share({ files: [file], title: 'My elf name' })
    .catch(() =&gt; downloadBlob(blob, 'elf-name.png')); // user closed the sheet
} else {
  downloadBlob(blob, 'elf-name.png');
}
</code></pre>
<p>The <code>.catch</code> matters. If the user dismisses the share sheet, the promise rejects, and saving the file anyway is friendlier than doing nothing.</p>
<h2>5. Show the image as well</h2>
<p>Some in-app browsers (Instagram's, for example) silently block downloads. The card is also shown as an <code>&lt;img&gt;</code> from <code>URL.createObjectURL(blob)</code>, so the user can long-press it and save it.</p>
<p>You can try the card at <a href="https://myelfname.com/elf-name-card">My Elf Name</a>: draw a name, then save the card.</p>
]]></content:encoded></item><item><title><![CDATA[DeepSeek Harness: a pending plugin is often waiting on a failed provider]]></title><description><![CDATA[A pending DeepSeek Harness plugin is often waiting on a service a failed provider never supplied. What to check in the startup report.]]></description><link>https://devlog-notes.hashnode.dev/deepseek-harness-a-pending-plugin-is-often-waiting-on-a-failed-provider</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/deepseek-harness-a-pending-plugin-is-often-waiting-on-a-failed-provider</guid><category><![CDATA[Deepseek]]></category><category><![CDATA[debugging]]></category><category><![CDATA[plugins]]></category><category><![CDATA[Node.js]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Fri, 04 Dec 2026 07:16:21 GMT</pubDate><content:encoded><![CDATA[<p><strong>DeepSeek Harness exits with code 1 after a required plugin fails activation, and the startup report lists failed plugins, then pending plugins and missing services. It is tempting to treat each pending entry as its own bug; a failed provider may explain several later entries. This is a short guide to reading that report.</strong></p>
<h2>The symptom</h2>
<p>When a required plugin fails activation, the launcher prints failed plugins with their original stacks, then pending plugins and missing services. Required plugins appear first in the pending list. The process exits with code 1 after writing its report and stderr, even if plugin handles remain open. An optional-only activation warning preserves normal output and does not create this report.</p>
<p>A plugin declares required services with <code>inject</code> and waits until those services exist. A missing dependency can keep a consumer from becoming active, and one failed provider may explain several later entries. Treat that as a hypothesis to test against the report, not a rule that the first line is always the cause.</p>
<h2>What to check</h2>
<ol>
<li><p><strong>The full report, not just the console.</strong> Look for <code>Full diagnostics:</code> in stderr. If writing succeeds, stderr names a unique <code>startup-&lt;timestamp&gt;-&lt;uuid&gt;.log</code> directly under <code>$DSH_HOME/logs/</code>, defaulting to <code>~/.dsh/logs/</code>. If writing fails, stderr includes the write error and the full report; the exit code remains 1.</p>
</li>
<li><p><strong>The failed plugin's original stack and nested causes.</strong> The report retains nested causes and aggregate members, as well as import errors that have no fiber. A missing fiber is not evidence that no failure occurred.</p>
</li>
<li><p><strong>Each pending plugin and the exact service it is missing.</strong> Separate required entries from the rest. List order alone is not a dependency graph.</p>
</li>
<li><p><strong>Which provider should register that service in the selected composition.</strong> Check whether the provider itself failed, was absent from the selected profile, or is unavailable in the consumer's scope. The word "missing" alone does not choose between these.</p>
</li>
<li><p><strong>The same entries after a deliberate change.</strong> Keep the same profile, version and relevant layer inputs, address the evidenced cause, then compare the same plugin and service entries. Confirm the capability you need actually works, rather than judging solely by whether one line disappears.</p>
</li>
</ol>
<p>For example, if a consumer requires a service and its provider's activation stack shows a configuration validation error, investigate that validation error first. Changing the consumer that merely waits for the service does not address the provider's failure.</p>
<h2>What none of this proves</h2>
<p>The report is not redacted. Plugin errors can contain configuration or credential values, so review nested error details, paths and warning arguments before sharing it: <a href="https://dsh-plugin.com/blog/sanitize-startup-diagnostics">sanitizing startup diagnostics</a></p>
<p>Do not install an arbitrary plugin just because a service name is missing. Verify which provider the composition is meant to use. A successful startup only shows that the tested composition started; it is not a security assessment and does not prove every optional plugin works.</p>
<p>The full guide includes an evidence table, explains what the report does and does not collect, and covers how profiles and fiber lifecycle affect the diagnosis: <a href="https://dsh-plugin.com/blog/pending-plugins-missing-services-diagnostics">DeepSeek Harness: Pending Plugins and Missing Services</a></p>
<p><img src="https://dsh-plugin.com/media/blog/pending-plugins-missing-services-diagnostics/flow.en.webp" alt="Startup failure, pending consumers, and investigation" /></p>
<p>Originally published at <a href="https://dsh-plugin.com/blog/pending-plugins-missing-services-diagnostics">https://dsh-plugin.com/blog/pending-plugins-missing-services-diagnostics</a></p>
]]></content:encoded></item><item><title><![CDATA[DeepSeek Harness: declaring a service with inject does not install its provider]]></title><description><![CDATA[A Cordis inject declaration makes a DeepSeek Harness plugin wait for a service; it does not install the provider. What to check instead.]]></description><link>https://devlog-notes.hashnode.dev/deepseek-harness-declaring-a-service-with-inject-does-not-install-its-provider</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/deepseek-harness-declaring-a-service-with-inject-does-not-install-its-provider</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[TypeScript]]></category><category><![CDATA[dependency injection]]></category><category><![CDATA[plugins]]></category><category><![CDATA[AI]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Thu, 03 Dec 2026 07:14:14 GMT</pubDate><content:encoded><![CDATA[<p><strong>You add a consumer plugin to DeepSeek Harness, declare the service it needs with <code>inject</code>, and it never activates. Or you swap a provider and an old listener keeps firing. Both come from treating three different roles as one thing. This is the short version of a longer walkthrough of Cordis services and injection.</strong></p>
<h2>The symptom</h2>
<p>In DeepSeek Harness, a plugin is a function with optional <code>inject</code> and <code>apply(ctx)</code> fields, or a <code>Service</code> subclass mounted into a context. A service claims a stable key such as <code>ctx.tools</code>, <code>ctx.llm</code> or <code>ctx.sessions</code>, and a consumer finds the capability through that key instead of importing one implementation.</p>
<p>A plugin declares required service names through <code>inject</code>, and Cordis waits until those services exist before activating it. That declaration does not install the provider. If no provider is present in the relevant composition and scope, the consumer simply waits.</p>
<h2>What to check</h2>
<ol>
<li><p><strong>Which role each package plays.</strong> A service definition establishes the interface, a provider implements it, and a consumer uses it. One package can combine roles, but a definition alone does not supply a working implementation, and a consumer alone does not create the capability it uses.</p>
</li>
<li><p><strong>Whether the provider is in the composition and scope you start.</strong> A context is a scoped service container. Child contexts created by <code>extend</code>, <code>isolate</code> and <code>intercept</code> do not mutate the parent, and <code>isolate</code> creates an independent scope for a named service. A service in one scope does not prove a consumer in another scope resolves the same implementation.</p>
</li>
<li><p><strong>The original error, not the waiting consumer.</strong> A waiting consumer may be downstream of a provider error. Inspect the original error and the missing service before changing the consumer; a pending entry alone does not prove which provider is at fault. The startup diagnostics guide covers that evidence: <a href="https://dsh-plugin.com/blog/pending-plugins-missing-services-diagnostics">pending plugins and missing services</a></p>
</li>
<li><p><strong>Event dispatch modes.</strong> Cordis events dispatch as <code>emit</code>, <code>waterfall</code>, <code>parallel</code>, <code>serial</code> or <code>bail</code>, and the mode is part of each event's contract. A waterfall listener receives <code>next</code> and delegates with <code>next()</code>; returning without it short-circuits downstream listeners. An observer that forgets to delegate changes behavior.</p>
</li>
<li><p><strong>Cleanup on replace and unload.</strong> Listeners, tool schemas, adapters and prompt sections are reversible effects. Register them through <code>ctx.effect()</code> or a helper such as <code>ctx.on()</code> that manages disposal. After a reload or unload, confirm the old registrations are gone.</p>
</li>
</ol>
<h2>What none of this proves</h2>
<p>A correctly injected service does not guarantee a listener delegates correctly, and correct disposal does not establish that a replacement provider implements the expected behavior. Test activation, a representative operation, and teardown as separate observations. These mechanisms are composition tools, not an assurance that an installed provider or its data is trustworthy, and an activated plugin can still fail when its actual operation runs.</p>
<p>The full write-up has the role table, the step-by-step for adding or replacing a capability, and how <code>ctx.llm</code> and <code>ctx.tools</code> differ as extension points: <a href="https://dsh-plugin.com/blog/cordis-plugins-services-dependency-injection">DeepSeek Harness: Cordis Services and Injection</a></p>
<p>For how <code>extend</code>, <code>isolate</code> and <code>intercept</code> scope services, see <a href="https://dsh-plugin.com/blog/cordis-context-capabilities">Context capabilities</a>.</p>
<p><img src="https://dsh-plugin.com/media/blog/cordis-plugins-services-dependency-injection/flow.en.webp" alt="A service definition, provider and consumer connected by a context" /></p>
<p>Originally published at <a href="https://dsh-plugin.com/blog/cordis-plugins-services-dependency-injection">https://dsh-plugin.com/blog/cordis-plugins-services-dependency-injection</a></p>
]]></content:encoded></item><item><title><![CDATA[Keeping SVG vectors when exporting to PDF: svg2pdf vs print-to-PDF]]></title><description><![CDATA[Size and fidelity of svg2pdf.js output versus browser print-to-PDF, measured on four SVGs, and where svg2pdf silently drops content.]]></description><link>https://devlog-notes.hashnode.dev/keeping-svg-vectors-when-exporting-to-pdf-svg2pdf-vs-print-to-pdf</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/keeping-svg-vectors-when-exporting-to-pdf-svg2pdf-vs-print-to-pdf</guid><category><![CDATA[SVG]]></category><category><![CDATA[Tutorial]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Wed, 02 Dec 2026 08:34:09 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://dev.to/createsun/keeping-svg-vectors-when-exporting-to-pdf-svg2pdf-vs-print-to-pdf-408d">DEV</a>.</em></p>
<p>I wanted to turn SVG files into PDFs in the browser without uploading them anywhere, and without rasterizing, so the result stays sharp when you zoom in. There are two realistic ways to do it client-side: <code>svg2pdf.js</code> on top of jsPDF, or the browser's own print-to-PDF. I built the first one and compared it against the second. They are good at different things, and the first one fails in a way that doesn't throw.</p>
<p>All numbers below are from my own test files (generated by a script, not borrowed): a starburst logo (512×512, 96 thin lines plus a gradient ring), a bar chart (800×560, 14 text labels in Arial), a banner with only a <code>viewBox</code>, and an A4 page sized in <code>mm</code>. Versions: jsPDF 4.2.1, svg2pdf.js 2.9.0. The reference was Chromium's <code>Page.printToPDF</code> with the SVG inlined in a page, A4, 10 mm margins.</p>
<h2>The svg2pdf.js route</h2>
<p>The whole conversion is a few lines:</p>
<pre><code class="language-ts">import { jsPDF } from "jspdf";
import { svg2pdf } from "svg2pdf.js";

const doc = new jsPDF({ unit: "pt", format: "a4" });
await svg2pdf(svgElement, doc, { x: 28, y: 28, width: 540, height: 540 });
doc.save("out.pdf");
</code></pre>
<p>You get real PDF path operators. I checked the output with pypdf: the <code>/XObject</code> list contains zero images, and the content stream is made of path, fill, stroke and shading operators (<code>m l c re f S sh</code>) plus <code>BT Tj</code> for text. The 14 labels in the bar chart all came back from text extraction.</p>
<h2>Size: a fixed cost, then much smaller than print</h2>
<table>
<thead>
<tr>
<th>Sample</th>
<th>SVG</th>
<th>svg2pdf</th>
<th>Browser print</th>
<th>300 dpi PNG</th>
</tr>
</thead>
<tbody><tr>
<td>starburst logo</td>
<td>8,946 B</td>
<td>5,455 B</td>
<td>17,006 B</td>
<td>725,621 B</td>
</tr>
<tr>
<td>bar chart</td>
<td>2,796 B</td>
<td>3,915 B</td>
<td>46,581 B</td>
<td>126,951 B</td>
</tr>
<tr>
<td>banner (viewBox only)</td>
<td>379 B</td>
<td>3,628 B</td>
<td>11,128 B</td>
<td>59,744 B</td>
</tr>
<tr>
<td>mm-sized page</td>
<td>342 B</td>
<td>3,509 B</td>
<td>11,841 B</td>
<td>46,979 B</td>
</tr>
</tbody></table>
<p>Two things stand out. Compared with a 300 dpi PNG, the vector PDF is 13 to 133 times smaller. Compared with print-to-PDF it is 3.1 to 11.9 times smaller, and the gap is biggest on the chart because print embeds a font subset.</p>
<p>There is also a floor. A 10×10 black square is 132 bytes of SVG and 3,254 bytes of PDF, because jsPDF writes resources for its 14 standard fonts into every file. That cost is paid once per document, so merging helps: four files in one PDF came to 7,950 bytes, against 16,507 bytes for four separate PDFs.</p>
<h2>Where it silently drops things</h2>
<p>This is the part I would have liked to know first. svg2pdf.js did not raise an error for any of these:</p>
<table>
<thead>
<tr>
<th>SVG content</th>
<th>svg2pdf</th>
<th>Browser print</th>
</tr>
</thead>
<tbody><tr>
<td>Gradient fill</td>
<td>correct</td>
<td>correct</td>
</tr>
<tr>
<td>Gradient used as a stroke (<code>stroke="url(#g)"</code>)</td>
<td>stroke disappears</td>
<td>correct</td>
</tr>
<tr>
<td><code>feGaussianBlur</code> filter</td>
<td>skipped, hard-edged circle</td>
<td>blurred</td>
</tr>
<tr>
<td>Font that isn't installed (Inter)</td>
<td>Helvetica</td>
<td>fallback font</td>
</tr>
<tr>
<td>Chinese text</td>
<td>garbled</td>
<td>correct, selectable</td>
</tr>
</tbody></table>
<p>I found the stroke one by accident. My first test logo was a ring drawn with a gradient stroke, and the PDF came out with only the center dot. I spent a while checking my own scaling code before confirming it is a library limitation. Text is also not embedded: the 14 labels are the standard Helvetica, not the Arial in the SVG, and anything outside Latin-1 turns into garbage.</p>
<p>The size comparison flips for those cases. A file with a blur filter plus Chinese text was 3,560 B from svg2pdf and 89,349 B from print, but the print version is the one that is actually right.</p>
<h2>How I'd choose</h2>
<ul>
<li>Icons, logos, diagrams that use flat fills, plain gradients, Latin text: svg2pdf. Small output, real vectors, no print dialog.</li>
<li>Gradient strokes, filters, CJK or custom fonts: print-to-PDF, or convert text to paths and strokes to fills before sending the SVG to svg2pdf.</li>
<li>Either way, don't trust "no error" as a signal. Render the PDF with a second tool (I used pypdfium2 and macOS <code>sips</code>) and look.</li>
</ul>
<h2>Loading cost</h2>
<p>jsPDF is about 419 KB raw (133 KB gzip) and svg2pdf.js about 100 KB raw (about 30 KB gzip). I load both with a dynamic <code>import()</code> the first time a file is dropped, so they aren't in the page's initial scripts.</p>
<p>I put this together as a free converter that runs entirely in your browser: <a href="https://svg-optimize.com/svg-to-pdf">https://svg-optimize.com/svg-to-pdf</a>. It handles multi-file merge, page size and margins, and warns before converting when it sees a gradient stroke, a filter, or non-Latin text.</p>
]]></content:encoded></item><item><title><![CDATA[DeepSeek Harness: a patched plugin entry does not inherit the old config]]></title><description><![CDATA[A DeepSeek Harness patch replaces a plugin entry's whole config. What to check when an option vanishes or a plugin never activates.]]></description><link>https://devlog-notes.hashnode.dev/deepseek-harness-a-patched-plugin-entry-does-not-inherit-the-old-config</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/deepseek-harness-a-patched-plugin-entry-does-not-inherit-the-old-config</guid><category><![CDATA[Deepseek]]></category><category><![CDATA[architecture]]></category><category><![CDATA[plugins]]></category><category><![CDATA[configuration]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Wed, 02 Dec 2026 07:14:24 GMT</pubDate><content:encoded><![CDATA[<p><strong>You change one plugin entry in a DeepSeek Harness profile patch, and an option that used to work quietly disappears. Or a plugin is installed but never seems to activate. Both make sense once you treat a running <code>dsh</code> as a Cordis plugin tree assembled at startup. This is the short version of a longer walkthrough of that tree.</strong></p>
<h2>The symptom</h2>
<p>Every product component in DeepSeek Harness is a plugin, including model adapters, the tool registry, Session logging and the agent loop. A profile names bundles, keeps its own <code>cordis.patch.yml</code>, and the result is composed from ordered layers: bundle patches, the profile patch, the home patch, then <code>--patch</code> overlays in argument order.</p>
<p>A patch targets an entry by id and replaces its entire config, or inserts a new entry. The config is not deep-merged. So a later layer that supplies a replacement config does not inherit the keys it omitted from the earlier row, and that is where the "missing" option went.</p>
<h2>What to check</h2>
<ol>
<li><p><strong>Which profile you actually start.</strong> Its bundle list and patches determine the assembly. <code>dsh-base</code> is the shared first layer of the shipped <code>web</code>, <code>headless</code>, <code>sdk</code> and <code>acp</code> profiles; <code>sdk-minimal</code> is the documented exception and does not apply it. Another profile can have a different tree.</p>
</li>
<li><p><strong>The effective composition.</strong> Print it and trace the entry and every layer that contributed or changed it:</p>
<pre><code class="language-sh">dsh --profile web --dump-config
</code></pre>
</li>
<li><p><strong>Declared dependencies and services.</strong> Plugins declare required services through <code>inject</code>, and Cordis waits until those services are ready before starting the dependent plugin. A declared dependency does not install a missing service.</p>
</li>
<li><p><strong>Each step on its own.</strong> Installation, configuration composition, service readiness and the resulting registration are separate steps. Inspect actual startup errors for the environment at hand instead of diagnosing one step from another step's success.</p>
</li>
<li><p><strong>Whether edits reload at all.</strong> YAML controls HMR: base enables configuration watching, while Headless, SDK and ACP disable it and <code>sdk-minimal</code> does not include it. Do not assume all profiles watch configuration.</p>
</li>
</ol>
<h2>What none of this proves</h2>
<p>A printed composition is evidence about selected entries; it is not proof that all plugins successfully activated or that their behavior is correct. A similarly named plugin is not automatically interchangeable, and a successful mount, reversible registration or plugin listing does not make a plugin safe. A plugin can execute code and register side effects, so inspect the exact code and dependencies you intend to load.</p>
<p>The full write-up covers services at stable context keys, typed events, reversible effects and disposers, and a worked example of how the layers override each other: <a href="https://dsh-plugin.com/blog/cordis-plugin-tree">Why DeepSeek Harness Uses a Cordis Plugin Tree</a></p>
<p>For why later layers replace the whole config of a targeted row, see <a href="https://dsh-plugin.com/blog/config-layer-precedence">the config precedence guide</a>.</p>
<p><img src="https://dsh-plugin.com/media/blog/cordis-plugin-tree/flow.en.webp" alt="Profile bundle layers form a plugin tree whose services and effects have lifecycles" /></p>
<p>Originally published at <a href="https://dsh-plugin.com/blog/cordis-plugin-tree">https://dsh-plugin.com/blog/cordis-plugin-tree</a></p>
]]></content:encoded></item><item><title><![CDATA[DeepSeek Harness: A Config Schema That Parses Is Not a Complete One]]></title><description><![CDATA[Generate JSON Schema for a DeepSeek Harness profile, inspect x-cordis diagnostics, and understand partial projections and native validation.]]></description><link>https://devlog-notes.hashnode.dev/deepseek-harness-a-config-schema-that-parses-is-not-a-complete-one</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/deepseek-harness-a-config-schema-that-parses-is-not-a-complete-one</guid><category><![CDATA[json-schema]]></category><category><![CDATA[Deepseek]]></category><category><![CDATA[configuration]]></category><category><![CDATA[cli]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Tue, 01 Dec 2026 06:06:16 GMT</pubDate><content:encoded><![CDATA[<p><strong><code>dsh --profile web --dump-config-schema</code> can print valid JSON and still exit 1. In DeepSeek Harness, a schema that parses is not the same as a schema that covers your profile, and neither one replaces native validation. This is the short version of a longer walkthrough of the config schema dump.</strong></p>
<h2>The symptom</h2>
<p>You run the schema dump, pipe stdout into a JSON parser, it parses, and you start validating configuration against it. Later a plugin field you expected to be checked is not, or the profile still fails to boot.</p>
<p>The dump is a projection. It writes one pretty-printed JSON Schema 2020-12 document describing the parsed entry list of the selected composition, the same bundle, profile, home and argument patch layers that <code>--dump-config</code> uses. Collection and projection failures can keep partial output and exit 1, so syntax alone tells you very little.</p>
<h2>What to check before relying on it</h2>
<ol>
<li><p><strong>The process status, not just stdout.</strong> Capture stdout as JSON and stderr separately. Preparation, patch parsing, composition or resolution-setup failures exit nonzero with no schema at all; collection and projection failures can leave a partial schema behind with exit 1.</p>
</li>
<li><p><strong>Root <code>x-cordis</code>.</strong> It carries <code>profile</code>, <code>complete</code>, <code>entries</code>, <code>diagnostics</code> and <code>patchSchema</code>. <code>complete</code> is false for error diagnostics, for <code>partial</code>, <code>unsupported</code> or <code>error</code> entries, and for one plugin name resolving to different Config definitions. Each entry records a traversal <code>path</code>, <code>name</code> when available, <code>status</code> and <code>configRef</code>.</p>
</li>
<li><p><strong>What the projection could not carry.</strong> Callbacks, unsupported regular-expression semantics and other constraints that cannot be projected are marked partial. Some defaults and annotations cannot be represented as JSON and are omitted. JSON Schema defaults are annotations: a validator does not insert them, while native plugin loading still fills defaults from the actual Schemastery schema.</p>
</li>
<li><p><strong>What the schema covers.</strong> It describes declarations in the selected tree, disabled rows included, not every plugin that might exist elsewhere. A plugin without an exported Config means its fields are unknown to this projection, not that configuration is forbidden. When validating a patch fragment against <code>$defs.patchList</code>, keep the document's <code>$defs</code>.</p>
</li>
</ol>
<h2>Two flags that are easy to misuse</h2>
<p>The three dump flags are mutually exclusive, reject application arguments and reject the reserved <code>desktop</code> profile. <code>--from-default-profile</code> replaces a custom target profile with a fresh template and can delete its previous directory and user patch, so it is not a harmless inspection switch. Dump preparation can also initialize missing profile files.</p>
<h2>What none of this proves</h2>
<p>Even <code>complete: true</code> cannot guarantee a successful boot: runtime-generated trees and plugin startup checks are outside the reference. Collection imports trusted modules and can invoke Config getters and lazy builders, so automated callers should enforce an external timeout and treat a plugin module as code. Declared defaults and raw plugin errors can contain sensitive data; review both outputs before sharing.</p>
<p>The full write-up covers the output table, how disabled rows and children are validated, how discovery paths are formed, and how to compare the result with <code>--dump-config</code>: <a href="https://dsh-plugin.com/blog/generate-plugin-config-schema">DeepSeek Harness: Generate Plugin Config JSON Schema</a></p>
<p><img src="https://dsh-plugin.com/media/blog/generate-plugin-config-schema/flow.en.webp" alt="Compose a profile, project schemas, and inspect limitations" /></p>
<p>Originally published at <a href="https://dsh-plugin.com/blog/generate-plugin-config-schema">https://dsh-plugin.com/blog/generate-plugin-config-schema</a></p>
]]></content:encoded></item><item><title><![CDATA[How a multi-size .ico file is actually laid out (and how to build one in the browser)]]></title><description><![CDATA[The ICO format byte by byte, PNG vs BMP entries measured on five real icons, and how to render each size from an SVG in the browser.]]></description><link>https://devlog-notes.hashnode.dev/how-a-multi-size-ico-file-is-actually-laid-out-and-how-to-build-one-in-the-browser</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/how-a-multi-size-ico-file-is-actually-laid-out-and-how-to-build-one-in-the-browser</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[webdev]]></category><category><![CDATA[SVG]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Mon, 30 Nov 2026 08:14:31 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on</em> <a href="https://dev.to/createsun/how-a-multi-size-ico-file-is-actually-laid-out-and-how-to-build-one-in-the-browser-2olp"><em>DEV</em></a><em>.</em></p>
<p>I needed a favicon.ico generated from an SVG, entirely client-side, with no upload and no ImageMagick. The ICO format turned out to be small enough to write by hand in about 80 lines of TypeScript, and a couple of its details surprised me enough to write them down.</p>
<h2>The whole format in one picture</h2>
<p>An <code>.ico</code> is a directory followed by images:</p>
<pre><code class="language-plaintext">ICONDIR        6 bytes    reserved=0, type=1 (icon), count=N
ICONDIRENTRY   16 bytes × N
  width        1 byte     0 means 256
  height       1 byte     0 means 256
  colorCount   1 byte     0 for 32-bit images
  reserved     1 byte
  planes       2 bytes    1
  bitCount     2 bytes    32
  bytesInRes   4 bytes    length of this image's data
  imageOffset  4 bytes    where it starts in the file
image data × N            PNG file, or a headerless BMP
</code></pre>
<p>All integers are little-endian. Width and height are a single byte, which is why 256 is written as <code>0</code>.</p>
<h2>Each image is either a PNG or a "BMP without the BMP header"</h2>
<p>Since Windows Vista, an entry can simply be a complete PNG file. Before that, every entry was a DIB: a <code>BITMAPINFOHEADER</code> with no <code>BITMAPFILEHEADER</code> in front of it. Two things about the DIB version catch people:</p>
<ol>
<li><code>biHeight</code> <strong>is twice the real height.</strong> The DIB holds two stacked bitmaps, the color (XOR) image and a 1-bit transparency (AND) mask, and the header describes both.</li>
<li><strong>Rows go bottom-up and pixels are BGRA</strong>, as in any BMP. The AND mask rows are padded to 32 bits, so a 48 px row of mask takes 8 bytes, not 6.</li>
</ol>
<pre><code class="language-ts">function encodeDib(size: number, rgba: Uint8ClampedArray): Uint8Array {
  const pixelBytes = size * size * 4;
  const maskRow = Math.ceil(size / 32) * 4;
  const out = new Uint8Array(40 + pixelBytes + maskRow * size);
  const v = new DataView(out.buffer);
  v.setUint32(0, 40, true);        // biSize
  v.setInt32(4, size, true);       // biWidth
  v.setInt32(8, size * 2, true);   // biHeight: XOR + AND
  v.setUint16(12, 1, true);        // planes
  v.setUint16(14, 32, true);       // bitCount
  v.setUint32(20, out.length - 40, true);

  let o = 40;
  for (let y = size - 1; y &gt;= 0; y--) {
    for (let x = 0; x &lt; size; x++) {
      const i = (y * size + x) * 4;
      out[o++] = rgba[i + 2]; out[o++] = rgba[i + 1];
      out[o++] = rgba[i];     out[o++] = rgba[i + 3];
    }
  }
  // AND mask: 1 = transparent. Modern readers use alpha, old ones only the mask.
  for (let row = 0; row &lt; size; row++) {
    const y = size - 1 - row;
    for (let x = 0; x &lt; size; x++) {
      if (rgba[(y * size + x) * 4 + 3] === 0) {
        out[40 + pixelBytes + row * maskRow + (x &gt;&gt; 3)] |= 0x80 &gt;&gt; (x &amp; 7);
      }
    }
  }
  return out;
}
</code></pre>
<p>The directory is then just a loop that writes 16 bytes per entry and keeps a running offset.</p>
<h2>PNG vs BMP entries: the numbers</h2>
<p>I converted five real icons (four from Simple Icons, one Lucide stroke icon) with both encodings:</p>
<table>
<thead>
<tr>
<th>Icon</th>
<th>16/32/48 as PNG</th>
<th>16/32/48 as BMP</th>
</tr>
</thead>
<tbody><tr>
<td>TypeScript</td>
<td>1,389 B</td>
<td>15,086 B</td>
</tr>
<tr>
<td>Figma</td>
<td>1,917 B</td>
<td>15,086 B</td>
</tr>
<tr>
<td>Lucide heart</td>
<td>1,921 B</td>
<td>15,086 B</td>
</tr>
<tr>
<td>GitHub</td>
<td>1,960 B</td>
<td>15,086 B</td>
</tr>
<tr>
<td>React</td>
<td>2,538 B</td>
<td>15,086 B</td>
</tr>
</tbody></table>
<p>The BMP column is the same for every icon, and it has to be: 4 bytes per pixel plus the padded mask, regardless of what is drawn. 16 + 32 + 48 px always comes to 15,086 bytes including the directory. PNG entries made the favicon 6 to 11 times smaller.</p>
<p>With all seven Windows sizes (16 to 256, BMP below 256 and PNG at 256, which is what ImageMagick does by default), the files were about 106 to 113 KB. With PNG everywhere they were 8 to 20 KB.</p>
<p>So unless you need to support XP-era readers, use PNG entries.</p>
<h2>Render each size from the vector</h2>
<p>The tempting shortcut is to draw the SVG once at 256×256 and downscale it for the smaller sizes. That smears one-pixel lines at 16×16. Since the source is a vector, it's better to rasterize it separately at each target size: set the SVG's <code>width</code>/<code>height</code> to the target pixel size, load it into an <code>Image</code> from a Blob URL, and <code>drawImage</code> it onto a canvas of exactly that size.</p>
<pre><code class="language-ts">doc.documentElement.setAttribute("width", String(size));
doc.documentElement.setAttribute("height", String(size));
const url = URL.createObjectURL(
  new Blob([new XMLSerializer().serializeToString(doc)], { type: "image/svg+xml" })
);
</code></pre>
<p>Three things broke this in testing:</p>
<ul>
<li><strong>No</strong> <code>viewBox</code><strong>.</strong> Changing width/height on such an SVG crops it instead of scaling it. If the file has numeric <code>width</code>/<code>height</code>, synthesize <code>viewBox="0 0 w h"</code>. If it has neither, mount it off-screen and use <code>getBBox()</code>.</li>
<li><code>currentColor</code><strong>.</strong> Lucide, Feather and Heroicons use it. Rendered as a standalone image there is no inherited color, so the icon comes out black.</li>
<li><strong>Web fonts.</strong> An SVG drawn as an image can't load external resources, so <code>&lt;text&gt;</code> falls back to a default font. Convert text to paths.</li>
</ul>
<h2>Checking the output</h2>
<p>macOS can read ICO directly, which makes a quick sanity check easy:</p>
<pre><code class="language-plaintext">$ file github.ico
github.ico: MS Windows icon resource - 7 icons, 16x16, 32 bits/pixel, 24x24, 32 bits/pixel
$ sips -g pixelWidth -g hasAlpha github.ico
  pixelWidth: 256
  hasAlpha: yes
</code></pre>
<p>Extracting the BMP entries and viewing them is the real test, because if you get the row order or channel order wrong, this is where you see it: an upside-down or blue-tinted icon.</p>
<p>I put the result into a small free tool, <a href="https://svg-optimize.com/svg-to-ico">an SVG to ICO converter that runs entirely in the browser</a>. It lets you pick sizes and switch between PNG and BMP entries, and it also outputs the 180×180 <code>apple-touch-icon.png</code> and the <code>&lt;link&gt;</code> tags. The encoder above is essentially all there is to it.</p>
]]></content:encoded></item><item><title><![CDATA[DeepSeek Harness: A Recorded Tool Call Is Not an Execution]]></title><description><![CDATA[A recorded tool call is not proof the tool ran. Trace the policy, approval, guard, dispatch and result stages in DeepSeek Harness.]]></description><link>https://devlog-notes.hashnode.dev/deepseek-harness-a-recorded-tool-call-is-not-an-execution</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/deepseek-harness-a-recorded-tool-call-is-not-an-execution</guid><category><![CDATA[Deepseek]]></category><category><![CDATA[AI]]></category><category><![CDATA[tooling]]></category><category><![CDATA[debugging]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Sun, 29 Nov 2026 07:19:04 GMT</pubDate><content:encoded><![CDATA[<p><strong>A tool call being recorded is not evidence that the tool body ran. In DeepSeek Harness the call is logged before execution, then passes through policy, approval and guards before anything is dispatched — and what the model finally sees can differ from what the tool returned. This is the short version of a longer walkthrough of that pipeline.</strong></p>
<h2>The symptom</h2>
<p>You are reading a session log, you see a <code>tool/call</code> event, and you conclude the operation happened. Or you see a completed card in the UI with a result in it, and you conclude the operation succeeded as written.</p>
<p>Both readings skip the stages in between. The session records <code>tool/call</code> before <code>tools/pre-execute</code> runs, and the UI can show a pending card from <code>presentCall(args)</code> while nothing has executed yet. A recorded request, a pending card, and a completed card are three different claims about the world.</p>
<p>The same confusion shows up from the other direction: a result that looks wrong and gets blamed on the model, when a projection, post-execution or finalization step rewrote the content after the tool body had already returned.</p>
<h2>Three things to check, in order</h2>
<ol>
<li><p><strong>Did the body run at all?</strong> Pre-execution is a waterfall — a listener chain that can transform or short-circuit the call — used for hooks, permission and sandbox policy. Three paths leave it: allow proceeds to the registered guards, deny skips the tool body, ask goes to the approval service. A denied call still goes through result processing, so a recorded outcome does not mean an execution.</p>
</li>
<li><p><strong>Did the approval actually settle the question?</strong> An allowed one-shot approval is not the final decision. Registered monotonic guards run afterwards and can still deny, and the approval service's own callers deny unless the outcome is <code>allowed-once</code>. The approval audit events (<code>approval/asked</code> and <code>approval/decided</code>) are log-only; the model sees the caller's derived tool result instead. An approval is also specific to the action that was asked about, not a standing grant for later calls.</p>
</li>
<li><p><strong>Did the result get rewritten before the model saw it?</strong> The tool definition's <code>projectContent</code> installs execution-prepared text and images before <code>tools/post-execute</code>, which can accept, block, replace or add context. Then <code>finalizeContent</code> enforces its final content-only invariant, <code>tools/result</code> observes the frozen outcome, and a <code>tool/result</code> session event records the single model-facing outcome. Raw body output and eventual content are allowed to differ.</p>
</li>
</ol>
<h2>Why denial and execution error look alike</h2>
<p>Both can end as an error-shaped, model-facing result. But the reference explicitly routes a denial to result processing without entering the body, while a wrapper or body can throw after dispatch has begun and the registry normalizes that too. The error outcome alone cannot tell you how far the operation got — which matters a great deal before you decide to retry a call with external or irreversible effects.</p>
<p>The same caution applies to a completed UI card. It presents the recorded session result; it is not a separate execution stage and not a complete trace of every policy listener that may have touched the content.</p>
<h2>What none of this proves</h2>
<p>A policy gate, a sandbox setting, a successful result or an approval does not establish that an operation is safe. The pipeline documents ordering and extension points, not any plugin's configuration and not an exact timing guarantee. And tool call arguments can carry private paths or credentials, so sanitize anything you intend to share.</p>
<p>The full write-up covers the stage-by-stage table, how PTC transport records relate to individual sub-calls, what to capture when investigating a single call, and where each of these boundaries sits in the graph: <a href="https://dsh-plugin.com/blog/model-tool-call-execution-flow">DeepSeek Harness: Tool Calls to Results</a></p>
<p><img src="https://dsh-plugin.com/media/blog/model-tool-call-execution-flow/flow.en.webp" alt="A recorded call passes policy and guards before dispatch and final result processing" /></p>
<p>Originally published at <a href="https://dsh-plugin.com/blog/model-tool-call-execution-flow">https://dsh-plugin.com/blog/model-tool-call-execution-flow</a></p>
]]></content:encoded></item><item><title><![CDATA[DeepSeek Harness: Restart the Profile After a Plugin Bundle Update]]></title><description><![CDATA[A successful plugin update does not reload a running profile. Check the profile, the bundle declaration, and the restart itself, in that order.]]></description><link>https://devlog-notes.hashnode.dev/deepseek-harness-restart-the-profile-after-a-plugin-bundle-update</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/deepseek-harness-restart-the-profile-after-a-plugin-bundle-update</guid><category><![CDATA[plugins]]></category><category><![CDATA[deepseek harness]]></category><category><![CDATA[debugging]]></category><category><![CDATA[Tutorial]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Sat, 28 Nov 2026 07:14:28 GMT</pubDate><content:encoded><![CDATA[<p><strong>A <code>dsh plugin</code> operation can report success while the profile you are actually talking to still runs the bundle set it loaded at startup. The package operation and the running process are two separate moments. This is the short version of a longer write-up on telling them apart.</strong></p>
<h2>The symptom</h2>
<p>You update a plugin bundle, the command returns cleanly, and the capability you were trying to add is still not there. Nothing errored. Nothing crashed. The feature just behaves exactly as it did before.</p>
<p>That is not a broken update. A successful <code>dsh plugin</code> operation updates installed dependencies and reconciles the profile manifest's <code>dsh.profile.bundles</code> list. The running profile keeps the bundle set it was started with. Success describes the package operation and the manifest reconciliation — it is not evidence that the live process swapped out its plugin tree.</p>
<h2>Three things to check, in order</h2>
<ol>
<li><strong>Did the operation target the profile you restarted?</strong> <code>dsh plugin</code> works inside the selected profile directory, and the CLI will initialize a missing profile rather than fail. A typo therefore produces a brand-new empty profile instead of touching the one you meant, and a successful update in one profile never changes the startup composition of another.</li>
<li><strong>Is the dependency a bundle at all?</strong> After the package operation, DSH adds an installed dependency to the bundle stack only when its manifest declares a bundle patch. A plain dependency stays a plain dependency and produces a one-time warning. An update can also promote a previously ordinary dependency into a bundle, so check the installed package rather than inferring from the name.</li>
<li><strong>Did the process actually restart?</strong> A browser refresh reloads a tab. It does not restart a host. Restarting the profile the operation targeted is what loads the new composition — for a directly launched profile, the documented launcher form is <code>dsh --profile &lt;name&gt;</code>.</li>
</ol>
<h2>What a restart proves, and what it does not</h2>
<table>
<thead>
<tr>
<th>Observation</th>
<th>What it establishes</th>
</tr>
</thead>
<tbody><tr>
<td>Package update succeeded</td>
<td>Installed state and bundle list were reconciled</td>
</tr>
<tr>
<td>Profile restarted</td>
<td>The process started with its new composition</td>
</tr>
<tr>
<td>Feature works after restart</td>
<td>The intended capability is reachable in this environment</td>
</tr>
</tbody></table>
<p>A restart also does not guarantee every capability appears. The optional subagent provider bundles, for example, register dormant host providers at startup — the corresponding tool row still has to be enabled in a copied preset before a new agent can see the tool. That detail belongs to those bundles specifically, not to plugins in general.</p>
<p>And none of these observations is a safety judgement. The plugin market checks index format, compatibility and applicable registry rules; it does not establish that plugin code is trustworthy. A clean restart shows startup, not that the plugin is safe.</p>
<h2>If it still does not work after a restart</h2>
<p>Read the startup diagnostics before changing anything else. Configuration parsing, schema validation, module resolution and plugin startup can each fail independently, and a new version may require configuration your existing patch does not supply. The plugin's own documentation and installed schema are where to check that.</p>
<p>The full write-up covers patch editing versus bundle membership, the difference between HMR-capable templates and startup-only ones, what to record before updating a shared deployment, and the recovery questions worth answering ahead of time: <a href="https://dsh-plugin.com/blog/restart-profile-after-plugin-update">Restart the profile after a plugin bundle update</a></p>
<p><img src="https://dsh-plugin.com/media/blog/restart-profile-after-plugin-update/flow.en.webp" alt="A bundle update changes disk state; restarting loads the new profile composition" /></p>
<p>Originally published at <a href="https://dsh-plugin.com/blog/restart-profile-after-plugin-update">https://dsh-plugin.com/blog/restart-profile-after-plugin-update</a></p>
]]></content:encoded></item><item><title><![CDATA[DeepSeek Harness: The Session Composer Stays Greyed Out Until You Pick a Workspace]]></title><description><![CDATA[The DeepSeek Harness Web UI will not let you start a session until you pick a workspace. A few days ago I wrote up the full workflow; this is the short…]]></description><link>https://devlog-notes.hashnode.dev/deepseek-harness-the-session-composer-stays-greyed-out-until-you-pick-a-workspace</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/deepseek-harness-the-session-composer-stays-greyed-out-until-you-pick-a-workspace</guid><category><![CDATA[deepseek harness]]></category><category><![CDATA[workspace]]></category><category><![CDATA[Session]]></category><category><![CDATA[debugging]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Fri, 27 Nov 2026 07:14:22 GMT</pubDate><content:encoded><![CDATA[<p><strong>The DeepSeek Harness Web UI will not let you start a session until you pick a workspace. A few days ago I wrote up the full workflow; this is the short version for anyone who hit the greyed-out composer and assumed something was broken.</strong></p>
<h2>The symptom</h2>
<p>You open the Web UI, the layout loads fine, but the session composer never becomes usable. No error, no spinner — just a box you cannot type into. Meanwhile the <code>dsh</code> process is clearly running, because it started from your project directory.</p>
<p>That gap is the whole confusion: the process has a default filesystem location, and the UI still wants an explicit selection. They answer different questions. The <a href="https://deepseek-harness.github.io/deepseek-harness/en/guide/quickstart">quickstart</a> tells you to choose the project directory first; until you do, the composer stays unavailable by design.</p>
<h2>Three things to check, in order</h2>
<ol>
<li><strong>Did you select the directory, or only add it?</strong> Adding a directory and selecting it are separate steps. A workspace that merely appears in the list is not the active one.</li>
<li><strong>Does the path actually exist, and is it a directory?</strong> Registration resolves the path to a canonical path and rejects a nonexistent path or a non-directory. Symlinks, trailing slashes and <code>..</code> are normalized, so two different spellings of the same directory are the same workspace — registering the second returns the first record.</li>
<li><strong>Is a model configured?</strong> A selected workspace, a reachable directory and a configured model solve separate prerequisites. Fixing one does not unblock the others, and changing them at random makes the real cause harder to see.</li>
</ol>
<h2>What selection does and does not mean</h2>
<p>The workspace is host-side bookkeeping: a persistent record over a canonical directory path, plus an ordered account of its sessions. It is not an agent, not a model instruction, and not a sandbox. Selecting a directory does not confine the agent to it — the quickstart is explicit that an agent can read and edit files and run commands, with approvals governed by the active policy.</p>
<p>So a title, a registration or a successful selection is not a safety guarantee. If the directory holds anything sensitive, review the actual requested actions rather than trusting the label. The full write-up covers session attachment, what happens when the directory moves, and why unregistering a workspace is not a delete of your files: <a href="https://dsh-plugin.com/blog/select-workspace-before-session">Why select a workspace in DeepSeek Harness?</a></p>
<p><img src="https://dsh-plugin.com/media/blog/select-workspace-before-session/flow.en.webp" alt="Selecting a directory creates a workspace context for a session" /></p>
<p>Originally published at <a href="https://dsh-plugin.com/blog/select-workspace-before-session">https://dsh-plugin.com/blog/select-workspace-before-session</a></p>
]]></content:encoded></item><item><title><![CDATA[Should a Process Skill Enforce Itself? superpowers and mattpocock/skills Disagree]]></title><description><![CDATA[One skill repo injects its rules into every session with a hook. The other can only be started by a person. Which failure mode fits your team.]]></description><link>https://devlog-notes.hashnode.dev/should-a-process-skill-enforce-itself-superpowers-and-mattpocock-skills-disagree</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/should-a-process-skill-enforce-itself-superpowers-and-mattpocock-skills-disagree</guid><category><![CDATA[claude]]></category><category><![CDATA[AI]]></category><category><![CDATA[Developer Tools]]></category><category><![CDATA[Productivity]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Thu, 26 Nov 2026 13:11:59 GMT</pubDate><content:encoded><![CDATA[<p>Every process skill for a coding agent fails in one of two ways. It loads when nobody needed it, or it never loads when somebody did. The two most-starred skill repositories for coding agents each choose one of these failures on purpose.</p>
<p><code>obra/superpowers</code> (327,072 stars on 2026-11-26) makes the process enforce itself: a hook pastes its rules into every session. <code>mattpocock/skills</code> (333,292 stars) does the opposite. Its <a href="https://skills.pub/en/skills/mattpocock-skills-software-factory">software-factory</a> skill sets <code>disable-model-invocation: true</code>, so the model cannot load it and only a person can start it. Both are MIT-licensed prompt content, with no MCP servers and no slash commands.</p>
<h2>Which failure mode do you want?</h2>
<table>
<thead>
<tr>
<th>Question</th>
<th>superpowers</th>
<th>mattpocock/skills</th>
</tr>
</thead>
<tbody><tr>
<td>How it reaches the model</td>
<td><code>SessionStart</code> hook injects <a href="https://skills.pub/en/skills/obra-superpowers-using-superpowers">using-superpowers</a></td>
<td>Only when a person types the skill name</td>
</tr>
<tr>
<td>Can the model skip it?</td>
<td>Only by ignoring an explicit instruction</td>
<td>Yes, it never loads unless asked</td>
</tr>
<tr>
<td>Survives <code>/clear</code>?</td>
<td>Yes, the hook matcher is <code>startup|clear|compact</code></td>
<td>Not applicable, nothing was loaded</td>
</tr>
<tr>
<td>Context cost per session</td>
<td>492 words, always</td>
<td>Zero until invoked</td>
</tr>
<tr>
<td>Failure mode</td>
<td>Over-invocation</td>
<td>Never invoked</td>
</tr>
</tbody></table>
<p>superpowers spends context in every session to make sure the rule is present. mattpocock/skills accepts the risk that nobody remembers to invoke the skill.</p>
<h2>What does each repository contain?</h2>
<table>
<thead>
<tr>
<th></th>
<th><code>obra/superpowers</code></th>
<th><code>mattpocock/skills</code></th>
</tr>
</thead>
<tbody><tr>
<td>Skills (dirs with SKILL.md)</td>
<td>15</td>
<td>39</td>
</tr>
<tr>
<td>Structure</td>
<td>Flat <code>skills/</code></td>
<td><code>engineering/</code>, <code>in-progress/</code>, <code>misc/</code>, <code>productivity/</code></td>
</tr>
<tr>
<td>Hooks</td>
<td><code>SessionStart</code></td>
<td>None</td>
</tr>
<tr>
<td>Last push</td>
<td>2026-11-26</td>
<td>2026-11-25</td>
</tr>
</tbody></table>
<p>The superpowers hook reads <code>using-superpowers/SKILL.md</code> and injects it wrapped in an <code>&lt;EXTREMELY_IMPORTANT&gt;</code> block. The model doesn't choose to load it. The block is already in context, and it comes back after <code>/clear</code> or a compaction.</p>
<h2>What kind of skill does each ship?</h2>
<p>superpowers ships process skills that produce files. <code>brainstorming</code> (2,658 words) requires an approach choice and a design doc before any code. <code>writing-plans</code> (1,639 words) produces a task-by-task plan with file boundaries. <code>using-superpowers</code> sets the order the others run in.</p>
<p>mattpocock/skills ships vocabulary. <code>software-factory</code> (946 words) defines <code>task</code>, <code>run</code>, <code>trigger</code>, <code>service</code> and <code>brake</code>, and tells the model to correct the user when they use a synonym. It has no artifact step and no required order. It changes the words used in a design conversation.</p>
<p>One enforces a sequence. The other enforces a lexicon.</p>
<h2>The installation trap</h2>
<p>The mattpocock marketplace plugin, <code>mattpocock-skills</code> 1.3.2, lists 27 skills. It leaves out everything in <code>in-progress/</code>, which is where <code>software-factory</code> lives. The repository's <code>CLAUDE.md</code> describes in-progress skills as "public on purpose, feedback wanted, not shipped in the plugin".</p>
<table>
<thead>
<tr>
<th>Need</th>
<th>superpowers</th>
<th>mattpocock/skills</th>
</tr>
</thead>
<tbody><tr>
<td>Standard install</td>
<td><code>/plugin install superpowers@claude-plugins-official</code></td>
<td><code>/plugin install mattpocock-skills@claude-plugins-official</code></td>
</tr>
<tr>
<td>Include unreleased skills</td>
<td>Author's marketplace</td>
<td><code>npx skills@latest add mattpocock/skills -a &lt;agent&gt;</code></td>
</tr>
</tbody></table>
<p>If you install from the marketplace and <code>software-factory</code> isn't there, this is why. The <code>npx</code> route is the only one that copies it.</p>
<h2>Which one fits your problem?</h2>
<p>They don't replace each other, and installing both works. superpowers handles the sequence from idea to plan, and mattpocock/skills supplies the vocabulary inside that plan.</p>
<table>
<thead>
<tr>
<th>Your symptom</th>
<th>Install</th>
</tr>
</thead>
<tbody><tr>
<td>Agent writes code before scope is agreed</td>
<td>superpowers</td>
</tr>
<tr>
<td>Agent's plan skips tests and file boundaries</td>
<td>superpowers <code>writing-plans</code></td>
</tr>
<tr>
<td>Team uses five words for one pipeline concept</td>
<td>mattpocock <code>software-factory</code></td>
</tr>
<tr>
<td>Agent pushes or force-resets without asking</td>
<td>Neither. That needs a <code>PreToolUse</code> hook</td>
</tr>
</tbody></table>
<p>The last row is a common mistake. Process skills shape how a model reasons. They don't limit what it can execute.</p>
<h2>The shared weakness</h2>
<p>Both depend on the harness supporting their mechanism. In a harness that doesn't run plugin <code>SessionStart</code> hooks, superpowers becomes an ordinary skill that nobody invokes. In a harness that ignores <code>disable-model-invocation</code>, every mattpocock skill becomes auto-invocable, which is the opposite of what the author intended. Neither repository documents a fallback for this. Before installing either, check that your harness supports the mechanism it relies on.</p>
<hr />
<p><em>Originally published on <a href="https://skills.pub/en/blog/superpowers-vs-mattpocock-skills-compared">skills.pub</a>. Star counts, skill counts, word counts and the plugin's 27-entry skills array were re-checked against both repositories on 2026-11-26.</em></p>
]]></content:encoded></item><item><title><![CDATA[DeepSeek Harness: Start Your First Web UI Task]]></title><description><![CDATA[The DeepSeek Harness Web UI needs a model, a workspace, and a bounded first request. Three failures look alike and are not.]]></description><link>https://devlog-notes.hashnode.dev/deepseek-harness-start-your-first-web-ui-task</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/deepseek-harness-start-your-first-web-ui-task</guid><category><![CDATA[webdev]]></category><category><![CDATA[AI]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[Tutorial]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Mon, 23 Nov 2026 06:34:37 GMT</pubDate><content:encoded><![CDATA[<p>Once the DeepSeek Harness Web server is running, the first task is a sequence, not a single step: configure a model, select a workspace, then send a bounded request. Skip any one of those and the input box stays unusable — and the three failures look completely different from each other.</p>
<p>This post walks the sequence, shows what each step actually establishes, and separates the three things people usually confuse: a disabled composer, a model that cannot be reached, and a server that never started.</p>
<h2>DeepSeek Harness: what should be running first?</h2>
<p>The <a href="https://deepseek-harness.github.io/deepseek-harness/en/guide/quickstart">Web UI guide</a> begins after the server starts. The <a href="https://github.com/deepseek-ai/deepseek-harness#run">repository README</a> says to install Node.js and run the following from the intended project directory:</p>
<pre><code class="language-sh">npx @deepseek-ai/dsh web
</code></pre>
<p>By default the local server uses <code>http://127.0.0.1:3080</code> and opens the default browser. The command prints its URL. An SSH launch prints the host URL instead of opening a browser; the SSH client or editor owns the forwarded local address. <code>--no-open</code> suppresses automatic browser opening. Use the address printed for your installation rather than assuming every deployment uses the default.</p>
<p>The directory from which <code>dsh</code> starts is its default filesystem location. A fresh Web UI nevertheless starts without a selected workspace. Starting in the project directory and selecting the workspace are related but separate steps — and treating them as the same step is the first place people get stuck.</p>
<img src="https://dsh-plugin.com/media/blog/start-my-first-task-in-the-web-ui/flow.en.webp" alt="Start the server, configure a model, select a workspace, and send a task" style="display:block;margin:0 auto" />

<h2>DeepSeek Harness: how do I prepare the first session?</h2>
<ol>
<li><strong>Open the URL printed by the running server.</strong> Keep the process running while using the UI.</li>
<li><strong>Open Settings → Models</strong>, enter a DeepSeek API key and save. The guide says the model route becomes usable immediately; a server restart is not required for this change.</li>
<li><strong>Click Choose workspace</strong>, add the project directory from which you started <code>dsh</code>, and select it. The session composer is unavailable until a workspace is selected.</li>
<li><strong>Start a session and send a bounded example:</strong> "Summarize this repository and identify its main packages."</li>
<li><strong>Read the response and any tool activity.</strong> If the active permission policy requires approval for an operation, the UI asks before it proceeds. Decide based on the actual requested action.</li>
</ol>
<p>The first request is deliberately about understanding the repository. It gives the agent a concrete subject and a useful deliverable without assuming it will edit files.</p>
<table>
<thead>
<tr>
<th>Step</th>
<th>Expected result</th>
<th>If it is missing</th>
</tr>
</thead>
<tbody><tr>
<td>Start server</td>
<td>A URL is printed</td>
<td>Inspect the startup output</td>
</tr>
<tr>
<td>Save model key</td>
<td>Model route becomes usable</td>
<td>Recheck the setting and key</td>
</tr>
<tr>
<td>Select workspace</td>
<td>Composer becomes available</td>
<td>Add and select the project directory</td>
</tr>
<tr>
<td>Send task</td>
<td>Agent begins the session</td>
<td>Check the selected workspace and model</td>
</tr>
<tr>
<td>Review approval</td>
<td>UI asks when policy requires it</td>
<td>Read the requested operation and policy</td>
</tr>
</tbody></table>
<p>That table is also a diagnostic order. Read it top to bottom and stop at the first row that does not hold — the rows below it cannot be the cause.</p>
<h2>DeepSeek Harness: what should the first request contain?</h2>
<p>Give the agent the outcome you want, the relevant project area, and any constraints that matter to you. The example asks for a summary and main packages. For a larger repository, ask for the entry points or a specific package after reading the first answer.</p>
<p>A follow-up can request evidence from files so you can compare the summary with the project itself. That is worth doing once: it tells you whether the agent is reading the workspace or producing a plausible general description of a repository with that name.</p>
<p>The guide's example is a prompt sent in the session, not a terminal command. You need not know an internal tool name to ask the agent to inspect the workspace. If the agent proposes a command or file change, read its actual action before deciding whether to approve it. A useful first session teaches you both the repository and how the application displays work.</p>
<h2>DeepSeek Harness: what if the UI or composer is unavailable?</h2>
<p>Three different failures get described here, and they happen at three different stages.</p>
<p><strong>The browser does not open.</strong> Use the printed URL. The README documents that behavior for SSH and <code>--no-open</code>.</p>
<p><strong>The composer is disabled in a fresh UI.</strong> Select the workspace, as above. This is a UI workflow requirement, not a model problem — and an unavailable input box is not, by itself, evidence that the model key is invalid.</p>
<p><strong>A model request cannot proceed.</strong> Verify the saved model configuration. The quickstart documents saving the key but does not provide a universal diagnosis for every provider error. The <a href="https://dsh-plugin.com/blog/configure-models-providers">model configuration guide</a> covers additional providers.</p>
<p><strong>Startup fails before a URL is printed.</strong> Preserve the terminal error. Required plugin activation failures can produce a full report; <a href="https://dsh-plugin.com/blog/find-the-full-diagnostics-log-when-startup-fails">the startup diagnostics guide</a> explains where to find it and its limits.</p>
<p>Capture the stage and the exact message before changing settings. A disabled composer, a model error, and a server startup failure cannot substitute for one another, so guessing which one you have is how the wrong setting gets changed.</p>
<h3>Separate the local and source launch paths</h3>
<p>The README also documents a source checkout workflow: clone the repository, install dependencies, run <code>pnpm run build</code>, and start with <code>pnpm dsh web</code>.</p>
<p>The build prepares artifacts; the source launch uses those artifacts without rebuilding them. This is a different setup from the npm example, so choose the path that matches your installation. In either case, wait for the printed address before beginning the UI steps. If you are connecting through SSH, distinguish the server's printed host address from the forwarded address owned by your client.</p>
<p>The guide does not require a restart after saving the key, but it does require selecting a workspace before the composer becomes available. Check those conditions separately.</p>
<h2>DeepSeek Harness: what are the limits and safety boundaries?</h2>
<p>Selecting a workspace is a necessary UI step, not a guarantee that every operation is safe.</p>
<p>The agent may read and edit files and run commands, subject to the tools and policy in the deployment. Review any approval request and the task's possible effects.</p>
<p>Do not paste API keys or private data into the conversation when the model settings are the intended place for the key.</p>
<p>A local default URL does not by itself describe a secure public deployment; use the project's deployment guidance for that separate situation.</p>
<h2>DeepSeek Harness: what do the terms mean?</h2>
<ul>
<li><strong>Web server</strong>: the process serving the browser interface and printing its access URL.</li>
<li><strong>Model route</strong>: the configured path used to send model requests.</li>
<li><strong>Workspace</strong>: the selected project directory associated with the session.</li>
<li><strong>Composer</strong>: the input used to send a session message; it requires a selected workspace.</li>
<li><strong>Permission policy</strong>: the active rules that determine whether an operation requires approval.</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[ui-ux-pro-max Ships 2,600 Rows of Local CSV, Not a Design Model]]></title><description><![CDATA[The ui-ux-pro-max skill answers design questions by running a Python script against 14 CSV files stored inside the skill directory — no API, no model call…]]></description><link>https://devlog-notes.hashnode.dev/ui-ux-pro-max-ships-2-600-rows-of-local-csv-not-a-design-model</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/ui-ux-pro-max-ships-2-600-rows-of-local-csv-not-a-design-model</guid><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Fri, 20 Nov 2026 10:08:22 GMT</pubDate><content:encoded><![CDATA[<p>The <code>ui-ux-pro-max</code> skill answers design questions by running a Python script against 14 CSV files stored inside the skill directory — no API, no model call, no network. The SKILL.md is 2,371 words and spends most of them on one thing: how to write a query for that script. On <a href="/en/skills/nextlevelbuilder-ui-ux-pro-max-skill-ui-ux-pro-max-2">skills.pub</a> it comes from a repository with 151,799 stars, and its own description enumerates the catalogue: 80 searchable styles, 194 product palettes, 74 font pairings, 130 UX guidelines, 105 icons, 17 GSAP presets, 25 chart types, 22 stacks.</p>
<h2>How does the skill actually execute?</h2>
<p>One shell command, repeated. The SKILL.md states the invocation and warns about the path:</p>
<pre><code>python "${CLAUDE_PLUGIN_ROOT}/.claude/skills/ui-ux-pro-max/scripts/search.py" "&lt;query&gt;" --domain &lt;domain&gt;
</code></pre>
<p>"Always invoke it by its full path — do not assume a particular working directory." The script takes a domain flag and a stack flag, and returns matching rows from the CSVs. Everything else in the skill is guidance on forming that query.</p>
<table>
<thead>
<tr>
<th>Flag</th>
<th>Purpose</th>
<th>Example</th>
</tr>
</thead>
<tbody><tr>
<td><code>--domain</code></td>
<td>Which catalogue to search</td>
<td><code>style</code>, <code>color</code>, <code>product</code>, <code>typography</code>, <code>chart</code>, <code>ux</code>, <code>icons</code>, <code>gsap</code></td>
</tr>
<tr>
<td><code>--stack</code></td>
<td>Restrict to a framework</td>
<td>One of 22 stacks</td>
</tr>
<tr>
<td><code>--design-system</code></td>
<td>Generate a full system for a new project</td>
<td>Default on new work</td>
</tr>
<tr>
<td><code>--tokens</code></td>
<td>Emit design tokens</td>
<td><code>dtcg</code> or <code>css</code></td>
</tr>
<tr>
<td><code>--rtl</code></td>
<td>Right-to-left layouts</td>
<td>—</td>
</tr>
<tr>
<td><code>--variance</code>, <code>--motion</code>, <code>--density</code></td>
<td>Tune the generated output, 1–10</td>
<td>—</td>
</tr>
</tbody></table>
<h2>What is in the catalogues?</h2>
<p>Counted from the repository's <code>catalog-summary.json</code> and the CSV headers on 2026-11-20:</p>
<table>
<thead>
<tr>
<th>File</th>
<th>Rows</th>
<th>Columns</th>
</tr>
</thead>
<tbody><tr>
<td><code>colors.csv</code></td>
<td>194</td>
<td>19</td>
</tr>
<tr>
<td><code>products.csv</code></td>
<td>194</td>
<td>10</td>
</tr>
<tr>
<td><code>ui-reasoning.csv</code></td>
<td>194</td>
<td>12</td>
</tr>
<tr>
<td><code>ux-guidelines.csv</code></td>
<td>130</td>
<td>10</td>
</tr>
<tr>
<td><code>icons.csv</code></td>
<td>105</td>
<td>11</td>
</tr>
<tr>
<td><code>styles.csv</code></td>
<td>89</td>
<td>30</td>
</tr>
<tr>
<td><code>typography.csv</code></td>
<td>74</td>
<td>11</td>
</tr>
<tr>
<td><code>react-performance.csv</code></td>
<td>44</td>
<td>11</td>
</tr>
<tr>
<td><code>landing.csv</code></td>
<td>34</td>
<td>10</td>
</tr>
<tr>
<td><code>app-interface.csv</code></td>
<td>32</td>
<td>11</td>
</tr>
<tr>
<td><code>charts.csv</code></td>
<td>25</td>
<td>15</td>
</tr>
<tr>
<td><code>motion.csv</code> (GSAP)</td>
<td>17</td>
<td>12</td>
</tr>
<tr>
<td><code>google-fonts.csv</code></td>
<td>1,934</td>
<td>15</td>
</tr>
<tr>
<td><code>stacks/*.csv</code></td>
<td>1,278 total</td>
<td>13 each</td>
</tr>
</tbody></table>
<p>The <code>ux-guidelines.csv</code> columns are the most useful to inspect, because they show what a "rule" looks like as data: <code>No, Category, Issue, Platform, Description, Do, Don't, Code Example Good, Code Example Bad, Severity</code>. Each row carries a good and a bad code example, which is what lets the agent quote something concrete instead of paraphrasing advice.</p>
<p><code>styles.csv</code> has 89 rows but only 51 are active; 29 are marked supplemental and 9 deprecated. That distinction matters if you are comparing the skill's marketing copy against its behaviour — the "80 searchable styles" in the description is the rounded total, not the active count.</p>
<h2>Where does the data come from, and is it fresh?</h2>
<p>Local files, verified offline. The Python modules import only the standard library — <code>csv</code>, <code>difflib</code>, <code>re</code>, <code>pathlib</code>, <code>math</code>, <code>json</code>, <code>os</code>, <code>tempfile</code> — and contain no <code>urlopen</code> or <code>requests</code>. The one place a URL appears is <code>fonts.googleapis.com</code> preconnect links inside generated HTML previews.</p>
<p>Freshness is declared rather than enforced. <code>data-provenance.json</code> records <code>verifiedAt: 2026-11-04</code> with a policy of <code>manual-verifiedDays: 365</code> and <code>needs-reviewDays: 90</code>. The cited sources are W3C WCAG, OSMF, Mapbox, MapLibre and similar — citations for where the rules came from, not live fetches.</p>
<table>
<thead>
<tr>
<th>Question</th>
<th>Answer</th>
</tr>
</thead>
<tbody><tr>
<td>Does it need network access?</td>
<td>No, not at runtime.</td>
</tr>
<tr>
<td>Does it call a model?</td>
<td>No. The agent does the reasoning; the script does retrieval.</td>
</tr>
<tr>
<td>Can the data go stale?</td>
<td>Yes. It is a snapshot with a declared review interval.</td>
</tr>
<tr>
<td>Can you edit it?</td>
<td>Yes — the CSVs are ordinary files in the skill directory.</td>
</tr>
</tbody></table>
<h2>What does the SKILL.md forbid?</h2>
<p>Four rules that read like they were written after real failures:</p>
<ul>
<li><strong>"Never assume a stack"</strong> — "a hardcoded default silently misroutes every recommendation."</li>
<li><strong>"Do not persist unverified output."</strong></li>
<li><strong>"Never present a 0-result search as if it returned data."</strong> With a fallback: retry once with a narrower rewrite or an explicit domain.</li>
<li><strong>"Never use <code>--force</code> without explicit user authorization."</strong></li>
</ul>
<p>The 0-result rule is the one worth copying into other retrieval-style skills. An empty search that gets summarised as if it were an answer is the most expensive failure mode in this category, because it looks like success.</p>
<h2>How is it installed?</h2>
<p>Two routes, and they differ in what you get:</p>
<table>
<thead>
<tr>
<th>Route</th>
<th>Command</th>
<th>Caveat</th>
</tr>
</thead>
<tbody><tr>
<td>Claude Code marketplace</td>
<td><code>/plugin marketplace add nextlevelbuilder/ui-ux-pro-max-skill</code> then <code>/plugin install ui-ux-pro-max@ui-ux-pro-max-skill</code></td>
<td>Also registers the six sibling skills</td>
</tr>
<tr>
<td>CLI</td>
<td><code>npm install -g ui-ux-pro-max-cli</code> then <code>uipro init --ai claude</code></td>
<td>The README warns older <code>uipro-cli</code> releases are stale</td>
</tr>
</tbody></table>
<p>The repository contains seven distinct skills — <code>ui-ux-pro-max</code>, <code>design</code>, <code>brand</code>, <code>design-system</code>, <code>slides</code>, <code>ui-styling</code>, <code>banner-design</code> — each duplicated into <code>.claude/skills/</code> and <code>cli/assets/skills/</code>, except the main one, which has no CLI twin.</p>
<h2>Is it better than just asking the model?</h2>
<p>For consistency, yes, and for a specific reason: the same query returns the same row. Ask a model for "a palette for a fintech dashboard" twice and you get two plausible answers. Search a 194-row table and you get the row that was reviewed once.</p>
<p>The cost is coverage. Anything not in those CSVs does not exist as far as the skill is concerned, and the agent is told not to invent it. If your product type is not in <code>products.csv</code>, the skill's honest answer is a 0-result retry, not a design.</p>
<p>Three things to check before adopting it:</p>
<ol>
<li>Run the search script once by hand with a product type you know. Confirm you get a row, not an empty array.</li>
<li>Ask for something absent from the catalogues and confirm the agent reports the miss instead of making something up.</li>
<li>Check <code>data-provenance.json</code>'s <code>verifiedAt</code> against today. If it is more than 90 days old, the catalogs are past their own review interval.</li>
</ol>
<p>Catalogue sizes, column names, import lists and the SKILL.md directives were read from the repository on 2026-11-20: <a href="https://raw.githubusercontent.com/nextlevelbuilder/ui-ux-pro-max-skill/main/.claude/skills/ui-ux-pro-max/SKILL.md">SKILL.md</a> and <a href="https://raw.githubusercontent.com/nextlevelbuilder/ui-ux-pro-max-skill/main/.claude/skills/ui-ux-pro-max/data/catalog-summary.json">catalog-summary.json</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Your SVG optimizer silently broke your icon. Here's the one-line check.]]></title><description><![CDATA[An optimizer can return a smaller SVG whose path data reads NaN. Here is the arc-command trigger and a one-line check for broken files.]]></description><link>https://devlog-notes.hashnode.dev/your-svg-optimizer-silently-broke-your-icon-here-s-the-one-line-check</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/your-svg-optimizer-silently-broke-your-icon-here-s-the-one-line-check</guid><category><![CDATA[SVG]]></category><category><![CDATA[Performance Optimization]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Thu, 19 Nov 2026 14:02:14 GMT</pubDate><content:encoded><![CDATA[<p>I spent an afternoon comparing SVG optimizers on a set of 28 real icons from Simple Icons. The sizes looked fine. Two files made the batch tool crash. Three of them produced a file that opened without complaint, rendered as a blank square, and reported a <em>smaller</em> byte count than the original.</p>
<p>The reason: the optimizer had replaced path coordinates with the literal string <code>NaN</code>.</p>
<p>This post is what I learned about the failure, how to detect it in one command, and why a preview can show you a perfect icon while the file you download is broken.</p>
<h2>What <code>NaN</code> in a path means</h2>
<p>A <code>&lt;path d="..."&gt;</code> is a list of drawing commands followed by numbers. Producing an optimized file means parsing those numbers, converting relative moves to absolute ones, rounding them, and printing them back. <code>NaN</code> ("not a number") is what a program writes when one of those steps produced something it could not compute.</p>
<p><code>NaN</code> is not a valid coordinate. The browser stops drawing that part of the shape. Depending on where it lands you get a missing subpath, a warped outline, or nothing at all.</p>
<p>And here is the part that makes it dangerous: <strong>the file is still well-formed XML</strong>. No error, no warning, opens fine in any editor, passes any "is this valid XML" check. The only sign is the three letters.</p>
<h2>Where it comes from: arc commands with joined flags</h2>
<p>When I bisected the input, the trigger turned out to be a syntax detail, not the artwork.</p>
<p>An arc command (<code>A</code> absolute, <code>a</code> relative) takes seven numbers: two radii, a rotation, <strong>two single-digit flags</strong>, and a destination point. The SVG spec says those flags are single digits, and that a separator before them is <em>optional</em>. So both of these are valid and mean the same thing:</p>
<pre><code class="language-xml">&lt;path d="M2 2A1 1 0 01 0 2z"/&gt;   &lt;!-- flags written as 01 --&gt;
&lt;path d="M2 2A1 1 0 0 1 0 2z"/&gt; &lt;!-- flags written as 0 1 --&gt;
</code></pre>
<p>In the build I tested, the first form came out as:</p>
<pre><code class="language-plaintext">a1 1 0 1 0 0 NaN
</code></pre>
<p>A coordinate replaced by <code>NaN</code>. The second form was fine.</p>
<p>Two findings that saved me a lot of wrong conclusions:</p>
<ul>
<li><strong>It is not self-reproducing.</strong> Feeding the broken build's own output back in worked fine, because it writes flags <em>with</em> a space on the way out. So the corruption only hits input that arrived packed.</li>
<li><strong>It is version-dependent.</strong> The same file fails in one optimizer version and succeeds in another, because the path parsing and number formatting code differs. A regression test against your actual tool is the only reliable answer.</li>
</ul>
<table>
<thead>
<tr>
<th>Input form</th>
<th>Result in the tested build</th>
<th>What it means</th>
</tr>
</thead>
<tbody><tr>
<td><code>A1 1 0 01 0 2</code> (flags joined)</td>
<td>Coordinate replaced by <code>NaN</code></td>
<td>Check any file using this form</td>
</tr>
<tr>
<td><code>A1 1 0 0 1 0 2</code> (flags spaced)</td>
<td>Correct output</td>
<td>Still verify the drawing</td>
</tr>
<tr>
<td>Any file, another version</td>
<td>Undetermined</td>
<td>Version matters — test with your own tool</td>
</tr>
</tbody></table>
<p>The spec reference: <a href="https://www.w3.org/TR/SVG11/paths.html#PathDataEllipticalArcCommands">W3C SVG 1.1, elliptical arc commands</a>.</p>
<h2>Why the preview lied to me</h2>
<p>The UI showed <code>1.62k → 1.45k ↓10.1%</code> next to a perfectly drawn logo. Download the file and it renders as nothing.</p>
<p>The preview was built from the <em>original</em> markup, not the optimized output. So the image was a faithful rendering of my source file — displayed next to a byte count that referred to a different file. Two halves of the same interface describing two different files.</p>
<p>Even a preview built from the real output can miss it at the wrong scale. Icons are shown large in a tool and small on a page. A missing subpath inside a letter is invisible at 24px and obvious in a navbar at 400% zoom.</p>
<h2>The one-line check</h2>
<p>The defect is a literal string, so a text search finds it:</p>
<pre><code class="language-bash">grep -c NaN icon.svg
# 0 on a clean file; anything above 0 means a broken path
</code></pre>
<p>For a whole folder before you publish:</p>
<pre><code class="language-bash">grep -rc NaN assets/
</code></pre>
<p>PowerShell:</p>
<pre><code class="language-powershell">(Select-String -Path .\*.svg -Pattern NaN).Count
</code></pre>
<p>No terminal? Open the file in an editor and search for <code>NaN</code>. One match is enough to reject it.</p>
<p>This catches <em>this</em> class of defect. It does not catch a coordinate rounded into a slightly different curve, an <code>id</code> removed while your CSS still targets it, or a <code>viewBox</code> dropped while the layout expects scaling. Those need a visual comparison. Do both.</p>
<h2>Checklist before you replace an asset</h2>
<table>
<thead>
<tr>
<th>Step</th>
<th>What it catches</th>
</tr>
</thead>
<tbody><tr>
<td>Search the output for <code>NaN</code></td>
<td>Coordinates the optimizer failed to compute</td>
</tr>
<tr>
<td>Compare drawing to source at final display size</td>
<td>Changed curves, missing subpaths, lost detail</td>
</tr>
<tr>
<td>Confirm <code>viewBox</code> and dimensions survived</td>
<td>Broken scaling in responsive layouts</td>
</tr>
<tr>
<td>Check <code>id</code>s your CSS or scripts reference</td>
<td>Highlight, masking and animation silently stopping</td>
</tr>
<tr>
<td>Keep the original until the replacement is verified</td>
<td>Lost source if the result is unusable</td>
</tr>
</tbody></table>
<p>None of this takes long for one icon, and together it costs less than finding a broken logo in production. The size number is evidence about bytes, not about correctness.</p>
<h2>If a file comes back broken</h2>
<p>Keep the original, and record the optimizer version and settings. Try a different version, or turn off the path-rewriting pass — that is the pass most likely responsible. If the file came from an icon library, check whether a newer release exists; upstream fixes sometimes remove the syntax that triggers it.</p>
<p>Turning path rewriting off gives up most of the size reduction on path-heavy artwork, so treat it as a fallback, not a default.</p>
<hr />
<p>I hit this while working on <a href="https://svg-optimize.com/">SVG Optimize</a>, a free browser tool that reduces SVG markup locally without uploading the file. The bug was in the bundled optimizer, not in SVGO itself — current SVGO handled all 28 icons correctly. I replaced the bundle, added a guard that rejects any output containing <code>NaN</code>, and wrote up the full investigation with the arc-command repro at <a href="https://svg-optimize.com/svg-nan-path">svg-optimize.com/svg-nan-path</a>.</p>
<p>If you have a folder of icons you have not re-checked since the last time you optimized them:</p>
<pre><code class="language-bash">grep -rl NaN path/to/icons/
</code></pre>
<p>Any file it lists is worth a second look.</p>
]]></content:encoded></item><item><title><![CDATA[Why Does DeepSeek Harness Exit with 0xC0000142?]]></title><description><![CDATA[Diagnose Windows sandbox startup failures in DeepSeek Harness: compare reported causes, choose workarounds, and keep security boundaries clear.]]></description><link>https://devlog-notes.hashnode.dev/why-does-deepseek-harness-exit-with-0xc0000142</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/why-does-deepseek-harness-exit-with-0xc0000142</guid><category><![CDATA[AI]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Mon, 16 Nov 2026 03:35:36 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af6c954a32c750c4dd7f05e/4d8579e5-f6f0-4000-85d2-6809f4c0f993.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><strong>A Windows command that exits with</strong> <code>0xC0000142</code> <strong>under DeepSeek Harness may fail during restricted process initialization, before the command itself runs; compare modes and host evidence before selecting a workaround.</strong></p>
<h2>What does this exit code tell you?</h2>
<p>The decimal exit code <code>3221225794</code> corresponds to <code>0xC0000142</code>, reported as <code>STATUS_DLL_INIT_FAILED</code>. In <a href="https://github.com/deepseek-ai/deepseek-harness/discussions/8991">discussion #8991</a>, a user reports that even <code>exit 0</code> fails under <code>workspace-write</code>, with no output or diagnostic. That is a useful small reproduction: a command intended to do nothing still fails. It is not, by itself, proof of which initialization step failed on your machine.</p>
<p>The <a href="https://deepseek-harness.github.io/deepseek-harness/en/reference/subsystems/sandbox">sandbox reference</a> describes a Windows ACL restricted-token backend. The policy concerns file effects; <code>workspace-write</code> permits writes inside the workspace and a backend-defined temporary area, while <code>danger-full-access</code> bypasses confinement. A sandbox runner failure and a command rejected by an otherwise functioning sandbox are different problems. The reference explicitly says an exit status alone does not prove a runner failure.</p>
<p><img src="https://cdn.hashnode.com/uploads/covers/6af6c954a32c750c4dd7f05e/1fd188d5-97e7-4b49-b81b-b672061d1e1c.png" alt="Windows sandbox diagnosis: compare modes, inspect host evidence, then choose a bounded workaround" /></p>
<h2>Which root causes have users reported?</h2>
<p>There is no single established cause for every occurrence. <a href="https://github.com/deepseek-ai/deepseek-harness/discussions/10066">Discussion #10066</a> reports a desktop case in which the Electron GUI-subsystem executable was used to launch the runner. Its author reproduced failure when a restricted console child needed a new console, and success using a console-attached runner. The same report proposes a Node-based runner workaround; its paths and packaging details are specific to that installation.</p>
<p><a href="https://github.com/deepseek-ai/deepseek-harness/discussions/11223">Discussion #11223</a> reports a different controlled experiment: a capability SID in the restricting list allegedly had no read access entry on System32, causing initialization to fail even on an inherited-stdio path. The author presents this as a second trigger. These are user investigations, not an official universal diagnosis, and the latter discussion is unanswered. The observations do not make either explanation applicable to all machines.</p>
<p>The reports also differ in consequences. <a href="https://github.com/deepseek-ai/deepseek-harness/discussions/8067">Discussion #8067</a> describes intermittent child-startup popups while the application continued; <a href="https://github.com/deepseek-ai/deepseek-harness/discussions/11214">#11214</a> reports every sandboxed shell command failing and proposes a default-DACL change. A popup that accompanies otherwise successful work and a consistently failed tool call deserve separate investigation.</p>
<table>
<thead>
<tr>
<th>Evidence</th>
<th>What it suggests</th>
<th>What it does not establish</th>
</tr>
</thead>
<tbody><tr>
<td><code>exit 0</code> fails without output</td>
<td>Investigate startup and confinement</td>
<td>The exact ACL or console cause</td>
</tr>
<tr>
<td><code>read-only</code> works, <code>workspace-write</code> fails</td>
<td>Compare mode-dependent setup</td>
<td>That all restricted processes are safe or functional</td>
</tr>
<tr>
<td>Full access works</td>
<td>Bypassing confinement changes the result</td>
<td>That full access repairs the sandbox</td>
</tr>
<tr>
<td>A popup appears but work continues</td>
<td>One child may have failed</td>
<td>That every command failed</td>
</tr>
</tbody></table>
<h2>How can you narrow the failure safely?</h2>
<ol>
<li>Record the Windows and DSH versions, desktop or other host, workspace location, effective permission mode, exact exit code, and whether output or a popup appeared. Remove secrets and private paths before sharing logs.</li>
<li>Reproduce with a harmless command such as <code>exit 0</code> through the affected shell tool. Compare it with the result outside the affected execution path; record which path produced each result. Avoid testing writes to sensitive locations.</li>
<li>If your deployment exposes a <code>read-only</code> mode, compare the same harmless operation there. A difference is evidence for investigation, not proof of a specific cause. <code>read-only</code> cannot substitute for a workflow requiring writes.</li>
<li>Compare the application host and console observations with the linked reports. Capture the runner diagnostic if one exists. A bare exit code may not be classified as infrastructure failure, as the reports describe.</li>
<li>Check the current project discussion and release notes for your installed build before changing configuration. Record what changed and repeat the same minimal test after any update.</li>
</ol>
<p>These steps isolate variables. They do not require a guessed ACL change, an undocumented command-line flag, or an assumption that the report's local patch is already shipped.</p>
<h2>What workarounds are actually documented or reported?</h2>
<p>For read-only investigation, use <code>read-only</code> only where your deployment offers it and the task needs no file writes. The sandbox reference defines its intended file-effect policy; Windows enforcement is reported as partial, so do not treat it as an absolute boundary. A result in this mode helps narrow the problem but may not unblock editing.</p>
<p>The author of #10066 reports routing the runner through a bundled console <code>node.exe</code> plus an unpacked runner shim. The example depends on actual installation paths and on how the desktop package exposes its files. The author of #11214 proposes a source change to the restricted token's default DACL; #11223 describes a separate access-check finding. None is a verified general-purpose fix in the cited discussion. Read the entire relevant thread and match its environment before attempting an advanced, reversible experiment.</p>
<p>The reference states that <code>danger-full-access</code> runs the original command without <code>ctx.sandbox</code>. It may change the symptom, and #10066 reports it working locally, but it removes confinement. Use it only when you accept that exposure for a trusted task and environment; restore the prior setting afterward. It is a diagnostic or exceptional workaround, not a repair to the restricted runner. See <a href="https://dsh-plugin.com/blog/permission-presets-approval-sandbox">permission presets</a> for the separate approval implications.</p>
<h3>What should a useful comparison contain?</h3>
<p>Keep the test as small as possible and change one condition at a time. For example, record the same harmless command in the affected tool, the effective mode and the resulting exit code. If an available read-only path succeeds, save that result alongside the failing workspace-write result. A comparison is more actionable when it includes both outcomes, rather than merely saying that the application “does not work.” Record whether the task was started from the desktop application or another host; a report about one host cannot establish the behavior of another.</p>
<p>A useful issue report also distinguishes an interactive Windows dialog from the shell tool's own result. Record whether the command completed, whether any output appeared and whether DSH itself continued to respond. Discussion #8067 describes a popup without stopping the application, whereas #8991 describes a command failure. Those observations can coexist across machines without implying that the same failure path caused both. Include only sanitized evidence; a workspace name or command output may reveal private project information.</p>
<h3>Why not copy the proposed fixes immediately?</h3>
<p>The #10066 runner workaround refers to a console executable and an unpacked shim. The discussion explains that packaging matters because ordinary Node cannot read the application's archive in the same way. An example containing placeholder paths is therefore not a ready-to-run recipe. Verify the installed layout and understand how to restore the old configuration before making a local experiment. If the evidence does not match that report, a different runner may not address the problem at all.</p>
<p>The later SID and default-DACL investigations offer other explanations and code proposals. They are valuable evidence to give maintainers, but changing a host's access rules or applying a third-party source patch affects a security boundary. The supplied references do not establish a released fix that works across all of these reports. Keep track of the version and exact change being tested, then run both a harmless command and the permitted task in a disposable or otherwise suitable workspace. A single success cannot establish that restrictions still work as intended.</p>
<p>If the only workable path is a full-access session, decide first whether the task truly needs that access. Inspect commands before running them, use a workspace without unnecessary sensitive material and return to the earlier settings afterward. The approval policy must be considered independently: full access does not itself tell you how an approval request is handled. A team maintaining a shared deployment should document that temporary exception so another user does not mistake it for the normal protected configuration.</p>
<p>A useful final check is to compare the original task with the minimal reproduction. If the minimal command now succeeds but the task still fails, examine the task's own error and requested file effects rather than continuing to attribute everything to startup. If the original symptom remains, preserve the before-and-after evidence and share the sanitized comparison in the relevant discussion. This makes it easier to distinguish a local workaround from a change that should be investigated upstream.</p>
<h2>What are the limits and safety boundaries?</h2>
<p>Do not broadly grant access to system directories or modify Windows security descriptors based only on this exit code. The discussions propose different mechanisms and do not establish the permissions needed on your host. Running the application elevated is also not established by these sources as a fix. A copy-pasted local path can refer to a different runtime or nonexistent shim.</p>
<p>The sandbox vocabulary covers file effects, not network isolation or process visibility. Windows ACL enforcement is documented as partial, including hard-link, unrestricted-read and AppContainer ACL boundaries. A successful test is evidence for that test only. If the task depends on a strong security boundary, stop and use an environment whose controls you can verify, rather than treating a successful command as a security audit.</p>
<h2>Glossary</h2>
<ul>
<li><code>0xC0000142</code>: the Windows initialization failure status reported in the linked reproductions; its presence alone does not identify the cause.</li>
<li><strong>Restricted token</strong>: the Windows execution mechanism used by the documented ACL backend to apply restrictions to a child process.</li>
<li><strong>SID and ACE</strong>: a security identifier and an access-control entry; discussion #11223 investigates how a restricting SID interacts with an access check.</li>
<li><strong>Runner</strong>: the component that wraps and starts a confined command; it can fail before the requested command has done useful work.</li>
<li><code>workspace-write</code>: a file-effect mode permitting workspace and backend-defined temporary writes, subject to the backend's stated enforcement.</li>
</ul>
<hr />
<p><em>Originally published at</em> <a href="https://dsh-plugin.com/blog/windows-sandbox-0xc0000142">https://dsh-plugin.com/blog/windows-sandbox-0xc0000142</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Connecting DSH to an internal MCP server that requires OAuth]]></title><description><![CDATA[Wrap an OAuth-only internal MCP server in a stdio proxy, then work through three layers of silent plugin-loader failure: module scope, insert semantics…]]></description><link>https://devlog-notes.hashnode.dev/connecting-dsh-to-an-internal-mcp-server-that-requires-oauth</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/connecting-dsh-to-an-internal-mcp-server-that-requires-oauth</guid><category><![CDATA[mcp]]></category><category><![CDATA[AI]]></category><category><![CDATA[Security]]></category><category><![CDATA[tooling]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Sun, 15 Nov 2026 04:30:07 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af6c954a32c750c4dd7f05e/db68d9ca-d495-4f43-b144-95990ce3d09e.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><strong>The MCP plugin that ships with DSH has no OAuth support, and the expensive part of this task was not code — it was three layers of silent failure in the plugin loader.</strong> I put a stdio proxy in front of an internal MCP server, ended up with 33 registered tools, and hit ten distinct traps; each one was only located by reading logs and dumping the merged config tree.</p>
<p>Environment: DeepSeek Harness <code>0.2.2-rc.2</code> (Electron 44.7.0 / bundled Node 24.21.0), host Node <code>v22.12.0</code>, the app's bundled pnpm <code>11.28.5</code>, <code>mcp-remote@0.16.6</code>, MCP SDK <code>@modelcontextprotocol/client@2.2.0</code>.</p>
<p>The goal was to let an agent query internal log and trace services, with sign-in going through standard dynamic OAuth (PKCE plus dynamic client registration) instead of a hand-pasted long-lived token.</p>
<h2>The short version</h2>
<table>
<thead>
<tr>
<th>#</th>
<th>Symptom</th>
<th>Root cause</th>
<th>Fix</th>
</tr>
</thead>
<tbody><tr>
<td>1</td>
<td>No OAuth or auth field anywhere in the MCP config</td>
<td><code>createTransport</code> builds only stdio and streamable-http transports, with no <code>authProvider</code> hook</td>
<td>Put <code>mcp-remote</code> in front as a stdio proxy and let it own OAuth</td>
</tr>
<tr>
<td>2</td>
<td>Direct HTTPS calls fail with <code>UNABLE_TO_VERIFY_LEAF_SIGNATURE</code></td>
<td>The internal CA is not in Node's trust chain</td>
<td>On a link that is already internal, use <code>http://</code> plus <code>--allow-http</code></td>
</tr>
<tr>
<td>3</td>
<td>Consent completes but no connection is established</td>
<td>The callback uses <code>localhost</code> (which can resolve to <code>::1</code>) while the local listener binds <code>127.0.0.1</code></td>
<td><code>--host 127.0.0.1 --bind-host 127.0.0.1</code></td>
</tr>
<tr>
<td>4</td>
<td><code>command: npx</code> in the config never starts</td>
<td>The app process PATH holds only system directories — no node, no npx</td>
<td>Use absolute paths for <code>node</code> and <code>proxy.js</code></td>
</tr>
<tr>
<td>5</td>
<td>The built-in MCP plugin package cannot be resolved from the profile</td>
<td>An entry's <code>name</code> resolves in the profile scope; packages inside <code>app.asar</code> are not in it</td>
<td>Install the plugin and its peer closure into the profile with the app's pnpm</td>
</tr>
<tr>
<td>6</td>
<td>A newly added plugin entry "does nothing" and logs stay empty</td>
<td>A top-level <code>- id:</code> only overrides an existing entry; an unknown id is dropped whole</td>
<td>New plugins must go inside a <code>- insert: [...]</code> list</td>
</tr>
<tr>
<td>7</td>
<td>The module is imported but <code>apply</code> never runs</td>
<td>One indent level short: the keys under <code>config:</code> became siblings, so the merged entry has <code>config: null</code></td>
<td>Fix the indentation — keys two spaces deeper than <code>config:</code></td>
</tr>
<tr>
<td>8</td>
<td>Startup fails and the UI says plugins are waiting for services</td>
<td>An absolute-path hook file referenced by the patch was deleted by an external tool → <code>ERR_MODULE_NOT_FOUND</code></td>
<td>Copy the file back from the package template</td>
</tr>
<tr>
<td>9</td>
<td>After an app upgrade, rc.1 plugins "disappear" from the profile</td>
<td>The loader audits versions strictly, skips an incompatible bundle whole, and prints one line to stderr</td>
<td>Align every profile dependency to the same version</td>
</tr>
<tr>
<td>10</td>
<td>Latency comparison numbers were not trustworthy</td>
<td>The test script talked to MCP directly, bypassing the native DSH tools</td>
<td>Delete the scratch script; confirm <code>mcp__ops__*</code> really appears in the tool list</td>
</tr>
</tbody></table>
<h2>Capability boundary: why the official plugin cannot just do OAuth</h2>
<p>The compiled output is enough (<code>@deepseek-ai/dsh-mcp-client/lib/index.js</code>):</p>
<pre><code class="language-js">function createTransport(config) {
  switch (config.transport) {
    case 'stdio': return new StdioClientTransport({ command, args, env, cwd })
    case 'streamable-http':
      return new StreamableHTTPClientTransport(new URL(config.url), {
        requestInit: { headers: config.headers }   // static headers only
      })
  }
}
</code></pre>
<ul>
<li>The config schema only exposes <code>url</code> and <code>headers</code> (values may be <code>!!js</code> expressions such as <code>Bearer ${process.env.MCP_TOKEN}</code>). There is no <code>authProvider</code>.</li>
<li>The bundled MCP SDK does support OAuth — <code>OAuthClientProvider</code>, <code>UnauthorizedError</code>, and <code>registration_endpoint</code> are all present.</li>
<li>The server side was a standard implementation: 401 with <code>WWW-Authenticate: Bearer ... resource_metadata=...</code> → RFC 9728 protected-resource metadata carrying <code>authorization_endpoint</code>, <code>token_endpoint</code>, <code>registration_endpoint</code> (DCR), and <code>code_challenge_methods_supported: ["S256"]</code>.</li>
</ul>
<p>So <strong>the gap is purely the client plugin's wiring</strong>. Either fork the plugin, or wrap a stdio MCP server that knows how to do OAuth around it. I chose the latter: no code to maintain, and nothing breaks when the app updates. This is the same layering that decides which config wins in <a href="https://dsh-plugin.com/blog/config-layer-precedence">config layer precedence</a>; the difference only shows up at runtime.</p>
<h2>The approach: let a stdio proxy own OAuth</h2>
<p><img src="https://cdn.hashnode.com/uploads/covers/6af6c954a32c750c4dd7f05e/556819b0-2695-4477-9003-a76c5ee48a45.png" alt="How DSH reaches an internal MCP server through a stdio proxy" /></p>
<p><code>mcp-remote</code> handles the whole OAuth dance: dynamic registration → PKCE → browser consent → token exchange → automatic refresh, with tokens cached at <code>~/.mcp-auth/mcp-remote-v1/&lt;hash&gt;_tokens.json</code>. DSH sees nothing but an ordinary stdio MCP server.</p>
<h3>Trap 1: the certificate chain</h3>
<p>Direct HTTPS calls returned:</p>
<pre><code class="language-plaintext">UNABLE_TO_VERIFY_LEAF_SIGNATURE
</code></pre>
<p>The internal CA is in the system keychain; Node does not consult it. Three options: inject <code>NODE_EXTRA_CA_CERTS</code>, set <code>NODE_TLS_REJECT_UNAUTHORIZED=0</code> (don't), or use plain http on a link that is already internal. I took the third:</p>
<pre><code class="language-plaintext">http://mcp-gateway.internal.example/mcp --transport http-only --allow-http
</code></pre>
<p><code>--allow-http</code> is required; <code>mcp-remote</code> refuses cleartext endpoints otherwise. <strong>This only makes sense when the link itself is internal</strong> — never do it for a public endpoint. The diagnostic path is the same one described in <a href="https://dsh-plugin.com/blog/troubleshoot-tls-certificate-errors-with-a-corporate-proxy">TLS certificate errors behind a corporate proxy</a>.</p>
<h3>Trap 2: <code>localhost</code> is not <code>127.0.0.1</code></h3>
<p>After clicking "allow", the browser returned to <code>http://localhost:&lt;port&gt;/callback</code>, but the local listener was bound to <code>127.0.0.1</code>. In some environments <code>localhost</code> resolves to the IPv6 <code>::1</code> first, so the callback never lands → the page looks like a success while the connection is never established. Two flags and the whole flow finished in three seconds:</p>
<pre><code class="language-plaintext">--host 127.0.0.1 --bind-host 127.0.0.1
</code></pre>
<p><code>--host</code> decides the generated redirect URI; <code>--bind-host</code> decides the actual listen address. You need both.</p>
<h3>Trap 3: the host PATH is minimal</h3>
<p>The DSH app process gets:</p>
<pre><code class="language-plaintext">/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
</code></pre>
<p>No <code>node</code>, no <code>npx</code>. The <code>mcp-remote</code> shim starts with <code>#!/usr/bin/env node</code>, so <code>command: npx</code> always fails. Absolute paths are mandatory:</p>
<pre><code class="language-yaml">command: /Users/you/.n/bin/node
args:
  - '/Users/you/.n/lib/node_modules/mcp-remote/dist/proxy.js'
</code></pre>
<h2>Three layers of silent failure in the plugin loader</h2>
<p>This is where most of the time went, and it is the part worth writing down.</p>
<p><img src="https://cdn.hashnode.com/uploads/covers/6af6c954a32c750c4dd7f05e/1c35ad4d-d986-4312-92a1-4846e02acde1.png" alt="Three layers of silent failure: module scope, patch syntax, YAML indentation" /></p>
<h3>Layer 1: module resolution scope</h3>
<p>DSH merges the plugin tree in layers (bundle → patch), and each entry's <code>name</code> resolves in a specific scope:</p>
<ul>
<li><strong>Absolute path</strong>: anchored in the profile directory; relative paths anchor next to the patch file.</li>
<li><strong>Package name</strong>: resolved from the <strong>profile's</strong> <code>node_modules</code>. Packages inside <code>app.asar</code> are <strong>not</strong> in that scope.</li>
</ul>
<p>So the built-in <code>@deepseek-ai/dsh-mcp-client</code>, which the app itself uses every day, cannot be referenced from a patch. Symlinking it into <code>app.asar</code> does not work either (the ESM realpath check rejects it). The correct move is to install it into the profile:</p>
<pre><code class="language-bash">cd ~/.dsh/profiles/desktop
ELECTRON_RUN_AS_NODE=1 "/Applications/DeepSeek Harness.app/Contents/MacOS/DeepSeek Harness" \
  ".../runtime/primary-runtime/dependencies/pnpm/bin/pnpm.mjs" \
  add @deepseek-ai/dsh-mcp-client@0.2.2-rc.2
</code></pre>
<p>Use <strong>the pnpm bundled with the app</strong>: it requires Node ≥ 22.13 and the host has 22.12.0, so run it with <code>ELECTRON_RUN_AS_NODE=1</code> to borrow Electron's Node 24. After that it reports each missing peer in turn — <code>dsh-scope</code> → <code>cordis</code> → <code>dsh-http-proxy</code> → <code>dsh-llm</code> — until the peer closure is complete. Installing a plugin package by hand is also covered in <a href="https://dsh-plugin.com/blog/install-a-local-plugin-checkout-into-a-profile">installing a local plugin checkout into a profile</a>.</p>
<h3>Layer 2: <code>insert</code> versus override</h3>
<p><code>cordis.patch.yml</code> is the patch layer, and an entry has two possible meanings.</p>
<p>A bare <code>- id:</code> only overrides an entry that <strong>already exists</strong>. An unknown id is dropped whole, with nothing reported — an easy level to get wrong:</p>
<pre><code class="language-yaml">- id: mcp-ops-oauth
  name: '@deepseek-ai/dsh-mcp-client'
</code></pre>
<p>A new plugin must sit inside an <code>insert</code> list:</p>
<pre><code class="language-yaml">- insert:
    - id: mcp-ops-oauth
      name: '@deepseek-ai/dsh-mcp-client'
      config: {...}
</code></pre>
<p>The loader's <code>failOnStartupError</code> defaults to <code>false</code>, so the drop is <strong>silent</strong>. I copied an existing managed block and missed this wrapper.</p>
<h3>Layer 3: indentation — imported but never applied</h3>
<p>Even inside <code>insert</code> nothing happened. Temporary instrumentation showed:</p>
<pre><code class="language-plaintext">[mcp] plugin module loaded      ← the module really was imported
(the apply line never appears)  ← but apply never ran
</code></pre>
<p>To separate "entry not mounted" from "waiting for a service", I added a probe plugin with the same shape (also <code>inject: ['tools']</code>). Its <code>apply</code> ran, which proved the entry was mounted and the <code>tools</code> service existed.</p>
<p>Dumping the merged tree made the real problem obvious:</p>
<pre><code class="language-yaml">- id: mcp-ops-oauth
  name: '@deepseek-ai/dsh-mcp-client'
  config: null                  # ← empty
  serverName: ops               # ← every config key landed at entry level
  transport: stdio
</code></pre>
<p><code>config:</code> sat at six spaces and its keys also at six, making them siblings. Schema validation failed, cordis never created the plugin instance, so the module was imported but never applied. One more indent level and it logged <code>ready outcome=ok</code> immediately.</p>
<blockquote>
<p>Rule of thumb: after <code>insert</code>, keys under <code>config:</code> must be indented deeper than the <code>- id:</code> line, and <code>args:</code> — a grandchild of <code>config</code> — one level deeper still.</p>
</blockquote>
<h2>A startup failure is not always the MCP plugin's fault</h2>
<p>After the config change, the app would not start and the UI reported several plugins "waiting for services". The crash log (<code>~/Library/Logs/DeepSeek Harness/crash-*.log</code>) held exactly one real error:</p>
<pre><code class="language-plaintext">agent-hooks → ERR_MODULE_NOT_FOUND
  ~/.dsh/hooks/agent-stop-hook.mjs
</code></pre>
<p>An external tool had rewritten that hook plugin's managed block that day without writing the hook file back to disk, while the patch still referenced its absolute path → the plugin failed to load → startup stalled, and every other plugin merely looked like it was waiting. For the general ordering of that investigation, see <a href="https://dsh-plugin.com/blog/pending-plugins-missing-services-diagnostics">what to check first when a plugin waits for services</a>.</p>
<p>Plugins whose patch references an absolute-path file are <strong>soft dependencies</strong>: delete the file and startup dies, and the error never points at the patch file itself.</p>
<p>Two operational traps as well:</p>
<ul>
<li>After a failed start, <code>open -a</code> does not relaunch (the main process hangs), and <code>osascript quit</code> returns <code>-128</code> because the failure dialog blocks it.</li>
<li>Send <code>kill -TERM</code> first, fall back to <code>kill -9</code>, then <code>open -a</code>.</li>
</ul>
<h2>An upgrade silently skipped plugins</h2>
<p>The app auto-upgraded from <code>0.2.2-rc.1</code> to <code>0.2.2-rc.2</code> while the profile still held rc.1. The loader audits versions strictly, skips an incompatible bundle whole, and prints one line to stderr:</p>
<pre><code class="language-plaintext">dsh: skipping profile bundle "@deepseek-ai/dsh-subagent-codex": Error: Plugin
...@0.2.2-rc.1 is incompatible with dsh 0.2.2-rc.2 ...
</code></pre>
<p>A normally started app shows no stderr at all — the symptom is simply "the codex / claude-code subagent features quietly vanished". Upgrading both subagent packages to rc.2 and re-running <code>--dump-config</code> left stderr clean.</p>
<blockquote>
<p>Rule: after an app upgrade, align every <code>@deepseek-ai/*</code> dependency in the profile to the same version.</p>
</blockquote>
<h2>The diagnostic toolbox</h2>
<h3><code>--dump-config</code>: read the merged tree</h3>
<p>The desktop profile is owned exclusively by the Electron app, so it cannot be dumped directly — but a copy can:</p>
<pre><code class="language-bash">mkdir -p /tmp/dshhome/profiles/test
cp ~/.dsh/profiles/desktop/{cordis.yml,cordis.patch.yml,package.json,pnpm-lock.yaml} /tmp/dshhome/profiles/test/
ln -s ~/.dsh/profiles/desktop/node_modules /tmp/dshhome/profiles/test/node_modules

DSH_HOME=/tmp/dshhome ELECTRON_RUN_AS_NODE=1 \
  "/Applications/DeepSeek Harness.app/Contents/MacOS/DeepSeek Harness" \
  ".../app.asar/dsh/node_modules/@deepseek-ai/dsh/lib/bin.js" \
  --profile test --dump-config
</code></pre>
<p>It answers three questions at once: did the entry reach the tree, is <code>config</code> nested correctly, and which bundle did the version audit skip (watch stderr).</p>
<h3>Reading app.asar with Electron-as-Node</h3>
<p>Plain <code>cat</code> cannot read asar, but Electron in Node mode has asar support in <code>fs</code>:</p>
<pre><code class="language-bash">ELECTRON_RUN_AS_NODE=1 "/Applications/DeepSeek Harness.app/Contents/MacOS/DeepSeek Harness" -e '
  const fs = require("fs")
  const f = "/Applications/DeepSeek Harness.app/Contents/Resources/app.asar/dsh/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js"
  console.log(fs.readFileSync(f, "utf8").slice(0, 2000))
'
</code></pre>
<p>Plugin sources, the loader implementation, and <code>package.json</code> versions all came from this.</p>
<h3>Tiered probes</h3>
<ul>
<li><strong>Probe A</strong> (<code>inject: []</code>): does the patch <code>insert</code> mechanism work at all?</li>
<li><strong>Probe B</strong> (<code>inject: ['tools']</code>, same shape as the failing plugin): is the required service present, and is the entry actually mounted?</li>
<li><strong>Instrumentation</strong>: one line to <code>/tmp/*.log</code> at module top level, the <code>apply</code> entry, <code>createTransport</code>, <code>connection.ready</code>, and <code>syncTools</code>, plus handlers for <code>uncaughtException</code> and <code>unhandledRejection</code>.</li>
</ul>
<p>Note that <code>pnpm add</code> overwrites hand-edited files, so instrumentation disappears after an upgrade — that is not "the instrumentation stopped working".</p>
<h3>Other</h3>
<ul>
<li><code>pgrep -fl "mcp-remote/dist/proxy.js"</code>: did the stdio child process start?</li>
<li><code>~/Library/Logs/DeepSeek Harness/crash-*.log</code>: the only trustworthy record of a failed start.</li>
<li>A healthy app writes almost nothing to stderr; do not expect plugin errors there.</li>
</ul>
<h2>Two methodology traps while verifying</h2>
<ol>
<li><strong>Counting tools</strong>: my first two counts (40 and 34) were both wrong — they included <code>serverInfo.name</code> and duplicated SSE events. Count only the deduplicated raw names in <code>tools/list</code>'s <code>tools[]</code>; both paths (static token and OAuth) yield <strong>33</strong>.</li>
<li><strong>Test contamination</strong>: for a few rounds, while no native tool existed, the automation found the token in <code>~/.mcp-auth</code> and wrote its own direct MCP client. It "could query logs", but through a script rather than a DSH tool, and the latency comparison was meaningless. <strong>The only valid proof of a working integration is</strong> <code>mcp__ops__*</code> <strong>showing up in the session's tool list</strong>, not a script that can reach the server.</li>
</ol>
<h2>The final config</h2>
<p>New plugins must sit inside an <code>insert</code> list: a bare <code>- id:</code> only overrides an existing entry, and an unknown id is dropped silently (<code>failOnStartupError</code> defaults to false).</p>
<pre><code class="language-yaml">- insert:
    - id: mcp-ops-oauth
      name: '@deepseek-ai/dsh-mcp-client'
      config:
        serverName: ops
        transport: stdio
        # absolute paths: the app PATH has no node or npx
        command: /Users/you/.n/bin/node
        args:
          - '/Users/you/.n/lib/node_modules/mcp-remote/dist/proxy.js'
          - 'http://mcp-gateway.internal.example/mcp'
          - '--header'
          - 'x-mcp-client-version: 1.0.0'
          - '--transport'
          - 'http-only'
          - '--allow-http'
          - '--host'
          - '127.0.0.1'
        toolCallTimeoutMs: 180000
</code></pre>
<p>Instrumented startup log:</p>
<pre><code class="language-plaintext">[mcp] apply serverName=ops
[mcp] createTransport {"transport":"stdio","command":"/Users/you/.n/bin/node",...}
[mcp] syncTools registering 33 tools: mcp__ops__ops-global-helper, mcp__ops__ops-log, ...
[mcp] ready outcome=ok
</code></pre>
<h2>A reusable checklist</h2>
<p>When adding an MCP plugin to DSH that has to spawn its own child process, work through this in order:</p>
<ol>
<li>Does <code>name</code> point at a package inside app.asar? → <code>pnpm add</code> it into the profile first, using the app's pnpm through Electron-as-Node.</li>
<li>Is the entry new? → it must be written as <code>- insert:</code>, never a bare <code>- id:</code>.</li>
<li>Are <code>config:</code> keys indented deeper than <code>- id:</code>? → confirm with <code>--dump-config</code> that <code>config</code> is not null.</li>
<li>Is the child-process command an absolute path? → the app PATH holds only system directories.</li>
<li>Did the app version change? → align every <code>@deepseek-ai/*</code> in the profile, or whole bundles get skipped.</li>
<li>Incomplete certificate chain? → inject <code>NODE_EXTRA_CA_CERTS</code>, or use http plus <code>--allow-http</code> on an internal link.</li>
<li>Startup failing? Read the crash log, not just the "waiting for services" message in the UI.</li>
<li>The acceptance test is <code>mcp__&lt;server&gt;__*</code> in the tool list, not a script that can connect.</li>
<li>Delete probes and instrumentation when done: probe files, patch entries, <code>/tmp</code> logs, debug branches in source.</li>
</ol>
<p><strong>What these problems share is that every one of them fails silently.</strong> A plugin that is never inserted raises nothing, a malformed config raises nothing, an incompatible version prints one stderr line, and a failed start only says "waiting for services". So the transferable lesson is not the ten traps — it is the three ways of getting evidence: <code>--dump-config</code>, Electron-as-Node, and tiered probes.</p>
<hr />
<p><em>Originally published at</em> <a href="https://dsh-plugin.com/blog/connect-internal-mcp-with-oauth">https://dsh-plugin.com/blog/connect-internal-mcp-with-oauth</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Wiring a memory MCP into DeepSeek Harness: why “it remembered” can be an illusion]]></title><description><![CDATA[Six pitfalls when connecting a memory MCP to DeepSeek Harness, plus how to verify recall honestly.]]></description><link>https://devlog-notes.hashnode.dev/wiring-a-memory-mcp-into-deepseek-harness-why-it-remembered-can-be-an-illusion</link><guid isPermaLink="true">https://devlog-notes.hashnode.dev/wiring-a-memory-mcp-into-deepseek-harness-why-it-remembered-can-be-an-illusion</guid><category><![CDATA[mcp]]></category><category><![CDATA[tooling]]></category><category><![CDATA[Productivity]]></category><dc:creator><![CDATA[啦啦啦种太阳]]></dc:creator><pubDate>Fri, 13 Nov 2026 08:31:56 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6af6c954a32c750c4dd7f05e/5b2b2649-9789-44b3-abe7-dccd6659db1c.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><strong>Connect a memory MCP to DeepSeek Harness by installing a chosen server, applying its default-off overlay, and verifying a write and recall in separate sessions while keeping the provider's storage scope unchanged.</strong></p>
<h2>DeepSeek Harness: What does the memory MCP connection do?</h2>
<p>The <a href="https://deepseek-harness.github.io/deepseek-harness/en/guide/mcp-memory">memory MCP guide</a> offers three default-off third-party interoperability examples. DSH loads a Cordis overlay, starts a configured stdio process or connects to a Streamable HTTP server, discovers tools, and exposes them as <code>mcp__&lt;serverName&gt;__&lt;tool&gt;</code>. The provider, not DSH, owns its storage and provider-specific behavior. The <a href="https://deepseek-harness.github.io/deepseek-harness/en/reference/subsystems/tools">tools reference</a> describes tool registration and execution as separate from the external server's persistence.</p>
<p>The examples are not an endorsement or a security certification. Evaluate the server, its dependencies, storage and data handling for your own use. DSH does not download the server, initialize its database, choose its embedding provider, create an account, migrate data or supervise an independent HTTP service. An HTTP service must already be running; a stdio child is started and stopped with the DSH plugin lifecycle.</p>
<p><img src="https://cdn.hashnode.com/uploads/covers/6af6c954a32c750c4dd7f05e/6cac4544-1ffa-42dd-880d-a455c636f58b.png" alt="Memory MCP server setup and fresh-session recall" /></p>
<h2>DeepSeek Harness: Which example stores data where?</h2>
<table>
<thead>
<tr>
<th>Example</th>
<th>Transport and documented prerequisite</th>
<th>Documented storage behavior</th>
</tr>
</thead>
<tbody><tr>
<td>Memorix</td>
<td>stdio; Node 22.18+ and <code>memorix@1.3.0</code></td>
<td>Defaults to <code>~/.memorix/data</code>; detects Git project from DSH working directory</td>
</tr>
<tr>
<td>MCP Reference Memory</td>
<td>stdio; <code>@modelcontextprotocol/server-memory@2026.7.4</code></td>
<td>Example uses <code>$HOME/.dsh-mcp-reference-memory.jsonl</code> for a local knowledge graph</td>
</tr>
<tr>
<td>Engram</td>
<td>stdio; Go 1.25.10+ and the documented <code>v1.20.0</code> install, or matching binary</td>
<td>Defaults to <code>~/.engram</code>; detects Git project from DSH working directory</td>
</tr>
</tbody></table>
<p>Memorix can use local heuristic mode without a model or embedding service. The Reference Memory server stores entities, relations and observations and offers read, search and open tools. Its search uses case-insensitive substring matching over names, types and observations; it does not supply semantic retrieval, embeddings, automatic summarization, conflict resolution or a forgetting policy. Engram owns its storage and project selection. These are descriptions of the cited examples, not guarantees for other versions or servers.</p>
<h2>DeepSeek Harness: How do you enable and test one?</h2>
<p>The following is the guide's Reference Memory example. Its overlay path assumes a checkout containing the example files; adjust the path to your actual copy.</p>
<ol>
<li>Install the pinned server separately:</li>
</ol>
<pre><code class="language-sh">npm install --global @modelcontextprotocol/server-memory@2026.7.4
</code></pre>
<ol start="2">
<li>Start the Web profile with its overlay:</li>
</ol>
<pre><code class="language-sh">dsh web --patch "$PWD/apps/cli/config/examples/mcp-memory/mcp-reference-memory.cordis.yml"
</code></pre>
<ol start="3">
<li>Wait for initial asynchronous discovery and the provider's <code>mcp__...</code> tools to appear. In session A, ask it to remember a unique, non-sensitive test value; confirm a write tool was called and returned success.</li>
<li>Create session B in the same running Host without copying session A's conversation. Ask the agent to check memory for the value. Confirm a search or recall call and its result.</li>
<li>Ask a follow-up that uses the recalled value, and verify it was used. Keep the provider's storage scope the same throughout; a new session is required, but a Host restart is not.</li>
</ol>
<p>The test distinguishes persistent recall from a model repeating information already present in the same conversation. It is evidence about that value and storage scope, not proof that every future request will use memory. The guide offers an optional instruction to ask the model to write when requested and search when history may matter; the instruction supplements the existing persona and does not force tool use.</p>
<h2>DeepSeek Harness: How can you persist or turn off the connection?</h2>
<p>Omitting the <code>--patch</code> keeps all three examples disabled in the shipped composition. If the overlay was only supplied on the command line, start a subsequent run without it. If you merged its single <code>insert</code> into a persistent patch, remove that specific insertion from the relevant layer and reload or restart as appropriate; preserve unrelated patches. The documented persistent locations are <code>$DSH_HOME/profiles/&lt;name&gt;/cordis.patch.yml</code> for a profile and <code>$DSH_HOME/cordis.patch.yml</code> for the machine's profiles.</p>
<p>Turning off the connection is separate from deleting stored memory. The guide assigns storage to the provider and does not specify a universal deletion procedure. Consult the chosen provider's own documentation before removing data, and check backups and any other clients using it. For the Reference Memory example, <code>MEMORY_FILE_PATH</code> can override the example path; for Memorix <code>MEMORIX_DATA_DIR</code> changes the data location, while Engram accepts <code>ENGRAM_DATA_DIR</code> and <code>ENGRAM_PROJECT</code>. Record the actual scope before diagnosing a missing value.</p>
<p>The <a href="https://deepseek-harness.github.io/deepseek-harness/en/develop/basic/config">plugin configuration guide</a> explains that configuration is validated when a plugin loads. A malformed configuration can fail loading; that differs from a server being absent, a tool not yet discovered, or a valid search returning no match. Check the relevant layer and server output before changing unrelated configuration.</p>
<h3>What should you check when recall fails?</h3>
<p>Start with discovery. The client discovers tools asynchronously, so immediately prompting after startup can precede tool registration. If tools never appear, inspect the selected overlay, server installation and plugin configuration. If the tools appear but a call fails, check the server's own output and whether the child is in an outage or reconnecting. If the search succeeds but returns no value, compare the provider's actual file, directory or project identity with the one used for the write.</p>
<p>The two-session test deliberately holds storage scope constant. Starting a new session changes conversation history, while restarting a Host is not required. If a project-sensitive provider selects a different project after a working-directory change, the test is no longer comparing the same scope. Record the provider and effective location before changing settings; this prevents a missing result from being mistaken for a lost write.</p>
<h3>How does an overlay interact with existing configuration?</h3>
<p>The guide's examples are single insert patches. Supplying one on the command line makes it part of that run; persisting the insertion in a profile or home layer changes later runs too. Before editing a persistent file, inspect existing entries and merge the intended insertion rather than overwriting the file. When disabling it later, remove only that insertion. Restart or reload according to the active composition, then verify that the provider's tools are no longer exposed.</p>
<p>The plugin configuration guide explains that schemas validate configuration at load time. That check is useful for the DSH row but does not prove the external server is installed, healthy or appropriate for your data. Provider installation and the overlay are separate responsibilities. A remote Streamable HTTP configuration likewise depends on an already-running service and provider-specific authentication and storage choices.</p>
<p>Finally, decide what should be remembered. A model can call a write tool in response to an instruction, and a retrieved record may influence later answers. The optional instruction in the guide is a behavioral hint, not a deterministic retention or deletion policy. Treat test values, private facts and third-party data differently, and consult the chosen server's documentation for its own controls. Removing the DSH connection stops that integration from being selected in the described composition; it does not establish that stored data or backups were erased.</p>
<h2>DeepSeek Harness: What are the limits and safety boundaries?</h2>
<p>The stdio bridge removes ambient variables whose names usually identify credentials and all <code>DSH_*</code> variables before starting a child, but other environment variables remain inherited. Optional upstream secrets belong in the row's <code>config.env</code> as described by the guide, not as literal secret values in YAML. Check what the server receives and what it persists; environment filtering does not make arbitrary server code safe.</p>
<p>If an MCP child crashes, the guide describes reconnection with backoff and tool re-synchronization. Calls fail during the outage; when the retry budget is exhausted, tools are unregistered until reload or restart. Initial discovery is also asynchronous. Neither a tool's presence nor a successful test establishes that sensitive data is appropriate to store. Inspect third-party retention and access policies, and use a harmless unique value for the first test.</p>
<h2>DeepSeek Harness: What do these terms mean?</h2>
<ul>
<li><strong>MCP server</strong>: the external process or service providing tools through the Model Context Protocol.</li>
<li><strong>Overlay</strong>: a patch that inserts the configured client into the selected DSH composition.</li>
<li><strong>Stdio</strong>: a transport using the child process's standard streams.</li>
<li><strong>Storage scope</strong>: the provider's actual file, directory or project identity used for reads and writes.</li>
<li><strong>Fresh-session recall</strong>: retrieving a value in another conversation without relying on the first conversation's messages.</li>
</ul>
<hr />
<p><em>Originally published at</em> <a href="https://dsh-plugin.com/blog/memory-mcp-setup">https://dsh-plugin.com/blog/memory-mcp-setup</a>.</p>
]]></content:encoded></item></channel></rss>