Current Bootstrap Proof Task Brief¶
Repo Orientation¶
Read the repo-local instructions and standards before coding:
AGENTS.mddocs/architecture/object-service/adr/adr-os01-object-service-architecture-v3.mddocs/development/design-principles.mddocs/development/style-guide.mddocs/architecture/tnh-gen/adr/adr-tg01-cli-architecture.md- the
TODO.mdsectionAdd --prompt-dir Global Flag to tnh-gen
Follow existing tnh-gen CLI patterns and keep the change small, typed, and reviewable.
Task¶
Implement the --prompt-dir global flag for tnh-gen so one-off prompt catalog overrides can be supplied directly at the CLI without requiring environment variables or a temporary config file.
The intended user-facing shape is:
This task matters because it improves one-off CLI use for testing, CI, and development workflows without widening into prompt-system redesign or unrelated CLI cleanup. Preserve config precedence clarity, with the CLI flag overriding the other prompt directory sources.
Likely files in scope:
src/tnh_scholar/cli_tools/tnh_gen/tnh_gen.pysrc/tnh_scholar/cli_tools/tnh_gen/config_loader.pysrc/tnh_scholar/cli_tools/tnh_gen/types.pytests/cli_tools/test_tnh_gen.pydocs/cli-reference/tnh-gen.md
Validation¶
Develop and run appropriate tests for the change, especially precedence and at least one command path using the override. Check code quality with the relevant local tooling and keep the resulting diff small and reviewable.