AetherScript:您可以信赖的人工智能辅助开发

1作者: papabili大约 17 小时前原帖
AetherScript:值得信赖的AI辅助开发 厌倦了AI代码生成的“魔法”和不可预测性吗?你是否喜欢大型语言模型(LLMs)的强大功能,却又讨厌那些杂乱的差异、失去的控制权以及污染你干净代码库的“幻觉”代码? 如果我们能够以与人类开发者相同的方式与AI合作呢?通过明确的合同、清晰的审查和保证人类监督的流程? 这就是AetherScript的愿景。 AetherScript引入了一种新的、结构化的人机协作工作流程,基于一个简单而强大的理念:将人类意图与AI实现分开。 工作原理:接受模型 你定义意图(.as文件):在标准的TypeScript文件(.as)中,你编写高层架构、接口和方法签名。你定义“做什么”。对于你想要委托的部分,你留一个简单的占位符。 ```typescript // 你在 user.service.as 中写入 export class UserService { public async create(data: UserCreateInput): Promise<User> { // AI,请实现用户创建逻辑。 return "${this.create(data)}"; } } ``` AI填充实现(.asc文件):AetherScript引擎在一个单独的伴随文件(.asc)中生成相应的实现。这个文件充当AI工作的沙箱环境。这就是“怎么做”。 你审查并接受(aesc merge):AI的代码在你明确批准之前不会触碰你的主源代码。你可以在一个干净、专注的差异视图中审查实现。当你满意时,只需一个命令,aesc merge,便能无缝集成代码,替换占位符。这就像是来自AI合作伙伴的拉取请求。 为什么选择AetherScript? 完全控制与信任:不再有不可预测的代码神奇地出现在你的文件中。你始终是最终的把关者。 干净的Git历史:合并是原子且有意义的,清晰地展示了从意图到完成实现的过渡。 深度工具链集成:从底层设计,包含编译器、Bun运行时插件以实现无缝开发体验,以及强大的VS Code扩展。 结构化的理念:AetherScript不仅仅是一个工具;它是一种完整的方法论,使AI成为专业软件工程中的真正可靠伙伴。 我们相信这就是AI辅助开发的未来——结构化、可预测,并始终由开发者主导。 感兴趣吗?我们在设计文档中详细阐述了整个愿景和技术架构。 深入了解并加入GitHub上的讨论: https://github.com/Pabears/AetherScript/tree/main 欢迎你的反馈、想法和贡献!
查看原文
AetherScript: AI-Assisted Development That You Can Trust Tired of the &quot;magic&quot; and unpredictability of AI code generation? Do you love the power of LLMs but hate the messy diffs, the loss of control, and the &quot;hallucinated&quot; code that pollutes your pristine codebase?<p>What if we could collaborate with AI the same way we collaborate with human developers? With clear contracts, explicit reviews, and a process that guarantees human oversight?<p>This is the vision behind AetherScript.<p>AetherScript introduces a new, structured workflow for human-AI collaboration, built on a simple yet powerful philosophy: separate human intent from AI implementation.<p>How It Works: The Acceptance Model You Define the Intent (.as files): In standard TypeScript files (.as), you write the high-level architecture, interfaces, and method signatures. You define the &quot;what.&quot; For the parts you want to delegate, you leave a simple placeholder.<p>&#x2F;&#x2F; You write this in user.service.as export class UserService { public async create(data: UserCreateInput): Promise&lt;User&gt; { &#x2F;&#x2F; AI, please implement the user creation logic. return &quot;${this.create(data)}&quot;; } }<p>AI Fills the Implementation (.asc files): The AetherScript engine generates the corresponding implementation in a separate, companion file (.asc). This file acts as a sandboxed staging area for the AI&#x27;s work. It&#x27;s the &quot;how.&quot;<p>You Review and Accept (aesc merge): The AI&#x27;s code never touches your main source until you explicitly approve it. You can review the implementation in a clean, focused diff view. When you&#x27;re satisfied, a single command, aesc merge, seamlessly integrates the code, replacing the placeholder. It&#x27;s like a pull request from your AI partner.<p>Why AetherScript? Full Control &amp; Trust: No more unpredictable code magically appearing in your files. You are always the final gatekeeper.<p>Clean Git History: Merges are atomic and meaningful, showing a clear transition from an intent to a completed implementation.<p>Deep Toolchain Integration: Designed from the ground up with a compiler, a Bun runtime plugin for a seamless dev experience, and a powerful VS Code extension in mind.<p>A Structured Philosophy: AetherScript isn&#x27;t just a tool; it&#x27;s a complete methodology for making AI a true, reliable partner in professional software engineering.<p>We believe this is the future of AI-assisted development—structured, predictable, and always developer-led.<p>Intrigued? We&#x27;ve laid out the entire vision and technical architecture in our design document.<p>Dive deeper and join the conversation on GitHub: https:&#x2F;&#x2F;github.com&#x2F;Pabears&#x2F;AetherScript&#x2F;tree&#x2F;main We welcome your feedback, ideas, and contributions!