frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Enforce TDD in Claude Code

https://github.com/nizos/tdd-guard
3•Nizoss•3h ago

Comments

Nizoss•3h ago
Hi HN!

I built this to automatically enforce Test-Driven Development in Claude Code so that I can focus on designing solutions instead of policing TDD. It uses test reporters to collect the latest results and hooks into file operations to block violations such as premature or over-implementation.

One key takeaway from building this tool is that mechanically blocking TDD violations doesn't automatically lead to better software and that the refactor phase is critical for achieving the software qualities that TDD aims to promote.

The agent often skips the refactor step of the red-green-refactor cycle, or at best performs only superficial changes. The result is code that works, but suffers from tight coupling, duplication, and poor design. This reinforced the idea that TDD’s value lies in the mindset and discipline it fosters, not in mechanically following its rules.

Another takeaway is that measuring “good design” is hard. Finding practical tools to detect unnecessary complexity was trickier than expected. Most tools I evaluated are correlated with line count, which is not very useful, or required extensive setup that made them impractical.

That said, I have added some mechanisms to prompt the agent to perform basic refactoring using lint tools. Deeper, more meaningful refactoring is still up to the developers.

I'm happy with the results so far and have received a lot of positive feedback.

It currently supports these test frameworks:

- JavaScript/TypeScript: Jest and Vitest

- Python: Pytest

- PHP: PHPUnit

I'd love to hear your feedback or questions. Contributions and support for additional frameworks are welcome!

Show HN: Implementing and Training a Transformer and Tokenizer in Rust

https://github.com/liam-ilan/gpt-rs
1•liamilan•38s ago•0 comments

Dutch Dikes

http://dutchdikes.net/
1•bschne•1m ago•0 comments

Emulation of 3Sum, 4Sum, the FMA and FD2 in Rounded-to-Nearest FP Arithmetic

https://hal.science/hal-04624238v1
1•luu•2m ago•0 comments

Longevity Firms Push Montana to Become Hub for Biohacking/Experimental Treatment

https://www.wsj.com/tech/biotech/the-push-to-make-montana-a-hub-for-experimental-medical-treatments-716e1992
1•domofutu•3m ago•0 comments

Fall 2025 International Student Enrollment Outlook and Economic Impact

https://www.nafsa.org/fall-2025-international-student-enrollment-outlook-and-economic-impact
1•atakan_gurkan•3m ago•0 comments

Phlebas: A live timeseries SIM controlled by the console

https://greenvitriol.com/posts/phlebas
2•janesconference•4m ago•0 comments

Towards sustainable open source – Sniffnet's 3rd anniversary

https://sniffnet.net/news/third-anniversary/
1•jannesan•5m ago•0 comments

Zuck Says AI Will Make Advertising So Good Its Share of GDP Will Grow

https://mylesyounger.substack.com/p/zuck-says-ai-will-make-advertising
1•dotcoma•6m ago•0 comments

More than two hard disks in DOS

https://www.os2museum.com/wp/more-than-two-hard-disks-in-dos/
1•userbinator•7m ago•0 comments

Satellites and drone swarms: The new high-tech quest to fight wildfires

https://www.msn.com/en-us/news/us/satellites-and-drone-swarms-the-new-high-tech-quest-to-fight-wildfires/ar-AA1JGm0R
1•xrayarx•8m ago•0 comments

Cara Pembatalan SPinjam

1•SPinjamShopee•10m ago•0 comments

New Hidden State of Matter Could Make Computers 1,000x Faster

https://www.popularmechanics.com/science/a65531679/hidden-metallic-state/
2•Bluestein•12m ago•0 comments

How to avoid dynamic linking of Steam's client library using a old trick

https://nullonerror.org/2025/06/03/how-to-avoid-dynamic-linking-of-steam-s-client-library-using-a-very-old-trick/
1•delduca•13m ago•0 comments

Comparing Wage Growth for Job Stayers and Job Switchers

https://www.apolloacademy.com/comparing-wage-growth-for-job-stayers-and-job-switchers/
1•kamaraju•14m ago•0 comments

Ferrari F355 Simulator for Sale Is Peak Retro SIM Racing

https://www.thedrive.com/news/this-ferrari-f355-simulator-for-sale-is-peak-retro-sim-racing
1•rmason•14m ago•0 comments

Writing a Good Design Document

https://grantslatton.com/how-to-design-document
1•kiyanwang•16m ago•0 comments

Ask HN: When to Open a Beta?

4•growbell_social•16m ago•2 comments

As McKinsey nears 100, is the world’s illustrious consultancy past its prime?

https://www.economist.com/business/2025/08/03/how-mckinsey-lost-its-edge
1•hhs•19m ago•1 comments

Heat index of 182 degrees in Iran likely false

https://www.accuweather.com/en/weather-news/live-news/clearing-the-air-heat-index-of-182-degrees-in-iran-likely-false/1798333
1•geox•19m ago•1 comments

Italy's Undercover Pizza Detectives

https://www.bbc.com/travel/article/20250801-italys-undercover-pizza-detectives
1•pseudolus•20m ago•0 comments

Guelph man walks 3000km to map urban-nature connections

https://www.guelphtoday.com/bold/guelph-man-walks-3000-km-to-map-urban-nature-connections-10919856
3•gnabgib•21m ago•0 comments

The most recommended new space opera books

https://shepherd.com/bookshelf/space-opera/new
2•bwb•24m ago•1 comments

New Educational App Lets Users Explore the Human Side of AI Alignment

https://simulateai.io/
2•CitizenOfEarth•25m ago•0 comments

Karpathy vs. McKinsey: The Truth About AI Agents (Software 3.0) [video]

https://www.youtube.com/watch?v=xZX4KHrqwhM
1•nspassov•29m ago•0 comments

Description of the Treasury International Capital (Tic) System

https://home.treasury.gov/data/treasury-international-capital-tic-system-home-page/description-of-TIC-system
1•kamaraju•32m ago•0 comments

An Investigation into the Firm at the Heart of the Democratic Spam Machine

https://data4democracy.substack.com/p/the-mothership-vortex-an-investigation
2•danso•32m ago•0 comments

Creating a Toy Programming Language with Actor-Based Parallelism

https://pointersgonewild.com/2025-08-03-creating-a-toy-language-with-actor-based-parallelism/
1•Luc•35m ago•0 comments

Book Review: 'Mailman,' by Stephen Starring Grant

https://www.nytimes.com/2025/07/21/books/review/stephen-starring-grant-mailman.html
3•janandonly•38m ago•0 comments

Critcl – C Runtime in Tcl

https://andreas-kupries.github.io/critcl/
1•ofalkaed•39m ago•0 comments

Why do LLMs still not run code before giving it to you?

1•highfrequency•39m ago•1 comments