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

@proactive-agent/adapters

v0.1.0

Published

ProactiveAgent host adapters: unified harness adapter layer for proactive memory & suggestions across agent hosts (Claude Code, Kimi Code, Cursor, Cline, Codex). Zero-runtime-dependency.

Readme

@proactive-agent/adapters

ProactiveAgent 宿主适配层(harness adapter):跨 agent 宿主的统一主动层抽象。

MCP 统一了"工具调用层",本包补上"主动层"——感知(hooks 事件)、表达(建议注入)、上下文注入、会话读取、能力矩阵,每个宿主一个 HostAdapter 实现。

宿主支持

| Adapter | 感知 | 表达 | 注入 | 会话读取 | 状态 | |---|---|---|---|---|---| | claude | ✅ hooks | ✅ stdout 文本 | ✅ SessionStart | ✅ transcript | 全能力验证 | | kimi | ✅ hooks(0.35+) | ✅ notification XML | ✅ plugin systemPrompt | ✅ wire.jsonl | 全能力验证 | | cursor | ⚠️ Claude Code 兼容声明 | ⚠️ 待实测 | ⚠️ 待实测 | ❌ 未调研 | 实现 + 待实测 | | cline | ⚠️ event-capture 通用入口 | ❌ 降级 daemon 通知 | ❌ | ❌ | 实现 + 待实测 | | codex | ⚠️ event-capture 通用入口 | ❌ 降级 daemon 通知 | ❌ | ❌ | 实现 + 待实测 |

使用

import { getAdapter, detectHostId } from '@proactive-agent/adapters'

// 判断宿主(hooks stdin 输入)
const host = detectHostId(input) // 'claude' | 'kimi' | 'cursor' | ...
const adapter = getAdapter(host)

// 能力判断(用能力而非宿主名)
if (adapter?.capabilities.resources) {
  // 可以引用 memory://today
}

设计要点

  • 能力矩阵诚实声明true / false / { partial: note },不伪造能力(参考 jido_harness AdapterSpec)
  • 零运行时依赖:纯函数(渲染/提取/能力声明),任意宿主/打包器可消费
  • 设计文档:PA 仓库 .context/pa-harness-adapter-design.md

开发

npm run build      # esbuild bundle + d.ts
npm test           # vitest
npm run typecheck