codeflash-agent/plugin/languages/python/references
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
..
async squash 2026-04-13 14:12:17 -05:00
data-structures squash 2026-04-13 14:12:17 -05:00
database squash 2026-04-13 14:12:17 -05:00
io squash 2026-04-13 14:12:17 -05:00
memory squash 2026-04-13 14:12:17 -05:00
native squash 2026-04-13 14:12:17 -05:00
structure squash 2026-04-13 14:12:17 -05:00
workers squash 2026-04-13 14:12:17 -05:00
agent-base-protocol.md squash 2026-04-13 14:12:17 -05:00
e2e-benchmarks.md squash 2026-04-13 14:12:17 -05:00
library-replacement.md squash 2026-04-13 14:12:17 -05:00
micro-benchmark.md squash 2026-04-13 14:12:17 -05:00
pr-body-templates.md squash 2026-04-13 14:12:17 -05:00
pre-submit-review.md squash 2026-04-13 14:12:17 -05:00
unified-profiling-script.py Improve deep optimizer: profiling script + failure modes + dist fix (#24) 2026-04-15 04:11:52 -05:00