codeflash-agent/plugin/languages/python/agents
Kevin Turcios 7e00007569
Improve deep optimizer: profiling script + failure modes + dist fix (#24)
* Exclude dev docs from plugin dist builds

README.md, ARCHITECTURE.md, and ROADMAP.md are development docs that
shouldn't ship in the assembled plugin distributions.

* Improve deep optimizer: fix profiling script, add failure mode awareness

Profiling script: Accept source root and command as CLI args instead of
hardcoding `src` and requiring manual `# === RUN TARGET HERE ===` edits.
The agent now copies the script from references and runs it with the
project's actual source root and test command.

Failure modes: Wire failure-modes.md into the on-demand reference table
and stuck recovery checklist so the agent consults it when workflows
break (deadlocks, silent failures, context loss, stale results).

* Fix ruff lint errors in unified profiling script

Refactor main() into parse_args(), profile_command(), and
report_results() to fix C901 (complexity) and PLR0915 (too many
statements). Also fix S306 (mktemp → NamedTemporaryFile), PLW1510
(explicit check=False), and add noqa for intentional os.path usage
(PTH112) and subprocess with CLI args (S603).
2026-04-15 04:11:52 -05:00
..
codeflash-async.md squash 2026-04-13 14:12:17 -05:00
codeflash-ci.md squash 2026-04-13 14:12:17 -05:00
codeflash-cpu.md squash 2026-04-13 14:12:17 -05:00
codeflash-deep.md Improve deep optimizer: profiling script + failure modes + dist fix (#24) 2026-04-15 04:11:52 -05:00
codeflash-memory.md squash 2026-04-13 14:12:17 -05:00
codeflash-pr-prep.md squash 2026-04-13 14:12:17 -05:00
codeflash-python.md squash 2026-04-13 14:12:17 -05:00
codeflash-scan.md squash 2026-04-13 14:12:17 -05:00
codeflash-setup.md squash 2026-04-13 14:12:17 -05:00
codeflash-structure.md squash 2026-04-13 14:12:17 -05:00