Skip to content

feat: add --text flag and auto-save for deep research output#68

Draft
NormallyGaussian wants to merge 1 commit intomainfrom
feat/research-output-schema
Draft

feat: add --text flag and auto-save for deep research output#68
NormallyGaussian wants to merge 1 commit intomainfrom
feat/research-output-schema

Conversation

@NormallyGaussian
Copy link
Contributor

Summary

  • Adds --text flag to research run for text schema (markdown reports) vs default auto schema (structured JSON)
  • Results always auto-save to files (run ID as filename, or custom path via -o)
  • Auto schema: {base}.json only; Text schema: {base}.json + {base}.md
  • Executive summary always printed to stdout regardless of schema

Test plan

  • 62 unit tests pass (schema selection, file output, display, dry-run, no-wait)
  • Live tested with pro-fast processor: --text produces .json + .md, default produces .json only
  • Verify research poll still works with existing -o/--json flags (unchanged)

🤖 Generated with Claude Code

Add output schema support (auto vs text) to the research run command.
Default uses auto schema (structured JSON), --text switches to text
schema (markdown report). Results always save to files automatically
using the run ID as filename, or a custom path via -o.

- Auto schema: saves {base}.json with full structured response
- Text schema: saves {base}.json (metadata + basis) and {base}.md
  (markdown content)
- Executive summary always printed to stdout
- New _save_and_display_research replaces old dual-purpose output fn
- 62 tests covering schema selection, file output, and display
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant