6/6
AI doesn't remove the need to think; it shifts the grind from typing code to setting clear goals, reviewing reasoning, and auditing architecture.
Try the game at cozyjig.com!
How are you keeping your AI-built projects from turning into spaghetti?
4
5/6
The brutal part nobody talks about:
Babysitting AI is exhausting. Long tasks take 1–2 hours, and my back hurts from watching the screen.
You can't just walk away—watching its reasoning IS live code review. If you only check the output, you won't know where it went wrong.
2
4/6
How to stop AI code from becoming a black box:
After every few features, I have AI read the codebase and generate a logic call graph. Then I feed the requirements + call graph to a SECOND AI for cross-review.
Bonus: I can always trace any feature back to the code.
2
3/6
Full dev-to-prod loop with Codex:
It handles local dev, testing, verification, and writes its own deploy scripts and runbooks. Bug fixes and updates follow the same automated push-to-VPS pipeline.
I mostly use Goal Mode: define the outcome, let AI figure out the steps.
5
2/6
1-hour bare-metal deploy:
I gave AI the SSH details to a clean Linux VPS. It handled server setup, DNS, SSL, and Cloudflare CDN caching.
Huge shoutout to Cloudflare—their free tier (CDN, DNS, SSL) is an absolute gift to indie devs.
13
1/6
Last night I shipped my jigsaw puzzle game, cozyjig.com.
The twist? I didn't manually code or configure the server. I directed AI end-to-end—from local dev to a live production site on a fresh Linux VPS in 1 hour.
Here's my real workflow & the painful parts 🧵
5
11
pythonhii retweeted
🚨 Antigravity用户注意啦,新版本(2.34.0)依然在偷传巨量的数据到服务器,即使关闭遥测也照样偷!!!
上个版本到现在都 4 天了发布了新版本,还等官方把问题修好,结果一看,居然还在疯狂上传!
难怪大黄哥说:别信这个 AGY 作者鬼话,鸡贼得很。
我又让 AI Agent 把本机彻底排查了一遍:
底层语言服务进程仍保持 6 条长连接,近 1 小时累计上行 几百兆,还伴随着大量网络重传。
最后拦截了 play.googleapis.com,相关长连接从 6 条降到 0,正常调用模型也没受影响。
分享两种处理方案:
1、企业 VPN 用户
如果企业 VPN 不支持自定义拦截规则,可以在 Mac 的 /etc/hosts 文件中添加:
0.0.0.0 play.googleapis.com
刷新域名解析缓存,完全退出并重启 AGY,再检查后台连接是否消失。
2、普通代理用户(如 Clash Verge)
开启虚拟网卡接管模式,在订阅的前置规则中添加:
DOMAIN,play.googleapis.com,REJECT
注意规则优先级,必须排在 Google 通用域名规则之前。
别使用静默丢包模式,也别直接修改会被订阅更新覆盖的配置文件。
以上两种方案都只建议在确认问题的电脑上使用,别同步到手机或软路由,以免影响 Google Play 等服务。
嫌折腾的,可以直接把排查记录和方案交给 AI Agent,让它先检查网络连接,再确认修改方案,最后验证拦截效果。
Google 最近是想数据想疯了吧?打开啥软件都要频繁弹窗给不给数据。
Antigravity真是太恶心了卧槽!!!
我看到网上说Antigravity会偷传巨量的数据到服务器,所以要关闭遥测功能。我从第一天起就把 Antigravity 的 Enable Telemetry 关了,结果抓包一看,5 天照样在后台偷跑了 9G 上行流量,比我正常写代码调模型的 5.3G 流量还多。
最傻逼的地方在于两点:
一是那个遥测开关纯属摆设。它只控交互内容,根本不关传输管道,底层的 language_server 照样常开着往 play.googleapis.com/log 疯狂发包。
二是脑残的超时重试。代理稍微抖一下超时,它就每隔 5 秒死命重发,超时前发出去的字节全算代理流量。周末我两天没开软件干活,它自己在后台光靠重试空转就烧掉了 4.25G。
最终我把我的代理软件规则列表最顶上加了这个,才把它给禁掉:
DOMAIN,play.googleapis.com,REJECT
记住三点:
规则要排在 DOMAIN-SUFFIX,googleapis.com 前面,不然拦不住。
macOS 别加 PROCESS-NAME 限定,内核抓不到进程名会失效,直接拦域名。
只在电脑端加,别同步到软路由或手机,否则安卓 Play 商店更不了软件。
加完以后遥测流量直接归零,不影响正常写代码和跑模型。
pythonhii retweeted
Antigravity真是太恶心了卧槽!!!
我看到网上说Antigravity会偷传巨量的数据到服务器,所以要关闭遥测功能。我从第一天起就把 Antigravity 的 Enable Telemetry 关了,结果抓包一看,5 天照样在后台偷跑了 9G 上行流量,比我正常写代码调模型的 5.3G 流量还多。
最傻逼的地方在于两点:
一是那个遥测开关纯属摆设。它只控交互内容,根本不关传输管道,底层的 language_server 照样常开着往 play.googleapis.com/log 疯狂发包。
二是脑残的超时重试。代理稍微抖一下超时,它就每隔 5 秒死命重发,超时前发出去的字节全算代理流量。周末我两天没开软件干活,它自己在后台光靠重试空转就烧掉了 4.25G。
最终我把我的代理软件规则列表最顶上加了这个,才把它给禁掉:
DOMAIN,play.googleapis.com,REJECT
记住三点:
规则要排在 DOMAIN-SUFFIX,googleapis.com 前面,不然拦不住。
macOS 别加 PROCESS-NAME 限定,内核抓不到进程名会失效,直接拦域名。
只在电脑端加,别同步到软路由或手机,否则安卓 Play 商店更不了软件。
加完以后遥测流量直接归零,不影响正常写代码和跑模型。
pythonhii retweeted
卧槽!!牛逼!!
有大佬破解了反重力卡扫码方法!!
github.com/havenicec/google-…
3 行提示词就能省下 antigravity 43% 的消耗。
最近主力工具切换到了 Antigravity,过程中注意到一个现象:agy 在正式改代码前,经常先读 200k+ 上下文才开始动手,上下文消耗明显比之前使用 Claude Code 高。
结合平时用下来的各种糟糕体验,我严重怀疑是 harness 本身有问题,就让 AI 扫了一遍这几天本地的 agy 会话记录。结果确实非常明显:31 个会话里,首次编辑前的平均上下文就有 124.7k,甚至出现过改几个小问题前先读了 400k+ 上下文才开始写代码的情况(并不是什么复杂的 bug 排查)。
深入查了一下原因,更加确认就是 harness 的问题:
1. 系统提示词:agy 的内置提示词里有这么一段:
“在同一轮里读完所有需要的文件(数据、文档、参考、源码);只要在工具上限之内,就直接读整个文件,否则每次读一大段区间,如果要改文件还要把文件头部一起读进来……绝不要一轮只调一个工具。”
本意是想让 AI 在一轮里尽量并行收集上下文、减少调用轮次,但实际把模型逼成了焦虑式的地毯式预读,刚 find 出目录,下一轮就并发把十几个文件整篇读进来,导致上下文爆炸。
说实话,看到这段提示词我是挺难以置信的,这可是 Google 首推的 harness,而且也不是最近刚出的了,出现这种问题实在不应该,以至于我怀疑团队到底有没有系统性地对他们的 harness 做过评测、分析。这导致 agy 的上下文占用常年居高不下,再结合 Gemini 这拉胯的缓存时间,动不动就是几百 k 的 cache miss,账单爆炸。
2. 检索工具噪音多:只有一个裸的 run_command,没有针对上下文优化过的专用检索工具。比如 Claude Code 会对 Grep / Glob 做结果聚合、无关目录过滤和单行裁剪,而直接跑裸命令会把大量无关输出和原始文本原封不动塞进对话里,返回的很多都是噪音。
这两点基本纯是 harness 的问题。除此之外我还发现,虽然提示词里写了探索类任务可以用 subagent,但实际触发频率很低。这个点我觉得除了 harness,跟模型本身也有一定关系,Gemini 貌似不太擅长使用 subagent 来干活。
其实这些问题在工程上都比较简单,甚至通过几行提示词就能显著改善。可以在 AGENTS.md 里加上这几句(gemini-4-neon 自己写的):
```
上下文控制(高优先级,覆盖内置并行预读策略)
- 窄搜精读,禁止地毯式预读:定位代码必须先用 rg -l / rg -n 锁定具体文件与行号,再只读直接调用链或待改文件;禁止猜测性批量并行 read_file(单轮并行读不确定文件 ≤ 3 个)。
- 大文件分段读:超过 200 行的文件禁止不传 StartLine/EndLine 整文件读取,先 rg -n 定位行号再按需读目标区间(≤ 200 行/次)。
- 命令输出限流:用 run_command 跑 rg / find / git diff / ls 默认带 | head -n 60 或 -l,避免撞 10KB 截断或触发后台日志二次读取。
```
(测试时其实我们还加了一个 Hook 做兜底,防止模型一次性读入大量内容;但在这几行提示词的引导下,这个 Hook 实际上一次也没触发过)
同样一个任务,我让 Neon 建了四个独立的 worktree 来做 benchmark,分别为:原版 agy、加提示词 + Hook 的 agy、加提示词 + Hook 并引导使用 subagent 的 agy、以及 Codex。其中 agy 三组均使用 gemini-4-neon high,Codex 使用 gpt-6.2-sol high。对比结果见图 2:
1. 加了提示词的 agy 对比原版:完成任务的折算消耗从 $9.83 降到 $5.60(节省了 43%),执行时长从 47m 减少到 36m。
更有意思的是,agy 原版提示词那样写是为了减少轮次数,但加了限制这组的轮次数反而少于原版 agy(80 轮 vs 86 轮),可以说是纯纯的负优化了,详细数据可以参考配图。
2. Subagent 组:虽然比起原版消耗降低了 24%($7.43),但因为子 agent 独立启动无法复用主会话缓存,加上主子会话之间存在重复读取,未命中缓存的输入明显比没强调 subagent 的那组高,整体消耗也更高。这组数据仅供参考,在大型复杂需求里用 subagent 辅助做 explore 任务理论上还是会更优一些。
3. Codex:拉了坨大的,未按要求完成任务,而且因为在某个问题上踩坑(其他 3 组也踩了一样的坑并解决了)直接放弃了端到端测试……
我能感受到 Antigravity 团队是真的想把 agy 做好的,在 X 上高强度收集网友的意见,但目前的 harness 工程确实问题太多了。希望能抛开历史包袱,多向成熟的 harness 学习学习,实在不行推倒重做吧,或者开放订阅给其他的 harness 使用也行。毕竟我是真的希望 Gemini 能干死 A\,争点气啊。 @_mohansolo @shengzheyao @rodydavis
pythonhii retweeted
Here it is: github.com/phuryn/product-en…
Isn't Gemini 4 Neon supposed to be a cheap model? What is going on?
→ Bug fixing: 2 repos, 105 planted bugs. Neon (xhigh) 63, GPT-6.2 Astra (max) 62.7, Fable 5.2 (max) 58
→ Copywriting: 𝘁𝗵𝗲 𝗺𝗼𝘀𝘁 𝗵𝘂𝗺𝗮𝗻-𝘀𝗼𝘂𝗻𝗱𝗶𝗻𝗴 𝘄𝗿𝗶𝘁𝗶𝗻𝗴 𝗺𝗼𝗱𝗲𝗹 out today
→ Design: give it a few reference images and it recreates the motion far better than Opus 5.5
I gave Neon and Opus 5.5 the same HTML project. 𝗡𝗲𝗮𝗿𝗹𝘆 𝗶𝗱𝗲𝗻𝘁𝗶𝗰𝗮𝗹 𝗿𝗲𝘀𝘂𝗹𝘁𝘀. In chat it's about as smart as Opus too.
Google just published how to use it in Antigravity:
→ Day-to-day dev (features, bug fixes, refactors): pick Orchestrator (Neon). Neon plans and reviews, Hydrogen writes the code
→ Work that needs the deepest reasoning at every step (race conditions, multi-repo migrations): pick Neon itself on Extra
→ Package upgrades, unit tests, docs: Hydrogen is enough
The Gemini app on default settings is just OK. 𝗥𝘂𝗻 𝗶𝘁 𝗶𝗻 𝗔𝗻𝘁𝗶𝗴𝗿𝗮𝘃𝗶𝘁𝘆. Google's own SWE-sweep: 12.8% on the simplest harness, 39.0% in Antigravity.
pythonhii retweeted
GPT-6.2 一起发布的官方提示词,我把里面几个非常实用的直接整理出来了
1、想让 GPT 说人话
Use the following prompt if you want to use the model as a collaborator and thought partner for day to day work. Write using terminology the user and sources use. Keep technical details and use domain-specific language when they make the explanation more precise. Use the active voice and keep closely related details together. Cover the key points up front, and avoid references that the reader can only make sense of later in the response. Give the user enough context to follow your reasoning.
2、专治 AI 味
During longer tasks, the model can carry shorthand from its reasoning or from other agents into its final answer. Remind it to write a self-contained response that's clear to someone who hasn't followed the progress updates. Treat your final answer as the user's first look at your work, and not as a continuation of intermediate commentary. The final answer must always be fully self-contained: users should never need to read earlier commentary updates for context, since they are collapsed when the final answer is shown to the user. Write the final answer and all other human-facing material anew for the intended reader. Do not copy or closely paraphrase your reasoning or adopt its writing style. Do not carry over working shorthand, jargon, or abbreviations from your reasoning, tool calls, or instructions to subagents and automations.
3、长任务别动不动停下来
Avoid stopping to end the turn while the task is incomplete or if there is an authorized next step you can take, and instead take the next steps within task scope to progress the user's request. If your final response before ending the turn is a suggested next step, a plan, a request to the user for a routine decision, instructions for a task to execute, or similar handoff to the user, take these steps yourself to make progress towards what the user asked for. Make sure that you have authorization to do so, and flag any assumptions or decisions you make to the user. Only stop to clarify with the user if there is significant change in task scope, you are concretely blocked, have a decision that the user needs to resolve, or before irreversible or destructive actions. Bias towards action, and persist until you've completed the task the user asked for. Avoid stopping to end the turn while the task is incomplete or if there is an authorized next step you can take, and instead take the next steps within task scope to progress the user's request. Make sure that you have accounted for every part of the user's request, and persist until you've delivered a result that fully satisfies the user's goal. If a task requires sustained work, do all the necessary work until the intended outcome is completely fulfilled. Progress autonomously towards the user's goal unless they are clearly destructive or irreversible. Before ending a turn or calling your work complete, check that your work fully satisfies what the user asked for. If any steps remain or any part of the result still needs verification, follow through on this work before finishing.
4、遇到不明确的地方继续推进
When a detail is unclear, give the model room to state what it's assuming and continue with the task. Make reasonable, reversible assumptions to carry work forward and state them if it progresses the task within scope. Do not second guess yourself, stop after describing what you could do, offer to do the work, or provide a partial answer unless there is no way for you to proceed.
这几个直接放进自己的项目或者全局的 AGENTS.md 里就行了 不需要每次都复制
pythonhii retweeted
对于想了解、入门Agent Infra的朋友们,我在看了全球近20家主流AI公司(包括OpenAI, Anthropic,阿里,字节等)招聘Agent Infra的JD,总结了下面的核心技能清单(包括需要学习什么,和如何验收),欢迎收藏、保存,我也会继续分享在这个领域的学习心得:
1.执行循环与工具契约
学:Tool Calling、结构化参数、上下文与状态的边界、步数和 token 预算。
验收:亲手写一条最小循环,用模拟模型覆盖无效参数、工具失败和重复调用触发上限。每份诊断都有日志行号或缺失证据说明。
2.异步 Run API 与进度流
学:Run 状态机、异步提交、取消语义、事件游标及 SSE。
验收:客户端提交后拿到 run_id,断线后用事件序号继续读取。重复收到事件时能去重,取消后运行进入可解释的终态。
3.持久执行与副作用幂等
学:PostgreSQL 事务和唯一约束、checkpoint、可重试错误、至少一次交付、工具副作用的去重边界。
验收:在草稿写入后、任务确认前终止进程。恢复后数据库只保留一份草稿,并能指出哪一层保证了去重。给非事务型外部工具写出幂等键或对账设计。
4.分布式调度与故障转移
学:任务原子领取、租约、心跳、过期执行者的写入控制、退避与背压。
验收:用两个独立 worker 和共享任务存储模拟崩溃与超时。B 接手后,恢复的 A 无法覆盖终态。压测时记录队列等待、并发峰值、重试数与恢复时间,并明确并发上限是单 worker 还是全局。
5.租户身份、工具权限与审计
学:用户与 Run 身份绑定、资源级授权、最小权限、短期凭据、工具审批和审计。
验收:虚构租户 A 发起的运行只能读 A 的日志,日志里的操作指令无法改变授权。模拟一次写操作审批和一次拒绝,审计能串起身份、资源、决定和 Run。
6.执行沙箱与生命周期
学:进程和文件系统隔离、namespace、cgroups、seccomp 的职责,容器共享宿主内核的边界,网络出口和清理。
验收:让可信测试脚本在临时隔离环境里处理当前任务的只读日志。验证凭据未被注入、测试网络被拒绝、资源和时长受限,退出后资源可回收。
7.可观测与线上排障
学:OpenTelemetry trace 跨 API、队列和 worker 的上下文传播,结构化日志和指标。验收:注入排队、工具超时和模型限流三种故障,用同一个 run_id 定位到具体阶段。报告 p95 排队/执行耗时、恢复时间、任务完成率和每个成功任务的成本。
8.离线评测与 CI 回归
学:固定数据集、确定性断言、轨迹回放、结果评分与失败归因。
验收:用原计划的 20 个有标准答案的任务,留一半作版本对比。分别报告根因、证据、证据不足处理、时延和成本。模拟工具错误与真实模型波动分别留记录,给出上线或回退结论。
9.平台交付与设计表达
学:控制面与执行面的职责、容器交付、配置和契约版本、回滚、容量与 SLO。
验收:一条命令启动 API、两个 worker、数据库;画出提交、授权、调度、沙箱、存储和事件流。写清部署方式、观测到的瓶颈、回滚对在途任务的影响,以及下一步扩容条件。
gpt-6.2 astra 和 sol 用了一天,发现其实没有博主说的那么糟糕,我觉得一方面是因为内测版本可能有了调整,另一方面是没有配套的 model guide 指导行为调整。
这里是我的一些初步建议:
1. 参考 OpenAI 的 Model Guide 重新调整甚至重写提示词
新一代的模型会倾向于使用非常简洁的方式去表达,提示词中可以鼓励模型使用面向用户的表达等等,大家反馈的很多问题在 Model Guide 中都可以找到答案,可以逐条纠正。
2. 如无必要,不要使用 goal
默认情况下长程任务自己就能做的很好,搭配一些简单的自动化计划,必要的时候可以搭配一个 outer 老板 loop 去检查进度
把这条推直接发给 astra 让它参考执行即可:
请你阅读 developers.openai.com/api/do…,结合已有的 AGENTS.md,从第一性原理出发思考我想要怎样的表达和交互,逐条分析指南中提供的调整建议,跟我讨论


















