<?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: beasaltfish</title>
    <description>The latest articles on DEV Community by beasaltfish (@beasaltfish).</description>
    <link>https://dev.to/beasaltfish</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%2F4240607%2F372348f8-29a0-4e86-8470-5be1b51ba76c.png</url>
      <title>DEV Community: beasaltfish</title>
      <link>https://dev.to/beasaltfish</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/beasaltfish"/>
    <language>en</language>
    <item>
      <title>Cataloging Open-Source Coding Agents: 3 Layers, Top 10 Star Velocity, and Where to Draw the Line</title>
      <dc:creator>beasaltfish</dc:creator>
      <pubDate>Sun, 29 Nov 2026 02:55:48 +0000</pubDate>
      <link>https://dev.to/beasaltfish/cataloging-open-source-coding-agents-3-layers-top-10-star-velocity-and-where-to-draw-the-line-307o</link>
      <guid>https://dev.to/beasaltfish/cataloging-open-source-coding-agents-3-layers-top-10-star-velocity-and-where-to-draw-the-line-307o</guid>
      <description>&lt;p&gt;People throw "coding agent" at terminal loops, multi-agent dashboards, and markdown prompt packs alike. I spent a full workday cataloging these open-source tools on &lt;a href="https://agentlenshq.com/projects/topics/coding_agent_tool" rel="noopener noreferrer"&gt;AgentLensHQ&lt;/a&gt; and splitting them into three distinct layers.&lt;/p&gt;

&lt;p&gt;If you want the full architectural breakdown, I published the companion guide here: &lt;a href="https://agentlenshq.com/harness/choose-coding-agent" rel="noopener noreferrer"&gt;Choosing an open-source coding agent: agent, workbench, or skill pack?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the short version of the framework, the 7-day GitHub star snapshot, and three open questions I hit while curating the board.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Three Layers Instead of One Bucket
&lt;/h2&gt;

&lt;p&gt;Comparing these tools side by side fails when they operate at different layers of the stack:&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;Role in Your Workflow&lt;/th&gt;
&lt;th&gt;Examples&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Agent&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Runs the autonomous reasoning and tool loop in your terminal or environment&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;opencode&lt;/code&gt;, &lt;code&gt;pi&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Workbench / Orchestrator&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Sits above agents to manage multiple tasks, isolated git worktrees, and UI cockpits&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;t3code&lt;/code&gt;, &lt;code&gt;Orca&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Skill Pack / Framework&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Installs structured workflows (planning, testing, review rules) into existing agents&lt;/td&gt;
&lt;td&gt;&lt;code&gt;obra/superpowers&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When picking between tools in the same layer, four mechanics matter more than feature checklists:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Context handling:&lt;/strong&gt; Does the tool scan and index your repository on its own, or depend on hand-written files like &lt;code&gt;AGENTS.md&lt;/code&gt;?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test feedback:&lt;/strong&gt; Can it execute your test suite and parse failures to iterate on a fix?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model and key setup:&lt;/strong&gt; Does it run on your own API keys, or lock you into a bundled subscription?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reversal safety:&lt;/strong&gt; Does it isolate runs in branches or git worktrees so you can discard a broken attempt in one command?&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  2. 7-Day Star Velocity Top 10 (Nov 19–26, 2026)
&lt;/h2&gt;

