duh [OPTIONS] COMMAND [ARGS]...
| Option | Description |
|---|---|
--config PATH |
Path to config file |
--version |
Show version and exit |
--help |
Show help and exit |
| 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 |
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 a1b2c3d4Record whether a decision worked out:
duh feedback a1b2c3d4 --result success --notes "Worked great in production"Check costs:
duh costStart the REST API server:
duh serve
duh serve --host 0.0.0.0 --port 9000Start the MCP server:
duh mcpProcess a batch of questions:
duh batch questions.txt --format jsonExport a thread:
duh export a1b2c3d4 --format markdownUse a specific config file:
duh --config ./project-config.toml ask "question"