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

@treedy2026/pi-coding-agent

v0.57.6

Published

Coding agent CLI with read, bash, edit, write tools and session management

Readme

DIP AI Coding Agent

DIP (Deep Intelligent Pharma / 深度制耀) 内部 AI 编程助手,基于 pi-coding-agent 构建,提供稳定的多模型 CLI 工具。

特性

  • 多模型支持 - 统一接口访问 Claude、Gemini、GPT 等模型
  • 企业级认证 - 通过 Google Cloud 和 Azure 认证,无需个人 API 密钥
  • 稳定版本 - 内部维护,确保兼容性和稳定性
  • 交互式 TUI - 完整的终端界面,支持会话管理

安装

npm install -g @treedy2026/pi-coding-agent

配置

配置环境变量后,对应服务的所有模型自动可用。联系技术负责人获取认证信息。

1. Anthropic Vertex (Claude)

# 在 ~/.zshrc 或 ~/.bashrc 中添加
export GOOGLE_APPLICATION_CREDENTIALS="$HOME/.config/google/your-key.json"
export ANTHROPIC_VERTEX_PROJECT_ID="your-project-id"
export CLOUD_ML_REGION="global"

可用模型: claude-opus-4-5, claude-sonnet-4-5, claude-haiku-4-5

2. Google Vertex (Gemini)

export GOOGLE_APPLICATION_CREDENTIALS="$HOME/.config/google/your-key.json"
export GOOGLE_CLOUD_PROJECT="your-project-id"
export GOOGLE_CLOUD_LOCATION="us-central1"

可用模型: gemini-2.5-pro, gemini-2.5-flash, gemini-2.0-flash

3. Azure OpenAI (GPT)

export AZURE_OPENAI_API_KEY="your-api-key"
export AZURE_OPENAI_BASE_URL="https://your-resource.openai.azure.com/openai/v1"

可用模型: gpt-4o, gpt-5, o3 等 (取决于 Azure 部署)

快速开始

# 配置环境变量后
source ~/.zshrc

# 查看可用模型
pi --list-models

# 启动交互模式
pi

# 使用特定模型
pi --provider anthropic-vertex --model claude-sonnet-4-5@20250929

# 单次查询
pi -p "解释这段代码的功能"

使用指南

交互模式

pi                     # 启动交互模式
/model                 # 切换模型
/settings              # 调整设置
/help                  # 查看帮助

会话管理

pi -c                  # 继续上次会话
pi -r                  # 选择历史会话
pi --no-session        # 临时模式(不保存)

文件引用

pi @file.ts "解释这个文件"
pi @screenshot.png "这张图片显示了什么"

帮助

pi --help              # 命令帮助
pi --help-dip          # DIP 配置指南
pi --list-models       # 查看可用模型

上游同步

本仓库基于 badlogic/pi-mono 维护。定期同步上游更新以获取新功能和修复。

相关文档


内部项目 - 仅供 DIP 团队使用