frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: How do you go from writing code to deploying with agents?

8•sakuraiben•5h ago
Been doing hardcode agent driven coding for the past year. I feel like I now have to test all my code locally with agents reviewing them and ideally testing them. Unfortunately I feel like the traditional CI/CD testing is starting to feel like a formality. Would love to know what everyone is doing, and if I'm not the only one making a mistake.

Comments

rk007•5h ago
Yes
mr1337•4h ago
Testing is not a formality. In fact, it's better and easier than ever. Tell your agents to develop your code-base with Red-Green-Refactor Test-driven development. Write failing tests first and run them, then write the code to make the tests pass, then refactor the code as needed. I used to hate writing tests before, but now that I can offload that (and the development, honestly) to AI, it's nothing to keep up with it. Your codebase quality will increase with TDD, because it will reduce the number of things that inadvertently break during updates. Things will break loudly and can be easily fixed (again, by AI) before shipping. If something does manage to get through, add more tests to cover it for next time.

This actually makes the LLMs better at coding as well. They can verify their own results and iterate with far less manual validation.

UncleEntity•2h ago
Yeah, that only works if they follow the plan (they don't), actually write the tests first (they don't) and don't silently defer anything which doesn't have a test written as "speculative without a use case".

Or just write tests to match the buggy code after you call them out for not writing tests.

I mean, the struggle is real...

No matter how weasel-proof you make the plans they are much better weasels and just do as little as possible and "the test not written is the test which never fails." There's a certain amount of zen to them.

mackatsol•3h ago
More testing is better, so far! I'm using the same red-green-refactor TDD idea, and having Claude use Superpowers code review and running Coderabbit CLI on it all before pushing to CI/CD, which also runs a series of tests (mostly security ones). Someone else posted that whenever something broke they would ask 'Why was it built that way?' to try to have the bot fix it's own coding patterns.. as well as adding a regression test to ensure it did not happen again. I also have it do dry-runs and then do live on one item before batching. Catches a lot of things! Oh, and insist that it RTFM's the API if you're using one.
knighthacker•2h ago
We still create a ton of end-to-end tests and run them a lot. What changed for us is the review process. While our whole team uses agents to do reviews, we also ask other team members to review the coding session itself rather than the diff. That team member can ask the coding session questions about the architecture decisions, scalability, edge cases, ..etc.

Disclosure: I'm building AQ (aq.dev), which is partly why I'm deep in this. We wrote up the session-review practice here: https://aq.dev/guides/how-to-review-an-ai-coding-session/. The practice works with any agents too, nothing tool-specific about it.

jmathai•2h ago
I have Claude implementing features from a spec, running tests, creating a build, and then publishing to TestFlight. All I have to do is verify that the build works once I get the TestFlight notification.

I have found a key is to use end-to-end tests and not unit tests.

This has been working well so far after around 100 pull requests for an app I recently decided to make. So far it’s been good.

It’s free, no subscription.

[1] https://trysojourn.app

I’ve done similar with backend projects utilizing GitHub actions to run tests and publish to staging for verification.

alekstret•1h ago
I'm building solo and am extensionally using Claude Code for development and testing. The following scheme finally works great for me.

First of all, the agent writes code. After that, it creates tests and verifies that all of them work correctly by cracking the checks and rerunning the test suite.

Secondly, it gives me the ready to test code + set up environment (stage). I'm checking that the code actually works, and if not, we are making some fixes until I'm fully satisfied with the result.

Thirdly, the agent starts an external review using skill for code review and usually makes some additional fixes to codebase and corrects tests again.

After all, we are ready to commit and push the feature to the main branch. Before merging, we start CI/CD - which is important because it does a type check - and wait until the run finishes successfully.

That's how it happens in my case.

Quick note: this plan was built after many iterations of coding and testing, and it has finally proved that it works.

Ask HN: What is your database size

3•kureikain•3h ago•1 comments

Ask HN: How do you go from writing code to deploying with agents?

8•sakuraiben•5h ago•7 comments

The State of Google

3•3dedb728-3f77•3h ago•3 comments

Ask HN: Why is Open POWER Foundation a wasteland?

5•climate_denier_•6h ago•2 comments

Ask HN: Is Ask HN Shrinking?

15•keiferski•16h ago•14 comments

Ask HN: Who wants to be hired? (August 2026)

159•whoishiring•5d ago•517 comments

Ask HN: What can I do with a single R9700?

4•scott01•15h ago•7 comments

How AI is breaking the British State

5•andsoitis•6h ago•4 comments

Ask HN: Who is hiring? (August 2026)

233•whoishiring•5d ago•308 comments

Ask HN: In your experience, what are sound conventions for e-ink UI development?

2•BoxOfRain•1d ago•0 comments

DeepSeek announced to raise its API price tremendously

30•alexwwang•3d ago•21 comments

Laguna S 2.1:118B-a9B better than Qwen3.5:122B-a10B? So far, yes

4•spottedmarley•2d ago•2 comments

Ask HN: Did GitHub remove the stargazers list?

27•reconnecting•3d ago•3 comments

Ask HN: What is a good advice for someone looking to fractional hire a team?

5•vanessa1211•1d ago•6 comments

Read HN twice a day for the last decade. Here's my list of S-Tier HN links

110•vivzkestrel•3d ago•21 comments

You've reached the end!