Half my visits to HN are to check out a comment that explains the right uv inline dep syntax
#!/usr/bin/env -S uv run --script
# /// script
# dependencies = [
# "requests<3",
# "rich",
# ]
# ///
import requests, rich
# ... script goes here`
so i can tell claude to write a self contained script it can later use.
Huh. I just tell Claude “write a self contained uv script” and it does that fine by itself.