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

@gpzhang2001/sharpkit-team

v0.2.2

Published

Red-team orchestration: specialist team tools over the dsh subagent service with a token-budget circuit breaker

Readme

@gpzhang2001/sharpkit-team

红队编排:团队工具组合在 dsh subagent 服务上(ctx.subagents + spawn provider 的 continuable children),不做工具套工具。子代理经 in-process spawn 继承父 Agent 的 preset 与全套工具。

工具

  • create_agent(name, task, skills≤5):组装专才简报(任务 + 技能指令行 + 自治/上报约定)→ subagents.start('spawn', …);并发上限(maxTeamDepth+3)与预算熔断后拒绝
  • send_message_to_agent:subagents.sendMessage(相邻拓扑,步边界 Steer 注入)
  • wait_for_agents:阻塞至点名 children settle(结算通知本会自动到达父回合边界,此为恢复显式等待体验的薄封装)
  • view_agent_graph:名册投影(id/label/task/skills/status)+ tokens_used + budget_breached
  • stop_agent:subagents.interrupt(user 权威 + 父会话);interrupt 保留 inbox(S2),需彻底终结的配合 stop 后不再续发
  • agent_finish:子代理完成记录 ack——dsh 中子代理的 final message 即完成报告(S2),此工具提供 strix 命名的显式提交点

预算熔断

监听 session/event 的 assistant/message.usage,累计 input+output tokens;超过 maxSessionTokens(默认 2M,usd 折算属部署层)即 interrupt 全部在跑 children 并拒绝新 spawn;view_agent_graph 暴露 budget_breached。

测试

tests/team.test.ts:stub subagent 服务——简报组装、spawn 失败、熔断阻塞、steer、wait 结算、roster、stop。