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

agent-window-to-chat

v2.1.8

Published

A window to interact with AI agents through chat interfaces. Simplified interaction, powerful backend capabilities.

Downloads

36

Readme

AgentWindow


为什么选择 AgentWindow?

AgentWindow = 你的聊天软件 + 强大 AI 后端

  • 极简交互 - 在 Discord/Slack/Telegram 中自然对话,无需学习新界面
  • 统一窗口 - 所有 AI 代理能力通过一个"窗口"呈现,像使用同事一样简单
  • 多平台支持 - 今天用 Discord,明天无缝切换到 Slack 或 Telegram
  • 安全隔离 - Docker 沙箱环境,AI 操作与你的系统安全隔离
  • 权限可控 - 通过聊天按钮批准敏感操作,完全掌控 AI 行为
  • 多实例管理 - 一套代码,多个项目,统一管理

适用场景

  • 代码协作 - 让 AI 团队直接在你的开发频道中工作
  • 文档处理 - 扔给 AI 文档,获得结构化输出
  • 数据分析 - 描述需求,AI 处理后返回结果
  • 自动化任务 - 通过聊天触发脚本和定时任务

快速开始

# 全局安装
npm install -g agent-window

# 初始化多机器人目录
agent-window init

# 添加一个机器人实例
agent-window add-bot myproject

# 启动所有机器人
pm2 start ~/bots/ecosystem.config.cjs

CLI 命令

# 单机器人命令
agent-window setup              # 交互式设置向导
agent-window start              # 启动网关
agent-window stop               # 停止网关
agent-window restart            # 重启网关
agent-window status             # 显示状态
agent-window logs               # 查看日志(实时)
agent-window update             # 更新到最新版本
agent-window config             # 显示配置位置

# 多机器人命令
agent-window init                # 初始化 ~/bots 目录
agent-window add-bot <name>     # 添加新的机器人实例

配置

每个机器人实例都有自己的 config.json

{
  "BOT_TOKEN": "你的 Discord 机器人令牌",
  "CLAUDE_CODE_OAUTH_TOKEN": "你的 Claude Code OAuth 令牌",
  "PROJECT_DIR": "/你的/项目/路径",
  "ALLOWED_CHANNELS": "频道ID-1,频道ID-2"
}

必填项

| 键 | 说明 | |-----|------| | BOT_TOKEN | Discord 机器人令牌 | | CLAUDE_CODE_OAUTH_TOKEN | Claude Code OAuth 令牌 | | PROJECT_DIR | 要工作的项目目录 | | ALLOWED_CHANNELS | 逗号分隔的频道 ID |

可选项

查看 config/config.example.json 了解所有选项。


聊天命令

在 Discord 中,提及机器人:

@bot <消息>               # 发送消息(继续上次会话)
@bot -n <消息>            # 开始新会话
@bot -r <会话ID> <消息>   # 恢复指定会话
@bot /pick                # 选择会话(按钮界面)
@bot /sessions            # 列出最近的会话
@bot /status              # 显示机器人状态
@bot /help                # 显示帮助

多机器人管理

在一个目录中组织多个机器人实例:

~/bots/
├── agent-window/          # 共享代码(链接到全局安装)
├── project1/config.json   # 机器人1 配置
├── project2/config.json   # 机器人2 配置
└── ecosystem.config.cjs    # PM2 统一管理

统一命令:

pm2 start ~/bots/ecosystem.config.cjs   # 启动所有
pm2 stop all                             # 停止所有
pm2 restart all                          # 重启所有
pm2 logs                                  # 查看所有日志

更新

agent-window update

许可证

MIT