<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 啦啦啦种太阳</title>
    <description>The latest articles on DEV Community by 啦啦啦种太阳 (@createsun).</description>
    <link>https://dev.to/createsun</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4240423%2F030499bf-eb84-4a73-ac7e-0768e2bba817.jpg</url>
      <title>DEV Community: 啦啦啦种太阳</title>
      <link>https://dev.to/createsun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/createsun"/>
    <language>en</language>
    <item>
      <title>A pending tool card is not proof the tool ran: tracing a DeepSeek Harness tool call</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Thu, 03 Dec 2026 02:22:20 +0000</pubDate>
      <link>https://dev.to/createsun/a-pending-tool-card-is-not-proof-the-tool-ran-tracing-a-deepseek-harness-tool-call-5857</link>
      <guid>https://dev.to/createsun/a-pending-tool-card-is-not-proof-the-tool-ran-tracing-a-deepseek-harness-tool-call-5857</guid>
      <description>&lt;p&gt;You see a pending tool card in a DeepSeek Harness session and assume the tool already ran. It may not have. The session records a model's tool call before execution, and the call still has to pass policy, guards, dispatch and result processing. A request to call a tool is not, by itself, evidence that the tool body ran.&lt;/p&gt;

&lt;p&gt;This post walks the call from request to recorded result, and says at each step what the evidence does and does not prove.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq95qid7jtjgqedcdpccl.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq95qid7jtjgqedcdpccl.webp" alt="A recorded call passes policy and guards before dispatch and final result processing" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What each stage proves
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;What it does not prove&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tool/call&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Records the requested call before execution&lt;/td&gt;
&lt;td&gt;That the tool body ran&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pre-execution and approval&lt;/td&gt;
&lt;td&gt;Apply policy and resolve a request where needed&lt;/td&gt;
&lt;td&gt;That later guards permit the call&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;tools/execute&lt;/code&gt; and body&lt;/td&gt;
&lt;td&gt;Wrap and dispatch execution&lt;/td&gt;
&lt;td&gt;That the raw body output is the final result&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Post-processing and &lt;code&gt;tools/result&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Produce and observe the authoritative outcome&lt;/td&gt;
&lt;td&gt;That the action was free of external effects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tool/result&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Record the model-facing outcome&lt;/td&gt;
&lt;td&gt;That every tool call in a batch succeeded&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Keep this table in mind while reading the rest. Most confusion about tool calls comes from reading one row as if it proved the next.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the call enters
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/reference/tool-execution-pipeline" rel="noopener noreferrer"&gt;tool execution pipeline&lt;/a&gt; begins with a tool-call block in an assistant message. The session records &lt;code&gt;tool/call&lt;/code&gt; before execution, and the UI can show a pending card using &lt;code&gt;presentCall(args)&lt;/code&gt;. A UI pending card is a presentation of the request, not an audit of what happened on the host.&lt;/p&gt;

&lt;p&gt;The call then enters &lt;code&gt;tools/pre-execute&lt;/code&gt;, a waterfall used for hooks, permission and sandbox policy. A waterfall is a listener chain that can wrap or transform the call and may short-circuit it.&lt;/p&gt;

&lt;p&gt;The reference diagram shows three possible pre-execution paths:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;allow&lt;/strong&gt; proceeds to registered guards;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;deny&lt;/strong&gt; skips the tool body;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ask&lt;/strong&gt; goes to &lt;code&gt;ctx.approval&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An allowed one-shot approval continues to the guards. Rejection, cancellation or unavailability skips the body. Even an allowed approval is not the final decision, because the later guards can still deny. The &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/reference/subsystems/approval" rel="noopener noreferrer"&gt;approval reference&lt;/a&gt; says callers such as the tools registry deny unless the outcome is &lt;code&gt;allowed-once&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  When approval is requested
&lt;/h2&gt;

&lt;p&gt;The approval service answers whether a specific action may proceed.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ask&lt;/code&gt; delegates to configured answerers. A missing or unusable answerer produces &lt;code&gt;unavailable&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Under &lt;code&gt;never&lt;/code&gt;, an ask resolves to &lt;code&gt;rejected&lt;/code&gt; before answerers run.&lt;/li&gt;
&lt;li&gt;The service writes paired &lt;code&gt;approval/asked&lt;/code&gt; and &lt;code&gt;approval/decided&lt;/code&gt; audit events to the session log, using a fresh request ID. Those audit events are log-only. The model sees the caller's derived tool result and the current runtime-context snapshot instead.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The request can identify the already-streamed call by &lt;code&gt;callId&lt;/code&gt;, so its arguments need not be duplicated in the approval request. Cancellation withdraws the question and late answers are discarded. An approval is specific to the asked action, not a blanket grant for subsequent calls. The service requires an open turn. If recording the audit pair fails before the relevant commit, the request can reject rather than return an unlogged decision.&lt;/p&gt;

&lt;p&gt;Approval is only one possible stage. A pre-execution policy may allow or deny directly, and a later monotonic guard may still deny. So when a call seems stuck, check whether an approval is actually pending instead of assuming every tool request must prompt. The user-facing side of that decision is covered in &lt;a href="https://dsh-plugin.com/blog/tool-call-awaiting-approval" rel="noopener noreferrer"&gt;tool calls awaiting approval&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  After the gate: guards and dispatch
&lt;/h2&gt;

&lt;p&gt;Registered monotonic guards run after the pre-execution waterfall and any approval. They deny or abstain, and the pipeline protects call identity.&lt;/p&gt;

&lt;p&gt;If the call proceeds, &lt;code&gt;tools/execute&lt;/code&gt; wraps dispatch. The reference lists timeout, retry and metrics as around-dispatch concerns. The registered tool's &lt;code&gt;execute()&lt;/code&gt; body is the operation itself, and some tools append their own session events during execution.&lt;/p&gt;

