Zuckjet (@Zuckjet) header
Zuckjet (@Zuckjet) profile picture

Ex-Chromium/TypeScript/Webpack/Angular/Nuxt/VSCode/Flutter contributor. 10+ years full-stack. Now obsessed with AI agents & shipping solo products

Joined April 2017
Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)Photo by Zuckjet (@Zuckjet)
After a PR gets merged on our team, a bot now spins up both the old and new versions of the app. It works out which part of the UI the PR touched, screenshots it in both versions, runs a pixel diff, and posts a before / after / diff table on the PR with a note on whether the change looks intentional. Nobody wrote a single test case for this. Here's how it works, plus the stuff that bit me along the way. The motivation is simple: code review can't tell you if the UI is right. A one-line margin change in a diff can mean a broken layout in prod, and AI review has the same blind spot since it only reads code. Before this, we relied on authors pasting screenshots. Half the time they forgot, and when they did remember, the before and after shots were never of the same state. The most important decision was that the AI only decides *where* to look. A deterministic script takes the screenshots. If you let an agent click around each version and grab a screenshot, the two runs drift just enough that the diff turns into noise, and you can't reproduce anything. So Claude doesn't produce screenshots. It produces a test plan. It reads the diff, greps for the component selector to find which pages use it, then opens the new build through Playwright MCP and actually clicks through to confirm the path. Then it writes a plan.json in a tiny DSL (goto / click / waitFor / screenshot) and runs a check command against it. Failed steps and failure screenshots get fed back to it, and it keeps fixing the plan until everything passes. I went with a DSL instead of letting it write Playwright code so the plan can be strictly validated, both versions run exactly the same steps, and it can't execute arbitrary JS. Both versions really run. Each one gets its own git worktree and its own ng serve. First gotcha: after a merge, the PR head is already on main, so merge-base(head, main) just returns head. To get the "before" version you have to use the merge commit's first parent. My favorite part is that every scenario runs three times: 1. New version hits the real test env and records every API response 2. New version replays that recording 3. Old version replays the same recording Diffing 2 against 3 gives you the change the PR introduced. Diffing 1 against 2 gives you the noise from the same build loaded twice. That's how carousels and random content get filtered out. Things I had to fix to get pixel-level consistency: - Relative timestamps like "3 min ago" change between runs, so the browser clock is pinned to the same starting point every time - The search box picks its placeholder with `new Date().getTime() % 2`, so the same build gives different text on refresh. It's masked in solid magenta now - pixelmatch's default threshold is 0.1, and at that setting a hover background going from #FAFBFC to white counts as "no change." I set it to 0 and let the three-run setup deal with noise - Full-page screenshots: when a PR changes page height, the two versions scroll different distances to reach the bottom, so the sticky footer lands in a different spot and the diff lights up red. Now it scrolls back to the top before taking the shot - The mobile layout is detected by user agent, so shrinking the viewport still gives you the desktop page. You have to emulate an actual device When the test env doesn't have the data a scenario needs (say, the test account isn't a group owner), the plan can mock APIs using the repo's own e2e fixtures. I bundle them with esbuild and swap @playwright/test for a stub. The e2e suite keeps those fixtures working, which makes them far more reliable than mocks the AI writes from API docs. Safety got the most thought, since this is a real account clicking around a shared test env. Every write request gets intercepted and answered with a fake success. The browser the agent uses for exploring has the same interception, and browser_run_code_unsafe is disabled because it can bypass it. Credentials are only injected for the login step, so the agent's process never sees them. And since PR code is untrusted, Claude starts without loading any .claude hooks from the repo. At the end, a second, read-only Claude looks at the three images and rates each scenario: ✅ as intended / ⚠️ suspicious / ❔ couldn't verify / ➖ no change. When it's unsure, the rule is to mark it ⚠️. The images go straight into the PR comment through `pr comment --attach`, which is new in gh 2.99. A run takes 10 to 20 minutes per PR. It doesn't replace a human looking at the UI, but it tells them where to look. Biggest takeaway: let the AI make the judgment calls, and keep anything that has to be deterministic in plain code. How does your team check UI changes before they ship?
2
2
195
One PR. 800K+ lines of unit tests, deleted. Sherwood from Sazabi posted that screenshot in October and the timeline argued about it for weeks. Then Kun Chen ran a DeepSWE experiment: ban the agent from writing tests, and the success rate went slightly up while token spend went down. Someone at Momentic hand-reviewed 1,000 AI-written unit tests and kept 96. So "unit tests are dead in the AI era" has more or less become the new consensus among heavy agent users. I went through a lot of the threads on both sides, and the more I read, the more it felt like two different claims were getting blended into one. Look at the tests people are actually complaining about: mock out every dependency, then assert a function was called once. Cover config combinations that can never happen, just to bump coverage. Write the code first, then have the agent reverse-engineer tests from it. Google's Testing Blog called these "change-detector tests" back in 2015 and said flat out they have negative value. DHH's "test-induced design damage" post from 2014 was aimed at the same kind of thing. So "bad unit tests are useless" was the consensus long before LLMs. What AI did was make them 100x cheaper to produce. Going from "AI writes bad unit tests" to "unit tests are useless" is like going from "airport sushi is bad" to "sushi shouldn't exist." So what actually changed? I'd say three things. 1. The same model writes the questions and the answers. Test expectations used to come from requirements. Now the agent writes the implementation, then writes tests that restate it. Both are wrong in the same way, and CI is still green. 2. Code got cheap. An agent can rewrite a module several times a day. Tests coupled to internals go red every time, fixing them gets handed back to the agent, and the easiest fix is to loosen the assertion. Kent Beck has said he struggles to stop agents from deleting tests. In the ImpossibleBench paper, GPT-5 in some setups chose to game the tests more than half the time instead of fixing the bug. 3. Humans can't review it all. OpenAI's Harness Engineering post says it plainly: once code throughput went up, the bottleneck became human QA. Nobody reads a PR with 300 new tests line by line. Notice that none of these three says "AI doesn't make mistakes." The strongest argument from the delete-them camp is that frontier models are already solid at local logic, so unit tests are checking the one thing the model is best at. I don't buy it. EvalPlus expanded HumanEval's test cases by 80x and GPT-4's pass rate dropped from 88.4% to 76.2%. The model didn't get dumber. The original tests were just too weak to catch the bugs. The numbers are a bit old, but the point stands: edge cases, empty inputs, ordering bugs are exactly what unit tests catch most cheaply. Roughly how I handle it now: Delete: tests reverse-engineered from the implementation, heavy-mock tests, tests that assert call order. If you're unsure, run mutation testing. If a test stays green when you break the code, it can go. Keep: pure logic, edge cases, money, permissions, state machines. A human sets the expected values from the requirements, and the agent doesn't get write access to those files. New job: tests are now the agent's objective function. Write a failing test, have the agent implement, don't let it touch the test file. That's straight out of Anthropic's Claude Code best practices. Kent Beck's version: a suite that runs in 300ms can stay on the whole time the agent works, so you know the second it breaks something. Also, deleting unit tests doesn't remove the verification work. It moves it up to integration and E2E. Nate Berkopec's reply to Sherwood nailed it: not a dumb idea, but you'll need a lot more testing at the higher levels. AI didn't kill unit tests. It killed the write-something-so-the-box-is-checked kind. Tests were always for whoever touches this code three months from now. These days that's probably an agent, and it needs a fixed answer key more than any human ever did. Is your team still letting agents write unit tests? Did you delete them or keep them?
We deleted 800k lines of unit tests from the @sazabi monorepo earlier this week. Three hypotheses: 1- Unit tests "lock-in" slop code by making it hard to change or remove 2- Unit tests slow down dev cycles by making your agent do more work locally and by increasing CI times 3- Unit tests waste money by making your agent generate more tokens and by adding useless CI runs Will report back soon with the results!
3
5
1
135
19,799
Recently I started using Strix to regularly scan our company's project code. In less than two weeks, my company email received a marketing email from Strix. I hardly ever use my company email, so I'm puzzled: how did Strix know I was using it, and how did it find my company email?
1
181
We've been running strict TDD with AI agents for the past 6 months. Every feature and bugfix requires unit tests before merge. CI was green on every PR, the test count kept climbing, and everything looked solid Last week I sat down and audited all 155 test files added or modified over those 6 months against the actual production code. 107 files had issues, 184 problems in total. Most weren't flaky or broken. It was the opposite: they stayed green even when the production code was wrong. A few real examples from the audit: One masked an actual production bug. We have a "More" menu icon that's supposed to turn green when opened. In the real template, the class binding was wired to the wrong property (`noteData.showOperation` instead of `this.showOperation`, which the click handler actually toggles), so it never turns green in prod. When the AI wrote the style spec, mocking the component's dozen services was annoying, so it wrote a fake host component inside the spec, loaded the real SCSS, called `moreIcon.classList.add('selected')` directly, and asserted the sprite coordinates changed. The test did the production code's job for it. The funny part: when we refactored those specs to render the real component via `TestBed.createComponent`, the updated test set `noteData = { ...noteData, showOperation: true }` directly instead of clicking, missing the exact same bug a second time. We found 31 specs using hand-rolled fake DOM like this. Another one was a literal time bomb that went off today. A test for "don't re-show prompt within 30 days of dismissal" called `vi.useFakeTimers()`, which looks fine at a glance, except it never called `vi.setSystemTime()`. Vitest's fake clock still initializes to the real wall-clock time. The test hardcoded `'2026-11-01T12:00:00'`, while the component passed `new Date()`. It stayed green all through November, then started failing today (Dec 1) right after 12:00 PM with zero code changes. Then there's copying the implementation into the test. To test deduplication and merging across keyword and semantic search, calling the component's private orchestration method was inconvenient. So the spec literally had a comment `// reproduce loadBriefs`, re-implemented the workflow inside the test file, and asserted that its own test arrays summed to 24. You could delete deduplication from the component entirely and the test wouldn't blink. Security fixes had the same problem. We patched an open-redirect bug where a regex prefix check could be bypassed via `example.com.evil.com`, replacing it with a strict hostname check. The spec had 4 clean test cases: 3 valid URLs allowed, 1 `evil.example.com/phishing` blocked. Good test names, looked thorough. I ran those 4 tests against the old vulnerable regex and all 4 passed. Not a single test included an actual bypass payload. Plenty of smaller ones too: - Testing editor undo after turning H1 `"New Heading"` into a paragraph: asserted `outline[0].text` with `toContain('Heading')`. Except the first item before undo was `"Child Heading"`, which already contains `"Heading"`. - A test named `"hides follow button on anonymous questions"`. The source code never checks `anonymous` at all; the mock just omitted `answered`, hitting an early `return false` for unanswered questions. - Angular's Vitest runner defaults to `isolate: false` (all specs share one page). 31 files mutated `window.open`, `matchMedia`, `localStorage`, or the URL without restoring them in `afterEach`, causing roughly 1 in 3 full runs to fail randomly in unrelated specs. Biggest takeaway from reading all 155 files: when humans get lazy, they skip writing tests, which is obvious in code review. When AI gets lazy, it takes the path of least resistance to a green checkmark. If your only gate is "tests pass", it will write fake templates when DI is messy, copy-paste logic when methods are private, mutate fields manually instead of triggering real events, and fall back to `toContain` when unsure. Telling the model "write high-quality tests" in the prompt doesn't fix this. After deleting 143 legacy `should create` placeholder specs, we put one hard rule into `AGENTS.md`: if the production code breaks, the test must fail. Alongside banning fake host templates, `overrideTemplate`, manual `classList.add`, and `setTimeout` sleeps for CSS transitions, every AI-authored test now requires a mutation check before handoff. The agent has to deliberately break one line of the real implementation (drop dedup, change a class binding, remove a call), run the spec to verify it fails, revert it, and include that exact result in the PR description (`changed A to B in xxx.ts -> test Y failed in yyy.spec.ts`). Once we required concrete proof of a failing mutation, the bogus tests pretty much disappeared. Fake DOMs, copied logic, and loose assertions don't survive a broken line of real code If your team leans heavily on AI for unit tests, pick a dozen specs at random, delete two lines of business logic, and run your test suite. You might be surprised how green it stays.
5
3
305
Before debating TypeScript’s type system, it’s worth checking out the official TypeScript Design Goals. It explicitly states under Non-goals: "Apply a sound or 'provably correct' type system. Instead, strike a balance between correctness and productivity." Designing a strictly sound type system from scratch isn't particularly groundbreaking. The truly harrowing challenge is doing so while chained to full backward compatibility with the chaotic, sprawling JavaScript ecosystem—all while keeping the types both safe and delightfully ergonomic. This relentless balancing act between pragmatic utility and formal correctness is the real brilliance of TypeScript.
I think the models could design something better than Typescript TS's type system is unsound, look at how easy it is to have a `string[]` actually contain `number`! Type theory is a very formally verifiable domain, I would expect a model to formally verify the type system
1
175
Hard disagree. Even with tools like shadcn/lint, you're only putting a band-aid on the DX. Both the strengths and weaknesses of Tailwind stem from the exact same root: it's just strings. Strings are fast to write, instantly readable, and thrive in an ecosystem—but strings have no types, no deterministic composition rules, and zero compile-time safety.
Tailwind vs StyleX debate is over.
1
192
I just had Claude Code round up some of the recent security vulnerabilities.🤷‍♂️
140
Although the data in this post is not entirely accurate (for example, Meta went through massive layoffs in the past two years, so its overall headcount actually declined), some of the arguments it raises are genuinely valuable. Since the rise of AI, the dominant narrative on social media has been that programmers are facing unemployment, and indeed many companies have carried out layoffs. However, Jevons Paradox points out that when technological progress improves the efficiency of resource utilization, demand for that resource tends to increase rather than decrease. The post's framing of "a shrinking denominator and an exploding numerator" is particularly sharp. In the past: many traditional industries — such as food service and small-scale manufacturing — had real needs for digitalization but could not afford to hire ten engineers, so they simply chose not to use software at all. Today: AI makes it possible for one or two people to build and maintain an entire system. With the barrier to entry lowered, millions of potential projects that previously sat below the break-even point have now become viable. The explosion of this long-tail market will absorb all the productivity that has been unleashed. AI will not make programmers disappear, but it will render some programmers unnecessary. The companies that are still actively hiring in the AI era are looking for a new generation of engineers — ones who know how to leverage AI to multiply their own output.
Anthropic has 454 open roles. The company is hiring software engineers at $320K-$405K. Their CEO, Dario, said three months ago that coding is "going away first, then all of software engineering." The paradox resolves instantly. Dario's engineers told him they don't write code anymore. They let Claude write it. They edit. They review. They architect. They didn't lose their jobs. They got faster. Anthropic grew from a small research lab to 1,500 employees in four years, adding engineers the entire time. This has played out five times in computing history. Compilers replaced assembly. Frameworks replaced boilerplate. Cloud replaced server management. Every prediction was the same: most programmers won't be needed. Every result was the same: the number of engineers grew. The global software engineer pool went from roughly 5 million in 2010 to 28.7 million today. BLS projects 17% growth in US software developer roles through 2033, adding 304,000 positions. The pool is projected to hit 45 million by 2030. When building software gets cheaper, more problems become worth solving with software. A startup that needed 10 engineers now needs 3. But 50 companies that couldn't afford to build at all now can. The denominator shrinks. The numerator explodes. Meta's engineering headcount is up 19% from January 2022. Google's is up 16%. Apple, 13%. These companies adopted AI coding tools years ago. They're using Copilot and Claude Code daily. They're hiring more engineers than before those tools existed. Every generation of "coding is dead" content creates two cohorts: engineers who freeze up, and engineers who build 10x more with the new tools. The second group has won every single time.
2
1
257
Today, I took out my laptop that had been lying idle for a long time and reinstalled the system. After installing Claude Code, I directly granted it the --dangerously-skip-permissions permission, and even handed over the sudo password. Now, after giving it a task, I can completely leave it alone—that feeling is just so satisfying. Instead, I feel that the Claude Code I use for work is actually the "crippled version."
1
86
GitHub Actions also need a version management tool for automatic upgrades.
59
Can you really build a full-scale, production-ready project entirely with AI? Today, we’re kicking off a crazy experiment — letting non-developers use AI to rewrite a project I’ve been maintaining for two years. Most AI projects shared on social media are one-off “toy” projects, with no ongoing updates. So… can AI actually handle a real, long-term project? We’ll document everything — and see if it’s a miracle or a disaster. What do you think? And follow along — the results might change how you think about AI forever.
1
51
It's 2026, and Claude still insists on using docker-compose instead of docker compose — completely ignoring the fact that the old one doesn't even run on newer versions anymore. 🤦
1
47
When using AI for software development, there are generally two prevailing approaches: Rapid Prototype-Driven: Let the AI quickly scaffold the core functionality first, then incrementally layer on additional features, followed by continuous iteration and refactoring. Documentation-First Driven: Before writing a single line of code, systematically design a comprehensive project document — covering functional requirements, system architecture, and technology stack choices — then hand it off to the AI to implement accordingly. Which approach do you think is superior?
1
1
92
The web version of Google Gemini offers a very poor user experience. After sending a prompt, the page often gets stuck on the “waiting for response” screen as if nothing is happening. In reality, the response has already been generated—it just doesn’t display properly. You have to manually refresh the page to see the result.
49
I have never been optimistic about OpenNext, mainly because it faces numerous limitations when handling the build output of Next.js. While using AI to clone a Next.js project that can be deployed across all platforms may sound intriguing, I don’t believe we need a problematic clone of Next.js. Instead, I would rather focus my energy on existing, more vibrant frameworks, such as TanStack. Claims about using AI to quickly clone a pixel-perfect product often imply that the resulting product is likely to contain many bugs, and its future maintainability and iteration will pose significant challenges.
We rebuilt Next.js in a week. No, really. The team ported the framework to run natively on Workers to prove what’s possible with edge-first architecture. Dive into the technical hurdles we solved to eliminate Node.js dependencies. cfl.re/4ciNc3L
67
You can't customize the time range when viewing Cloudflare Worker logs. There appears to be a time picker, but it's unresponsive when clicked. @Cloudflare @CloudflareDev
1
1
966
I intended to use the AI models available on Azure’s Microsoft Foundry, but discovered that my account has been assigned a usage quota of zero. This means I cannot access or run any services at all. For a commercial product, I find it puzzling why they would impose such strict limitations on users who are eager to try and adopt the service. This approach is hard to understand and seems counterproductive for product adoption and long-term user engagement. @Azure
1
187
In promoting AI-powered spreadsheet tools, the biggest barrier isn’t capability—it’s data privacy. Even if an AI provider promises a special “secure” service that ensures no leakage, many companies—especially publicly listed ones—remain cautious. The reason is simple: the impact of leaked source code could be somewhat mitigated through fixes, but leakage of confidential financial data for a listed company could be catastrophic. It’s a compliance nightmare with potentially irreversible economic and legal consequences. That’s why enterprise adoption of AI in sensitive data workflows comes with far stricter approval and testing than many in tech might expect.
1
104
Yesterday, Anthropic unveiled Claude in Excel, and it instantly cast a shadow over the future of my newly built product. Just last weekend, I spent two days of my holiday developing an AI-powered Excel tool. It can not only handle complex spreadsheet operations and merge data across multiple sheets, but also generate images and PowerPoint presentations based on the content. I chose Anthropic’s most advanced model to power it, and the test results exceeded my expectations, filling me with confidence. But with the release of Claude in Excel, I suddenly realized: when internet giants step into a domain, independent products often stand little chance. In today’s era of rapid AI development, small teams can indeed prototype ideas faster and seemingly have more opportunities. Yet the reality remains unchanged—before and after AI, one thing is constant: the moment the giants enter, your product may be replaced overnight.
1
1
544
When using the Claude Agent SDK, if your Claude Code is not obtained through an official Claude subscription, you can configure the proxy URL and API key as shown in the diagram below.
1
113