&lt;p&gt;Below is the 7-day star growth snapshot from the topic board (entry #10 starts on the evening of Nov 18):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Repository&lt;/th&gt;
&lt;th&gt;7-Day Stars&lt;/th&gt;
&lt;th&gt;Stars / day&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;code&gt;pingdotgg/t3code&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;66,369 → 80,896&lt;/td&gt;
&lt;td&gt;+2,074&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ccch1mneyyy/dsh-Go&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;28,157 → 32,656&lt;/td&gt;
&lt;td&gt;+642.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;&lt;code&gt;mdiri-ai/SoduWork&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;4,156 → 8,233&lt;/td&gt;
&lt;td&gt;+582&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;&lt;code&gt;deepseek-ai/deepseek-harness&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;284,195 → 287,599&lt;/td&gt;
&lt;td&gt;+486&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Tracer-Cloud/opensre&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;12,877 → 15,668&lt;/td&gt;
&lt;td&gt;+384.6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;&lt;code&gt;paperclipai/paperclip&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;115,187 → 117,375&lt;/td&gt;
&lt;td&gt;+312.4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Tencent/LoopForge&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;4,049 → 5,994&lt;/td&gt;
&lt;td&gt;+277.7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;&lt;code&gt;anomalyco/opencode&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;228,015 → 229,401&lt;/td&gt;
&lt;td&gt;+194.4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;&lt;code&gt;multica-ai/multica&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;56,724 → 58,076&lt;/td&gt;
&lt;td&gt;+188.8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;&lt;code&gt;earendil-works/pi&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;122,748 → 123,919&lt;/td&gt;
&lt;td&gt;+160.6&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;(Note: I discuss **Orca&lt;/em&gt;* in the guide, though it missed this Top 10 snapshot because I indexed it on the site after publishing the list. It will appear in the next refresh.)*&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Three Questions Before the Next Refresh
&lt;/h2&gt;

&lt;p&gt;As I refine the inclusion rules on &lt;a href="https://agentlenshq.com/projects/topics/coding_agent_tool" rel="noopener noreferrer"&gt;the coding agent topic board&lt;/a&gt;, I would like input from developers using these tools in real repositories:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Do OpenClaw and Hermes Agent belong on a coding agent list?&lt;/strong&gt; OpenClaw acts as a multi-channel gateway and control plane, and Nous Research's Hermes Agent focuses on long-term memory and self-evolving skills. People run coding tasks through both, yet neither is a dedicated coding harness. Would you include them here, or keep them in a broader agent category?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Which repos in the Top 10 look out of place?&lt;/strong&gt; &lt;code&gt;Tracer-Cloud/opensre&lt;/code&gt; targets CI/CD and production SRE workflows, and &lt;code&gt;paperclipai/paperclip&lt;/code&gt; orchestrates multi-agent virtual organizations. Point out any entries you think fall outside a coding tool list, or solid open-source projects I missed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Should telemetry defaults affect open-source rankings?&lt;/strong&gt; &lt;code&gt;pingdotgg/t3code&lt;/code&gt; sits at #1 with over 2,000 stars/day, yet users called out default-on PostHog telemetry and local auth-file hashing despite earlier opt-in claims on its homepage (later patches removed the external auth-file reading). When a repo leads on adoption while drawing privacy pushback, should an index penalize it, add a warning badge, or report raw momentum as-is?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Drop your thoughts or missing repo nominations in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>programming</category>
      <category>devtools</category>
    </item>
    <item>
      <title>Writing a pi extension that tells you when the agent is done</title>
      <dc:creator>beasaltfish</dc:creator>
      <pubDate>Thu, 12 Nov 2026 10:20:22 +0000</pubDate>
      <link>https://dev.to/beasaltfish/writing-a-pi-extension-that-tells-you-when-the-agent-is-done-1eel</link>
      <guid>https://dev.to/beasaltfish/writing-a-pi-extension-that-tells-you-when-the-agent-is-done-1eel</guid>
      <description>&lt;p&gt;I keep switching away while pi works. It's a long edit, or a test suite, and there's nothing to watch, so I go read something else. Then I come back to a prompt that finished four minutes ago. The other direction is worse: it died on a rate limit right after I looked away, and I found out much later.&lt;/p&gt;

&lt;p&gt;pi is an open-source (MIT) coding agent that runs in your terminal — the same shape as Claude Code or Codex CLI, minus the vendor lock-in: it works with models from many providers, and its extension API is a couple of TypeScript files rather than a plugin framework.&lt;/p&gt;

&lt;p&gt;pi does report its state to the terminal — working, blocked, done, failed — but that's an escape sequence too, and almost nothing implements it yet. Most of us are in Warp or Ghostty or iTerm2, which don't. So I wrote a small extension that puts a real desktop notification up when a run ends.&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%2F53bczu4vb79y87rxsbhp.gif" 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%2F53bczu4vb79y87rxsbhp.gif" alt="demo" width="720" height="504"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The extension is &lt;a href="https://github.com/beasaltfish/pi-bell" rel="noopener noreferrer"&gt;pi-bell&lt;/a&gt;. It installs with &lt;code&gt;pi install npm:pi-bell&lt;/code&gt;. Below is what I'd tell someone starting the same thing, mostly the parts I got wrong first.&lt;/p&gt;

&lt;h2&gt;
  
  
  The smallest version
&lt;/h2&gt;

&lt;p&gt;A pi extension is a file that default-exports a function. That function gets an API object, and everything else is subscribing to events on it.&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="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;ExtensionAPI&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;"@earendil-works/pi-coding-agent"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pi&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ExtensionAPI&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;pi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"agent_start"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// a run began&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;pi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"agent_settled"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// it's over, and it isn't coming back&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;That's the whole shape. Load it with &lt;code&gt;pi -e ./my-extension.ts&lt;/code&gt; for one session, drop it in &lt;code&gt;~/.pi/agent/extensions/&lt;/code&gt; to keep it, or publish it to npm and let people install it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The event I picked first was wrong
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;agent_end&lt;/code&gt; reads like the end of the run. It isn't.&lt;/p&gt;

&lt;p&gt;A session-level run in pi can contain several low-level runs. When the model errors out, pi retries. When the context overflows, it compacts and retries. When you queue a follow-up while it's working, that starts another one. &lt;code&gt;agent_end&lt;/code&gt; fires at the end of &lt;em&gt;each&lt;/em&gt; of those, not at the end of the thing you're waiting for.&lt;/p&gt;

&lt;p&gt;I found this the annoying way. One prompt, three notifications, the third arriving while the agent was still going. That's the whole reason the extension exists in the form it does.&lt;/p&gt;

&lt;p&gt;The event you want is &lt;code&gt;agent_settled&lt;/code&gt;. It fires when pi has no further automatic work for that run — after retries, after compaction retries, after queued messages. It also carries &lt;code&gt;aborted&lt;/code&gt;, which tells you whether the run ended because you pressed Escape.&lt;/p&gt;

&lt;p&gt;One nuance while you're here: &lt;code&gt;agent_before_settle&lt;/code&gt; fires just before it, and it's the last point where an extension can still add context and ask for one more turn. If you only want to observe, &lt;code&gt;agent_settled&lt;/code&gt; is the one to use. If you want to influence, that's the other one.&lt;/p&gt;

&lt;h2&gt;
  
  
  One notification, three different things
&lt;/h2&gt;

&lt;p&gt;"Finished" is not the whole story. A run can end because the model was done, because you cancelled it, or because something broke. Those should not look the same at a glance, so the notification picks a title and a colour from a small state machine.&lt;/p&gt;

&lt;p&gt;The information is in the last assistant message. &lt;code&gt;message_end&lt;/code&gt; fires for every message; filter for &lt;code&gt;role === "assistant"&lt;/code&gt; and read &lt;code&gt;stopReason&lt;/code&gt; and &lt;code&gt;errorMessage&lt;/code&gt;. &lt;code&gt;stopReason&lt;/code&gt; is one of &lt;code&gt;stop&lt;/code&gt;, &lt;code&gt;length&lt;/code&gt;, &lt;code&gt;toolUse&lt;/code&gt;, &lt;code&gt;error&lt;/code&gt;, &lt;code&gt;aborted&lt;/code&gt;. Keep the last one you see — each retry attempt overwrites it, which is what you want.&lt;/p&gt;

&lt;p&gt;Then decide, in this order:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;aborted (event.aborted)      → cancelled
stopReason === "error"       → failed, with the first line of the message
stopReason === "aborted"     → cancelled
stopReason === "length"      → done, with a note that it was cut off
everything else              → done
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The order matters. If you hit Escape while a failing request is in flight, both signals can be present at once, and the honest answer is that you cancelled it.&lt;/p&gt;

&lt;p&gt;There's a gap I couldn't close. If the run dies before the model ever replies — bad API key, DNS failure — there is no assistant message, so there's no &lt;code&gt;stopReason&lt;/code&gt; to read, and the run gets reported as finished. I could guess from &lt;code&gt;ctx.getContextUsage()&lt;/code&gt; or from provider errors, but a wrong "failed" is worse than a vague "done" here, so the README says so instead and I left it alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  The terminal is not a transparent pipe
&lt;/h2&gt;

&lt;p&gt;This part took longer than the pi side.&lt;/p&gt;

&lt;p&gt;A desktop notification from a terminal is not a system call. It's a few bytes written to stdout, and the terminal decides what to do with them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ESC ] 777 ; notify ; &amp;lt;title&amp;gt; ; &amp;lt;body&amp;gt; BEL
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;ESC ]&lt;/code&gt; starts an Operating System Command. &lt;code&gt;777&lt;/code&gt; is a number that rxvt-unicode picked years ago for notifications, and Ghostty, WezTerm, Warp and others copied it. Kitty uses its own &lt;code&gt;99&lt;/code&gt;. There is no standards body behind any of this. A terminal that doesn't recognise the number drops the sequence silently, and you get nothing.&lt;/p&gt;