&lt;p&gt;The pipeline also shows &lt;code&gt;fs/write-intent&lt;/code&gt; or &lt;code&gt;fs/edit-intent&lt;/code&gt; for mutations performed by &lt;code&gt;tool-fs&lt;/code&gt;. Those filesystem events do not describe every tool or side effect. Read-before-edit checks sit below that tool on &lt;code&gt;fs/*&lt;/code&gt; events. A shell command, an external service and a filesystem tool may have different underlying effects, so inspect the owning tool and policy instead of assuming a single guard covers them all.&lt;/p&gt;

&lt;p&gt;After dispatch, the tool definition's &lt;code&gt;projectContent&lt;/code&gt; installs execution-prepared text and images before &lt;code&gt;tools/post-execute&lt;/code&gt;. That waterfall can accept, block, replace or add context. The raw body output and the eventual model-facing content can therefore differ. The reference also depicts denied calls proceeding through result processing, so a skipped body can still yield a recorded outcome.&lt;/p&gt;

&lt;p&gt;If you are writing a plugin that hooks into these stages, &lt;a href="https://dsh-plugin.com/blog/integrate-tool-execution-pipeline" rel="noopener noreferrer"&gt;integrating with the tool execution pipeline&lt;/a&gt; covers the extension side.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the result reaches the model and UI
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;The registry normalizes the candidate result. Pipeline or result-snapshot exceptions are represented as &lt;code&gt;isError&lt;/code&gt; outcomes at the outer boundary.&lt;/li&gt;
&lt;li&gt;The visible tool definition's &lt;code&gt;finalizeContent&lt;/code&gt; enforces its final synchronous, content-only invariant. The reference describes a snapshotted callback. It is not another chance to rerun the original operation.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;tools/result&lt;/code&gt; synchronously observes the frozen, authoritative outcome. It is an observation point after the final content step.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;tool/result&lt;/code&gt; session event records the single model-facing outcome for the call. The UI can render a completed card with &lt;code&gt;presentResult(args, result)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Once the tool batch has settled and its results are recorded, active-batch &lt;code&gt;additionalContexts&lt;/code&gt; are injected as user messages in FIFO order. Extra context is separate from the result of any one tool.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This ordering tells you where to look:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The displayed result differs from the raw tool output: inspect projection, post-execution and finalization before blaming the model.&lt;/li&gt;
&lt;li&gt;The body never ran: inspect pre-execution, approval and guards.&lt;/li&gt;
&lt;li&gt;The result is an error: find which boundary produced it rather than assuming the external action never started.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Investigating a specific call
&lt;/h2&gt;

&lt;p&gt;Start with the call ID and its recorded arguments, then compare the request with the resulting session event. Decide whether the result represents denial, approval failure, an execution error or a later rewrite. Check the actual tool definition and composed policies. The pipeline is an extension framework, so mounted plugins determine which hooks and wrappers participate.&lt;/p&gt;

&lt;p&gt;Change one condition at a time. Reproduce with a small, permitted operation first and keep the call and result. If approval was requested, record its outcome separately from the later guard and execution result. If execution completed but content changed, compare the prepared and final stages your instrumentation exposes. Not every deployment shows every intermediate stage in its UI, and the cited references do not promise a universal tracing interface.&lt;/p&gt;

&lt;h3&gt;
  
  
  PTC calls
&lt;/h3&gt;

&lt;p&gt;For PTC, the reference says both the reserved &lt;code&gt;run_code&lt;/code&gt; transport and serialized sub-calls pass through the pipeline. Sub-calls carry the parent token, log &lt;code&gt;tool/ptc-dispatch&lt;/code&gt;, return denials as binding rejections, and omit &lt;code&gt;additionalContexts&lt;/code&gt; to preserve call/result adjacency. Do not infer a single direct native call from a PTC transport record. Trace parent and sub-call evidence together. More on that runtime in &lt;a href="https://dsh-plugin.com/blog/what-role-does-the-ptc-runtime-play-in-tool-calls" rel="noopener noreferrer"&gt;what role the PTC runtime plays in tool calls&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Denial versus execution error
&lt;/h3&gt;

&lt;p&gt;Both may end in a model-facing result, but they mean different things. The reference explicitly routes a denial to result processing without entering the body. A wrapper or body can instead throw after dispatch begins, and the outer registry normalizes a pipeline or snapshot exception. In that second case, the error outcome alone cannot tell you how far the operation got. Correlate the call with the owning tool's evidence and any external system's records before deciding to repeat it.&lt;/p&gt;

&lt;p&gt;The same caution applies to a completed UI card. The card presents &lt;code&gt;presentResult(args, result)&lt;/code&gt; after the session result is recorded. It is not a separate execution stage or a complete trace of every listener, and a policy plugin may have rewritten the content during post-execution. Where a deployment provides audit records, compare them with the final outcome, within that deployment's visibility and retention rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits and safety boundaries
&lt;/h2&gt;

&lt;p&gt;A policy gate, sandbox setting, successful result or approval does not prove an operation is safe. Inspect arguments and the actual tool's effects. A result-processing error cannot undo an external side effect that may already have happened. Before retrying a failed operation with external or irreversible effects, determine whether it ran and whether repeating it is appropriate.&lt;/p&gt;

&lt;p&gt;The graph documents ordering and extension points, not every plugin's configuration or an exact timing guarantee. Tool calls can contain private paths, credentials or other sensitive arguments, so sanitize records before sharing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Terms
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Waterfall&lt;/strong&gt;: a listener chain that can wrap or transform a call and may short-circuit it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monotonic guard&lt;/strong&gt;: a registered check that denies or abstains after pre-execution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;allowed-once&lt;/code&gt;&lt;/strong&gt;: an approval outcome for the specific action being asked about.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Projection and finalization&lt;/strong&gt;: tool-definition stages that prepare and constrain result content.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PTC&lt;/strong&gt;: the documented transport in which &lt;code&gt;run_code&lt;/code&gt; and serialized sub-calls each traverse the pipeline.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Originally published at &lt;a href="https://dsh-plugin.com/blog/model-tool-call-execution-flow" rel="noopener noreferrer"&gt;https://dsh-plugin.com/blog/model-tool-call-execution-flow&lt;/a&gt;&lt;/p&gt;

</description>
      <category>devtools</category>
      <category>ai</category>
      <category>agents</category>
      <category>llm</category>
    </item>
    <item>
      <title>Keeping SVG vectors when exporting to PDF: svg2pdf vs print-to-PDF</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Wed, 02 Dec 2026 08:32:12 +0000</pubDate>
      <link>https://dev.to/createsun/keeping-svg-vectors-when-exporting-to-pdf-svg2pdf-vs-print-to-pdf-408d</link>
      <guid>https://dev.to/createsun/keeping-svg-vectors-when-exporting-to-pdf-svg2pdf-vs-print-to-pdf-408d</guid>
      <description>&lt;p&gt;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: &lt;code&gt;svg2pdf.js&lt;/code&gt; 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.&lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;viewBox&lt;/code&gt;, and an A4 page sized in &lt;code&gt;mm&lt;/code&gt;. Versions: jsPDF 4.2.1, svg2pdf.js 2.9.0. The reference was Chromium's &lt;code&gt;Page.printToPDF&lt;/code&gt; with the SVG inlined in a page, A4, 10 mm margins.&lt;/p&gt;

&lt;h2&gt;
  
  
  The svg2pdf.js route
&lt;/h2&gt;

&lt;p&gt;The whole conversion is a few lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;jsPDF&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"jspdf"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;svg2pdf&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"svg2pdf.js"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;jsPDF&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;unit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"pt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"a4"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;svg2pdf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;svgElement&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;28&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;28&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;540&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;540&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"out.pdf"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You get real PDF path operators. I checked the output with pypdf: the &lt;code&gt;/XObject&lt;/code&gt; list contains zero images, and the content stream is made of path, fill, stroke and shading operators (&lt;code&gt;m l c re f S sh&lt;/code&gt;) plus &lt;code&gt;BT Tj&lt;/code&gt; for text. The 14 labels in the bar chart all came back from text extraction.&lt;/p&gt;

&lt;h2&gt;
  
  
  Size: a fixed cost, then much smaller than print
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sample&lt;/th&gt;
&lt;th&gt;SVG&lt;/th&gt;
&lt;th&gt;svg2pdf&lt;/th&gt;
&lt;th&gt;Browser print&lt;/th&gt;
&lt;th&gt;300 dpi PNG&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;starburst logo&lt;/td&gt;
&lt;td&gt;8,946 B&lt;/td&gt;
&lt;td&gt;5,455 B&lt;/td&gt;
&lt;td&gt;17,006 B&lt;/td&gt;
&lt;td&gt;725,621 B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bar chart&lt;/td&gt;
&lt;td&gt;2,796 B&lt;/td&gt;
&lt;td&gt;3,915 B&lt;/td&gt;
&lt;td&gt;46,581 B&lt;/td&gt;
&lt;td&gt;126,951 B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;banner (viewBox only)&lt;/td&gt;
&lt;td&gt;379 B&lt;/td&gt;
&lt;td&gt;3,628 B&lt;/td&gt;
&lt;td&gt;11,128 B&lt;/td&gt;
&lt;td&gt;59,744 B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mm-sized page&lt;/td&gt;
&lt;td&gt;342 B&lt;/td&gt;
&lt;td&gt;3,509 B&lt;/td&gt;
&lt;td&gt;11,841 B&lt;/td&gt;
&lt;td&gt;46,979 B&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it silently drops things
&lt;/h2&gt;

&lt;p&gt;This is the part I would have liked to know first. svg2pdf.js did not raise an error for any of these:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;SVG content&lt;/th&gt;
&lt;th&gt;svg2pdf&lt;/th&gt;
&lt;th&gt;Browser print&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Gradient fill&lt;/td&gt;
&lt;td&gt;correct&lt;/td&gt;
&lt;td&gt;correct&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gradient used as a stroke (&lt;code&gt;stroke="url(#g)"&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;stroke disappears&lt;/td&gt;
&lt;td&gt;correct&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;feGaussianBlur&lt;/code&gt; filter&lt;/td&gt;
&lt;td&gt;skipped, hard-edged circle&lt;/td&gt;
&lt;td&gt;blurred&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Font that isn't installed (Inter)&lt;/td&gt;
&lt;td&gt;Helvetica&lt;/td&gt;
&lt;td&gt;fallback font&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chinese text&lt;/td&gt;
&lt;td&gt;garbled&lt;/td&gt;
&lt;td&gt;correct, selectable&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I'd choose
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Icons, logos, diagrams that use flat fills, plain gradients, Latin text: svg2pdf. Small output, real vectors, no print dialog.&lt;/li&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;Either way, don't trust "no error" as a signal. Render the PDF with a second tool (I used pypdfium2 and macOS &lt;code&gt;sips&lt;/code&gt;) and look.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Loading cost
&lt;/h2&gt;

&lt;p&gt;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 &lt;code&gt;import()&lt;/code&gt; the first time a file is dropped, so they aren't in the page's initial scripts.&lt;/p&gt;

&lt;p&gt;I put this together as a free converter that runs entirely in your browser: &lt;a href="https://svg-optimize.com/svg-to-pdf" rel="noopener noreferrer"&gt;https://svg-optimize.com/svg-to-pdf&lt;/a&gt;. 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.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>svg</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Who pulled this package into my DeepSeek Harness profile? Tracing it with dsh plugin why</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Wed, 02 Dec 2026 02:22:46 +0000</pubDate>
      <link>https://dev.to/createsun/who-pulled-this-package-into-my-deepseek-harness-profile-tracing-it-with-dsh-plugin-why-40gm</link>
      <guid>https://dev.to/createsun/who-pulled-this-package-into-my-deepseek-harness-profile-tracing-it-with-dsh-plugin-why-40gm</guid>
      <description>&lt;p&gt;A package shows up in a DeepSeek Harness profile and you did not expect it. The quickest way to learn who pulled it in is one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dsh plugin --profile &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;name&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; why &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;package&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That asks pnpm for the dependency paths to the package inside one profile. It is worth being clear about what the answer covers before acting on it. The output explains package relationships. It does not tell you whether a bundle is enabled, whether a plugin is running, or whether the package is trustworthy.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0a2otfcrz7aaqmyd4i2h.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0a2otfcrz7aaqmyd4i2h.webp" alt="Select the profile, trace dependents, then check bundle and runtime state" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Four kinds of evidence, four different questions
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Evidence&lt;/th&gt;
&lt;th&gt;Answers&lt;/th&gt;
&lt;th&gt;Does not establish&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;why&lt;/code&gt; output&lt;/td&gt;
&lt;td&gt;Which installed packages depend on a named package&lt;/td&gt;
&lt;td&gt;Whether its plugin started&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bundle declaration and profile composition&lt;/td&gt;
&lt;td&gt;Whether the package contributes a bundle layer&lt;/td&gt;
&lt;td&gt;Whether every feature is enabled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Startup and behavior&lt;/td&gt;
&lt;td&gt;What the running composition actually does&lt;/td&gt;
&lt;td&gt;Why pnpm installed a dependency&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Market card&lt;/td&gt;
&lt;td&gt;What an index lists and claims&lt;/td&gt;
&lt;td&gt;Provenance or safety of installed code&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;a href="https://raw.githubusercontent.com/deepseek-ai/deepseek-harness/master/apps/cli/reference/README.md" rel="noopener noreferrer"&gt;CLI reference&lt;/a&gt; says &lt;code&gt;dsh plugin&lt;/code&gt; forwards pnpm arguments in the selected profile directory, and &lt;code&gt;why&lt;/code&gt; is one of the forwarded verbs. The &lt;a href="https://pnpm.io/cli/why" rel="noopener noreferrer"&gt;pnpm reference&lt;/a&gt; says it shows packages that depend on the requested package as a reverse dependency tree: the searched package is at the root, and its dependents form branches back toward workspace roots. A direct dependency and a transitive dependency are different explanations for its presence.&lt;/p&gt;

&lt;p&gt;This is useful when you want to identify the package chain before considering a change. It is not a Cordis activation trace. A dependency can be present without being a DSH bundle, and a bundle can be installed without establishing that a particular service or tool is active in a running session. Keep package-manager evidence and runtime evidence separate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running the trace
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Identify the exact profile and package name. Use the package name, not merely the display title of a marketplace card. Confirm that the intended profile exists before proceeding.&lt;/li&gt;
&lt;li&gt;Ensure pnpm is available on the invoking environment's &lt;code&gt;PATH&lt;/code&gt;. The wrapper runs it with the selected profile directory as its working directory.&lt;/li&gt;
&lt;li&gt;Substitute the actual values for the placeholders and run the query. Put &lt;code&gt;--profile&lt;/code&gt; before the pnpm verb, because forwarding begins at the first unrecognized token.&lt;/li&gt;
&lt;li&gt;Read the root package and each dependent branch. Follow the branch toward the profile or workspace root to identify the chain; do not interpret the root as a package that depends on all its children.&lt;/li&gt;
&lt;li&gt;Compare the answer with the profile's bundle composition and actual runtime before making an installation or removal decision. Keep the output and the profile name together for reproducibility.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The placeholders stand for your actual profile and package; do not type the angle brackets literally into a shell.&lt;/p&gt;

&lt;h3&gt;
  
  
  The wrapper is not guaranteed read-only
&lt;/h3&gt;

&lt;p&gt;The wrapper initializes a missing profile, using a shipped template or the base bundle alone for other names. So even this investigation can create profile files if the name is wrong. Confirm the profile before invoking it, rather than assuming a typo will simply fail without changing disk state.&lt;/p&gt;

&lt;p&gt;The CLI also reconciles &lt;code&gt;dsh.profile.bundles&lt;/code&gt; against installed state after every successful forwarded run. The forwarded pnpm operation is a dependency query, but the wrapper's initialization and reconciliation are separate effects, so a &lt;code&gt;why&lt;/code&gt; query should not be described as guaranteed to leave the profile untouched. This matters in shared or carefully controlled environments.&lt;/p&gt;

&lt;h3&gt;
  
  
  Argument order and help
&lt;/h3&gt;

&lt;p&gt;When forwarded arguments begin with the pnpm command, a later &lt;code&gt;--help&lt;/code&gt; reaches pnpm. If forwarded arguments begin with an option such as &lt;code&gt;-r&lt;/code&gt;, a later help flag prints the forwarder's help instead. Put the command before help when seeking pnpm's help. Also place the profile selection before the forwarded command: a later &lt;code&gt;--profile&lt;/code&gt; is part of the pnpm arguments, not a new DSH profile selection.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading the reverse tree
&lt;/h2&gt;

&lt;p&gt;pnpm's tree is reversed relative to the question "what does this package depend on?" Start at the named package and follow its dependents. If one intermediate package depends on it and the profile depends on that intermediate package, the tree gives a reason to investigate that intermediate package's role. If the output contains multiple branches, more than one chain may explain why the package is present; removing only one parent need not eliminate all paths.&lt;/p&gt;

&lt;p&gt;pnpm deduplicates duplicate subtrees and marks them &lt;code&gt;deduped&lt;/code&gt;. That marker is a presentation of repeated structure, not evidence that the repeated path is irrelevant. For machine consumption pnpm documents &lt;code&gt;--json&lt;/code&gt;; &lt;code&gt;--long&lt;/code&gt; gives verbose output, while &lt;code&gt;--depth &amp;lt;number&amp;gt;&lt;/code&gt; limits the displayed depth. These are pnpm options, so consult the installed pnpm version's help and do not mistake a limited view for the complete graph.&lt;/p&gt;

&lt;h2&gt;
  
  
  A package is not automatically a bundle
&lt;/h2&gt;

&lt;p&gt;The CLI reference states that a dependency whose package manifest declares the DSH bundle patch joins the profile's bundle layer stack during reconciliation. A dependency without that declaration remains a plain dependency, with a one-time warning. A dependency trace can therefore explain why a package is installed without proving that it contributes a bundle layer.&lt;/p&gt;

&lt;p&gt;An update may change bundle membership if the updated manifest gains the declaration, and a running profile retains its current bundle set until the next start. The restart boundary is covered in more detail in &lt;a href="https://dsh-plugin.com/blog/restart-profile-after-plugin-update" rel="noopener noreferrer"&gt;restarting a profile after a plugin update&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/guide/plugin-market" rel="noopener noreferrer"&gt;plugin market guide&lt;/a&gt; describes a different view: a market index lists installable DSH bundles, and an installation confirmation shows the selected npm or Git source. The index is third-party content, and its titles and other claims are not verified by DSH. A card can help identify the intended package, but it is not a reverse dependency tree and does not explain the current profile's complete installed graph. The separate add and remove workflow is in &lt;a href="https://dsh-plugin.com/blog/add-or-remove-a-package-with-dsh-plugin" rel="noopener noreferrer"&gt;adding or removing a package with dsh plugin&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the answer surprises you
&lt;/h2&gt;

&lt;p&gt;First recheck the selected profile and exact package name. Different profiles have different package directories and compositions, so a result for one does not explain another. Preserve stderr and the command context, especially if pnpm or the wrapper reported an error. If the output is constrained by a filter or depth, broaden the investigation using the installed pnpm documentation before concluding no other branch exists.&lt;/p&gt;

&lt;p&gt;Next distinguish a direct package relationship from operational necessity. A dependent branch says which package depends on the target; it does not tell you whether a particular user-facing feature is used, whether that feature is currently enabled, or what another version would require. Review the dependent package and its documented role. Then compare bundle membership and startup behavior, including the restart boundary for a running profile.&lt;/p&gt;

&lt;p&gt;Before removing anything, identify every affected dependent and plan how to restore the original configuration. Do not assume that deleting a transitive dependency directly is equivalent to changing the package that requires it. The trace is diagnostic evidence; the choice to alter a shared profile needs its own review and testing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits and safety boundaries
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;why&lt;/code&gt; is not a code audit, malware check, compatibility guarantee, or proof that an installed package is safe. Marketplace metadata and successful installation are not safety guarantees either. Review the actual source and dependency chain before trusting a package, and inspect diagnostic output for sensitive local paths or other information before sharing.&lt;/p&gt;

&lt;p&gt;The exact graph and pnpm output depend on the selected profile, installed packages, and pnpm version. The references do not promise a universal output tree or a read-only DSH wrapper. Do not infer that a missing branch in a filtered result means there are no dependents elsewhere, and do not make a package change on the strength of one display label alone.&lt;/p&gt;

&lt;p&gt;The full walkthrough, with FAQ and references, is &lt;a href="https://dsh-plugin.com/blog/find-why-a-profile-depends-on-a-plugin" rel="noopener noreferrer"&gt;on dsh-plugin.com&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Terms
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Profile&lt;/strong&gt;: the named installation and configuration context selected for the command.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reverse dependency tree&lt;/strong&gt;: the searched package and packages that depend on it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transitive dependency&lt;/strong&gt;: a package reached through another dependency rather than directly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bundle&lt;/strong&gt;: a package with the DSH bundle declaration that can contribute a patch layer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reconciliation&lt;/strong&gt;: updating the profile's bundle list against installed state after a successful forwarded run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deduped&lt;/strong&gt;: pnpm's marker for a repeated subtree that it does not print again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Originally published at &lt;a href="https://dsh-plugin.com/blog/find-why-a-profile-depends-on-a-plugin" rel="noopener noreferrer"&gt;https://dsh-plugin.com/blog/find-why-a-profile-depends-on-a-plugin&lt;/a&gt;&lt;/p&gt;

</description>
      <category>pnpm</category>
      <category>cli</category>
      <category>ai</category>
      <category>devtools</category>
    </item>
    <item>
      <title>Your DeepSeek Harness Config Schema Parsed Fine. Is It Actually Complete?</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Tue, 01 Dec 2026 06:02:18 +0000</pubDate>
      <link>https://dev.to/createsun/your-deepseek-harness-config-schema-parsed-fine-is-it-actually-complete-fej</link>
      <guid>https://dev.to/createsun/your-deepseek-harness-config-schema-parsed-fine-is-it-actually-complete-fej</guid>
      <description>&lt;p&gt;A DeepSeek Harness config schema can parse as perfectly valid JSON and still be incomplete. The process can even exit 1 while handing you a well-formed document. If you feed that output straight into an editor or a validator, you are trusting a projection that the tool itself has flagged as partial.&lt;/p&gt;

&lt;p&gt;So the useful question is less "how do I generate the schema" and more "how do I know when to trust it." Generating it is one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dsh --profile web --dump-config-schema
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Knowing what it covers takes a little more reading.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvx3ocf4t6ocmskzt2rr1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvx3ocf4t6ocmskzt2rr1.webp" alt="Compose a profile, project schemas, and inspect limitations" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What comes out of the command
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://raw.githubusercontent.com/deepseek-ai/deepseek-harness/master/apps/cli/reference/README.md#config-schema-dump" rel="noopener noreferrer"&gt;CLI reference&lt;/a&gt; defines &lt;code&gt;--dump-config-schema&lt;/code&gt;. A successful composition writes one pretty-printed JSON Schema 2020-12 document to stdout. Its root describes the parsed entry list shown by &lt;code&gt;--dump-config&lt;/code&gt;; &lt;code&gt;$defs.patchList&lt;/code&gt; describes profile, home and command-line overlays separately. Keep the document's &lt;code&gt;$defs&lt;/code&gt; when validating a patch fragment, because references can depend on them.&lt;/p&gt;

&lt;p&gt;The schema uses the same bundle, profile, home and argument patch layers as &lt;code&gt;--dump-config&lt;/code&gt;. It describes declarations in the selected tree, including disabled rows, rather than every plugin that might exist elsewhere. If the difference between those layers is fuzzy, &lt;a href="https://dsh-plugin.com/blog/dump-default-config-vs-config" rel="noopener noreferrer"&gt;the default-config vs config dump comparison&lt;/a&gt; walks through which layers each dump shows.&lt;/p&gt;

&lt;p&gt;It is a regenerated, pre-stable reference, not a versioned persisted catalog. Regenerate after changing DSH or plugins; follow &lt;code&gt;$ref&lt;/code&gt; and &lt;code&gt;configRef&lt;/code&gt; instead of hard-coding definition names or order.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Output or status&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;Practical consequence&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Root schema&lt;/td&gt;
&lt;td&gt;Parsed composed entry list&lt;/td&gt;
&lt;td&gt;Use it for the appropriate tree representation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;$defs.patchList&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Overlay fragment shape&lt;/td&gt;
&lt;td&gt;Retain &lt;code&gt;$defs&lt;/code&gt; when validating a fragment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;x-cordis.complete&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Collector completeness indicator&lt;/td&gt;
&lt;td&gt;Inspect diagnostics and entry statuses&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exit 1 with JSON&lt;/td&gt;
&lt;td&gt;Projection or collection may be partial&lt;/td&gt;
&lt;td&gt;Valid JSON does not mean complete coverage&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Why valid JSON can still be incomplete
&lt;/h2&gt;

&lt;p&gt;Preparation, patch parsing, composition or resolution-setup failures exit nonzero without a schema. Collection and projection failures are different: they can retain partial output and exit 1, including omitted non-JSON annotations and partial projections.&lt;/p&gt;

&lt;p&gt;Root &lt;code&gt;complete&lt;/code&gt; is false for error diagnostics, for &lt;code&gt;partial&lt;/code&gt;, &lt;code&gt;unsupported&lt;/code&gt; or &lt;code&gt;error&lt;/code&gt; entries, and for ambiguous definitions for one plugin name. Examine both stderr and the JSON annotation rather than relying on syntax alone.&lt;/p&gt;

&lt;p&gt;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 with limitations. Native validation remains necessary. The schema handles &lt;code&gt;!!js&lt;/code&gt; scalars as inert &lt;code&gt;{ "__jsExpr": "..." }&lt;/code&gt; markers, without evaluating their results; runtime-generated trees and plugin startup checks are outside the reference. Even &lt;code&gt;complete: true&lt;/code&gt; cannot guarantee successful boot.&lt;/p&gt;

&lt;h2&gt;
  
  
  A checklist for producing and inspecting it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Choose the profile whose plugin composition you want to describe. For the shipped web profile, run &lt;code&gt;dsh --profile web --dump-config-schema&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Capture stdout as JSON and stderr separately using your shell or automation environment. Check the process status even if stdout parses successfully.&lt;/li&gt;
&lt;li&gt;Inspect root &lt;code&gt;x-cordis&lt;/code&gt;: it contains &lt;code&gt;profile&lt;/code&gt;, &lt;code&gt;complete&lt;/code&gt;, &lt;code&gt;entries&lt;/code&gt;, &lt;code&gt;diagnostics&lt;/code&gt; and &lt;code&gt;patchSchema&lt;/code&gt;. Each entry records a traversal &lt;code&gt;path&lt;/code&gt;, &lt;code&gt;name&lt;/code&gt; when available, &lt;code&gt;status&lt;/code&gt;, and &lt;code&gt;configRef&lt;/code&gt;, with an optional &lt;code&gt;id&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Follow references to the relevant plugin's projected Config. Check diagnostics and &lt;code&gt;partial&lt;/code&gt;, &lt;code&gt;unsupported&lt;/code&gt; or &lt;code&gt;error&lt;/code&gt; entries before treating the output as sufficient for your use.&lt;/li&gt;
&lt;li&gt;Compare with &lt;code&gt;dsh --profile web --dump-config&lt;/code&gt; when you need source-labelled warnings for unmatched targets. Use the same profile and overlays; schema-dump warnings do not carry layer labels.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A few flag rules apply. The three dump flags are mutually exclusive, reject application arguments and reject the reserved &lt;code&gt;desktop&lt;/code&gt; profile. Schema dumping accepts repeatable &lt;code&gt;--patch &amp;lt;path&amp;gt;&lt;/code&gt; and &lt;code&gt;--from-default-profile&lt;/code&gt; like the other composition modes.&lt;/p&gt;

&lt;p&gt;Be careful with &lt;code&gt;--from-default-profile&lt;/code&gt;. It replaces a custom target profile with a fresh template and can delete its previous directory and user patch; do not use it as a harmless inspection switch. Dump preparation can also initialize missing profile files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the fields and defaults come from
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/develop/basic/config" rel="noopener noreferrer"&gt;plugin configuration guide&lt;/a&gt; tells authors to export a &lt;code&gt;Config&lt;/code&gt; type and same-named Schemastery schema. Cordis uses the schema to validate input and fill declared defaults while loading. The dump projects supported fields, descriptions, defaults and constraints from those native declarations. Ordinary fields are inline; shared Configs and recursion can use &lt;code&gt;$ref&lt;/code&gt;. The author side of this is covered in &lt;a href="https://dsh-plugin.com/blog/declare-configurable-fields-for-a-plugin" rel="noopener noreferrer"&gt;declaring configurable fields for a plugin&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Three projection details are easy to misread:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JSON Schema defaults are annotations; a JSON Schema validator does not thereby insert them. Native plugin loading still supplies defaults according to the actual schema.&lt;/li&gt;
&lt;li&gt;Unions project as &lt;code&gt;anyOf&lt;/code&gt;, while native execution selects its first successful branch.&lt;/li&gt;
&lt;li&gt;Metadata such as &lt;code&gt;secret&lt;/code&gt;, &lt;code&gt;credential-ref&lt;/code&gt;, &lt;code&gt;ms&lt;/code&gt; and &lt;code&gt;volatile&lt;/code&gt; appears in &lt;code&gt;x-cordis&lt;/code&gt;; it should not be interpreted as a new reference-object input type.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A Config absent from a plugin means its fields are unknown to this projection, not that configuration is forbidden. A group or include carrier can have &lt;code&gt;status: "absent"&lt;/code&gt; while &lt;code&gt;configRef&lt;/code&gt; points to the Loader structure. Unknown plugin names remain open. A name resolving to different Config definitions uses a union and produces an ambiguity diagnostic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Disabled rows and discovery paths
&lt;/h2&gt;

&lt;p&gt;Disabled rows and children have special validation rules. A disabled entry can omit required Config unless &lt;code&gt;group: true&lt;/code&gt; forces activation, while supplied Config values are still validated. Children of a disabled group or include without &lt;code&gt;group: true&lt;/code&gt; are not validated because the Loader never creates them. The CLI reference documents further cases; use it when building a validator rather than assuming every row is active.&lt;/p&gt;

&lt;p&gt;The collector appends &lt;code&gt;/config/&amp;lt;index&amp;gt;&lt;/code&gt; for group children and &lt;code&gt;/include/&amp;lt;index&amp;gt;&lt;/code&gt; for included children. Include discovery paths are not JSON pointers into the root dump. Malformed inspected rows receive positioned errors without discarding valid siblings, and an entry may omit &lt;code&gt;name&lt;/code&gt; if no literal name exists. Include composition failures leave its children unavailable; do not treat an unpatched tree as the final result.&lt;/p&gt;

&lt;h2&gt;
  
  
  Execution and sharing limits
&lt;/h2&gt;

&lt;p&gt;Generating a schema is not a passive read. Collection imports trusted modules and can invoke Config getters and lazy builders. It does not apply plugins, execute transform callbacks or evaluate configuration expressions, but imports may block or retain handles; automated callers should enforce an external timeout. Ordinary import or builder stdout is routed to stderr, while direct file-descriptor writes are not intercepted. Treat a plugin module as code even in a dump workflow.&lt;/p&gt;

&lt;p&gt;The document emits schema declarations rather than actual configured values, but declared defaults and raw plugin errors can contain sensitive data. Review both outputs before sharing. Schema validity is not a security assessment and does not replace native validation or a representative runtime test. If you plan to paste a dump into an issue, &lt;a href="https://dsh-plugin.com/blog/share-schema-dump-safely" rel="noopener noreferrer"&gt;sharing a schema dump safely&lt;/a&gt; covers what to review first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Terms
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Schemastery:&lt;/strong&gt; the native schema system used for plugin Config declarations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Projection:&lt;/strong&gt; the JSON Schema representation of supported native declarations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;$defs&lt;/code&gt;:&lt;/strong&gt; reusable schema definitions referenced by the document.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;x-cordis&lt;/code&gt;:&lt;/strong&gt; DSH annotations for entries, completeness, diagnostics and metadata.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Partial:&lt;/strong&gt; a documented limitation requiring attention and native validation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Originally published at &lt;a href="https://dsh-plugin.com/blog/generate-plugin-config-schema" rel="noopener noreferrer"&gt;https://dsh-plugin.com/blog/generate-plugin-config-schema&lt;/a&gt;&lt;/p&gt;

</description>
      <category>devtools</category>
      <category>jsonschema</category>
      <category>cli</category>
      <category>ai</category>
    </item>
    <item>
      <title>How a multi-size .ico file is actually laid out (and how to build one in the browser)</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Mon, 30 Nov 2026 08:11:00 +0000</pubDate>
      <link>https://dev.to/createsun/how-a-multi-size-ico-file-is-actually-laid-out-and-how-to-build-one-in-the-browser-2olp</link>
      <guid>https://dev.to/createsun/how-a-multi-size-ico-file-is-actually-laid-out-and-how-to-build-one-in-the-browser-2olp</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  The whole format in one picture
&lt;/h2&gt;

&lt;p&gt;An &lt;code&gt;.ico&lt;/code&gt; is a directory followed by images:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;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
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All integers are little-endian. Width and height are a single byte, which is why 256 is written as &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Each image is either a PNG or a "BMP without the BMP header"
&lt;/h2&gt;

&lt;p&gt;Since Windows Vista, an entry can simply be a complete PNG file. Before that, every entry was a DIB: a &lt;code&gt;BITMAPINFOHEADER&lt;/code&gt; with no &lt;code&gt;BITMAPFILEHEADER&lt;/code&gt; in front of it. Two things about the DIB version catch people:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;biHeight&lt;/code&gt; is twice the real height.&lt;/strong&gt; The DIB holds two stacked bitmaps, the color (XOR) image and a 1-bit transparency (AND) mask, and the header describes both.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rows go bottom-up and pixels are BGRA&lt;/strong&gt;, 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.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;encodeDib&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rgba&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Uint8ClampedArray&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Uint8Array&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pixelBytes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;maskRow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ceil&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;32&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Uint8Array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;40&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;pixelBytes&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;maskRow&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;DataView&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;buffer&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setUint32&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;        &lt;span class="c1"&gt;// biSize&lt;/span&gt;
  &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setInt32&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;       &lt;span class="c1"&gt;// biWidth&lt;/span&gt;
  &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setInt32&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// biHeight: XOR + AND&lt;/span&gt;
  &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setUint16&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;        &lt;span class="c1"&gt;// planes&lt;/span&gt;
  &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setUint16&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;14&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;32&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;       &lt;span class="c1"&gt;// bitCount&lt;/span&gt;
  &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setUint32&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rgba&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rgba&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rgba&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;     &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rgba&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="c1"&gt;// AND mask: 1 = transparent. Modern readers use alpha, old ones only the mask.&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rgba&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;40&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;pixelBytes&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;maskRow&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;|=&lt;/span&gt; &lt;span class="mh"&gt;0x80&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The directory is then just a loop that writes 16 bytes per entry and keeps a running offset.&lt;/p&gt;

&lt;h2&gt;
  
  
  PNG vs BMP entries: the numbers
&lt;/h2&gt;

&lt;p&gt;I converted five real icons (four from Simple Icons, one Lucide stroke icon) with both encodings:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Icon&lt;/th&gt;
&lt;th&gt;16/32/48 as PNG&lt;/th&gt;
&lt;th&gt;16/32/48 as BMP&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;TypeScript&lt;/td&gt;
&lt;td&gt;1,389 B&lt;/td&gt;
&lt;td&gt;15,086 B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Figma&lt;/td&gt;
&lt;td&gt;1,917 B&lt;/td&gt;
&lt;td&gt;15,086 B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lucide heart&lt;/td&gt;
&lt;td&gt;1,921 B&lt;/td&gt;
&lt;td&gt;15,086 B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub&lt;/td&gt;
&lt;td&gt;1,960 B&lt;/td&gt;
&lt;td&gt;15,086 B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;React&lt;/td&gt;
&lt;td&gt;2,538 B&lt;/td&gt;
&lt;td&gt;15,086 B&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;So unless you need to support XP-era readers, use PNG entries.&lt;/p&gt;

&lt;h2&gt;
  
  
  Render each size from the vector
&lt;/h2&gt;

&lt;p&gt;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 &lt;code&gt;width&lt;/code&gt;/&lt;code&gt;height&lt;/code&gt; to the target pixel size, load it into an &lt;code&gt;Image&lt;/code&gt; from a Blob URL, and &lt;code&gt;drawImage&lt;/code&gt; it onto a canvas of exactly that size.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setAttribute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"width"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setAttribute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"height"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createObjectURL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Blob&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;XMLSerializer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;serializeToString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"image/svg+xml"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three things broke this in testing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No &lt;code&gt;viewBox&lt;/code&gt;.&lt;/strong&gt; Changing width/height on such an SVG crops it instead of scaling it. If the file has numeric &lt;code&gt;width&lt;/code&gt;/&lt;code&gt;height&lt;/code&gt;, synthesize &lt;code&gt;viewBox="0 0 w h"&lt;/code&gt;. If it has neither, mount it off-screen and use &lt;code&gt;getBBox()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;currentColor&lt;/code&gt;.&lt;/strong&gt; Lucide, Feather and Heroicons use it. Rendered as a standalone image there is no inherited color, so the icon comes out black.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web fonts.&lt;/strong&gt; An SVG drawn as an image can't load external resources, so &lt;code&gt;&amp;lt;text&amp;gt;&lt;/code&gt; falls back to a default font. Convert text to paths.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Checking the output
&lt;/h2&gt;

&lt;p&gt;macOS can read ICO directly, which makes a quick sanity check easy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ 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
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;I put the result into a small free tool, &lt;a href="https://svg-optimize.com/svg-to-ico" rel="noopener noreferrer"&gt;an SVG to ICO converter that runs entirely in the browser&lt;/a&gt;. It lets you pick sizes and switch between PNG and BMP entries, and it also outputs the 180×180 &lt;code&gt;apple-touch-icon.png&lt;/code&gt; and the &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; tags. The encoder above is essentially all there is to it.&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>svg</category>
    </item>
    <item>
      <title>A pending plugin usually isn't broken: reading DeepSeek Harness startup diagnostics</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Mon, 30 Nov 2026 02:23:18 +0000</pubDate>
      <link>https://dev.to/createsun/a-pending-plugin-usually-isnt-broken-reading-deepseek-harness-startup-diagnostics-3n64</link>
      <guid>https://dev.to/createsun/a-pending-plugin-usually-isnt-broken-reading-deepseek-harness-startup-diagnostics-3n64</guid>
      <description>&lt;p&gt;It is tempting to read a &lt;code&gt;pending&lt;/code&gt; line in DeepSeek Harness startup output as "this plugin is broken." Most of the time it means something narrower: this plugin asked for a service, and nothing in the selected composition supplied it. The fix usually lives in a different plugin — or in no plugin at all, because the profile simply does not include one.&lt;/p&gt;

&lt;p&gt;That distinction decides what you do next. If you treat the waiting consumer as the defect, you can edit it forever without touching the provider whose activation actually failed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1nyqf1elue7t9oy7b5hq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1nyqf1elue7t9oy7b5hq.webp" alt="Startup failure, pending consumers, and investigation" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What the startup report guarantees
&lt;/h2&gt;

&lt;p&gt;When a required plugin fails activation, the &lt;a href="https://raw.githubusercontent.com/deepseek-ai/deepseek-harness/master/apps/cli/reference/README.md#startup-diagnostics" rel="noopener noreferrer"&gt;CLI reference&lt;/a&gt; describes a specific sequence: failed plugins with their original stacks first, then pending plugins and missing services. Required plugins appear first inside the pending list. The process exits with code 1 after writing its report and stderr — even if plugin handles remain open.&lt;/p&gt;

&lt;p&gt;One case is easy to misread. An optional-only activation warning keeps the normal output and does not produce this report at all. So the absence of a report is not proof that nothing went wrong; it tells you no required plugin failed.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Evidence&lt;/th&gt;
&lt;th&gt;What it tells you&lt;/th&gt;
&lt;th&gt;What remains open&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Failed plugin and original stack&lt;/td&gt;
&lt;td&gt;An activation error was recorded&lt;/td&gt;
&lt;td&gt;Whether another error also occurred&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pending plugin&lt;/td&gt;
&lt;td&gt;The instance is not active&lt;/td&gt;
&lt;td&gt;The missing service's underlying cause&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Missing service&lt;/td&gt;
&lt;td&gt;A dependency is unavailable to a consumer&lt;/td&gt;
&lt;td&gt;Why the provider did not supply it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Optional-only warning&lt;/td&gt;
&lt;td&gt;A warning occurred&lt;/td&gt;
&lt;td&gt;This report is not created for it alone&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Pending is a lifecycle state, not a verdict
&lt;/h2&gt;

&lt;p&gt;Every plugin instance has a Cordis &lt;strong&gt;fiber&lt;/strong&gt; tracking its lifecycle, dependencies, validated configuration and effects. The &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/reference/cordis-api/fiber" rel="noopener noreferrer"&gt;Fiber reference&lt;/a&gt; documents &lt;code&gt;fiber.state&lt;/code&gt; as the current lifecycle state and &lt;code&gt;fiber.store&lt;/code&gt; as a snapshot of required service implementations while loaded.&lt;/p&gt;

&lt;p&gt;A missing dependency can keep a consumer from becoming active. That means one failed provider can explain several later pending entries — which is exactly why you check the report before assuming each entry is its own bug. It is a hypothesis to test, not a rule that the first line is always the cause.&lt;/p&gt;

&lt;p&gt;The same reference notes that &lt;code&gt;fiber.await()&lt;/code&gt; waits for lifecycle work and rethrows configuration-validation or plugin-startup errors. This matters for plugin authors: "activation failed" and "waiting for a requirement" are different observations and produce different evidence. An import error can also happen before any fiber exists, so the inactive-instance list is never the whole story — read the original errors as well. And do not infer a particular state transition or retry policy from the word "pending" by itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the full diagnostic lives
&lt;/h2&gt;

&lt;p&gt;Search stderr for &lt;code&gt;Full diagnostics:&lt;/code&gt;. On a successful write it names a unique &lt;code&gt;startup-&amp;lt;timestamp&amp;gt;-&amp;lt;uuid&amp;gt;.log&lt;/code&gt; directly under &lt;code&gt;$DSH_HOME/logs/&lt;/code&gt;, defaulting to &lt;code&gt;~/.dsh/logs/&lt;/code&gt;. Earlier reports are not overwritten or automatically deleted. If the directory or file cannot be written, stderr contains the write error and the full report, and the exit code stays 1 — the path is only printed after a write succeeds.&lt;/p&gt;

&lt;p&gt;The report carries DSH and Node versions, platform, profile, root configuration path, inactive plugin modules and states, original errors, and startup warning and error arguments. It includes import errors that have no fiber, so a missing fiber is not evidence that no failure occurred, and it captures asynchronous failure cleanup until boot settles. It does not independently collect environment variables or configuration contents — but plugin errors may include values from either, which matters in the next section.&lt;/p&gt;

&lt;p&gt;The collector preserves nested causes, aggregate members, circular references, non-enumerable properties and symbols. It disables custom inspectors and describes accessors without evaluating them. That keeps evidence a short console message would drop. It does not make arbitrary plugin output redacted or safe to paste anywhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tracing a missing service to its source
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Capture the failed plugin, its original stack and any nested causes. Keep a private copy — the raw values are not redacted.&lt;/li&gt;
&lt;li&gt;Record each pending plugin and the exact missing service attached to it. Separate required entries from the rest; list order alone is not a dependency graph.&lt;/li&gt;
&lt;li&gt;Identify the provider expected to register that service in the composition you selected. The &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/reference/cordis-primer" rel="noopener noreferrer"&gt;Cordis primer&lt;/a&gt; explains how plugins declare required services with &lt;code&gt;inject&lt;/code&gt; and wait until those services exist.&lt;/li&gt;
&lt;li&gt;Check whether the provider failed, was absent from the selected profile, or is otherwise unavailable in the consumer's scope. Only the actual error and configuration evidence separate these cases; the label "missing" does not choose between them.&lt;/li&gt;
&lt;li&gt;Address the evidenced cause, restart or reload as the composition requires, and compare the same plugin and service entries. Confirm the capability works, rather than judging by one line disappearing.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A concrete pattern: a consumer requires a service, and the provider's activation stack shows a configuration validation error. Fix the validation error first. Rewriting the consumer to not wait would leave the provider's observed failure exactly where it was. The reverse mistake is just as common — assuming a provider failed when it was never part of the selected profile.&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuration layers change which provider exists
&lt;/h2&gt;

&lt;p&gt;A profile is a composition, not a directory name. The CLI applies bundle, profile, home and supplied patch layers in order, and a later patch replaces a targeted row's complete configuration. The same plugin name can appear in different compositions with different input, so a change made for one profile may not explain a failure in another. &lt;a href="https://dsh-plugin.com/blog/config-layer-precedence" rel="noopener noreferrer"&gt;Config layer precedence&lt;/a&gt; walks through how to trace those inputs.&lt;/p&gt;

&lt;p&gt;When comparing attempts, hold the profile, version and relevant layer inputs fixed. A changed installation or overlay changes which provider is present, and then you are comparing two different systems. Record the original symptom and the result after each deliberate change; a clean startup demonstrates that the tested composition started, not that every optional plugin or user workflow works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you share the report
&lt;/h2&gt;

&lt;p&gt;The CLI warns explicitly that plugin errors can contain configuration or credential values, and that they are not redacted. A local file mode is not permission to upload it, paste it into an issue, or screenshot it. Review nested error details, paths and warning arguments, and keep the relationship between failed provider and waiting consumer intact while you replace sensitive text — that relationship is the part a maintainer needs. &lt;a href="https://dsh-plugin.com/blog/sanitize-startup-diagnostics" rel="noopener noreferrer"&gt;Sanitizing startup diagnostics&lt;/a&gt; covers that editing pass.&lt;/p&gt;

&lt;p&gt;Two more boundaries worth stating plainly. Do not install an arbitrary plugin just because a service name is missing; verify which provider the composition is meant to use and whether its original error explains the absence. And nothing here is a security assessment — a plugin listing, a successful startup or a resolved pending entry says nothing about whether code or data handling is safe for your deployment. If no original failure matches the missing service, say so along with a sanitized reproduction instead of guessing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Terms worth keeping separate
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Plugin:&lt;/strong&gt; a mounted unit of behavior that can provide or consume services.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Service:&lt;/strong&gt; a capability accessed through a context key and supplied by a provider.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Injection:&lt;/strong&gt; a declared service dependency used to coordinate activation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fiber:&lt;/strong&gt; one plugin instance's lifecycle and effect tracking.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pending:&lt;/strong&gt; reported inactive work awaiting activation; the report is what explains why.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want the composition side of this picture — how services are provided, consumed and swapped — &lt;a href="https://dsh-plugin.com/blog/cordis-plugins-services-dependency-injection" rel="noopener noreferrer"&gt;plugins, services and dependency injection&lt;/a&gt; is the companion read.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://dsh-plugin.com/blog/pending-plugins-missing-services-diagnostics" rel="noopener noreferrer"&gt;https://dsh-plugin.com/blog/pending-plugins-missing-services-diagnostics&lt;/a&gt;&lt;/p&gt;

</description>
      <category>tooling</category>
      <category>debugging</category>
      <category>opensource</category>
      <category>node</category>
    </item>
    <item>
      <title>Cordis services and injection: how DeepSeek Harness orders plugin activation</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Sun, 29 Nov 2026 02:24:35 +0000</pubDate>
      <link>https://dev.to/createsun/cordis-services-and-injection-how-deepseek-harness-orders-plugin-activation-g82</link>
      <guid>https://dev.to/createsun/cordis-services-and-injection-how-deepseek-harness-orders-plugin-activation-g82</guid>
      <description>&lt;p&gt;Most "how do I extend this thing" questions about DeepSeek Harness turn out to be a question about services. A plugin does not reach into some central object and switch behaviour on; it provides a capability under a stable name, or it asks for one by name and waits. Once you can tell a service definition from its provider from the code that consumes it, activation order stops being something you guess and starts being something the framework computes for you.&lt;/p&gt;

&lt;p&gt;This is a walk through that model using the &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/reference/cordis-primer" rel="noopener noreferrer"&gt;Cordis primer&lt;/a&gt; and the &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/reference/" rel="noopener noreferrer"&gt;architecture reference&lt;/a&gt;. It is about composition and lifecycle — not a claim that any particular plugin, or the data it handles, is safe to load.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1iph9hiak4upmq5zwchk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1iph9hiak4upmq5zwchk.webp" alt="A service definition, provider and consumer connected by a context" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Three roles that get blurred together
&lt;/h2&gt;

&lt;p&gt;The primer describes a plugin as a function with optional &lt;code&gt;inject&lt;/code&gt; and &lt;code&gt;apply(ctx)&lt;/code&gt; fields, or as a &lt;code&gt;Service&lt;/code&gt; subclass mounted into a context. A service claims a stable key — &lt;code&gt;ctx.tools&lt;/code&gt;, &lt;code&gt;ctx.llm&lt;/code&gt;, &lt;code&gt;ctx.sessions&lt;/code&gt; — and consumers find the capability through that key instead of importing a concrete class.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;Responsibility&lt;/th&gt;
&lt;th&gt;The question it answers&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Definition&lt;/td&gt;
&lt;td&gt;Establish the interface&lt;/td&gt;
&lt;td&gt;What contract must an implementation satisfy?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Provider&lt;/td&gt;
&lt;td&gt;Implement the service&lt;/td&gt;
&lt;td&gt;Which composition supplies it?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Consumer&lt;/td&gt;
&lt;td&gt;Use the capability&lt;/td&gt;
&lt;td&gt;Which service does it require?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context&lt;/td&gt;
&lt;td&gt;Resolve scoped services and offer framework APIs&lt;/td&gt;
&lt;td&gt;Which implementation is visible here?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The architecture reference frames a swappable capability as a seam: a definition, a provider that implements it, and a consumer that is often a model-facing tool. One package can play more than one role. What does not follow is that a definition alone produces a working implementation, or that a consumer creates the thing it uses. Those are separate facts and they fail separately.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;inject&lt;/code&gt; is how activation gets ordered
&lt;/h2&gt;

&lt;p&gt;A plugin declares the services it needs through &lt;code&gt;inject&lt;/code&gt;, and Cordis holds that plugin until those services exist. That is the whole mechanism, and it is worth being precise about what it buys you: it removes the need to predict a global startup sequence for every plugin in the tree.&lt;/p&gt;

&lt;p&gt;What it does not do is install anything. Declaring a dependency on a service never pulls in a provider package, and a service name present in one context is not evidence that the same name resolves to the same implementation somewhere else. When a consumer sits forever without activating, the missing service is the thing to look for — not a missing package install.&lt;/p&gt;

&lt;p&gt;Configuration expressions have their own timing. The primer notes that an entry's &lt;code&gt;config&lt;/code&gt; is interpolated after declared injections activate, evaluated against the plugin's context, while the &lt;code&gt;disabled&lt;/code&gt; expression is evaluated at each mount decision against the loader context, and other entry metadata stays literal. If a configuration expression reads a service, both the declared dependency and the context it evaluates in are part of the design.&lt;/p&gt;

&lt;p&gt;When activation fails, a waiting consumer is often downstream of the provider error rather than the cause of it. &lt;a href="https://dsh-plugin.com/blog/pending-plugins-missing-services-diagnostics" rel="noopener noreferrer"&gt;Startup diagnostics&lt;/a&gt; is about collecting exactly that evidence: a pending entry on its own does not tell you which provider is at fault.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding or replacing a capability
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Identify the capability and its existing service definition. Read the methods and event contracts before picking an extension point.&lt;/li&gt;
&lt;li&gt;Find the provider in the composition you actually run, and the consumers using the key. Check whether any package combines roles.&lt;/li&gt;
&lt;li&gt;Declare what the consumer needs and obtain the capability through the context, keeping behaviour tied to the documented interface rather than one implementation's quirks.&lt;/li&gt;
&lt;li&gt;Register the provider or consumer in the intended composition and scope. The architecture describes provider swaps through service seams; visibility still depends on context.&lt;/li&gt;
&lt;li&gt;Test activation &lt;em&gt;and&lt;/em&gt; a representative operation. On replacement or unload, confirm registrations were withdrawn and no stale behaviour survived.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The two seams are easy to confuse. &lt;code&gt;ctx.llm&lt;/code&gt; is the model adapter seam; &lt;code&gt;ctx.tools&lt;/code&gt; is the scoped tool registry. Registering an adapter on the first is a different act from registering a model-facing capability on the second. And because a swap changes behaviour for every consumer that resolves that service, it has to be judged against the shared contract, not against one caller's happy path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Events, effects, and why unload is the hard part
&lt;/h2&gt;

&lt;p&gt;Services are for direct capability calls. Events are the extension points for observation, interception and policy, and the primer lists &lt;code&gt;emit&lt;/code&gt;, &lt;code&gt;waterfall&lt;/code&gt;, &lt;code&gt;parallel&lt;/code&gt;, &lt;code&gt;serial&lt;/code&gt; and &lt;code&gt;bail&lt;/code&gt; as distinct dispatch shapes. The mode belongs to the event's contract.&lt;/p&gt;

&lt;p&gt;The one that catches people is &lt;code&gt;waterfall&lt;/code&gt;. A listener receives &lt;code&gt;next&lt;/code&gt; and delegates with &lt;code&gt;next()&lt;/code&gt;; returning without calling it short-circuits everything downstream. An observer that forgets to delegate has silently changed behaviour instead of observing it.&lt;/p&gt;

&lt;p&gt;Registrations — listeners, tool schemas, adapters, prompt sections — are reversible effects. &lt;code&gt;ctx.effect()&lt;/code&gt; and helpers such as &lt;code&gt;ctx.on()&lt;/code&gt; dispose them with the owning instance, and where teardown order matters the primer recommends keeping related work inside one effect so it unwinds in the intended order. Reload and teardown should remove the old registrations. A provider that starts cleanly but leaves its old listeners behind after replacement is not a finished integration.&lt;/p&gt;

&lt;p&gt;These properties are independent. A correctly injected service does not guarantee a listener delegates correctly, and correct disposal does not establish that a replacement provider behaves like the one it replaced. Test them one at a time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scope is a container, not a promise
&lt;/h2&gt;

&lt;p&gt;A context is a scoped service container. The &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/reference/cordis-api/context" rel="noopener noreferrer"&gt;Context reference&lt;/a&gt; documents child contexts created by &lt;code&gt;extend&lt;/code&gt;, &lt;code&gt;isolate&lt;/code&gt; and &lt;code&gt;intercept&lt;/code&gt; without mutating the parent; &lt;code&gt;isolate&lt;/code&gt; gives a named service an independent scope. A service present in one scope is not proof that a consumer elsewhere resolves the same implementation — &lt;a href="https://dsh-plugin.com/blog/cordis-context-capabilities" rel="noopener noreferrer"&gt;Context capabilities&lt;/a&gt; goes through those distinctions.&lt;/p&gt;

&lt;p&gt;None of this is a trust boundary. Injection does not install missing packages, does not validate external systems, and does not vouch for the implementation behind a key. An activated plugin can still fail when its actual operation runs. Review the code and configuration appropriate to your deployment.&lt;/p&gt;

&lt;h3&gt;
  
  
  Comparing a replacement honestly
&lt;/h3&gt;

&lt;p&gt;Run the same representative consumer operation before and after the swap. Registration proves the provider appeared; the operation checks the interface behaviour the consumer depends on. Then unload it and confirm its effects are gone. Keep each result separate rather than reading one clean activation as evidence that the whole integration is correct.&lt;/p&gt;

&lt;h2&gt;
  
  
  The terms worth keeping straight
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Plugin&lt;/strong&gt; — a unit mounted by Cordis, possibly acting in several roles.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Service definition&lt;/strong&gt; — the interface for a capability.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Provider&lt;/strong&gt; — an implementation made available under a context key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consumer&lt;/strong&gt; — a plugin or component that uses the capability.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Injection&lt;/strong&gt; — a declaration that coordinates access to required services.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Effect&lt;/strong&gt; — a registration with cleanup tied to its lifecycle.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are starting from nothing, the companion pieces are the &lt;a href="https://dsh-plugin.com/blog/cordis-plugin-tree" rel="noopener noreferrer"&gt;plugin tree overview&lt;/a&gt;, which covers how profiles and bundles assemble the tree these services live in, and the &lt;a href="https://dsh-plugin.com/blog/start-developing-a-plugin" rel="noopener noreferrer"&gt;first plugin tutorial&lt;/a&gt; for the local loop.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://dsh-plugin.com/blog/cordis-plugins-services-dependency-injection" rel="noopener noreferrer"&gt;https://dsh-plugin.com/blog/cordis-plugins-services-dependency-injection&lt;/a&gt;&lt;/p&gt;

</description>
      <category>plugins</category>
      <category>dependencyinjection</category>
      <category>deepseek</category>
      <category>cordis</category>
    </item>
    <item>
      <title>There Is No Core: How DeepSeek Harness Assembles a Cordis Plugin Tree</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Sat, 28 Nov 2026 02:23:34 +0000</pubDate>
      <link>https://dev.to/createsun/there-is-no-core-how-deepseek-harness-assembles-a-cordis-plugin-tree-276m</link>
      <guid>https://dev.to/createsun/there-is-no-core-how-deepseek-harness-assembles-a-cordis-plugin-tree-276m</guid>
      <description>&lt;p&gt;If you have ever gone looking for the "core" of DeepSeek Harness, you will not find one. There is no privileged module that everything else patches into. What you find instead is a Cordis plugin tree, assembled at startup from a stack of configuration layers — and once you see the layering, most of the surprising behaviour around profiles, activation and replacement stops being surprising.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/reference/" rel="noopener noreferrer"&gt;architecture reference&lt;/a&gt; states it plainly: every product component is a plugin, including model adapters, the tool registry, Session logging and the agent loop. Plugins contribute services, typed events and reversible effects to a shared context. Extension means mounting a plugin alongside others, not patching a privileged centre.&lt;/p&gt;

&lt;p&gt;That composition model is the subject here. It is a lifecycle and assembly story, and it is explicitly &lt;em&gt;not&lt;/em&gt; a security guarantee about the code being mounted.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4is3ey7h8mlqo9h0y088.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4is3ey7h8mlqo9h0y088.webp" alt="Profile bundle layers form a plugin tree whose services and effects have lifecycles" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Layers apply to an empty list, and later ones win
&lt;/h2&gt;

&lt;p&gt;A profile is a named assembly stored in Harness home. It lists bundles, stores out-of-tree plugins installed for that profile, and keeps its own &lt;code&gt;cordis.patch.yml&lt;/code&gt;. Bundles ship Cordis configuration entries plus mounting code; their &lt;code&gt;package.json&lt;/code&gt; declares &lt;code&gt;dsh.profile&lt;/code&gt; to list a profile's bundles and &lt;code&gt;dsh.bundle&lt;/code&gt; to identify a bundle's patch.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer or concept&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Bundle patches&lt;/td&gt;
&lt;td&gt;Ordered contributions named by the profile&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Profile patch&lt;/td&gt;
&lt;td&gt;User changes for that profile&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Home patch&lt;/td&gt;
&lt;td&gt;Machine-local layer shared across profiles&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;--patch&lt;/code&gt; overlays&lt;/td&gt;
&lt;td&gt;Additional command-line layers applied in argument order&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Runtime tree&lt;/td&gt;
&lt;td&gt;Mounted plugins and their active services and effects&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The important detail is what these layers operate on: an initially empty entry list. A patch targets an entry by id and either replaces that entry's entire config or inserts a new one. A preset patch performs the same operations inside the target's &lt;code&gt;config.plugins&lt;/code&gt;, with the same precedence rules. So a later layer can alter what a bundle contributed without editing the bundle — and replacing a row means the config is &lt;em&gt;not&lt;/em&gt; deep-merged, so any value that should survive has to be restated. The &lt;a href="https://dsh-plugin.com/blog/config-layer-precedence" rel="noopener noreferrer"&gt;config precedence guide&lt;/a&gt; goes through that consequence in more depth.&lt;/p&gt;

&lt;p&gt;This is also why profiles are not interchangeable. The shipped &lt;code&gt;web&lt;/code&gt;, &lt;code&gt;headless&lt;/code&gt;, &lt;code&gt;sdk&lt;/code&gt; and &lt;code&gt;acp&lt;/code&gt; profiles share &lt;code&gt;dsh-base&lt;/code&gt; as a common first layer, and their application bundles add different hosts. &lt;code&gt;sdk-minimal&lt;/code&gt; is the documented exception: one bundle, an explicit SDK tree, and no &lt;code&gt;dsh-base&lt;/code&gt;. Same framework, deliberately different products.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deps decide activation order; effects decide cleanup
&lt;/h2&gt;

&lt;p&gt;Services live at stable context keys — &lt;code&gt;ctx.tools&lt;/code&gt;, &lt;code&gt;ctx.llm&lt;/code&gt;, &lt;code&gt;ctx.sessions&lt;/code&gt;. Consumers reference the key rather than importing a concrete implementation. A plugin declares what it needs through &lt;code&gt;inject&lt;/code&gt;, and Cordis holds the dependent plugin until those services are ready. Ordering comes out of the dependency graph instead of a hand-maintained startup sequence.&lt;/p&gt;

&lt;p&gt;Typed events are the second channel. The primer lists &lt;code&gt;emit&lt;/code&gt;, &lt;code&gt;waterfall&lt;/code&gt;, &lt;code&gt;parallel&lt;/code&gt;, &lt;code&gt;serial&lt;/code&gt; and &lt;code&gt;bail&lt;/code&gt; for the different dispatch shapes, and recommends events for interception and policy while keeping direct capability calls on service methods.&lt;/p&gt;

&lt;p&gt;Registration itself can be an effect rather than a static row. Per the primer, &lt;code&gt;ctx.effect()&lt;/code&gt; and helpers such as &lt;code&gt;ctx.on()&lt;/code&gt; register reversibly, so a reload or teardown removes the associated listeners and tool schemas. That is what makes replacement and reload viable at all — but it only covers what the plugin registered as an effect. Resources needing explicit cleanup are still the plugin's own responsibility, and a declared dependency never installs a service that is missing; it only says what must be available first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspecting the tree you actually run
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Pin down the profile you actually start — its bundle list and patches determine the assembly.&lt;/li&gt;
&lt;li&gt;Dump the composition:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   dsh --profile web --dump-config
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Trace the entry you care about and the layers that contributed or changed it.&lt;/li&gt;
&lt;li&gt;Check declared dependencies and available services before blaming a plugin that never activated — and read the real startup errors for your environment.&lt;/li&gt;
&lt;li&gt;Change one layer and verify the resulting behaviour.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 5 has a catch worth knowing before you rely on it: HMR is configuration-driven. The architecture says &lt;code&gt;dsh-base&lt;/code&gt; enables configuration watching, while Headless, SDK and ACP disable it, and &lt;code&gt;sdk-minimal&lt;/code&gt; does not include it at all. Profile patches can override those defaults, so do not assume every profile watches its files.&lt;/p&gt;

&lt;p&gt;A concrete example makes the layering tangible. A profile includes a bundle, then changes one of that bundle's entries. The bundle supplies the initial row; the profile patch targets its id; the home patch and any command-line overlays apply later. If a late layer supplies a replacement config, omitted keys are not inherited from the earlier row — flexibility and the need to inspect the full effective config are the same fact seen from two sides.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mounted is not the same as installed
&lt;/h2&gt;

&lt;p&gt;The runtime tree and the list of installed packages are different objects. Installation can place code where the profile can resolve it, but activation also depends on the selected entries, their configuration and their required services. When a capability you expect is absent, check those four steps separately — source resolution, configuration composition, service readiness, the resulting registration — rather than inferring one from another's success. A printed composition is good evidence about which entries were selected; it is not proof that every plugin activated or behaves correctly.&lt;/p&gt;

&lt;p&gt;The same caution applies to replacement. Two plugins with similar names are not interchangeable unless the actual service contract and dependencies line up. And because a targeted row takes a whole-config replacement, an edit can silently remove a value or expression another layer depended on.&lt;/p&gt;

&lt;p&gt;Finally, the safety boundary: a plugin can execute code and register side effects. Inspect the precise code and dependency set you intend to load, and test with data and permissions you are willing to expose. A successful mount, a reversible registration, or a clean plugin listing does not make a plugin safe. If you are writing one, &lt;a href="https://dsh-plugin.com/blog/start-developing-a-plugin" rel="noopener noreferrer"&gt;the first plugin tutorial&lt;/a&gt; covers the local development loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Terms worth keeping straight
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cordis&lt;/strong&gt;: the plugin framework underneath the Harness composition.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Profile&lt;/strong&gt;: a named assembly of bundles plus profile-specific changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bundle&lt;/strong&gt;: a distribution of configuration entries and mounting code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Service&lt;/strong&gt;: a capability exposed at a context key for other plugins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Effect and disposer&lt;/strong&gt;: a registration and the cleanup that runs when it goes away.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Originally published at &lt;a href="https://dsh-plugin.com/blog/cordis-plugin-tree" rel="noopener noreferrer"&gt;https://dsh-plugin.com/blog/cordis-plugin-tree&lt;/a&gt;&lt;/p&gt;

</description>
      <category>deepseek</category>
      <category>architecture</category>
      <category>opensource</category>
      <category>programming</category>
    </item>
    <item>
      <title>Your DeepSeek Harness server is running — so why is the input box dead?</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Fri, 27 Nov 2026 02:25:42 +0000</pubDate>
      <link>https://dev.to/createsun/your-deepseek-harness-server-is-running-so-why-is-the-input-box-dead-2f6i</link>
      <guid>https://dev.to/createsun/your-deepseek-harness-server-is-running-so-why-is-the-input-box-dead-2f6i</guid>
      <description>&lt;p&gt;The first thing that surprises people about the DeepSeek Harness Web UI is that a running server is not the same as a usable session. You can have &lt;code&gt;dsh web&lt;/code&gt; printing a healthy local URL, open it, and still find yourself unable to type anything. That is not a broken install. It is a missing workspace.&lt;/p&gt;

&lt;p&gt;This walks the gap between "the server is up" and "the agent is doing something useful" — the four steps in between, what each one actually gates, and how to tell which stage you are stuck at.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step one: start the server and read what it prints
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/guide/quickstart" rel="noopener noreferrer"&gt;Web UI guide&lt;/a&gt; assumes the server is already running. The &lt;a href="https://github.com/deepseek-ai/deepseek-harness#run" rel="noopener noreferrer"&gt;repository README&lt;/a&gt; is where the launch itself lives: install Node.js, then from the project directory you intend to work in, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @deepseek-ai/dsh web
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By default that serves on &lt;code&gt;http://127.0.0.1:3080&lt;/code&gt; and opens your default browser. The command prints the URL it is bound to — use what it prints rather than assuming the default, because your installation or flags may not match the documentation's example.&lt;/p&gt;

&lt;p&gt;Three details in that sentence matter more than they look:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;SSH changes who owns the address.&lt;/strong&gt; A remote launch prints the host URL instead of opening a browser, and the SSH client or editor owns the forwarded local address. Those are two different strings; do not paste the server's host address into a browser that expects the forwarded one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;--no-open&lt;/code&gt; suppresses the browser launch&lt;/strong&gt; without changing anything else. Useful when you want the URL but not a window.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The directory you start from is the default filesystem location.&lt;/strong&gt; That sounds like it selects the workspace. It does not — see step three.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv8zcrkujmbzmzuwq6w72.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv8zcrkujmbzmzuwq6w72.webp" alt="Start the server, configure a model, select a workspace, and send a task" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step two: save the model key (no restart needed)
&lt;/h2&gt;

&lt;p&gt;Open the printed URL while the process keeps running, then go to &lt;strong&gt;Settings → Models&lt;/strong&gt;, enter a DeepSeek API key, and save.&lt;/p&gt;

&lt;p&gt;The guide says the model route becomes usable immediately — saving the key is not a change that requires restarting the server. Keep that in mind, because it is the reason a later problem is probably &lt;em&gt;not&lt;/em&gt; "I need to restart."&lt;/p&gt;

&lt;h2&gt;
  
  
  Step three: choose the workspace, and mean it
&lt;/h2&gt;

&lt;p&gt;Click &lt;strong&gt;Choose workspace&lt;/strong&gt;, add the project directory you started &lt;code&gt;dsh&lt;/code&gt; from, and select it.&lt;/p&gt;

&lt;p&gt;This is the step people skip, and it is the one that explains the disabled input. &lt;strong&gt;The session composer is unavailable until a workspace is selected.&lt;/strong&gt; A fresh Web UI starts with no workspace even when you launched it from inside a project directory — starting in the project directory and selecting the workspace are related, but they are separate steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step four: send a bounded first request
&lt;/h2&gt;

&lt;p&gt;Start a session and send the guide's example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Summarize this repository and identify its main packages.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Then read the response &lt;em&gt;and&lt;/em&gt; the tool activity. If the active permission policy requires approval for an operation, the UI asks before it proceeds — decide based on the actual requested action, not on how routine the request sounded.&lt;/p&gt;

&lt;p&gt;The example is a deliberately conservative first task. It gives the agent a concrete subject and a deliverable you can check, without assuming it will edit files. If the summary comes back too broad, follow up with a particular directory or a specific question rather than starting over.&lt;/p&gt;

&lt;p&gt;The guide also describes editing files, running commands, delegating work, and maintaining a plan as possible agent capabilities. It does not promise every deployment enables the same tools — so treat that list as "what this class of tool can do," not as a checklist the UI owes you.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four gates, side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Expected result&lt;/th&gt;
&lt;th&gt;If it is missing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Start server&lt;/td&gt;
&lt;td&gt;A URL is printed&lt;/td&gt;
&lt;td&gt;Inspect the startup output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Save model key&lt;/td&gt;
&lt;td&gt;Model route becomes usable&lt;/td&gt;
&lt;td&gt;Recheck the setting and key&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Select workspace&lt;/td&gt;
&lt;td&gt;Composer becomes available&lt;/td&gt;
&lt;td&gt;Add and select the project directory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Send task&lt;/td&gt;
&lt;td&gt;Agent begins the session&lt;/td&gt;
&lt;td&gt;Check the selected workspace and model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Review approval&lt;/td&gt;
&lt;td&gt;UI asks when policy requires it&lt;/td&gt;
&lt;td&gt;Read the requested operation and policy&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The value of laying it out this way is diagnostic. An unavailable input box is not, by itself, evidence that your key is invalid — the guide requires selecting a workspace before the composer appears, and it does not require a restart after saving the key. Those are two independent conditions, so check them independently.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a good first request contains
&lt;/h2&gt;

&lt;p&gt;Three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The outcome you want&lt;/strong&gt; — a summary, an entry-point map, an explanation of one package.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The relevant project area&lt;/strong&gt;, especially in a repository too large to summarize usefully in one pass.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Any constraints that matter to you&lt;/strong&gt; — read-only for now, stay inside a directory, cite files.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Note what the example does &lt;em&gt;not&lt;/em&gt; require: knowing an internal tool name. The prompt is a session message, not a terminal command. You describe the intent and let the agent choose how to inspect the workspace, then judge the action it proposes.&lt;/p&gt;

&lt;p&gt;A genuinely useful first session teaches you two things at once — the repository, and how this application displays work and asks for approval.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it stalls, stage by stage
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Browser did not open.&lt;/strong&gt; Use the printed URL. The README documents this for SSH and &lt;code&gt;--no-open&lt;/code&gt;; nothing is broken.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Composer is disabled in a fresh UI.&lt;/strong&gt; Select the workspace as above. This is the single most common cause.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A model request cannot proceed.&lt;/strong&gt; Verify the saved model configuration. The quickstart documents saving the key but does not provide a universal diagnosis for every provider error. For other providers, the &lt;a href="https://dsh-plugin.com/blog/configure-models-providers" rel="noopener noreferrer"&gt;model configuration guide&lt;/a&gt; covers the additional cases.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Startup failed before any URL was printed.&lt;/strong&gt; Preserve the terminal error. Required plugin activation failures can produce a full report, and &lt;a href="https://dsh-plugin.com/blog/find-the-full-diagnostics-log-when-startup-fails" rel="noopener noreferrer"&gt;the startup diagnostics guide&lt;/a&gt; explains where to find it — and what it will not tell you.&lt;/p&gt;

&lt;p&gt;The point of separating these: a disabled composer, a model error, and a server startup failure occur at &lt;em&gt;different stages&lt;/em&gt;. Capture the stage and the exact message before you start changing settings, or you will spend the session fixing something that was never wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do not mix the npm path with the source path
&lt;/h2&gt;

&lt;p&gt;The README documents a second way to run this: clone the repository, install dependencies, run &lt;code&gt;pnpm run build&lt;/code&gt;, then start with &lt;code&gt;pnpm dsh web&lt;/code&gt;. The build prepares artifacts; the source launch reuses them without rebuilding.&lt;/p&gt;

&lt;p&gt;That is a different setup from the &lt;code&gt;npx&lt;/code&gt; example. Choose the path that matches your installation and do not blend the instructions — in either case, wait for the printed address before beginning the UI steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits and safety boundaries
&lt;/h2&gt;

&lt;p&gt;Selecting a workspace is a necessary UI step, not a safety guarantee. The agent may read and edit files and run commands, subject to the tools and policy in your deployment. Review any approval request together with the task's possible effects.&lt;/p&gt;

&lt;p&gt;Two practical rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Do not paste API keys or private data into the conversation.&lt;/strong&gt; Model settings are the intended place for the key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A default local URL does not describe a secure public deployment.&lt;/strong&gt; &lt;code&gt;127.0.0.1&lt;/code&gt; is a local default; exposing the server is a separate situation with its own guidance.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Terms, briefly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Web server&lt;/strong&gt; — the process serving the browser interface and printing its access URL.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model route&lt;/strong&gt; — the configured path used to send model requests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Workspace&lt;/strong&gt; — the selected project directory associated with the session.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Composer&lt;/strong&gt; — the input used to send a session message; it requires a selected workspace.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permission policy&lt;/strong&gt; — the active rules that determine whether an operation requires approval.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;If you want the version of this with the full step-by-step and the surrounding setup, the original is here: &lt;a href="https://dsh-plugin.com/blog/start-my-first-task-in-the-web-ui" rel="noopener noreferrer"&gt;DeepSeek Harness: Start Your First Web UI Task&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://dsh-plugin.com/blog/start-my-first-task-in-the-web-ui" rel="noopener noreferrer"&gt;https://dsh-plugin.com/blog/start-my-first-task-in-the-web-ui&lt;/a&gt;&lt;/p&gt;

</description>
      <category>deepseek</category>
      <category>ai</category>
      <category>tutorial</category>
      <category>opensource</category>
    </item>
    <item>
      <title>A Design Skill That Says So When It Breaks: Inside impeccable's 24 Commands</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Thu, 26 Nov 2026 13:08:14 +0000</pubDate>
      <link>https://dev.to/createsun/a-design-skill-that-says-so-when-it-breaks-inside-impeccables-24-commands-11l5</link>
      <guid>https://dev.to/createsun/a-design-skill-that-says-so-when-it-breaks-inside-impeccables-24-commands-11l5</guid>
      <description>&lt;p&gt;The &lt;code&gt;impeccable&lt;/code&gt; design skill does one thing I haven't seen in other skills. It specifies how it fails. If its launcher can't run, the skill forbids a retry and makes the agent send a separate message before its next tool call: "Context loading did not run; I'll read the existing project context directly."&lt;/p&gt;

&lt;p&gt;That rule appears once in a 1,689-word file that routes 24 design commands. The rest of this post covers how the skill is built and what it costs to run. The listing is &lt;a href="https://skills.pub/en/skills/pbakaus-impeccable-impeccable" rel="noopener noreferrer"&gt;impeccable on skills.pub&lt;/a&gt;. The repository is &lt;code&gt;pbakaus/impeccable&lt;/code&gt;: 117,236 stars on 2026-11-26, Apache-2.0, plugin version 4.11.1.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does the skill actually dispatch?
&lt;/h2&gt;

&lt;p&gt;Twenty-four commands in one table, plus aliases: &lt;code&gt;shape&lt;/code&gt;, &lt;code&gt;critique&lt;/code&gt;, &lt;code&gt;audit&lt;/code&gt;, &lt;code&gt;polish&lt;/code&gt;, &lt;code&gt;bolder&lt;/code&gt;, &lt;code&gt;quieter&lt;/code&gt;, &lt;code&gt;distill&lt;/code&gt;, &lt;code&gt;harden&lt;/code&gt;, &lt;code&gt;onboard&lt;/code&gt;, &lt;code&gt;animate&lt;/code&gt;, &lt;code&gt;colorize&lt;/code&gt;, &lt;code&gt;typeset&lt;/code&gt;, &lt;code&gt;layout&lt;/code&gt;, &lt;code&gt;delight&lt;/code&gt;, &lt;code&gt;overdrive&lt;/code&gt;, &lt;code&gt;clarify&lt;/code&gt;, &lt;code&gt;adapt&lt;/code&gt;, &lt;code&gt;optimize&lt;/code&gt;, &lt;code&gt;live&lt;/code&gt;, &lt;code&gt;generate&lt;/code&gt;, &lt;code&gt;init&lt;/code&gt;, &lt;code&gt;document&lt;/code&gt;, &lt;code&gt;extract&lt;/code&gt;, &lt;code&gt;craft&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The skill is upfront about its aliases. &lt;code&gt;teach&lt;/code&gt; aliases &lt;code&gt;init&lt;/code&gt;. &lt;code&gt;craft&lt;/code&gt; is "a deprecated alias for ordinary new-work and adds nothing". Most command tables don't admit that two of their entries are duplicates.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;What it holds&lt;/th&gt;
&lt;th&gt;Why it exists&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;SKILL.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;~1,700 words: setup, four modes, 24 commands&lt;/td&gt;
&lt;td&gt;The router the model reads&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;reference/*.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;~50 playbooks, loaded per command&lt;/td&gt;
&lt;td&gt;Only the playbook for the current command loads&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;scripts/impeccable&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;POSIX-sh launcher for a Rust binary&lt;/td&gt;
&lt;td&gt;Context loading, catalog access, hooks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;plugin/agents/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;5 subagent definitions&lt;/td&gt;
&lt;td&gt;Asset production, documentation, reviews&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What are the four modes?
&lt;/h2&gt;

&lt;p&gt;The modes are &lt;code&gt;Persuade&lt;/code&gt;, &lt;code&gt;Operate&lt;/code&gt;, &lt;code&gt;Read&lt;/code&gt; and &lt;code&gt;Experience&lt;/code&gt;. Each one is defined by what success looks like for the visitor, not by product category: "The mode names what the visitor's success looks like on this surface." The mode is picked "from the requested surface, not the product". That rule stops a marketing site and its admin dashboard from getting the same treatment.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does the execution path work?
&lt;/h2&gt;

&lt;p&gt;The skill gives three steps in a fixed order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run &lt;code&gt;scripts/impeccable context&lt;/code&gt; once per session. It loads &lt;code&gt;PRODUCT.md&lt;/code&gt;, &lt;code&gt;DESIGN.md&lt;/code&gt; and the surface brief. The instruction is to "follow its directives and do not rerun it."&lt;/li&gt;
&lt;li&gt;Load the playbook for the request. Each command maps to a reference file. For example, &lt;code&gt;critique&lt;/code&gt; loads &lt;code&gt;critique-rubric.md&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Read &lt;code&gt;reference/craft-floor.md&lt;/code&gt; "immediately before any UI edit". The skill says not to load it for planning-only work.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 1 is the one that can fail, and that is where the degraded-mode message from the intro applies. The fallback is written into the prompt, so the model doesn't have to improvise one. Most skills either fail silently or leave it to the model.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does the launcher need?
&lt;/h2&gt;

&lt;p&gt;The launcher runs a self-contained Rust binary. It looks for one in this order: &lt;code&gt;$IMPECCABLE_BIN&lt;/code&gt;, a sibling &lt;code&gt;bin/&amp;lt;os&amp;gt;-&amp;lt;arch&amp;gt;/impeccable&lt;/code&gt;, &lt;code&gt;~/.impeccable/bin/&lt;/code&gt;, a version-pinned cache, then &lt;code&gt;PATH&lt;/code&gt;. If none is found, it downloads one from the GitHub release on first run and checks it against the SHA-256 digests in &lt;code&gt;scripts/engine-checksums.txt&lt;/code&gt;. The engine is pinned separately from the skill. On 2026-11-20 the pin was &lt;code&gt;0.1.27&lt;/code&gt;. By 2026-11-26 it was &lt;code&gt;0.1.31&lt;/code&gt;, while the plugin moved from 4.10.0 to 4.11.1.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Runtime dependency&lt;/td&gt;
&lt;td&gt;A Rust binary, not Node or Python, downloaded once&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Network at runtime&lt;/td&gt;
&lt;td&gt;A new design start fetches visual directions from the impeccable.style catalog&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Can you opt out of telemetry?&lt;/td&gt;
&lt;td&gt;Yes: &lt;code&gt;npx impeccable telemetry off&lt;/code&gt;, &lt;code&gt;DO_NOT_TRACK=1&lt;/code&gt;, or &lt;code&gt;"telemetry": false&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Does that stop the catalog request?&lt;/td&gt;
&lt;td&gt;No. The README says turning telemetry off "doesn't stop that request."&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The last row matters in air-gapped or audited environments. Turning telemetry off does not make the skill fully offline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does it use hooks and subagents?
&lt;/h2&gt;

&lt;p&gt;It uses both, which is unusual for a design skill.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;plugin/hooks/hooks.json&lt;/code&gt; defines three hooks: &lt;code&gt;SessionStart&lt;/code&gt; (timeout 5), &lt;code&gt;PostToolUse&lt;/code&gt; matching &lt;code&gt;Edit|Write&lt;/code&gt; (timeout 5), and &lt;code&gt;Stop&lt;/code&gt; (timeout 30). All three shell out to &lt;code&gt;scripts/impeccable hook&lt;/code&gt;. The &lt;code&gt;PostToolUse&lt;/code&gt; matcher lets the skill react to each file edit, not only to the start of a session.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;plugin/agents/&lt;/code&gt; holds five agent definitions:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Agent&lt;/th&gt;
&lt;th&gt;Tool restriction&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;impeccable-asset-producer&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;impeccable-documenter&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;impeccable-finish-reviewer&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;disallowedTools: Write, Edit, NotebookEdit&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;impeccable-manual-edit-applier&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;impeccable-motion-reviewer&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;tools: Read, Bash, Glob, Grep&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both reviewers are read-only through their tool lists. An instruction telling a reviewer not to edit files is weaker than that, so this is the detail to copy if you build your own review agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  The &lt;code&gt;allowed-tools&lt;/code&gt; gap
&lt;/h2&gt;

&lt;p&gt;The source template &lt;code&gt;skill/SKILL.src.md&lt;/code&gt; declares &lt;code&gt;allowed-tools&lt;/code&gt; for its own launcher calls. The shipped &lt;code&gt;SKILL.md&lt;/code&gt; has no &lt;code&gt;allowed-tools&lt;/code&gt; key. If your harness asks permission before each Bash call, every launcher call will prompt. That is safer, but it is a rougher flow than the skill's own docs describe.&lt;/p&gt;

&lt;h2&gt;
  
  
  One skill, many harnesses
&lt;/h2&gt;

&lt;p&gt;The repository has 27 &lt;code&gt;SKILL.md&lt;/code&gt; paths for one logical skill. Four are test fixtures under &lt;code&gt;tests/&lt;/code&gt;. The other 23 are the same file rendered for different harnesses (&lt;code&gt;.claude&lt;/code&gt;, &lt;code&gt;.cursor&lt;/code&gt;, &lt;code&gt;.gemini&lt;/code&gt;, &lt;code&gt;.kiro&lt;/code&gt;, &lt;code&gt;.opencode&lt;/code&gt;, &lt;code&gt;.trae&lt;/code&gt;, &lt;code&gt;.agents&lt;/code&gt; and more), each with its own templated frontmatter. That is why the skill shows up under many directories when you browse the repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  How is it installed?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Route&lt;/th&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;What you get&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code marketplace&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;/plugin marketplace add pbakaus/impeccable&lt;/code&gt; then &lt;code&gt;/plugin&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;The plugin build from &lt;code&gt;./plugin&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CLI&lt;/td&gt;
&lt;td&gt;&lt;code&gt;npx impeccable install --providers=claude,codex,cursor --scope=project&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Per-harness directories written into your project&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Use the CLI route if you want the skill committed with your code. &lt;code&gt;npx impeccable update&lt;/code&gt; refreshes it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is it worth installing?
&lt;/h2&gt;

&lt;p&gt;The 24 commands give you a separate word for each stage of design work. "distill this" and "polish this" load different playbooks, where a generic prompt would get the same pass twice. The product is that vocabulary and the router behind it.&lt;/p&gt;

&lt;p&gt;The costs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A version-pinned Rust binary on disk, with an update path separate from the skill.&lt;/li&gt;
&lt;li&gt;A catalog request on new design work, which telemetry settings do not turn off.&lt;/li&gt;
&lt;li&gt;No &lt;code&gt;allowed-tools&lt;/code&gt;, so each launcher call prompts unless your harness allows it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Three checks before you adopt it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Break the launcher on purpose and confirm the agent sends the degraded-mode message instead of retrying.&lt;/li&gt;
&lt;li&gt;Turn telemetry off and confirm whether the catalog request still happens.&lt;/li&gt;
&lt;li&gt;Confirm &lt;code&gt;craft-floor.md&lt;/code&gt; loads right before an edit and not during planning.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://skills.pub/en/blog/impeccable-skill-design-vocabulary" rel="noopener noreferrer"&gt;skills.pub&lt;/a&gt;. Stars, versions, the engine pin and the SKILL.md path count were re-checked against the repository on 2026-11-26.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>claude</category>
      <category>design</category>
      <category>ai</category>
      <category>frontend</category>
    </item>
    <item>
      <title>A GTA 6 Clipping Plugin That Refuses to Post For You</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Mon, 23 Nov 2026 07:16:48 +0000</pubDate>
      <link>https://dev.to/createsun/a-gta-6-clipping-plugin-that-refuses-to-post-for-you-6o2</link>
      <guid>https://dev.to/createsun/a-gta-6-clipping-plugin-that-refuses-to-post-for-you-6o2</guid>
      <description>&lt;p&gt;Most clipping tools promise that you will "just hit post." This one is built to stop before that.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;gtavi-claudecode&lt;/code&gt; is a Claude Code plugin of 16 skills: it finds a public GTA 6 video, scores the moments, and cuts a 1080x1920 clip with burned-in captions. Then every skill that produces a file ends by waiting for a human "yes." It will not upload. On &lt;a href="https://skills.pub/en/skills/vivian1987-gtavi-claudecode-clip-cutter" rel="noopener noreferrer"&gt;skills.pub&lt;/a&gt; the live copy is &lt;code&gt;Vivian1987/gtavi-claudecode&lt;/code&gt;, because the repository the README still names returns 404.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg0w5pvmimr9nt4nkcr60.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg0w5pvmimr9nt4nkcr60.jpg" alt="A residential street in Leonida, from Grand Theft Auto VI Trailer 2" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The three stills in this article are frames from &lt;a href="https://www.youtube.com/watch?v=VQRLujxTm3c" rel="noopener noreferrer"&gt;Grand Theft Auto VI Trailer 2&lt;/a&gt;, which Rockstar Games published on YouTube on 2025-05-06 and described as gameplay and cutscenes captured on PlayStation 5. They show the footage a clip page would cut. They are not output from this plugin, and nothing in them is a claim about payouts or install steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where do you install it if the original repo is gone?
&lt;/h2&gt;

&lt;p&gt;The README still prints the original two lines, and those lines fail today:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin marketplace add Bodila51/gtavi-claudecode
/plugin install gtavi-claudecode@gtavi-claudecode
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GitHub answers &lt;code&gt;Bodila51/gtavi-claudecode&lt;/code&gt; with 404, and the user &lt;code&gt;Bodila51&lt;/code&gt; is 404 as well. The &lt;code&gt;.claude-plugin/plugin.json&lt;/code&gt; in the surviving copy still names that user as author and still points &lt;code&gt;repository&lt;/code&gt; at the dead URL. The tree that answers is &lt;a href="https://github.com/Vivian1987/gtavi-claudecode" rel="noopener noreferrer"&gt;Vivian1987/gtavi-claudecode&lt;/a&gt;: 82 stars and 35 forks as of 2026-11-23, last push &lt;code&gt;2026-11-19&lt;/code&gt;, MIT, not a GitHub fork record. Its 16 &lt;code&gt;SKILL.md&lt;/code&gt; files match the files in &lt;code&gt;gzonlin/gtavi-claudecode&lt;/code&gt; except for &lt;code&gt;plugin.json&lt;/code&gt;. Install the live one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin marketplace add Vivian1987/gtavi-claudecode
/plugin install gtavi-claudecode@gtavi-claudecode
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;skills.pub stores the same command on each skill as &lt;code&gt;pluginBin&lt;/code&gt;. The marketplace name is the plugin directory name, &lt;code&gt;gtavi-claudecode&lt;/code&gt;, not the GitHub owner.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does each of the 16 skills actually do?
&lt;/h2&gt;

&lt;p&gt;Eight of them only write instructions. Eight of them shell out to &lt;code&gt;scripts/*.py&lt;/code&gt;. The split matters, because a missing &lt;code&gt;ffmpeg&lt;/code&gt; or &lt;code&gt;yt-dlp&lt;/code&gt; only breaks the second group.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Skill&lt;/th&gt;
&lt;th&gt;Runs&lt;/th&gt;
&lt;th&gt;Stops before&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://skills.pub/en/skills/vivian1987-gtavi-claudecode-setup" rel="noopener noreferrer"&gt;setup&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ffmpeg&lt;/code&gt;, &lt;code&gt;yt-dlp&lt;/code&gt;, &lt;code&gt;faster-whisper&lt;/code&gt; checks, then a page folder&lt;/td&gt;
&lt;td&gt;Spending money or adding a card&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://skills.pub/en/skills/vivian1987-gtavi-claudecode-trend-radar" rel="noopener noreferrer"&gt;trend-radar&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;scripts/trends.py --query "gta 6" --hours 24 --limit 30&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Inventing a list if yt-dlp errors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;stream-finder&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;scripts/streams.py --query "gta 6"&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Guessing viewer counts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://skills.pub/en/skills/vivian1987-gtavi-claudecode-moment-finder" rel="noopener noreferrer"&gt;moment-finder&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;scripts/moments.py &amp;lt;url-or-file&amp;gt; --top 8&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Writing candidates when a signal is missing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;live-mode&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;scripts/live.py &amp;lt;youtube-live-url&amp;gt; --minutes 60&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Starting on a leak or a "play early" stream&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;twitch-reaction&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cut.py ... --layout react --cam auto&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Clipping a streamer outside their campaign&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://skills.pub/en/skills/vivian1987-gtavi-claudecode-clip-cutter" rel="noopener noreferrer"&gt;clip-cutter&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;`scripts/cut.py jobs/ --pick  --layout fill\&lt;/td&gt;
&lt;td&gt;blur\&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://skills.pub/en/skills/vivian1987-gtavi-claudecode-rule-check" rel="noopener noreferrer"&gt;rule-check&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;{% raw %}&lt;code&gt;scripts/check.py &amp;lt;clip.mp4&amp;gt; --campaign campaigns.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Treating a missing rules file as a pass&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;campaign-finder, hook-writer, multilang, playbook, questions-to-posts, secrets-map, cheat-codes, learning-loop&lt;/td&gt;
&lt;td&gt;No script of their own, or a script the skill tells you to run by hand&lt;/td&gt;
&lt;td&gt;Guessing payouts, codes, or view counts&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;plugin.json&lt;/code&gt; lists &lt;code&gt;skills&lt;/code&gt; as &lt;code&gt;"./skills/"&lt;/code&gt; and version &lt;code&gt;0.1.0&lt;/code&gt;. The parser on skills.pub reads that directory, which is why the catalog has 16 rows rather than one plugin row.&lt;/p&gt;

&lt;h2&gt;
  
  
  What did trend-radar return when it was actually run?
&lt;/h2&gt;

&lt;p&gt;On 2026-11-22 at 07:16 UTC, &lt;code&gt;python scripts/trends.py --query "gta 6" --hours 24 --limit 5&lt;/code&gt; exited 0 and wrote four rows. The script searches YouTube sorted by upload date, drops &lt;code&gt;/shorts/&lt;/code&gt; URLs and live videos, then ranks the rest by views divided by age in hours. A missing video is skipped. It does not invent a row.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;views/h&lt;/th&gt;
&lt;th&gt;views&lt;/th&gt;
&lt;th&gt;age h&lt;/th&gt;
&lt;th&gt;minutes&lt;/th&gt;
&lt;th&gt;title&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;6,054&lt;/td&gt;
&lt;td&gt;33,103&lt;/td&gt;
&lt;td&gt;5.5&lt;/td&gt;
&lt;td&gt;35&lt;/td&gt;
&lt;td&gt;Getting in All Sorts of Trouble in GTA 6...&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5,107&lt;/td&gt;
&lt;td&gt;42,274&lt;/td&gt;
&lt;td&gt;8.3&lt;/td&gt;
&lt;td&gt;2,020&lt;/td&gt;
&lt;td&gt;GTA 6 Gameplay Walkthrough FULL GAME&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2,715&lt;/td&gt;
&lt;td&gt;8,496&lt;/td&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;GTA 6 - True Ending (Best Ending) 4K&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;666&lt;/td&gt;
&lt;td&gt;3,666&lt;/td&gt;
&lt;td&gt;5.5&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;GTA 6 - 10 Things I Wish I Knew Before Playing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbuztm0hzla0pfh5tynz6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbuztm0hzla0pfh5tynz6.jpg" alt="Jason and Lucia on a dock in Grand Theft Auto VI Trailer 2" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Those numbers are what yt-dlp returned for that query. They are not a content recommendation. Two of the four titles advertise a full walkthrough and a "true ending." &lt;code&gt;live-mode&lt;/code&gt;, &lt;code&gt;moment-finder&lt;/code&gt;, and &lt;code&gt;playbook&lt;/code&gt; all say to drop leaks, pirated copies, and "play early" footage, and &lt;code&gt;scripts/check.py&lt;/code&gt; fails a caption that contains &lt;code&gt;leak&lt;/code&gt;, &lt;code&gt;leaked build&lt;/code&gt;, &lt;code&gt;play early&lt;/code&gt;, &lt;code&gt;free download&lt;/code&gt;, &lt;code&gt;crack&lt;/code&gt;, or &lt;code&gt;piracy&lt;/code&gt;. The radar does not apply that filter. A person still has to.&lt;/p&gt;

&lt;p&gt;The same run also shows the script will rank a 2,020-minute upload. &lt;code&gt;moment-finder&lt;/code&gt; defaults to &lt;code&gt;--max-minutes 90&lt;/code&gt;, so handing it that URL transcribes the first 90 minutes, not the file the title describes.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does one clip get made?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://skills.pub/en/skills/vivian1987-gtavi-claudecode-setup" rel="noopener noreferrer"&gt;setup&lt;/a&gt; asks four questions in one message: page name and handle, platforms, niche angle, and time zone. After one "yes" it copies the playbook and creates &lt;code&gt;facts.md&lt;/code&gt;, &lt;code&gt;idea-bank.md&lt;/code&gt;, &lt;code&gt;watchlist.md&lt;/code&gt;, &lt;code&gt;log.md&lt;/code&gt;, &lt;code&gt;scoreboard.csv&lt;/code&gt;, &lt;code&gt;learning.md&lt;/code&gt;, &lt;code&gt;takedowns.md&lt;/code&gt;, and &lt;code&gt;campaigns.md&lt;/code&gt;. The Python packages come from &lt;code&gt;requirements.txt&lt;/code&gt;: &lt;code&gt;faster-whisper&lt;/code&gt;, &lt;code&gt;numpy&lt;/code&gt;, &lt;code&gt;requests&lt;/code&gt;, &lt;code&gt;yt-dlp&lt;/code&gt;, &lt;code&gt;deep-translator&lt;/code&gt;, &lt;code&gt;edge-tts&lt;/code&gt;, and &lt;code&gt;opencv-python-headless&lt;/code&gt;. The skill says a 12-minute video takes about five minutes on CPU. That timing was not re-measured here.&lt;/p&gt;

&lt;p&gt;Then the chain is fixed:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;trend-radar&lt;/code&gt; or &lt;code&gt;stream-finder&lt;/code&gt; picks a public URL.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://skills.pub/en/skills/vivian1987-gtavi-claudecode-moment-finder" rel="noopener noreferrer"&gt;moment-finder&lt;/a&gt; runs &lt;code&gt;moments.py&lt;/code&gt;, writes &lt;code&gt;jobs/&amp;lt;id&amp;gt;/candidates.md&lt;/code&gt;, and recommends three. Signals are the faster-whisper transcript, loudness spikes, the YouTube "most replayed" heatmap, and live chat. A missing signal is skipped, not filled in.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;hook-writer&lt;/code&gt; returns three hooks of three to nine words. The clip has to deliver the hook. It forbids "official" on fan content and forbids spoilers in the hook during launch week.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://skills.pub/en/skills/vivian1987-gtavi-claudecode-clip-cutter" rel="noopener noreferrer"&gt;clip-cutter&lt;/a&gt; runs &lt;code&gt;cut.py&lt;/code&gt;. Layouts are &lt;code&gt;fill&lt;/code&gt; (crop to frame), &lt;code&gt;blur&lt;/code&gt; (full frame over a blurred copy, the script default), &lt;code&gt;facecam&lt;/code&gt;, and &lt;code&gt;react&lt;/code&gt;. Output is &lt;code&gt;jobs/&amp;lt;id&amp;gt;/edits/clip_&amp;lt;n&amp;gt;.mp4&lt;/code&gt;. &lt;code&gt;ffmpeg&lt;/code&gt; scales to 1080x1920, burns an ASS caption file, and loudness-normalizes to &lt;code&gt;-14 LUFS&lt;/code&gt; with &lt;code&gt;loudnorm=I=-14:TP=-1.5:LRA=11&lt;/code&gt;. No credit line is burned in. The credit goes in the post caption.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fprgmiad2ffa5pxt2gxic.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fprgmiad2ffa5pxt2gxic.jpg" alt="A character beside a convertible in Grand Theft Auto VI Trailer 2" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://skills.pub/en/skills/vivian1987-gtavi-claudecode-rule-check" rel="noopener noreferrer"&gt;rule-check&lt;/a&gt; runs &lt;code&gt;check.py&lt;/code&gt;. Without &lt;code&gt;--campaign&lt;/code&gt; the duration window is 7 to 60 seconds and the script prints &lt;code&gt;none given, defaults used (NOT a rules check)&lt;/code&gt;. Exit code is 1 on any FAIL. Campaign files can override &lt;code&gt;min_seconds&lt;/code&gt;, &lt;code&gt;max_seconds&lt;/code&gt;, &lt;code&gt;required_hashtags&lt;/code&gt;, and &lt;code&gt;required_mention&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;cut.py&lt;/code&gt; reads &lt;code&gt;candidates.json&lt;/code&gt; and &lt;code&gt;transcript.json&lt;/code&gt; from the job directory. Running it before &lt;code&gt;moments.py&lt;/code&gt; does not produce a clip. It exits because those files are missing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What will it refuse to post?
&lt;/h2&gt;

&lt;p&gt;The plugin's own rules are stricter than the marketing line in the README. The README says campaigns pay per 1,000 views and "you just hit post." The skills say otherwise.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Claim in the README&lt;/th&gt;
&lt;th&gt;What the skill file requires&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;"You just hit post."&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;clip-cutter&lt;/code&gt;, &lt;code&gt;live-mode&lt;/code&gt;, &lt;code&gt;rule-check&lt;/code&gt;, and &lt;code&gt;playbook&lt;/code&gt; wait for a human "yes" and say never to upload&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A campaign rate "around $1 per 1K views is common"&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;campaign-finder&lt;/code&gt; writes &lt;code&gt;unknown&lt;/code&gt; when a page does not show the rate, and forbids estimating&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"In 10 minutes you have ... your first vertical clips"&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;setup&lt;/code&gt; still has to install ffmpeg and the pip packages, then run a transcription&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Install from &lt;code&gt;Bodila51/gtavi-claudecode&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;That repository and user return 404; the live tree is &lt;code&gt;Vivian1987/gtavi-claudecode&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;campaign-finder&lt;/code&gt; also tells the agent to skip campaigns that ask for leaks, piracy, GTA Online money, or AFK bots, and not to sign in or accept terms. &lt;code&gt;learning-loop&lt;/code&gt; records only payout amounts the campaign page shows. &lt;code&gt;cheat-codes&lt;/code&gt; answers only from &lt;code&gt;references/cheats.md&lt;/code&gt; and will not post a code marked &lt;code&gt;unconfirmed&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;None of that is a legal review. The skill text is a prompt. &lt;code&gt;check.py&lt;/code&gt; only string-matches a caption against twelve banned phrases and measures the file. It cannot tell a real trailer from a re-upload of someone else's footage. Credit the creator in the caption, and do not post a video the radar ranked just because the views-per-hour number is high.&lt;/p&gt;




&lt;p&gt;Originally published at &lt;a href="https://skills.pub/en/blog/gtavi-claudecode-gta-6-vertical-clips" rel="noopener noreferrer"&gt;skills.pub&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>gta</category>
      <category>claude</category>
      <category>video</category>
      <category>python</category>
    </item>
    <item>
      <title>DeepSeek Harness: Why Restart After a Plugin Update?</title>
      <dc:creator>啦啦啦种太阳</dc:creator>
      <pubDate>Mon, 23 Nov 2026 06:26:43 +0000</pubDate>
      <link>https://dev.to/createsun/deepseek-harness-why-restart-after-a-plugin-update-444h</link>
      <guid>https://dev.to/createsun/deepseek-harness-why-restart-after-a-plugin-update-444h</guid>
      <description>&lt;p&gt;A plugin bundle update changes the selected profile on disk, but a running DeepSeek Harness profile keeps the bundle set it chose at startup. That gap is behind a very common surprise: the package operation prints success, and the running process still behaves exactly as it did before.&lt;/p&gt;

&lt;p&gt;This post covers what a successful update actually changes, where the restart boundary sits, and how to tell an installation problem from a missing configuration when the new behavior still does not appear.&lt;/p&gt;

&lt;h2&gt;
  
  
  DeepSeek Harness: what changes when a bundle is updated?
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://raw.githubusercontent.com/deepseek-ai/deepseek-harness/master/apps/cli/reference/README.md" rel="noopener noreferrer"&gt;CLI reference&lt;/a&gt; describes two separate moments. A successful &lt;code&gt;dsh plugin&lt;/code&gt; operation updates installed dependencies and reconciles the profile manifest's &lt;code&gt;dsh.profile.bundles&lt;/code&gt; list. The running profile retains its startup bundle set.&lt;/p&gt;

&lt;p&gt;Adding, removing, or updating a bundle therefore requires restarting that profile before judging the new composition. Success describes the package operation and the manifest reconciliation. It is not evidence that the process has replaced its active plugin tree. Restart the profile actually targeted by the operation, not merely a browser tab connected to it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhvy91r90py8lfskm684r.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhvy91r90py8lfskm684r.webp" alt="A bundle update changes disk state; restarting loads the new profile composition" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  DeepSeek Harness: is a bundle update the same as a patch edit?
&lt;/h2&gt;

&lt;p&gt;No, and this is where a lot of confusion lives.&lt;/p&gt;

&lt;p&gt;The launcher assembles configuration from bundle patches, the selected profile's patch, the home patch, and any command-line overlays. Whether patch edits reload depends on the final composition: the shipped &lt;code&gt;web&lt;/code&gt; template has live patches, whereas &lt;code&gt;headless&lt;/code&gt;, &lt;code&gt;sdk&lt;/code&gt;, &lt;code&gt;sdk-minimal&lt;/code&gt;, and &lt;code&gt;acp&lt;/code&gt; apply patches at startup. If HMR is absent, changes require a restart.&lt;/p&gt;

&lt;p&gt;The separate bundle-membership boundary still applies even when ordinary patch editing can reload — those are two different mechanisms, and learning that one of them is live tells you nothing about the other.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Change or observation&lt;/th&gt;
&lt;th&gt;What it establishes&lt;/th&gt;
&lt;th&gt;Next check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Successful package update&lt;/td&gt;
&lt;td&gt;Installed state and bundle list were reconciled&lt;/td&gt;
&lt;td&gt;Restart the targeted profile&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patch edit with HMR mounted&lt;/td&gt;
&lt;td&gt;A live patch may be applied&lt;/td&gt;
&lt;td&gt;Check the resulting behavior&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patch edit without HMR&lt;/td&gt;
&lt;td&gt;The running composition does not reload it&lt;/td&gt;
&lt;td&gt;Restart and check startup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Market card says update available&lt;/td&gt;
&lt;td&gt;An indexed version is offered&lt;/td&gt;
&lt;td&gt;Inspect its source and compatibility&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Profile restarts successfully&lt;/td&gt;
&lt;td&gt;The process started with its new composition&lt;/td&gt;
&lt;td&gt;Test the intended capability&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;a href="https://deepseek-harness.github.io/deepseek-harness/en/guide/plugin-market" rel="noopener noreferrer"&gt;market guide&lt;/a&gt; describes discovery and confirmation. Its cards and compatibility checks help select a version; they do not tell a running process to replace its bundle set. A market source belongs to the current profile, so confirm which profile is being viewed before interpreting its installed state.&lt;/p&gt;

&lt;h2&gt;
  
  
  DeepSeek Harness: how do I apply and check the change?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Identify the profile that owns the package&lt;/strong&gt; and the process currently running it. Note the package, existing version, intended version, and a way to restore the previous setup. If the profile is shared, coordinate an appropriate interruption of its work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inspect the new artifact and source.&lt;/strong&gt; In Discover, the install confirmation identifies an npm package and registry, or a Git repository, commit, and directory. Marketplace metadata is supplied by third parties and is not independently verified by DSH.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Complete the update through the supported interface and read its result.&lt;/strong&gt; The CLI forwards pnpm arguments after &lt;code&gt;dsh plugin --profile &amp;lt;name&amp;gt;&lt;/code&gt;; the profile option must come before those forwarded arguments, and pnpm must be on &lt;code&gt;PATH&lt;/code&gt;. A missing profile is initialized, so check the name carefully.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stop and restart the affected profile&lt;/strong&gt; using the method appropriate to its host. For a directly launched profile, the documented launcher form is &lt;code&gt;dsh --profile &amp;lt;name&amp;gt;&lt;/code&gt;. The placeholder is the actual selected name. The references do not prescribe a universal restart button for every host.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inspect startup diagnostics and test the specific feature&lt;/strong&gt; with an appropriate small task. If it still fails, distinguish an installation problem, a missing configuration or dependency, and a runtime error.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For the optional subagent bundles discussed by the CLI, startup registers dormant host providers; the corresponding tool row must also be enabled in a copied preset for a new agent to see the tool. A restart alone is therefore not a promise that every capability is available. This detail is specific to those provider bundles, not a universal rule for all plugins.&lt;/p&gt;

&lt;h2&gt;
  
  
  DeepSeek Harness: what if the new behavior is still missing?
&lt;/h2&gt;

&lt;p&gt;First establish whether the operation targeted the same profile you restarted. &lt;code&gt;dsh plugin&lt;/code&gt; operates in the selected profile directory; a similarly named profile can have different installed dependencies and patch layers. A successful update in one does not change the startup composition of another. The CLI can initialize a missing profile, so a typo can produce a new profile instead of affecting the intended one.&lt;/p&gt;

&lt;p&gt;Next separate a package from a bundle. After a successful pnpm operation, DSH adds an installed dependency to the bundle stack when its manifest declares a bundle patch. A dependency without that declaration remains an ordinary dependency and produces a one-time warning. An update can also give a previously ordinary dependency a bundle declaration. Check the output and the installed package rather than assuming the name alone implies a mounted capability.&lt;/p&gt;

&lt;p&gt;If the expected bundle is present and the restarted profile reports a startup error, read the error and any full diagnostics before making another change. Configuration parsing, schema validation, module resolution, and plugin startup can each fail. A new version can require configuration that your existing patch does not provide; the plugin's own documentation and installed schema are the appropriate place to check. The &lt;a href="https://dsh-plugin.com/blog/config-layer-precedence" rel="noopener noreferrer"&gt;configuration-layer guide&lt;/a&gt; explains why a later patch replaces a row's entire configuration.&lt;/p&gt;

&lt;p&gt;If startup succeeds but the feature is absent, inspect the feature's own enablement and prerequisites. For example, the subagent provider case above has a separate preset step. Do not generalize that step to a different bundle without checking its documentation. Conversely, repeatedly editing an unrelated patch cannot change the already selected startup bundle set.&lt;/p&gt;

&lt;p&gt;Keep a clear record of the profile name and launch method, especially when a service manager rather than a terminal owns the process. A change visible in a package directory, a reloaded patch, and a restarted process are three different observations. Compare them in that order if a teammate sees old behavior. The CLI reference does not guarantee that a failed package-manager operation leaves no intermediate state, so inspect the actual profile before retrying.&lt;/p&gt;

&lt;h2&gt;
  
  
  DeepSeek Harness: limits and safety boundaries
&lt;/h2&gt;

&lt;p&gt;A restart interrupts the running profile; finish or otherwise handle active work according to the host's operating procedure. The CLI documents graceful disposal on its shutdown signals, but the cited sources do not promise a particular outcome for every in-flight task. Record the version and relevant configuration before changing a shared deployment, and verify the recovery procedure for that environment.&lt;/p&gt;

&lt;p&gt;The market checks index format, compatibility, and applicable registry rules; the market chooses the displayed claims and install source. None of these checks establishes that plugin code is trustworthy. Review the source and dependencies appropriate to your environment. A successful restart demonstrates startup, not that the plugin is safe or that all tasks will behave correctly.&lt;/p&gt;

&lt;p&gt;The documented startup boundary applies to bundle changes. It does not establish that every arbitrary dependency update changes a capability, that all profiles have HMR, or that a browser refresh restarts a host. Test the expected behavior after the actual process restart.&lt;/p&gt;

&lt;h2&gt;
  
  
  DeepSeek Harness: terms, briefly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Profile&lt;/strong&gt;: a named composition and its local installed dependencies and patches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bundle&lt;/strong&gt;: a package that supplies a declared DSH configuration patch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Manifest reconciliation&lt;/strong&gt;: updating the profile's bundle list from installed dependencies after a successful package operation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HMR&lt;/strong&gt;: hot reload of eligible configuration edits when the relevant plugin is mounted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Preset&lt;/strong&gt;: an agent configuration in which the optional provider example requires its tool row to be enabled.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
