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 🙏

© 2025 – Pkg Stats / Ryan Hefner

dialectic

v0.4.0

Published

[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/slior/dialectic)

Readme

Dialectic - Multi-Agent Debate

Ask DeepWiki

Table of Contents

Overview

Dialectic is a CLI tool that orchestrates multi-agent debates to solve software design problems. Multiple AI agents with different perspectives (architecture, performance, security) debate a problem through structured rounds of proposals, critiques, and refinements, culminating in a synthesized solution from a judge agent.

Quickstart

Setup

Requirements:

  • Node.js >= 18
  • API Key: Set OPENAI_API_KEY (for OpenAI) or OPENROUTER_API_KEY (for OpenRouter) in a .env file or as an environment variable

Installation:

For end users (when published to npm):

npm install -g dialectic

For local development:

# Install dependencies
npm install

# Build the project
npm run build

# Link the dialectic command globally
npm link

API Key Setup:

Create a .env file in your project directory:

OPENAI_API_KEY=sk-your-key-here
# OR
OPENROUTER_API_KEY=sk-or-your-key-here

Basic Command

Run a debate with a problem statement:

dialectic debate "Design a rate limiting system"

Or use a problem description file:

dialectic debate --problemDescription problem.txt

Commands

Dialectic provides three main commands:

  • debate - Orchestrate a multi-agent debate to solve a design problem
  • eval - Evaluate a completed debate using evaluator agents
  • report - Generate a markdown report from a saved debate state

For detailed command documentation, including all options and examples, see docs/commands.md.

Debate Command

The debate command orchestrates a multi-agent debate to solve a software design problem. You provide a problem statement (either inline or from a file), and multiple AI agents with different perspectives debate the problem through structured rounds. Each round consists of proposals, critiques, and refinements, culminating in a synthesized solution from a judge agent. The command supports various options for customizing agent roles, number of rounds, output format, and includes features like interactive clarifications and detailed reporting.

Evaluator Command

The eval command evaluates a completed debate using evaluator agents. This allows you to assess the quality and effectiveness of a debate's outcome by running specialized evaluator agents that analyze the debate process and final solution. The evaluators provide structured feedback and scores across multiple dimensions, helping you understand the strengths and weaknesses of the debate outcome.

Report Command

The report command generates a comprehensive markdown report from a saved debate state JSON file. This is useful when you want to create a detailed report from a previously completed debate without re-running it. The report includes the full debate transcript, agent contributions, clarifications (if any), and the final synthesis, formatted as a readable markdown document.

Configuration

Debate behavior is configured via a JSON file (default: ./debate-config.json). If the file is missing, built-in defaults are used.

Features:

  • Agent and judge configuration (models, temperatures, custom prompts)
  • Debate settings (rounds, timeouts, synthesis methods)
  • Context summarization to manage debate history length
  • Tool configuration for agents to interact with external functionality during debates
  • Observability tracing via Langfuse (optional) - enables monitoring and analysis of agent behavior, LLM calls, and tool executions

For detailed configuration documentation, including all fields, validation rules, tracing setup, and examples, see docs/configuration.md. For information about available tools and how to configure them, see docs/tools.md.