M3.1 Flash API:17美分成本重构千行代码实战
𝟭𝟳 𝗰𝗲𝗻𝘁𝘀 at API prices. 18.5 minutes. That's all it took M3.1 Flash to split a 1…
提供了极具参考价值的 AI 编程 Agent 实操工作流,包含具体的工具链组合(Playwright/jscpd/knip)和验证步骤,结构清晰且数据详实。
𝟭𝟳 𝗰𝗲𝗻𝘁𝘀 at API prices. 18.5 minutes. That's all it took M3.1 Flash to split a 1,564-line single-file monster into 13 files and throw in a settings panel.
API 费用仅 17 美分。耗时 18.5 分钟。这就是 M3.1 Flash 将一个包含 1,564 行的单体巨型文件拆分为 13 个文件,并额外添加一个设置面板所花费的全部时间。
Yes, the mystery model that topped OpenRouter for 10 days. To clean up your own project, have it send out 𝟯 𝗰𝗼𝗽𝗶𝗲𝘀 𝗼𝗳 𝗶𝘁𝘀𝗲𝗹𝗳 (subagents), two to dig through the code and one to check the work: → Before you touch anything, screenshot every feature and write the core flows as Playwright tests that pass on the old version first. That's your answer key → Split one piece at a time and run the tests after each. If they pass, commit. If something breaks, go straight back to the last commit → Run npx jscpd to find copy-pasted code and merge it, run npx knip to find what nothing uses and delete it, and move hard-coded keys into a gitignored .env, then rotate them
没错,就是那个在 OpenRouter 上霸榜 10 天的神秘模型。要清理你自己的项目,让它生成 𝟯 𝗰𝗼𝗽𝗶𝗲𝘀 𝗼𝗳 𝗶𝘁𝘀𝗲𝗹𝗳(子智能体),其中两个用于深入代码,一个用于检查工作: → 在你触碰任何东西之前,截图每个功能,并将核心流程编写为 Playwright 测试,确保它们在旧版本上首先通过。这是你的答案键 → 一次拆分一部分,并在每次拆分后运行测试。如果通过,则提交。如果出现问题,直接回退到上一次提交 → 运行 npx jscpd 查找复制粘贴的代码并进行合并,运行 npx knip 查找未被使用的部分并将其删除,将硬编码的密钥移入 gitignored .env 文件中,然后轮换这些密钥
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力