Liked on X/goal 对整个代码库进行系统性的架构降熵、规范化归一、模块解耦和复杂度治理,将其逐步演进为一个高度规整、极易理解、极易维护、适合大量 Agent 并行开发的工程系统。 核心思想: 假设今天是这个产品诞生的第一天,但我们已经知道了 当前所有真实需求、业务约束和产品形态。 思考这个代码库在理想情况下应该是什么样子, 然后通过安全、渐进、可验证的重构向该状态收敛。 追求以下工程属性: 1. Single Source of Truth 每一种业务规则、数据定义、配置、状态和设计规范, 都应拥有唯一明确的权威来源。 2. Canonical Implementation 同一语义、同一职责只保留一种标准实现。 全面消除历史遗留的平行实现、重复逻辑、临时补丁、 无意义的兼容层和多套并存的技术方案。 保留有真实调用方或明确契约要求的兼容能力。 3. Deep Modules 参考 John Ousterhout 的 A Philosophy of Software Design。 将复杂性封装在内部,通过尽可能简单、稳定的接口暴露能力。 减少浅模块、无意义的转发层和泄漏内部实现的抽象。 4. High Cohesion, Low Coupling 每个模块都有明确的职责、所有权和依赖方向。 模块内部高度内聚,模块之间通过稳定契约交互。 消除循环依赖、隐式耦合、跨层访问和共享可变状态。 5. Locality of Change 修改一个业务概念时,应尽可能只修改一个逻辑位置。 消除一个需求需要同步修改大量无关文件的情况。 6. Deletion over Accumulation 优先考虑能否删除不必要的复杂性。 每次引入新的标准实现,都要检查并迁移旧调用方, 在确认安全后删除被替代的实现。 禁止让新旧体系长期并存。 7. Enforceable Architecture 将已经确立的工程规范转化为机器可以执行的约束, 使用类型系统、Lint、AST 检查、契约测试和 CI, 防止未来的开发重新引入已消除的混乱。 执行流程: 首先理解整个代码库的真实业务、架构、历史决策、 模块关系、技术栈、现有测试和生产约束。 建立完整的架构地图、依赖图、状态所有权地图、 重复实现清单、技术方案清单和规范偏离清单。 逐个检查并治理: - UI 组件与设计系统 - 业务逻辑与领域模型 - API 接口与数据契约 - 状态管理与数据流 - 数据访问与缓存 - 配置与环境变量 - 错误处理与重试机制 - 日志与可观测性 - 权限与身份认证 - 命名、目录结构与模块边界 - 工具函数与公共基础设施 - 测试、构建与开发工具链 持续运行以下循环: 扫描整个系统 → 发现架构熵和规范偏离 → 分析真实调用方与依赖关系 → 提出多个重构方案 → 选择总复杂度最低的方案 → 建立行为基线和测试 → 完成一批完整的迁移 → 删除已被替代的旧实现 → 独立复审 → 执行验证 → 建立防回归约束 → 记录结果并继续下一轮 每轮重构必须形成完整闭环,禁止只建立新抽象、 新目录或新接口,却不迁移原有调用方。 使用 Deletion Test 审视每一层抽象: 如果删除这一层,复杂性会消失,还是会扩散到调用方? 只有真正封装复杂性的抽象才值得保留。 验收标准: - 每种核心业务概念拥有明确的权威实现。 - 每个核心模块拥有清晰的职责和公开接口。 - 同一语义不存在未经说明的多套实现。 - 核心模块间不存在未经批准的循环依赖。 - 业务逻辑与 UI、存储、框架和外部服务合理解耦。 - 新增功能可以在明确的模块边界内完成。 - 已确定的关键架构规范具备自动化防回归检查。 - 所有现有功能、数据兼容性和对外契约得到保留。 禁止过度抽象、无价值的目录搬迁、为了减少代码行数 而牺牲可读性,以及为了形式统一而合并语义不同的概念。 在隔离 Git worktree 中执行,每批有效改进独立 commit。 持续维护进度文件、架构决策记录和优化任务池。 遇到需要产品决策、重大架构变更或破坏性迁移的事项, 记录为待确认并继续其他独立任务。 无需每轮询问是否继续。 持续执行,直到高价值治理任务全部收敛, 或达到运行预算,或不存在可安全实施的进一步改进。Replied on X@12lijonathan @capydotai there’s a setting to control max subagent depth and concurrencyLiked on XI'm continuing my mission to fix YouTube on iPhone Duo! Part 2: The Watch screen https://t.co/WjBs0tZBOcLiked on XDid you know that you can flip one toggle to make your site searchable by AI agents — complete with automatic content indexing, a discoverable search API, and native HTTP QUERY support? Now you know: https://t.co/rudebZyY9VLiked on Xbabe wake up, new sf hacker house / accelerator compass just dropped https://t.co/iSapsrviJ2Liked on XWe recently migrated our Messages API from Python to Rust. On our engineering blog, we share how we used the existing service to verify the new one, with teams of Claude agents tracking down and fixing differences between the two versions. https://t.co/NdrMzgrOwPLiked on XWe made a billing mistake at launch of GPT-6.2 that incorrectly discounted GPT-6.2 Astra and Sol usage for most users. We’ve fixed this now, so the same work will use more of your plan’s usage allowance. Comparing to last week, you will reach your limits 40% faster on GPT-6.2 Astra and 25% faster on Sol. You should still see these go further in usage compared to 6 Astra and 6.1 Sol. Other models weren’t affected, and we won’t charge you for the difference on past usage. As a small token to apologize for the mistake, we’ll be adding one banked reset for everyone on Go, Plus, Pro, and Business.Liked on XIf huge cost savings and speed improvement isn’t enough, we’re also profitable, SOC 2 Type II, sign BAAs, and have been doing BYOC like this since 2021 - In 2021 we started our previous product Flightcontrol - Went through YC W22 and raised $3.5M - Got profitable last year - @Ravion started serving production users this past springLiked on XOpus 5.6 incoming! 👀 The AI race has completely flipped: – GPT 6.2 didn’t work out – Google cooked with Neon – Anthropic went public OpenAI must be shaking right now! https://t.co/0sMjV0CC7GLiked on XAgentic toasts 🪄 https://t.co/57t6puKNSNPosted on Xfor god sake https://t.co/FMGawQEYPnLiked on XDude, your main problem is…pretty much you. You need to shut down your ego and be more humble, the data that you initially collected clearly violates data privacy (especially in EU). Just admin it and applogize for the replies you had and the outrageous behaviour, otherwise you’ll be in this limbo…a once respected tech guru destroying his images due to pure arrogance and ego.Liked on XFrom storyboard to screen. Selected scenes from the Grok Bot & Allo launch video, brought to life frame by frame. https://t.co/XNlSWUOt0c https://t.co/kcpyAuqY6KLiked on Xso @sama is still SOTA on firebench, v good effort from @nvidia tho https://t.co/2u5cOrCFEL https://t.co/qQQuG8Ns6YLiked on Xjust add this to ~/.zshrc T3CODE_TELEMETRY_ENABLED=false T3CODE_OTEL_SDK_DISABLED=true https://t.co/wdQkUviWydPosted on XI love @capydotai so much literally antislopped @t3dotcodesPosted on XNeon as orchestrator & Opus as worker is the way to goLiked on XLeft speechless from this advice from Gemini 4 Neon https://t.co/FLbGbdwhOELiked on XIntroducing Claude Ship (beta): Claude can review your pull requests, work on fixes, and approve the ones your team's policy allows. The goal is to help you ship code as fast as you can write it. https://t.co/b9OBAhEBmrLiked on Xhttps://t.co/RE752A9g1ULiked on X🔥 ANNOUNCING WORLD’S BEST GITHUB ACTION RUNNERS 🔥 🤑 vs GitHub: 90% cheaper and 2.5x faster 🤑 vs Blacksmith: 70% cheaper and 1.25x faster 🤑 vs Depot: 73% cheaper and 1.4x faster 🤑 vs RunsOn: 1.65x faster at same or lower cost 🔒 Runs in your AWS in firecracker VMs on ephemeral EC2 spot and on-demand 🏢 Powered by Ravion’s enterprise grade pipeline control plane 💼 You can trust us, we’ve been doing BYOC since 2021 with SOC 2 Type II and BAAs Unique features: 🏇 Auto sizing for cpu, memory, disk. Never think about CI specs again. 🏎️ Performance profile slider to choose lower cost or higher performance ♻️ Live job moves between hosts to save cost and avoid spot interruptions 🪠 Can use Ravion CI directly to avoid GH actions entirely 📈 We've already passed 1 million CI minutes on our runners ⏳ LIMITED-TIME LAUNCH BONUS: start running jobs on Ravion runners by end of day Nov 30 (Pacific) and get 100,000 free pipeline minutes (good for 6 months), applied automatically. 👉 Details and docs: https://t.co/kN42KDJKGk * speed/cost comparisons are typical. May be higher or lower depending on your workload and perf profile settingReplied on X@suraj_sharma14 @Cloudflare how does it feel to be 9 months lateLiked on XThe least realistic thing about GTA VI is that Jason and Lucia run a whole criminal operation without a single Telegram group.Liked on XGranola, a $1.5B company on how they grew new users from AI search by 4,600% in JUST 7 months https://t.co/5ZXoT203KE
240724