Bilal140202/ytagent ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python command line tool that can take a public YouTube link or video id and download a playable video file to disk, even when running from a cloud or headless environment.
It should be simple to use from the terminal, with commands for downloading, one time setup, checking status, listing the download methods, printing agent friendly instructions, and a self test. I want it to try several download approaches in order, keep falling back when one fails, and always verify the final file is actually good before saying it worked. If possible, also add a subtitles command that can build an SRT file without downloading the full video first.
Make the output useful for other agents too, so JSON mode is available and the main download command returns the final file path, the method that worked, and a small attempt history. No browser login or cookies, and no runtime LLM calls. Use current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit