MurphyA/hacker-news huggingface dataset:
Show HN: Train AI Agents to Write Better Playwright Tests
by tanmay001 | 2026-02-16 09:18:10+00:00
AI agents often generate inconsistent Playwright tests because they do not understand your application’s specific workflows, UI patterns, or constraints.

The Playwright Skill provides more than 70 structured markdown guides that teach patterns for locators, authentication, visual testing, CI configuration, and framework migration so agents can apply consistent solutions instead of guessing.

You install it with: npx skills add testdino-hq/playwright-skill.

The material is organized into five packs: core testing (46 guides), Playwright CLI usage for token‑efficient automation (10), Page Object Model patterns (2), CI/CD setup for major providers (9), and migrations from Cypress or Selenium (2).

Each guide follows the same structure—when to use a pattern, when to avoid it, quick reference code, and complete implementations—so learners can move from concept to reliable tests step by step.

The skill works with tools such as Claude Code, GitHub Copilot, Cursor, and any agent that implements the skills protocol, and it is MIT‑licensed so teams can adapt the content to their own standards and practices.

For a deeper walkthrough of the guides and structure, see the full article at https://testdino.com/blog/playwright-skill/.
by nedt | 2026-02-16 09:18:26+00:00
You don’t need the lucky shot. But luck needs room to happen. What you need to grow into is becoming a leader. Mentor others, lead by example, suggest new things and build prototypes for show and tell. All that is actually the growth path for good senior software engineers, not becoming a middle manager creating Excel sheets.

And that’s more or less all he did. Had an idea, build a prototype, showed to the world and talked about it - even inspired people who are now saying „I could have done that“. Well do it, but don’t just copy. Improve the idea and great something better. And then very early share it. You might get lucky.
by necovek | 2026-02-16 09:18:32+00:00
Humans ask each other silly questions all the time: a human confronted with a question like this would either blurb out a bad response like "walk" without thinking before realizing what they are suggesting, or pause and respond with "to get your car washed, you need to get it there so you must drive".

Now, humans, other than not even thinking (which is really similar to how basic LLMs work), can easily fall victim to context too: if your boss, who never pranks you like this, asked you to take his car to a car wash, and asked if you'll walk or drive but to consider the environmental impact, you might get stumped and respond wrong too.

(and if it's flat or downhill, you might even push the car for 50m ;))
by tiew9Vii | 2026-02-16 09:19:16+00:00
It may be geographical.

In Australia, a lot of places only have a "Square Reader" on the counter where you pay. i.e. cafes, coffee shops, convenience stores, market stalls.

Terminals do exist with full displays but they are less common, mainly if you go to a restaurant as they have options for tipping on the display.

Just looking at the Square website the "Square Reader" is $69 vs $329 for the "Square Terminal". This may be part of the reason cafes etc prefer them given tight overheads.

Square reader: https://squareup.com/au/en/hardware/reader
by exceptione | 2026-02-16 09:19:35+00:00
> Dockerfile

nitpick: Containerfile. I mention it because people still think container==docker. I am sure the Fedora people focus on podman, as part of the Red Hat ecosystem. For a better dev experience they offer podman-bootc¹, which you will miss when using Docker. Personally I am convinced that we should steer people to podman instead of Docker.

1. https://docs.fedoraproject.org/en-US/bootc/getting-started/
by light_hue_1 | 2026-02-16 09:19:38+00:00
Chess is in such a sad situation again.

The world champion (which is determined for classical chess) isn't even remotely the best player. He's barely even in the top 10 and may soon fall out of that too. In terms of strength he's the weakest player to win in half a century even in absolute terms. And I can't think of any time in modern history of chess when such a low ranked player won.

We really need to do something to reinvigorate the game. Chess world championships used to be front page events. The winners would be stars and everyone knew their name. Now, even I don't bother to follow anymore.
by iberator | 2026-02-16 09:20:25+00:00
best thing about TCL is easy syntax and that everything is a string :) Unique and simple and easy language with very slow changes.

Something like Python in good old days of 2.x before young internet javasceipt devs started pouring A LOT of new features to the language (feature creep).

Nowadays Python is so complex and flooded with ex C, C++, Java, JavaScript, Haskell programmers adding so many features, so fast that it's impossible to follow and understand them :(