&lt;p&gt;So which channel to use depends on two things, not one: whether pi is on the same machine as you, and whether a terminal multiplexer sits in between.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation&lt;/th&gt;
&lt;th&gt;Channel&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Local, no multiplexer&lt;/td&gt;
&lt;td&gt;OSC escape sequence&lt;/td&gt;
&lt;td&gt;the terminal shows it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local, unknown terminal&lt;/td&gt;
&lt;td&gt;system notification&lt;/td&gt;
&lt;td&gt;Apple Terminal and friends ignore OSC&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local tmux&lt;/td&gt;
&lt;td&gt;system notification&lt;/td&gt;
&lt;td&gt;tmux swallows OSC unless you configure it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SSH, no multiplexer&lt;/td&gt;
&lt;td&gt;OSC&lt;/td&gt;
&lt;td&gt;a system notification would fire on the remote box&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SSH + tmux&lt;/td&gt;
&lt;td&gt;OSC wrapped in DCS&lt;/td&gt;
&lt;td&gt;both layers have to be passed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The SSH row is the one people get wrong. &lt;code&gt;osascript&lt;/code&gt; and &lt;code&gt;notify-send&lt;/code&gt; run wherever the process runs. Over SSH, that's the machine you're not sitting at. The escape sequence, on the other hand, travels in the output stream and comes out of the terminal in front of you.&lt;/p&gt;

