Skip to content

Latest commit

 

History

History
113 lines (80 loc) · 2.27 KB

File metadata and controls

113 lines (80 loc) · 2.27 KB

CLI Reference

Usage

duh [OPTIONS] COMMAND [ARGS]...

Global options

Option Description
--config PATH Path to config file
--version Show version and exit
--help Show help and exit

Commands

Command Description
ask Run a consensus query (supports consensus, voting, and decomposition protocols)
recall Search past decisions by keyword
threads List past consensus threads
show Show a thread with its full debate history, votes, taxonomy, and outcomes
feedback Record an outcome (success/failure/partial) for a past decision
models List configured providers and available models
cost Show cumulative cost from stored contributions
serve Start the REST API server
mcp Start the MCP server for AI agent integration
batch Run consensus on multiple questions from a file
export Export a thread as JSON or Markdown

Common patterns

Run a consensus query:

duh ask "What testing framework should I use for a Python REST API?"

Use voting for quick judgment calls:

duh ask --protocol voting "Should I use Tailwind CSS or vanilla CSS?"

Decompose a complex question into subtasks:

duh ask --decompose "Plan a migration from monolith to microservices"

Enable tool use for up-to-date information:

duh ask --tools "What is the latest stable release of Python?"

Search past decisions:

duh recall "testing"

List recent threads, then inspect one:

duh threads --limit 5
duh show a1b2c3d4

Record whether a decision worked out:

duh feedback a1b2c3d4 --result success --notes "Worked great in production"

Check costs:

duh cost

Start the REST API server:

duh serve
duh serve --host 0.0.0.0 --port 9000

Start the MCP server:

duh mcp

Process a batch of questions:

duh batch questions.txt --format json

Export a thread:

duh export a1b2c3d4 --format markdown

Use a specific config file:

duh --config ./project-config.toml ask "question"