M2.1: marchwarden ask CLI command #11

Merged
archeious merged 1 commit from feat/cli-ask into main 2026-04-08 20:55:00 +00:00
Collaborator

Closes #8

Summary

  • Click app marchwarden ask "question" with --depth, --budget, --max-iterations
  • Spawns the web researcher MCP server via stdio (python -m researchers.web.server) and calls the research tool — full MCP round-trip, not a direct WebResearcher import
  • rich pretty-printer: panels for answer/confidence/cost, tables for citations (with raw_excerpts), gaps (by category), discovery events, and open questions
  • Adds rich>=13.0 to deps; entry point already wired

Tests

  • tests/test_cli.py — 3 tests covering renderer output, CliRunner happy path with mocked MCP call, error path
  • 84/84 tests passing
Closes #8 ## Summary - Click app `marchwarden ask "question"` with `--depth`, `--budget`, `--max-iterations` - Spawns the web researcher MCP server via stdio (`python -m researchers.web.server`) and calls the `research` tool — full MCP round-trip, not a direct WebResearcher import - `rich` pretty-printer: panels for answer/confidence/cost, tables for citations (with raw_excerpts), gaps (by category), discovery events, and open questions - Adds `rich>=13.0` to deps; entry point already wired ## Tests - `tests/test_cli.py` — 3 tests covering renderer output, CliRunner happy path with mocked MCP call, error path - 84/84 tests passing
claude-code added 1 commit 2026-04-08 20:51:49 +00:00
Click app with `ask` subcommand that spawns the web researcher MCP
server over stdio, calls the research tool, and pretty-prints the
ResearchResult contract using rich (panels for answer/confidence/cost,
tables for citations, gaps, discovery events, and open questions).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
archeious approved these changes 2026-04-08 20:54:48 +00:00
archeious merged commit b2b7026eb2 into main 2026-04-08 20:55:00 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: archeious/marchwarden#11
No description provided.