Formalize deep research tool as a clap CLI with gated logging and a spinner #3
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-deep-research-cli"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
env::args().nth(1)topic read with a properclap-deriveCli([TOPIC]positional +-l/--log-level <LEVEL>).tracing_subscriberonly initializes when--log-levelis passed. Without it, the terminal stays clean.src/deep_research/progress.rs: a smallindicatif-backedSpinner(clears onDrop), shown around each phase (researcher/reviewer/writer) whenever logging is off, since the two would otherwise interleave badly.Test plan
cargo build/cargo clippyclean (no new warnings).doubleo7-research --helpshows the expected usage.scriptto preserve terminal control codes: spinner messages ("Researching...", "Reviewing findings...", "Writing report...") appeared and animated, no log lines leaked, final report printed correctly with its Sources section.--log-level info: tracing spans/INFO/WARN lines appeared as before, and none of the spinner messages showed — confirms the gate works both directions.🤖 Generated with Claude Code