News for hackers. Stuff that matters.
Re:Claude Code gets native LSP support by odie5533 on Monday December 22, 2025 @03:30PM (#46358681)
Is there a way to automatically run tests every file change, like post tool somehow, so that it returns a concise test run back to the LLM every tool use? That seems like it would be useful.
Re:Claude Code gets native LSP support by spellboots on Monday December 22, 2025 @03:31PM (#46358690)
Yes, you can do this with hooks: https://code.claude.com/docs/en/hooks
Re:Claude Code gets native LSP support by kristianp on Monday December 22, 2025 @04:30PM (#46359346)
Back when I was using CC, I had a "mandatory" development workflow that checks if the corresponding test file exists for the changed file, runs tests and runs the test coverage tool for the changed file.
Re:Claude Code gets native LSP support by rane on Monday December 22, 2025 @05:36PM (#46360001)
You don't want to run tests after every file change, because that will distract Claude from finishing whatever it's doing and add noise to the context window. Of course the tests will be broken if Claude hasn't finished the full change yet.

Running tests makes most sense on the Stop hook event, but personally I've found CLAUDE.md instruction of "Run `just check` after changes" to be effective enough. The Stop hook has the issue that it will run the checks every time Claude stops responding, even after without any changes.

Re:Claude Code gets native LSP support by odie5533 on Monday December 22, 2025 @06:05PM (#46360286)
Won't the LSP distract Claude too? I am trying to think of ways to make Claude faster at iterating by reducing tool calls. That always seems to be a bottleneck when it's doing tons of back-and-forth with tool calls.
Re:Claude Code gets native LSP support by rane on Tuesday December 23, 2025 @02:34AM (#46363241)
Depends on Anthropic has implemented it I guess. I haven't had it activate yet despite the prompt to install an LSP.