I have used an agent to try some test projects (this was about a year ago). I found that while the code did work for the most part, the agent overall produced code that was overly complex for what the initial brief asked of it. And that complexity made the code difficult to extend with even simple features.
I don't use one anymore because I figured that, for my job, maintainability is critical and I don't mind that the code takes me overall longer to write if it is well planned out and extendable.
Edit: I still would not use op's code since 1. It's not something I need, and 2. I don't trust it.
The article doesn't say which side of the road he was on.
When I was a kid in scouts, we were taught that if you have to walk on the edge of a highway then it is best to walk on the opposing side of traffic (the left). This way if a vehical is veering off and might hit you, you have some time to react and step off. Rather than them hitting you from behind.
It sounds like the biggest issue here might be that the driver didn't do her due diligence to check what she hit. Maybe if an ambulance had been called sooner then he might have survived.