Add Socratic intake stage to support richer input types (fixes #16)#17
Merged
youngbeauty250 merged 3 commits intomainfrom Apr 4, 2026
Merged
Add Socratic intake stage to support richer input types (fixes #16)#17youngbeauty250 merged 3 commits intomainfrom
youngbeauty250 merged 3 commits intomainfrom
Conversation
Closes #16 Before this change, AutoR accepted only a single research goal string. This adds a Claude-driven intake stage that runs before Stage 01, enabling users to provide PDFs, code repos, datasets, .bib files, and notes. Claude analyzes the goal and resources via Socratic Q&A using the same operator and approval loop as all other stages. New files: - src/intake.py: resource classification, ingestion, serialization - src/prompts/00_intake.md: Claude prompt template for intake - tests/test_intake.py: 23 new tests Modified: - main.py: --resources and --skip-intake CLI flags - src/manager.py: _run_intake() method, intake context in prompts - src/terminal_ui.py: ask_yes_no, ask_resource_paths, show_intake_summary - src/utils.py: INTAKE_STAGE constant, intake_context in RunPaths Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #16
--resources PATH [PATH ...]and--skip-intake--skip-intakeor piped stdin preserves old behavior; all 48 tests pass (23 new + 25 existing unchanged)What this addresses from the issue
classify_resource()handles all types, copies to correct workspace dirssrc/prompts/00_intake.mdFiles changed
src/intake.py— NEW: dataclasses, resource classification/ingestion, serializationsrc/prompts/00_intake.md— NEW: Claude prompt template for Socratic intaketests/test_intake.py— NEW: 23 test casesmain.py—--resources,--skip-intakeflagssrc/manager.py—_run_intake(), intake context injection into promptssrc/terminal_ui.py—ask_yes_no(),ask_resource_paths(),show_intake_summary()src/utils.py—INTAKE_STAGE,intake_contextinRunPathsTest plan
python -m unittest discover tests/ -v)--skip-intakebackward compatibility with fake-operator🤖 Generated with Claude Code