npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agentmail-bridger

v0.1.1

Published

Bridge Herdr agent completion events to Agent Mail check prompts.

Downloads

26

Readme

AgentMail Bridger

Herdr の agent 状態イベントを購読し、worker が done になったら対応する manager に Agent Mail の確認プロンプトを投入する小さな常駐プロセスです。 manager が作業中または入力待ちの場合は通知をキューし、idle または done になってから送ります。

必要条件

  • mise(推奨)
  • Node.js 20 以降(mise 使用時は Node.js 24)
  • Herdr protocol 16
  • manager / worker に一意な Herdr agent 名が付いていること
  • 対象 agent が起動済みであること

インストール

npm パッケージとしてグローバルにインストールします。

npm install --global agentmail-bridger

インストール後は agentmail-bridger コマンドを実行できます。

開発環境

mise install
mise run setup
mise run ci

設定と起動

config.example.json をコピーし、Herdr の agent 名を設定します。

cp config.example.json config.json
agentmail-bridger --config config.json

または環境変数だけでも起動できます。

export AGENTMAIL_BRIDGER_MAPPINGS='worker-a:manager,worker-b:manager'
agentmail-bridger

ソケットは socketPath、HERDR_SOCKET_PATH、 ~/.config/herdr/herdr.sock の順に解決します。プロンプト中の {{workers}} は完了した worker 名のカンマ区切りに置換されます。

動作

  1. Herdr の snapshot から設定済み agent 名と pane ID を対応付けます。
  2. 対象 pane の pane.agent_status_changed をソケット購読します。
  3. worker の done への遷移を manager ごとのキューへ追加します。
  4. manager が idle / done なら、テキストと Enter を Herdr API 経由で送ります。
  5. ソケット切断時は再接続し、snapshot と購読を作り直します。

キューはプロセス内のメモリに保持されます。プロセス再起動をまたぐ永続化は 行いません。

テスト

mise run test
mise run check