行业动态
pub.towardsai.net ·
@Alex Punnen
先改进上下文,再改进代码库
文章介绍了一个实验:将180万行Apache Airflow代码压缩为9700个token的目录,供AI代理参考。作者认为,为AI代理提供有用的上下文比直接优化代码库更重要,并分享了相关经验。
AI推荐理由 文章描述了一个具体实验:用9700 token的目录为AI代理提供1.8百万行Airflow代码的上下文,强调上下文工程的重要性。信息具体,有实践价值,但来源为Medium博客,权威性一般。
70
正文
Member-only story
AI
Generative Ai Tools
Software Development
Coding
Google Okf
Improve Context Before You Improve Your Codebase
1.8 million lines of Apache Airflow, described in a 9,700-token catalog an engineer can check. An experiment in giving AI agents useful context for inherited software.
Alex Punnen
6 min read
·
Just now
--
Listen
Share
Repo: https://github.com/alexcpn/catalogify Demo: On Apache Airflow Spekcit Extension: Speckit-okf
Enterprises and major open-source projects are increasingly leaning on AI for feature development and bug fixes. However, they all face the same challenge: to execute large, system-wide changes, AI needs effective context.
Current maintainers can “vibe-code” small bits and pieces, but for large architectural shifts, AI coding agents operate like a brand-new engineering team. In the real world, a new team requires a transition period to absorb the implicit knowledge locked inside the previous developers’ heads.
As Software Design Documents (SDDs) regain popularity alongside AI, old debates have resurfaced. One vocal camp treats the “Spec as the Source of Truth,” while an equally fierce camp argues that the “Code is the Source of Truth.”
Software engineering pioneers like Fred Brooks, Peter Naur, and the philosopher Michael Polanyi figured this out long ago. Brooks dismantles the first camp: in “No Silver Bullet” he warns that “descriptions of a software entity that abstract away its complexity often abstract away its essence” — a spec is an abstraction, and…