AI代理:撰寫並檢視計畫

Hacker News·

本文提倡結構化的AI輔助編碼流程,強調從規劃階段開始並將計畫提交至程式碼儲存庫的重要性。此方法旨在提高清晰度、便於審查,並最終加速開發速度,尤其是在AI代理和GitOps興起的背景下。

dein.fr

Write and checkout the plan

Each AI-aided coding session should start in planning mode. It's become a pretty commonplace recommendation (Boris Cherny, creator of Claude Code, makes this point here). I also recommend checking that plan into the repository.

Summary

Why planning makes sense

Separate your process into two PRs:

The main reason is that it mimics the classical research-design-implement loop.

The first part (the plan) is the RFC. Your reviewers know where they can focus their attention at this stage: the architecture, the technical choices, and naturally their tradeoffs. "It's easier to use an eraser on the drawing board, than a sledgehammer at the construction site"

There are many other reasons why this approach make sense:

Why checking the plan into the repo makes sense

By checking the plan into the (git) repository, you achieve many things at the same time:

What's in a plan

The outline should look something like this:

Tips

Coding agents will increase the momentum towards GitOps

If everything is checked into the repo, coding agents have a much better shot at one-shotting whole projects or features. The more control they have over the end-to-end development workflow, the faster your velocity!

You should consider moving everything into code repositories:

It goes without saying that this doubles as documentation for your team, which will speed up onboarding new engineers.

Resources

Thanks

Thanks to my colleague Sean Koop for providing the inspiration for the practices described in this article.

RSS feedSitemap

© Charles-Axel Dein 2026 - Statically generated with Next.js. Enjoy this cookie-free website!

Hacker News

相關文章

  1. 如何為AI代理編寫優質規格

    3 個月前

  2. AI 規劃:記錄 AI 輔助開發

    8 個月前

  3. 專為確定性工程工作流程設計的「初級工程師」AI代理

    3 個月前

  4. AI代理與規則:提升開發者生產力的GitHub儲存庫

    6 個月前

  5. AI作為應用程式狀態的引擎

    3 個月前