scan_project
Build a pipeline map from an existing project using static AST analysis, detecting data reads/writes, parameters, imports and step links without executing code.
Instructions
Build the map of an EXISTING project by static analysis (ast only; user code is never executed).
Detects data reads/writes, argparse/click params, local imports, docstrings and step kinds, links steps whose output paths match other steps' inputs (falling back to file numbering and imports), and imports existing results as runs tagged 'imported'. Idempotent: re-scans update scanner-owned fields, add new steps, never delete, and keep edits made with add_step. Review the returned summary and fix it with connect_steps / add_step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder to scan, relative to the project root | . |
| dry_run | No | Return the proposed map without writing anything | |
| exclude | No | Glob patterns to skip (default: venvs, .git, tests, __pycache__, .mltree, build dirs) | |
| include | No | Glob patterns to scan (default **/*.py, **/*.ipynb) | |
| import_results | No | Import existing metrics/MLflow/Optuna/Lightning/wandb results as runs | |
| notebook_sections | No | Make each markdown-headed notebook section a step |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||