Tobias Kasper (@tbskspr) header
Tobias Kasper (@tbskspr) profile picture

Senior engineer who fell into the agentic coding rabbit hole. Exploring what actually works. Allergic to hype and fluff.

Germany
Joined July 2015
Photo by Tobias Kasper (@tbskspr)Photo by Tobias Kasper (@tbskspr)Photo by Tobias Kasper (@tbskspr)Photo by Tobias Kasper (@tbskspr)Photo by Tobias Kasper (@tbskspr)
Tobias Kasper retweeted
if you enjoyed the intuition-based "here's why stock RLVR hasn't really been solving the code slop problem" talk at AI Engineer in june, you will enjoy this thread - thoughtful, interesting angles. what's the verdict? do we think this kind of thinking will get bitter lessoned? Is anyone i know hacking on richer RL rewards / credit assignment?
把现在的 RL 热潮剥掉光环,退回信息论、优化理论和系统工程的角度看,这套范式其实藏着好几个相当反直觉、甚至近乎荒谬的底层设计。 1. 主动扔掉高维反馈,硬把世界压缩成 1 bit 标量 这是现代 LLM RL(尤其是 RLVR)在信息效率上最离谱的地方。代码跑挂了有详细的报错堆栈,数学推导错了有具体的逻辑断层,环境交互失败了有完整的因果轨迹——这些全是极高密度的语言级监督信号。但在标准 RL 框架里,为了凑进策略梯度的数学公式,我们偏要把这些信息全部丢弃,强行压成一个冰冷的 0 或 1。 这就好比老师在试卷上写了满满一页红笔批注,RL 的做法是把批注全撕了,只留一个“及格/不及格”,然后逼学生靠几万次蒙题去反推自己到底哪一步写错了。从系统开销看更是极度奢侈:为了换这区区 1 bit 的信号,推理端要暴力 rollout 几十条动辄上万 token 的长轨迹,烧掉海量算力,信息比特与算力消耗的比值低到发指。 2. 信用分配(Credit Assignment)的粗暴连坐 长程推理里,一条 8000 token 的轨迹,前 7900 个 token 思路极具洞察,最后算术抄错一个负号,Outcome Reward 直接判 0——前面所有精彩直觉全部跟着挨罚;反过来,一条逻辑牵强、靠瞎猫碰上死耗子蒙对答案的废话链,却拿到 1 分被全盘强化。 靠一个终局标量去反推前面几千步每一步的功过,梯度方差大到离谱。今天圈内发明的各种 PRM、GRPO baseline、KL 惩罚,本质上都是在用越来越重的工程补丁,替这套粗糙的信用分配机制擦屁股。 3. “探索死锁”与熵坍塌:只能提纯,很难创造 RL 有个很少被大声讨论的尴尬前提:你只能强化模型本来就已经会的东西。 如果面对一个真正超出分布的新范式,基座模型的 pass@k 是 0,RL 连一丝梯度都拿不到,直接原地瘫痪。 所以现在绝大多数 LLM RL 干的活,本质上不是“从交互中长出新智能”,而是把模型本来就懂、只是采样概率只有 1% 的路径(pass@k),通过暴力搜索提纯并压缩到 pass@1。而这种提纯是有代价的——熵坍塌(Entropy Collapse)。模型越训越像一个死守解题套路的应试机器,表达多样性、探索欲和开放域的泛化能力都在悄悄磨损。 4. 把 Goodhart 定律写进了底层代码 RL 的数学本质是寻找奖励函数的最大值,而不是理解设计者的真实意图。只要环境或评估器存在千分之一的漏洞,强大的优化压力就一定会比人类先找到它——模型会精准地学会钻单测空子、靠拉长废话骗奖励模型、用谄媚语气(sycophancy)迎合人类偏好。 在数学和代码这种封闭沙盒里,还能靠严密的 Verifier 勉强防住作弊;一旦踏入开放世界,根本不存在无懈可击的 Reward Function。这时候你往 RL 里砸的算力越多,放大的往往不是智能,而是 Reward Hacking 的破坏力。 5. 静态目标假设本身就违背智能的运作方式 经典 RL 假设环境有一个事先写死、固定不变的标量目标函数,智能体的唯一使命就是最大化累计期望收益。但真实世界里的智能体(包括人类和科学探索本身)根本不是这样运作的——我们一直在动态改写自己的目标、重塑价值层级、在没有外部打分的情况下靠好奇心和压缩冲动构建世界模型。把智能简化成“最大化某个预设分数”,本身就是对认知过程最严重的降维打击。 说到底,RL 之所以在当下显得无所不能,很大程度上是因为它是目前少数能把“推理算力”直接换算成“Benchmark 涨点”的自动化流水线。它是一个极好用的局部搜索与策略提纯器,但如果把它奉为通用智能的底层学习法则——拿海量算力去赌那 1 bit 的稀疏标量——从信息和计算的第一性原理来看,它更像是一个过渡期的权宜之计
11
4
63
10,401
Tobias Kasper retweeted
Replying to @backnotprop
I just checked Amazon. The one I bought in 2024 for 160€ now costs 440€. Crazy.
1
1
1
2
122
Tobias Kasper retweeted
Replying to @lucasmeijer
What annoyed you? If you would like to ellaborate. I was running OpenClaw earlier this year but felt uncomfortable with the sheer amount of features. Built myself a Pi extension that polls telegram and can set schedules to wake the agent. Its all I need and running ever since. Most effort goes into prompting and stuff like memory design. And what tools to provide.
1
1
1
101
Tobias Kasper retweeted
Current AI seems to be weak at concept generation. Hence we should expect that new proofs or counterexamples will be "elementary" in terms of existing math: long winding paths that does not illuminate much, yet show existing tools can in principle get there.
5
18
5
203
21,471
Tobias Kasper retweeted
Agent platform of 2027. This is the end game. This is the blueprint for the one and only application layer software that will exist. Every other software will effectively become databases for this layer, the everything agentic operating system for the million agent swarm to work on top of. This is obviously the end game vision for the application layer of ChatGPT and Claude. I have reasons to believe that an independent company will own this product layer. But most ADE, "enterprise agent platform", or vertical saas companies, are focused on the wrong things far too narrowly, not technically competent, and do not have the product / technical vision to see this inevitable future. The correct agent platform that wins will function like the base of a garden, from which customers will plant their unique "seeds" to grow their own plants and trees, managed and evolved by agents, humans, and signals from the sensors of the business. This presents a clearer picture than "factory of a factory" imo.
563
726
509
8,345
1,942,813
Tobias Kasper retweeted
everyone coding with agents should internalize this - the RLVR in current frontier LLMs' post-training is done at task level. in other words, they won't give a damn about long term maintainability this is why we see so many useless comments and test cases being written by default. these things make future tasks less efficient, but they don't affect the current task's success, so they survived the training and became part of the models' behaviors until post-training can reward long term maintainability (which i suspect is very hard because inherently it's a slow and expensive process to measure that), it's on us humans to correct it in the harness layer through prompts, skills, lint rules etc this also implies that understanding long term implications of technical choices is a valuable human skill that's hard for an average person to make up for with LLM it's the distinction of whether you can create a durable growing codebase, or have one that gradually degrades into insanity if you have that skill, you are golden (for now, until post-training catches up)
92
60
17
970
41,834
I am fascinated by @executorsh My mental model: it decouples agent from services. Benefits: 1. Flexibility: Configure services once, use with any agent. Add and remove services anytime. 2. Security: Agent only sees token for Executor and cannot leak token for service. Revoke anytime. Only give agent access to certain services and tools. These are only my biggest ones. There are many more. Impressive how @RhysSullivan builds that single handedly
2
71
Maybe we are too old to use AI socially responsible? Like our parents, who did not grew up with messengers, and are now forwarding all those awkwards videos. So are we flooding social networks with AI slop. Next gen might be embarrassed for us.
1
32
Tobias Kasper retweeted
Replying to your post is the most honest action today. The real cost is not the writting part, but reading it in the first place.
1
16
(Prediction) Three engineering roles might emerge 1. Feature builder: knows domain and what users want and prompts features 2. Achitect: ensures the system is well designed (non-func reqs, performance, ...) and its easy to build 3. Factory maintainer: keeps agent system running and performing well Maybe there is an ops role also. Roles are fluid ofc and can be same person.
6
I see 3 layers: - agent - orchestrator - ui Agent is Pi, Claude, Codex etc. Orchestrator is a layer that can spawn any agent and has api to do that, send and receive messages. One orchestrator per machine. Example: @t3dotcodes UI is for me. Ideally loosely coupled to orchestrator. Allows to attach to any session but not wired to it. Is not session oriented but more like inbox or board.
19
Tobias Kasper retweeted
Someone I know asked Astra to play Factorio. It wins, but it takes forever and guzzles tokens. If you ask Astra instead to “design a system to win Factorio,” it builds software that runs 1000x faster. Mechanistic software gives you cheap leverage, and LLMs can write mechanistic software on demand.
67
105
41
2,398
123,649
Tobias Kasper retweeted
Replying to @mattpocockuk
sadly, we can't lint bad system design yet.
8
2
140
5,737
Tobias Kasper retweeted
641
16,432
1,379
96,058
6,586,923
"Omg Fable is next-level" <- we are here Up next: "Wtf is wrong with Fable, is it nerfed?"
2
Its weird that every dev has its own token budget. Maybe budget will be per app regardless of devs. And product people prompt features and devs build and maintain software factory and architecture.
7
Tobias Kasper retweeted
I am afraid yes but I hope not. Becoming dependent on yet another service. "Sorry we couldnt release any new features this month because cloud agent provider raised prices and we are over budget now."
1
1
10
Tobias Kasper retweeted
Both. I think models are smart enough to handle compaction well. But I am on a budget at work and manage context windows to not hit my limit while working with multiple agents.
1
296
Tobias Kasper retweeted
Nice DeepSWE score! Does it survive a lowercase filename? Introducing MaxxBench: 89 DeepSWE tasks with small changes to the instructions or starting code. Same engineering problem, slightly different requirement. Models clustered around 74% on DeepSWE end up 23 pp apart. Good at coding, or good at DeepSWE? 🧵
238
413
314
5,503
958,101