by simonw · 1y ago · 0 comments
It shows you the Hacker News page with ai and llm stories filtered out.
You can change the exclusion terms and save your changes in localStorage.
o3 knocked it out for me in a couple of minutes: https://chatgpt.com/share/68766f42-1ec8-8006-8187-406ef452e0...
Initial prompt was:
Build a web tool that displays the Hacker
News homepage (fetched from the Algolia API)
but filters out specific search terms,
default to "llm, ai" in a box at the top but
the user can change that list, it is stored
in localstorage. Don't use React.
Then four follow-ups: Rename to "Hacker News, filtered" and add a
clear label that shows that the terms will
be excluded
Turn the username into a link to
https://news.ycombinator.com/user?id=xxx -
include the comment count, which is in the
num_comments key
The text "392 comments" should be the link,
do not have a separate thread link
Add a tooltip to "1 day ago" that shows the
full value from created_athttps://github.com/simonw/tools/commit/ccde4586a1d95ce9f5615...
Here’s an “anti-ai” timeline filter:
https://hcker.news/?filter=top30&exclude=llm%2C+vibe%2C+open...
I’m not using the Algolia API, I ingest the hn fire hose on my own server so the filtering is very fast.
"Agents raid home of fired Florida data scientist who built Covid-19 dashboard"
"Confessions of an ex-TSA agent"
"Terrible real estate agent photographs"
etc etc
OTOH, narrow solutions validate the broader solution, especially if there are a lot of them. Although in that case you invite a ton of "momentum" issues with ingrained user bases (and heated advocacy), hopelessly incompatible data models and/or UX models, and so on. It's an interesting world (in the Chinese curse sense) where such tools can be trivially created. It's not clear to me that fitness selection will work to clean up the landscape once it's made.
It's not hypocrisy or anything negative like that, but I do find it amusing for some reason.
Was it? I feel like it was clearly meant to be smug and inflammatory rather than useful in any meaningful way.
"I built..." and "o3 knocked it out in a couple minutes...", not ironically, talking about a tool to keep us from having to be inundated with AI/LLM stuff.
One decision I had to make was whether the site should update in real time or be curated only. Eventually, I chose the latter because my personal goal is not to read every new link, but to read a few and understand them well.
I switched to using the older firebase API which can return up to 500 item IDs from the current (paginated) homepage - then I fetch and filter details of the first 200.
https://github.com/simonw/tools/commit/ccde4586a1d95ce9f5615...
Love it. :D
I don’t think it’s wrong, but I also don’t think we can really “AI generate” our way into better communities.
Let me stop folks early, don’t make comparisons to politics or any bullshit like that. We’re talking only about hacker news here.
(The fact that I wrote it using AI doesn't really matter, but I personally found it amusing so I included the prompts.)
Given that it is a poorly implemented solution that doesn't really do what the OP asked, yes it is.
The prompt asks for "filters out specific search terms", not "intelligently filter out any AI-related keywords." So yes, a good example of the power of vibe coding: the LLM built a tool according to the prompt.
So if I want a front page free of LLM "agents" but also want to view stories about secret agents it will do that, right?
This submission we're commenting on could be about filtering out any data, not just AI stuff. Politics, crypto, AI etc. Or more minute like "Trump" "fracking" "bitcoin" etc.
In any of these scenarios, with a tool designed to filter out content based on limited context, when would you ever be perfectly satisfied?
would you like AI to help you build the perfect context-filter model?
No, you do not have to "stay up to date on AI stories"—if you see one, add the keyword to the list and move on. There are not as many buzzwords as you seem to be implying, anyways.
If you are dissatisfied, you are welcome to build your own intelligent version (but I am not sure this will be straightforward without the use of AI).
Wish it returned more unfiltered items tho.
Even ones with detailed specs and the human agreed to them don't come back exactly as written.
That's at least 5 JIRA tickets.
I don't think I need a privacy policy since the app is designed so that nothing gets logged anywhere - it works by hitting the Algolia API directly from your browser, but the filtering happens locally and is stored in localStorage so nobody on earth has the ability to see what you filtered.
The API it uses is https://hn.algolia.com/api/v1/search?tags=front_page - which is presumably logged somewhere (covered by Algolia's privacy policy) but doesn't serve any cookies.
> Why do you do these demos if you aren't upfront about all the things the LLMs didn't do?
What do you mean by that?
You mean this thing? https://tools.simonwillison.net/hacker-news-filtered
I built it literally minutes before I posted it, and I built it specifically for this thread.
Other people post my stuff all the time - if you take a look at this list here, very few of them were submitted by my user account: https://news.ycombinator.com/from?site=simonwillison.net
(Currently only one of the posts on that page were by me.)