&lt;p&gt;The tmux row is the opposite trap. tmux redraws the screen itself and only forwards the sequences it understands, so &lt;code&gt;777&lt;/code&gt; dies there. Locally the simplest answer is to skip OSC and call the OS API directly, which needs no tmux config. Remotely you can't do that, so the sequence has to be wrapped:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ESC P tmux ; ESC ] 777 ; notify ; ... ESC \ ESC \
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That requires &lt;code&gt;set -g allow-passthrough on&lt;/code&gt; in tmux config. It's the one place where the extension asks you to change something.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which terminal gets what
&lt;/h3&gt;

&lt;p&gt;I tested Warp and Ghostty myself, end to end, on macOS. Everything else in the table is a statement about the mechanism each one supports, not a claim that I ran it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Terminal&lt;/th&gt;
&lt;th&gt;Channel&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Warp&lt;/td&gt;
&lt;td&gt;OSC 777&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ghostty&lt;/td&gt;
&lt;td&gt;OSC 777&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;iTerm2&lt;/td&gt;
&lt;td&gt;OSC 777&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WezTerm&lt;/td&gt;
&lt;td&gt;OSC 777&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;rxvt-unicode&lt;/td&gt;
&lt;td&gt;OSC 777&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;kitty&lt;/td&gt;
&lt;td&gt;OSC 99&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Apple Terminal&lt;/td&gt;
&lt;td&gt;system notification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Alacritty&lt;/td&gt;
&lt;td&gt;system notification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VS Code integrated&lt;/td&gt;
&lt;td&gt;OSC 777, unverified&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows Terminal&lt;/td&gt;
&lt;td&gt;PowerShell toast&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tmux / screen (local)&lt;/td&gt;
&lt;td&gt;system notification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tmux over SSH&lt;/td&gt;
&lt;td&gt;OSC + DCS passthrough&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The VS Code row says unverified in the README too. I'd rather leave a gap in a table than have someone install it and wonder why nothing happened.&lt;/p&gt;

&lt;h3&gt;
  
  
  And then macOS does something strange
&lt;/h3&gt;

&lt;p&gt;Even with the right channel, the notification may be invisible — because you're looking at it.&lt;/p&gt;

&lt;p&gt;Banners are suppressed for the app that has focus, and terminals clear their own delivered notifications when the window comes back to the foreground. During the first test in Ghostty, nothing appeared, so I assumed the code was broken. The system log said otherwise:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Requested authorization [ didGrant: 1 ]
Adding notification request D528-212C
Added notification request: [ hasError: 0 ]
Removing 1 delivered notifications
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Delivered, then removed three seconds later. The notification only stays up when you're not in the terminal — which is, of course, the situation the whole thing is for. The first opt-in prompt also has to be answered once; before that, macOS refuses to deliver anything at all, and it refuses quietly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing a channel that cannot say no
&lt;/h2&gt;

