Karpathy:本地 Demo 到线上产品,DevOps 是最难的部分
来源:X (Twitter)
原始链接:https://x.com/karpathy/status/2037200624450936940
When I built menugen ~1 year ago, I observed that the hardest part by far was not the code itself, it was the plethora of services you have to assemble like IKEA furniture to make it real, the DevOps: services, payments, auth, database, security, domain names, etc...
I am really looking forward to a day where I could simply tell my agent: "build menugen" (referencing the post) and it would just work. The whole thing up to the deployed web page. The agent would have to browse a number of services, read the docs, get all the api keys, make everything work, debug it in dev, and deploy to prod. This is the actually hard part, not the code itself. Or rather, the better way to think about it is that the entire DevOps lifecycle has to become code, in addition to the necessary sensors/actuators of the CLIs/APIs with agent-native ergonomics. And there should be no need to visit web pages, click buttons, or anything like that for the human.
It's easy to state, it's now just barely technically possible and expected to work maybe, but it definitely requires from-scratch re-design, work and thought. Very exciting direction!
中文翻译:
大约一年前我构建 menugen 时,意识到最困难的部分根本不是代码本身,而是你需要像宜家家具一样组装的大量服务——也就是 DevOps:服务、支付、认证、数据库、安全、域名等等……
我非常期待有一天,我只需要告诉我的 Agent:"构建 menugen"(参考那篇帖子),它就能直接运行起来。整件事一直到你部署好的网页。Agent 需要浏览大量服务、阅读文档、获取所有 API 密钥、让一切正常工作、在开发环境调试,然后部署到生产环境。这才是真正困难的部分,而不是代码本身。或者更准确地说,应该这样理解:整个 DevOps 生命周期必须变成代码,同时还需要有面向 Agent 原生体验的 CLI/API 的传感器和执行器。而且人类完全不需要访问网页、点击按钮或做任何类似的事情。
说起来容易,现在在技术上也勉强可能实现了,但绝对需要从零开始重新设计、工作和思考。非常令人兴奋的方向!