开发者Bill Cox阐述了名为“开发驱动规格”(Development-Driven Specs)的方法论,并介绍了基于该理念的AI编码代理项目Ensemble 1。这一核心理念主张代码与规范应同步构建,认为规范是由开发过程自然生成的,而非预先编写详细计划或事后补全文档 1。该方法论旨在通过实时修正和决策记录,形成一种可执行的教学书籍,从而让知识能够被其他代理复现 1。
目前发布的Ensemble第三版采用C# 14和.NET 10技术栈,在Cadence框架内开发完成 1。其工作流程涵盖从设计讨论、起草TL;DR和练习,到结对编程记录决策,再到通过后编写章节正文,最后利用新学生代理测试重构能力的完整闭环 1。最终产物被视为一种可执行的规范,即一份能够传递构建系统所需判断力的代码手册 1。此外,该项目保留了第一版和第二版的冻结历史,每一版均包含对应的书籍、源代码及评分器 1。
在使用环境方面,用户必须配置现有的.NET 10 SDK,因为仅安装运行时无法构建应用程序 1。文章还展示了具体的命令行操作示例,包括使用dotnet --list-sdks确认SDK版本以及通过make grade命令进行构建测试等操作 1。
Bill Cox has introduced a methodology called "Development-Driven Specs," which opposes the traditional approach of writing detailed plans beforehand or adding documentation after the fact. Instead, this framework advocates for co-constructing code and specifications through real-time corrections and recorded decisions 1. The core principle asserts that "development earns the spec," meaning the specification is not a pre-existing blueprint but an artifact generated during the actual building process 1. This method relies on human-AI pair programming to create what Cox describes as an executable specification or "codebook" that transfers the judgment required to build the system 1.
The practical application of this philosophy is embodied in Ensemble Edition 3, an AI coding agent currently being developed using C# 14 and .NET 10 within the Ensemble with Cadence environment 1. Unlike earlier iterations, the third edition requires an existing .NET 10 SDK to build the application, as the runtime alone is insufficient for this task 1. The workflow follows a specific sequence: discussing design concepts, drafting a TL;DR and exercises, engaging in pair programming while recording decisions, writing chapter content once tests pass, and finally validating refactoring capabilities using new student agents 1. Command-line operations are integral to this process, including verifying SDK versions with dotnet --list-sdks and executing grading commands such as make grade CH=5 DIR=/path/to/CLI-wrapper GRADEFLAGS='-executable-only ...' 1.
Ensemble maintains a frozen history of its previous versions, specifically Edition 1 and Edition 2, each preserved with their respective books, source code, and graders 1. By treating knowledge as reproducible through executable specs, the project aims to ensure that other agents can reconstruct the system’s logic based on the recorded development journey rather than static documents 1.
评论
还没有评论,欢迎留下第一条。