Run against https://github.com/simonw/tools
inspired by the code in haiku.html add a feature to jina-reader.html where after the markdown has been fetched a new UI thing appears below it with a textarea for a system prompt and a button to "Run prompt" - when clicked that button should send the system prompt and the retrieved HTML to Claude 3.5 Haiku and display the resulting text as rendered markdown below on the page, plus a copy-to-clipboard button that copies that markdown. The default system prompt should be: You summarize the pasted in text. Start with a overall summary in a single paragraph. Then show a bullet pointed list of the most interesting illustrative quotes from the piece. Then a bullet point list of the most unusual ideas. Finally provide a longer summary that covers points not included already
modify jina-reader.html to hide the whole #prompt-section area until after the first step has run and markdown has been retrieved. Also use the model with ID claude-3-5-haiku-latest and send the system prompt using the "system": "prompt goes here" top level JSON property - then send the previously retrieved markdown as a user message. Style the copy to clipboard button like the other buttons. Change the heading from "Generate summary with Claude" to "Run a prompt with Claude"
add line-height 1.2 to the prompt-result bit and generally make the typography a bit nicer