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

@jiangz222/opendisc

v0.2.14

Published

Multi-model discussion CLI tool with Claude and Codex

Downloads

161

Readme

opendisc

English | 中文

让多智能体自动辩论,生成更优答案的高效率 CLI 工具(目前支持 Codex 与 Claude Code)。使用示例

功能

  • 多智能体协作讨论,支持不同模型顺序、同模型互辩(如 claude vs codexcodex vs codexclaude vs claude)。
  • 多轮迭代,默认 2 轮(可配置)。
  • 自带历史管理:可发起讨论、列出记录、查看完整记录或仅查看最终结论。

安装

1) 安装并认证基础 CLI

npm install -g @anthropic-ai/claude-code
npm install -g @openai/codex

请确保 claudecodex 均已完成认证,且在终端可直接运行。

2) 安装 opendisc

npm install -g @jiangz222/opendisc
opendisc --help

使用

基本用法

opendisc "实现一个 AI 智能助手的 MVP 版本,需要哪些功能模块?"

配置文件

~/.opendisc/config.json

示例:

{
  "maxRounds": 3,
  "agentOrder": ["claude", "codex"]
}

可配置字段:

  • maxRounds: 正整数
  • saveDir: 讨论记录保存目录(可选)
  • agentOrder: claude/codex 的任意两位组合(如 ["claude","codex"]["codex","codex"]
    • 推荐 ["claude","codex"]
  • outputLanguage: 输出语言(可选),支持 zh-CNen-US

CLI 参数会覆盖配置文件(如 --max-rounds--save-dir--agent-order--output-language)。
优先级:CLI 参数 > 配置文件 > 自动判定(基于 topic 文本)。

常用命令

# 指定轮数
opendisc "实现一个 AI 智能助手的 MVP 版本,需要哪些功能模块?" --max-rounds 3

# 指定模型顺序
opendisc "设计鉴权方案" --agent-order codex,claude

# 同模型互辩
opendisc "评审这个迁移方案" --agent-order codex,codex

# 指定输出语言(高于自动判定)
opendisc "设计数据库索引策略" --output-language zh-CN

# 列出讨论记录(默认目录:~/.opendisc/discussions)
opendisc list

# 查看完整记录
opendisc load 2026-02-28T10-00-00-000Z_topic.json

# 只看最终结论
opendisc show 2026-02-28T10-00-00-000Z_topic.json

show 输出固定为两部分:

  1. 1 最终结论:对原始问题的直接、可执行、唯一答案(不是仅总结分歧)。
  2. 2 主要分歧点(供参考):简要列出关键分歧;若无关键分歧会明确标注。

使用示例

比如:通过多轮讨论,Codex 降低了 RAG 在个人 AI 助理 MVP 版本中的优先级。

第一轮

第一轮

第二轮

第二轮

最终结论

最终结论

依赖说明

License

MIT