What problem does it solve?
It helps you run a Stata do-file end-to-end reliably and quickly confirm whether the analysis actually succeeded, using the project’s wrapper, logs, and output checks.
Core Features & Use Cases
- Batch execution via project wrapper: Runs a specified do-file in Stata batch mode from the project root, capturing exit code and producing a consistent log.
- Safety checks before execution: Resolves the do-file path, confirms the file exists, and validates declared inputs in the do-file header.
- Post-run validation and output verification: Scans the log for common Stata runtime errors (including r(<n>) patterns and missing observations) and verifies expected artifacts referenced in the do-file’s Outputs header.
Quick Start
Ask Codex to run the Stata analysis by instructing it: “/run-stata dofiles/03_analysis/main_regression.do, then report the log path, any errors found, and which expected tables/figures were created.”