Re:uv: An extremely fast Python package and project manager,...
by sunaookami on Monday June 23, 2025 @03:09PM
(#44359003)
Using your system instructions for uv for every LLM now since first seeing your post last year, thanks! It's insanely helpful just asking e.g. Claude to give me a python script for XYZ and just using "uv run". I also added:
If you need to run these scripts, use "uv run script-name.py". It will automatically install the dependencies. Stdlibs don't need to be specified in the dependencies array.
since e.g. Cursor often gets confued because the dependencies are not installed and it doesn't know how to start the script. The last sentence is for when LLMs get confused and want to add "json" for example to the dependency array.
Re:uv: An extremely fast Python package and project manager,...
by varunneal on Monday June 23, 2025 @02:17PM
(#44358511)
claude sonnet typically forgets about uv script syntax in my experience. I usually find myself having to paste in the docs every time. By default it wants to use uv project syntax.
Re:uv: An extremely fast Python package and project manager,...
by bilbo-b-baggins on Tuesday June 24, 2025 @05:59AM
(#44364481)
Claude 4's training cutoff date is March 2025 though, I just checked and it turns out Claude Sonnet 4 can do this without needing any extra instructions:
Here's the output, it did the right thing with regards to those dependencies: https://claude.ai/share/57d5c886-d5d3-4a9b-901f-27a3667a8581