HN 用户探讨按代码阅读方式拆分审查:每层一个审查智能体
One reviewer per layer: splitting code review by the way code is read
HN 用户 djordjep 表示自己正在尝试类似思路,计划做一个刻意使用稀疏检出(sparse checkout)的运行框架,让智能体只能看到有限的上下文。他还设想在代码之上叠加多棵覆盖不同关注点的树状数据结构,例如性能需求树、安全树、法律合规树和 UI 规范树,每棵树通过持久的符号引用指向代码中相关的实体。
作者提出用稀疏检出限制智能体可见上下文,并叠加性能、安全等多棵需求树,为分层代码审查提供了可迁移的设计思路。
I am playing with similar ideas.
I am inspired by this to make a harness that intentionally does sparse checkouts, so the agents only can see so much context.
I am also playing with the idea of layering additional data structures on top of the "code" that cover different aspects. For example, a tree structure of performance requirements that has durable symbolic references to entities in the code that are especially relevant. Another tree can cover aspects of security, another legal compliance, another UI guidelines.
来源:Hacker News · 首页 · news.ycombinator.com