&lt;p&gt;OSC has no acknowledgement. You write bytes and hope. That makes the integration untestable in the usual sense, so I split it: everything that can be a pure function took an argument, and only two functions touch the outside world.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;decideChannel(env, platform)&lt;/code&gt; takes an environment object instead of reading &lt;code&gt;process.env&lt;/code&gt;, and returns a plain object describing what to do. Same for the text formatting and the run state machine. That's the whole design constraint, and it's why the test suite needs no mocking library.&lt;/p&gt;

&lt;p&gt;The tests run on &lt;code&gt;node --test&lt;/code&gt; with TypeScript source. Node 24 strips the types, so there's no build step and no test framework:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;node --test "test/**/*.test.ts"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;45 tests, no dependencies. One thing that cost me ten minutes: &lt;code&gt;node --test test/&lt;/code&gt; treats the directory as a module and fails. The quoted glob is the version that works, on every platform.&lt;/p&gt;

&lt;p&gt;The remaining two functions write to stdout and spawn a process. Those I tested by hand, in two terminals, with the video recording as evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one thing that isn't about terminals
&lt;/h2&gt;

&lt;p&gt;pi runs in four modes: &lt;code&gt;tui&lt;/code&gt;, &lt;code&gt;rpc&lt;/code&gt;, &lt;code&gt;json&lt;/code&gt;, &lt;code&gt;print&lt;/code&gt;. In RPC mode, stdout is a JSON stream — the same stdout the escape sequence would go to. Writing a notification there would corrupt the protocol for whoever is reading it.&lt;/p&gt;

&lt;p&gt;So the extension checks &lt;code&gt;ctx.mode === "tui"&lt;/code&gt; before writing anything, and stays silent everywhere else. In print and JSON modes the caller reads the result anyway, and in RPC the caller is usually an editor that shows the result itself.&lt;/p&gt;

&lt;p&gt;I got this wrong in the plan and only noticed when checking the design against the notes. It's a one-line guard, but it's the kind of line that turns into a bug report titled "your extension broke my integration".&lt;/p&gt;

&lt;h2&gt;
  
  
  Publishing
&lt;/h2&gt;

&lt;p&gt;There's no submission form for the pi package gallery. The &lt;code&gt;pi-package&lt;/code&gt; keyword in &lt;code&gt;package.json&lt;/code&gt; is the submission:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"pi-bell"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"keywords"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pi-package"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"pi"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"extensions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"./src/index.ts"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"video"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://raw.githubusercontent.com/beasaltfish/pi-bell/master/demo.mp4"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;pi&lt;/code&gt; key is the manifest — it tells pi where the entry point is, and the optional &lt;code&gt;image&lt;/code&gt; / &lt;code&gt;video&lt;/code&gt; fields give the gallery something to show. Nothing else is needed.&lt;/p&gt;

&lt;p&gt;The gallery list itself is a periodic snapshot, so a package published today shows up in search later, sometimes a day later. The detail page at &lt;code&gt;pi.dev/packages/&amp;lt;name&amp;gt;&lt;/code&gt; works immediately, which makes the delay look weirder than it is.&lt;/p&gt;




&lt;p&gt;The code is about 300 lines across five files, and roughly a third of it is the terminal detection. If you're building something on pi and only take one thing from this: check which event you're subscribing to. &lt;code&gt;agent_end&lt;/code&gt; is not the end.&lt;/p&gt;




&lt;p&gt;pi-bell is on &lt;a href="https://github.com/beasaltfish/pi-bell" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; and &lt;a href="https://www.npmjs.com/package/pi-bell" rel="noopener noreferrer"&gt;npm&lt;/a&gt;. If you try it in a terminal that isn't in the table above, tell me what happened — that's how the table gets better.&lt;/p&gt;

&lt;p&gt;I'm &lt;a href="https://x.com/0xasten" rel="noopener noreferrer"&gt;@0xasten&lt;/a&gt; on X, where I write about building things.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>ai</category>
      <category>opensource</category>
      <category>codingagent</category>
    </item>
  </channel>
</rss>