Languages should not evolve on that rate. No time to master it :(

/rant
by m-schuetz | 2026-02-16 09:20:41+00:00
Firefox is pretty irrelevant nowadays. They've dragged their feet for years when it comes to implementing new stuff, and now web devs don't even bother checking Firefox. Because devs know it won't work on ancient browsers, no need to confirm.

My personal trigger events were when Firefox didn't optimize DataView for the longest time, initially refused to implement import maps, and couldn't get WebGPU support done. At that point I lost interest in supporting it.
by bayindirh | 2026-02-16 09:21:43+00:00
> he should be fired for it.

If anyone who makes a mistake rarely and owns it completely shall be fired, everyone would be homeless.

To err is human, so owning what you did. This is the first time I have seen Ars to make a mistake of this kind in any size, so I think this is a good corrective bump given Ars' track report on these matters.

Maybe we should learn to be a bit flexible and understanding sometimes. If you live by the sword, you die by the sword, and we don't need more of that right now.
by necovek | 2026-02-16 09:21:45+00:00
Depends on what was missing.

If we used MacOS throughout the org, and we asked a SW dev team to build inventory tracking software without specifying the OS, I'd squarely put the blame on SW team for building it for Linux or Windows.

(Yes, it should be a blameless culture, but if an obvious assumption like this is broken, someone is intentionally messing with you most likely)

There exists an expected level of context knowledge that is frequently underspecified.
by enlyth | 2026-02-16 09:22:00+00:00
I want to recommend a game you can pull out and explain in a couple of minutes that everyone tends to enjoy. I've played many a board games with people and this one has had unparalleled success in terms of enjoyment and replayability across broad audiences

It's called "So Clover!" and it's a word association themed game where each person gets four pairs of words, you write a one word clue for each pair, and then the rest of the group has to work backwards to figure out the original orientation of your cards (the cards themselves each have four words as well)

https://boardgamegeek.com/boardgame/329839/so-clover
by manuelmoreale | 2026-02-16 09:22:01+00:00
> Is it? They're all generalizing from a pretty similar pool of text, and especially for the idea of a "helpful, harmless, knowledgeable virtual assistant", I think you'd end up in the same latent design space. Encompassing, friendly, radiant.

Oh yeah I totally agree with that. What I was referring to was the fact that even though are different companies trying to build "different" products, the output is very similar which suggests that they're not all that different after all.
by wraith_cz | 2026-02-16 09:22:09+00:00
Maybe, but Vim has tradition and backward compatibility, a better target, and fast vim9script. Neovim doesn't suit me. The aggressiveness of Neovim users constantly surprises me. Go to the Neovim forum and leave me alone. I don't go to Neovim forums to convince users that Vim is better.
Show HN: Dominake – A domino puzzle where 5×6 grids are impossible
by UnclonedMath | 2026-02-16 09:22:29+00:00
Dominake = dominoes + snake. Divide a number grid into domino pairs, then link them into a continuous chain where touching ends match.
Under the hood it's two classic problems at once: a Hamiltonian path covers every cell, while the domino chain forms an Eulerian path in the complete graph Kₙ. For 5×6, K₆ has all vertices of odd degree — violating the Euler condition. The grid simply can't exist.
Valid sizes: 4×5 (K₅), 6×7 (K₇), 8×9 (K₉). Three difficulty levels controlled by "traps" — false matches that look right but break the chain. Chain mode gives an open snake; Loop mode closes it into an Eulerian circuit.
Hold any domino to preview where it can go (green/blue/red for free/partial/blocked). Animated snake on solve.
Single HTML file, no frameworks, no backend, no ads. Built with Claude as a co-pilot.
https://constarik.github.io/Dominake/
More original game mechanics (slots, arcades, puzzles): https://constarik.github.io/UnclonedMath/
by kombookcha | 2026-02-16 09:22:30+00:00
Spiel des Jahres (Game of the Year) is a boardgame award that notably favors family-friendly accessibility. If you're seeing the award on the box, you can be confident that even if the strategy can potentially get really deep, you can still break this out to have a fun time with both grandma and your 12 year old cousin.

https://en.wikipedia.org/wiki/Spiel_des_Jahres
by kengoa | 2026-02-16 09:23:05+00:00
Amazing work! Reminded me of LLM Visualization (https://bbycroft.net/llm) except this is a lot easier to wrap my head around and that I can actually run the training loops, which makes sense given the simplicity of the original microgpt.

To give a sense of what the loss value means, maybe you can add a small explainer section as a question and add this explanation from Karpathy’s blog:

> Over 1,000 steps the loss decreases from around 3.3 (random guessing among 27 tokens: −log(1/27)≈3.3) down to around 2.37.

to reiterate that the model is being trained to predict the next token out of 27 possible tokens and is now doing better than the baseline of random guess.
by beaker52 | 2026-02-16 09:23:59+00:00
Don’t use it, or give it access to nothing important, therefore vastly limiting its potential. That’s the only way.

Prompt injection is a thing, and a lot of vibe coding, Gas Town, Ralph-loop enthusiasts are vehemently ignoring the risk believing they’re getting ahead.

I wouldn’t worry and just observe the guinea pigs doing their thing. Most of them will run around expending all their energy, some will get eaten by snakes, and you’ll be able to learn a lot, wait for the environment to mature, then spend your energy, instead.
by oytis | 2026-02-16 09:24:01+00:00
I am moderately anti-AI, but I don't understand the purpose of feeding them trick questions and watching them fail. Looks like the "gullibility" might be a feature - as it is supposed to be helpful to a user who genuinely wants it to be useful, not fight against a user. You could probably train or maybe even prompt an existing LLM to always question the prompt, but it would become very difficult to steer it.
by bayindirh | 2026-02-16 09:24:28+00:00
Being under stress and being ill at the same time can change your modus operandi. I know, because that happens to me, too.

When I'm too tired, too stupid, and too stressed, I stop after a point. Otherwise things go bad. Being sick adds extra mental fog, so I try to stop sooner.

Being aware of it needs some effort, though.
by RugnirViking | 2026-02-16 09:25:04+00:00
"The model seems to assume the car is already at the car wash from the wording."

you couldn't drive there if the car was already at the car wash. Theres no need for extra specification. its just nonsense post-hoc rationalisation from the ai. I saw similar behavior from mine trying to claim "oh what if your car was already there". Its just blathering.
by NitpickLawyer | 2026-02-16 09:25:07+00:00
While some efficiencies could be gained from better client-server negotiation, the cost will never be 0. It isn't 0 even in "lab conditions", so it can't be 0 at scale. There are a few miss-conceptions in your post.

> the time it takes to generate the Millionth output token is the same as the first output token.

This is not true, even if you have the kv cache "hot" in vram. That's just not how transformers work.

> cached input tokens are almost virtually free naturally

No, they are not in practice. There are pure engineering considerations here. How do you route, when you evict kv cache, where you evict it to (RAM/nvme), how long you keep it, etc. At the scale of oAI/goog/anthropic these are not easy tasks, and the cost is definetly not 0.

Think about a normal session. A user might prompt something, wait for the result, re-prompt (you hit "hot" cache) and then go for a coffee. They come back 5 minutes later. You can't keep that in "hot" cache. Now you have to route the next message in that thread to a) a place where you have free "slots"; b) a place that can load the kv cache from "cold" storage and c) a place that has enough "room" to handle a possible max ctx request. These are not easy things to do in practice, at scale.

Now consider 100k users doing basically this, all day long. This is not free and can't become free.
Show HN: We rebuilt Flood-It in Bun/vanilla JavaScript, and added a Maze mode
by ekremkrc | 2026-02-16 09:25:51+00:00
We rebuilt FloodIt, an open-source browser puzzle game inspired by Flood-It[0].

It includes:

- Classic mode (fill the board with one color)
- Maze mode (flood through corridors to reach the goal tile)
- Presets + custom game setup

Live demo: https://floodit-js.vercel.app
Source code: https://github.com/ekremkaraca/floodit-js

We started it as a React.js implementation[1] using TailwindCSS & Vite but gradually removed them to use custom css & Bun's own runtime thanks to Windsurf IDE & OpenAI Codex. There's also Sveltekit implementation we're working on [2].

We’d love feedback on gameplay balance (move limits/difficulty), UX, and code structure.

[0]: https://github.com/tfuxu/floodit
[1]: https://github.com/ekremkaraca/floodit-react
[2]: https://github.com/ekremkaraca/floodit-sveltekit
by laurentiurad | 2026-02-16 09:26:09+00:00
Got super inspired by this story and (sorry for the plug) decided to build comrade, a security-focused AI agent: https://github.com/LaurentiuGabriel/comrade. I might be biased, but in my tests it managed to complete coding tasks (creating web apps from scratch) with less tools, which means less tokens, lower costs than openclaw.

What I am missing is distribution. It seems impossible to get traction nowadays on social media, regardless how good your product is.

Any feedback is much appreciated.
by ekremkrc | 2026-02-16 09:26:21+00:00
Tech stack and structure:

- Bun server (Bun.serve) + vanilla JS frontend
- Core game logic in src/engine/game.js
- Move/round flow in src/engine/gameFlow.js
- Action orchestration in src/actions/gameActions.js
- Stateless view renderers in src/views/*
- Tests with bun test

A few details we focused on:

- Mobile + desktop board fitting
- Help/Rules screen
- Confirmed reset/new/quit actions
- Persisted dark mode
- Accessibility via keyboard shortcuts
by Fire-Dragon-DoL | 2026-02-16 09:26:43+00:00
Spiel Des Jahres is a prize they give every year to a bunch of board games. Don't look at very old board games, but some of the modern ones: https://en.wikipedia.org/wiki/Spiel_des_Jahres

As for Go, I was tempted, but it's also very abstract, I do like some kind of theme in my board games.

A board game well integrated with the theme gives great vibes.

Some of the games great from there:
- Sky Team, discovered right there on the wikipedia page: for 2 players, me and my wife spent countless hours on it. Very simple rules yet so damn fun
- Azul up to 4, simple rules and a lot of depths. Place tiles on a board while stealing from others the stuff they want to use
- Kingdomino is so simple yet choosing the piece (some form of draft) requires thinking ahead so many turns!
- Dominion is still a great game: deck builder with simple rules. Didn't think that was possible? It is!

A lot of the children games are also great (this is for families with kids)

Some nominated are also great, even if they didn't win
by zahlman | 2026-02-16 09:26:56+00:00
> and Claude to answer:

I wonder if it would give a similar evaluation in a new session, without the context of "knowing" that it had just produced an SVG describing an image that is supposed to have these qualities. How much of this is actually evaluating the photo of the plotter's output, versus post-hoc rationalization?

It's notable that the second attempt is radically different, and I would say thematically less interesting, yet Claude claims to prefer it.
by jjav | 2026-02-16 09:27:17+00:00
Not too surprising. I've been at companies where a job posting is hyper-specific to one job description, as soon as I (as a hiring manager) change a single word, HR makes a new job posting and cancels the old one.

And also I've been in places like you describe, where one generic "Software Engineer" job posting is reused to hire many people into many teams, since they're all "Software Engineers" so they just recycle the same posting for everyone.

It varies a lot depending on HR culture.
by Traster | 2026-02-16 09:27:46+00:00
It really is quite funny though isn't it. Yes, it's a fucking hand grenade that will blow up at any moment. It's perfect for a one man band startup. Because there's massive upside and at the end of the day if it blows up he's just back to sqaure one, what did you expect from a 1 man band.

But wait. Here he comes. Hero of the hour. Sam Altman.

Let's take that wildly dangerous, lightly thought through product, and give it the backing of the leading AI lab. Let's take all that pending liability and slap it straight onto the largest private company in AI.
by imtringued | 2026-02-16 09:27:48+00:00
Deflationary currency is like a highway that you're allowed to park on. People will park their car on the highways and then charge you a fee to let you through.

>Said another way, I have a property worth X, but next year it will be worth more because money is deflationary.

Uhm, if money is deflationary, your house will be worth less than X denominated in the deflationary currency. This means if the money grows in value faster you'd sell all your assets as quickly as possible and replace it with a useless scrap of paper.

>Why would I want to sell my house this year when I can wait until next year to sell my house and get more money.

Again, if money is deflationary, you'd hold onto money and wait for house prices to drop with the aforementioned mechanic.

You might say this is appealing, but the problem is that your income depends on other people's spending and they have the same incentive as you do, which is to earn more than you spend. That's something that is not possible in aggregate, where total aggregate spending and total aggregate income must always be equal. This is a zero sum game purely mathematically and this is not a moral judgement but an explanation how the rules work.

When people follow the rules of the game, something weird happens. The promised outcome of a wealthy society from everyone being prudent savers doesn't emerge. The reason is as follows: If you have 1 million paper notes that represent the wealth of the entire nation and the value of the paper notes goes up, the represented wealth of the entire nation goes up, but the nation still has the same 1 million paper notes. No matter how much value people try to save in the form of money, they will still only have paper notes.

Those paper notes do not have intrinsic value and that is for a good reason. Giving the paper notes intrinsic value doesn't change the fundamentals, it just makes the tokens more expensive to produce. It's like having a golden toilet.

If money is worthless, then trying to give it non-transient value is a fools errand. Trying to say that a house is equally as valuable as a small bundle of cotton fabric is only acceptable for the purposes of accounting, but saying that the same bundle of cotton fabric (whose value is decreed) ought to buy more house next year is batshit insane. You couldn't come up with a better system to reward laziness and idleness.
by seanhunter | 2026-02-16 09:28:25+00:00
TFA is talking about being quadratic in dollar cost as the conversation goes on, not quadratic in time complexity as n gets larger.

Edit to add: I see you are a new account and all your comments thus far are of a similar format, which seems highly suspicious. In the unlikely event you are a human, please read the hacker news guidelines https://news.ycombinator.com/newsguidelines.html
by cornholio | 2026-02-16 09:28:32+00:00
> one guy was the React guy. He left and everyone else was the snooty anti-React type and refused to learn. They ended up re-writing the whole thing from scratch.

React is close to an industry standard, sounds like bad management. Again, you don't have to know React to hire for React, just bring "smart and gets thing done" people onboard and trust them on their word that they can quickly learn anything they need to get it done. Clear responsibilities and goals, trust, swift consequences if that trust is breached.
by TonyStr | 2026-02-16 09:28:39+00:00
You lost me at Typescript. Typescript is great not because it abstracts away any javascript functionality (it doesn't), but because it allows IDE integrations (mainly LSP) to better understand your code, enabling go-to-definition, hover docs, autocomplete, semantic highlighting, code actions, inline error messages, etc.

But I agree many people are jumping on the javascript hate train without really understanding the modern web landscape.
by zahlman | 2026-02-16 09:29:08+00:00
> Is it? They're all generalizing from a pretty similar pool of text, and especially for the idea of a "helpful, harmless, knowledgeable virtual assistant", I think you'd end up in the same latent design space. Encompassing, friendly, radiant.

I'm inclined to agree, but I can't help but notice that the general motif of something like an eight-spoked wheel (always eight!) keeps emerging, across models and attempts.

Although this is admittedly a small sample size.

Edit: perhaps the models are influenced by 8-spoked versions of https://en.wikipedia.org/wiki/Dharmachakra in the training data?
by Capricorn2481 | 2026-02-16 09:29:27+00:00
> I think we have to let go of the "just get more ram" approach and start optimizing webapp code like figma does

I think you're underselling how much work went into making Figma that way. You're talking about a completely different realm of optimization that most companies won't spend money doing, and most web programmers won't know how to do.

As long as there's no incentive to do otherwise, companies will slap together whatever they can and ship as many features as possible.
by delegate | 2026-02-16 09:29:31+00:00
Great work! Obviously the goal of this is not to replace sqlite, but to show that agents can do this today.
That said, I'm a lot more curious about the Harness part ( Bootstrap_Prompt, Agent_Prompt, etc) then I am in what the agents have accomplished. Eg, how can I repeat this myself ? I couldn't find that in the repo...
by rounce | 2026-02-16 09:30:20+00:00
> I'm making music and images and I've never been able to do those things. I suck at graphics design - now I can actually do it.

I’d argue you still can’t do it, you just have access to cheap enough labour that you can afford to have it done for you on a scale which you couldn’t before. However seeing as you haven’t developed those skills in the first place you also lack the ability to make any deep critique of the output you are given. Instead of guiding it in the way someone experienced would, you’re still the client, except now you’re the client of a machine.