We already have mature, tested functions for extracting dependencies, please use those.
Originally posted by @nathanjmcdougall in #1594
In #1594 the agent didn't realize that we have functions for extracting dependencies. It might be worth considering a similar pattern to #1574 where we trawl through the codebase and export a list of functions with their docstring first line to serve as a reference for dev and include it in AGENTS.md. A bit like an internal context7.