On the security half of that, a paper posted to arXiv this month (A.S.E 2.0, Yu et al., arXiv:2611.06294) measured exactly the gap between "the code works" and "the code is safe" for agent-written code. On 145 tasks built from real CVEs in 51 open-source projects, Claude Code with Sonnet 4.5 passed the functional tests on 74.0% of tasks, but only 18.4% of its output was secure; 55.6% passed every test while a working exploit still succeeded. The main cause was context. The coding agents saw the relevant existing safeguard (an existing validator or access policy) in only 27–36% of their runs. When the safeguard was put in context, secure output roughly doubled (24.8% against 12.6% with the target file alone), while a generic "write secure code" reminder only moved it to 13.9%. For agent-generated scripts that call internal APIs, that argues for two things: hand the agent the existing auth and validation helpers explicitly instead of hoping its search finds them, and keep the trust boundary outside the generated code, with a credential scoped to the endpoints the script actually needs. A green test run says little about whether the script is safe.