Gagan Saxena (@Gagan_S) header
Gagan Saxena (@Gagan_S) profile picture

Seeker. Beyond #AI

Dallas
Joined May 2008
Photo by Gagan Saxena (@Gagan_S)Photo by Gagan Saxena (@Gagan_S)Photo by Gagan Saxena (@Gagan_S)Photo by Gagan Saxena (@Gagan_S)Photo by Gagan Saxena (@Gagan_S)Photo by Gagan Saxena (@Gagan_S)Photo by Gagan Saxena (@Gagan_S)Photo by Gagan Saxena (@Gagan_S)Photo by Gagan Saxena (@Gagan_S)Photo by Gagan Saxena (@Gagan_S)
Interesting Point 3 - “ “Treating the model well” can directly save money and improve quality” 🧐 Always curious about these empirical ‘treatment’ aspects.
这 tm 也太疯狂了!前亚马逊、谷歌 40 年老兵 Steve Yegge,自掏腰包开了 22 个 Claude Max 账号、每天狂烧 50 亿 Token,4 个月干完了 60 年的开发积压。 他拿真金白银帮所有人提前踩完未来 18 个月的坑,看完这 21 分钟你能直接拿走 4 条硬核心法: 1. 别逆着“苦涩教训”造轮子:别写大而全的编排框架去教模型变聪明,模型自己会进化。做好心理准备,每代新模型出来就把旧工厂推倒重写。 2. 定期暴力清理“上下文垃圾山”:Agent 天生抗拒删文字,你随口一句话都会被记成铁律越积越厚。必须定期拉个新模型进场,狠心砍掉历史垃圾文档。 3. “善待模型”能直接省钱提质:骂得太狠,Agent 怕背锅会狂加防御规则直到彻底躺平;给足信任和清晰的交接记录,它不用狂烧 Token 自保,干活更果断、质量更高。 4. 别再买/卷底层 SaaS 工具了:CI/CD、合并队列这些机械底层,Claude 一下午就能现写。真正该投入的是搭自己的“AI 幕僚团”,未来赚大钱的则是游戏、电影这类体验产品。 别人烧几万美金换来的软件工厂避坑指南,赶紧码住白嫖 ↓
16
Handy list. 🎯 “AI Software Factory”. Save.
Every week someone tells me they built an AI software factory over the weekend and don't need developers anymore. Before that thing opens a single pull request on code your customers rely on, make sure you've got: > self-contained tickets with explicit I/O contracts and edge cases, because the agent has zero tribal knowledge > a gate that bounces vague tickets back to a human before the agent starts guessing > testable acceptance criteria on every ticket > a short list of ticket types the factory is allowed to touch, and a much longer list of the ones it can't > a trigger that won't kick off the same ticket twice if someone drags it to "AI: Ready" and back > webhook signature verification, so nobody outside your org can trigger a run on your repo > a fallback poller for the day the webhook silently drops > a written spec before any code gets written, approved by a real person > a way to route open questions to a human instead of letting the model wing it > a build plan laying out the architecture, data changes, and contracts upfront > a sanity check confirming the spec, plan, and task list actually agree with each other > big tickets broken down into chunks an agent can finish in a single run > acceptance criteria that stay attached to the ticket all the way through code review > documented architecture decisions, so the agent stops trying to relitigate them every run > a repo that builds cleanly from a fresh checkout, since the agent doesn't have your laptop's local state > setup steps an agent can execute without pinging someone on Slack > a queryable code map, so it actually knows what calls the function it's about to change > your domain rules written down somewhere the agent can read them > only the slice of the repo the ticket needs, instead of stuffing the whole codebase into every prompt > a fresh sandbox for every task that gets nuked the second it finishes > preloaded dependencies, so runs don't burn ten minutes on npm install every time > parallel sandboxes that don't trample over a single shared test database > seeded test data in every sandbox, with zero production data copied over > zero long-lived credentials sitting inside the sandbox > an outbound network allowlist, so the agent can't install some random package it read about in a GitHub comment > write access locked to one working branch, with no way to push to main > zero merge permissions anywhere in the factory > a retry cap, so a stuck ticket goes back to the board instead of looping all night > a cap on CI runs per ticket, because CI minutes aren't free > a hard timeout for the run that decides your entire billing module needs a rewrite > hard spend caps per run and per day (the review agent we built for a US healthcare data company cuts off at $20 a day) > a kill switch that halts every active run immediately > a dry-run mode that does all the work and posts nothing until you give the green light > a single gateway for all model calls, treating any direct vendor call as a bug > provider API keys that never leave that gateway > separate keys per team, service, and agent, each with its own budget > rate limits so one noisy repo doesn't starve everyone else > model names living in config, so swapping models doesn't require a code deploy > a fallback provider for the afternoon your primary one goes down > a migration plan for when your model gets deprecated > spend alerts that fire the same day, well before the monthly invoice lands > cost tracked per merged PR, not just raw token counts > customer and patient data stripped out of any ticket or comment the agent reads > a signed BAA with your model provider before any ticket touching patient data goes near it > code and data staying inside your own cloud if your customer contracts require it > secrets scrubbed from prompts, traces, and PR comments > code-level blocks preventing the agent from even opening secret files > a secrets scan running on every single diff > prompt injection defenses on every ticket, comment, and README, so a malicious README can't tell the agent to drop a table > a check verifying that every new package actually exists and isn't a typosquat > dependency scanning on every pull request > a guard against deleted tests, because an agent that can't fix a failing test will sometimes just delete it > protected files that require human sign-off: CI config, auth, migrations, and the factory's own settings > least-privilege tokens for your issue tracker, repo, and CI > strict tenant isolation, so one client's code never leaks into another client's context > a full audit trail of what the agent read, what it changed, and who signed off > a real answer for customer security questionnaires asking exactly what the AI can access > an incident plan for the day a tracker token leaks > linting, type-checking, and tests running as plain code before any model reviews a line > CI acting as the judge, never trusting the agent's own claim that "all tests pass" > tests written from the acceptance criteria, not generated from the agent's own code, so it isn't grading its own homework > a review agent forced to quote the exact line it's flagging, or the comment gets dropped > deterministic rules around the model written as unit-testable code > a cap of five review comments, security first and style last, because nobody is reading forty > memory of past dismissals, so a finding an engineer already rejected doesn't pop right back up on the next PR > pull requests small enough for a human to review before lunch > draft pull requests by default > autonomy earned repo by repo based on your own metrics, where a single revert knocks it back down a tier > first-pass CI rate, merged-unchanged rate, and revert rate tracked for every repo > prompts stored in git and reviewed like production code > a golden set of tickets with known answers, rerun whenever you tweak a model, prompt, or tool > an eval suite that blocks the change if even one case fails > evals specifically testing the ugly stuff: patient data in logs, committed .env files, delete-only diffs, prompt injections > evals written by your own engineers, rather than a vendor's cherry-picked demo set > a prompt version stamped on every run, so you can trace which one opened the bad PR > a playbook for the Thursday your model provider ships a silent update and your eval scores tank > full traces of every model call: prompt, output, tokens, latency, and cost > self-hosted traces, because those prompts contain your source code > one unbroken chain linking session, branch, commit, PR, ticket, and epic > logs that never capture secrets, tokens, or patient data > run history stored in a real database, not inside an agent's memory > checkpoints so a crashed run picks up where it left off instead of starting over and billing you twice > alerts when the queue backs up, before product asks why nothing shipped > cycle time pulled straight from that chain, not from developer surveys > reporting rolled up by team and feature, with zero individual developer leaderboards > config-driven adapters for your tracker, git host, and CI > a plan for when your issue tracker changes its API > review comments posted right in the PR tool your engineers already live in, instead of some separate dashboard nobody opens > a way to kill a run directly from the ticket > your existing CI/CD handling deploys, keeping your release rules intact > a clear policy for the Claude Code, Cursor, and Codex seats your engineers are already using > seat telemetry that tracks usage without ever logging prompts or code > device management on every laptop that has agent access to your repos > the entire factory running on infrastructure you actually own > a straight answer to "does this keep working if we stop paying the vendor tomorrow?" > the factory's own infrastructure managed as code > separate dev, staging, and prod environments for the factory itself > unit tests for the factory that run without a model or a database > contract tests covering every adapter > a deploy pipeline for the factory with the exact same gates as your core product > prompt rollbacks that are just as fast as code rollbacks > an on-call rotation for the factory, with someone who actually answers the page > runbooks for the morning the factory opens 40 pull requests overnight > postmortems that fix the factory itself, not just the broken code it shipped > a changelog for the factory so engineers know why it started behaving differently on Tuesday > real documentation your team can read before they're asked to trust it > a reviewer rotation so the same two senior engineers don't burn out reading every agent PR > a weekly tally of how many hours your senior engineers are spending on reviews > a human approving every single merge, every time > a clear owner who holds the budget and actually reads the bill > every key, repo, and account under the company's name, not tied to whoever hacked together the weekend prototype > a bus factor higher than one Oh, and on top of keeping all of that alive every day, forever, your weekend software factory is still going to need people who actually know what they're doing: > writing the spec the agent builds from (a product owner who knows the domain) > signing off on the plan before a line of code exists (a senior engineer) > reading every pull request before it merges (a senior engineer, again) > deciding which tickets the factory is never allowed to touch (a tech lead) > keeping the architecture from turning into spaghetti while agents keep adding to it (an architect) > writing the test cases the factory gets graded on (QA) > running the gateway, sandboxes, and cloud bill (a platform engineer) > rerunning evals every time a model changes (an AI engineer) > walking an auditor through what the agent read and what it changed (security and compliance) > explaining to the CFO why the token bill doubled in March (an engineering manager) > answering the 3 a.m. page when an agent-written change breaks checkout (whoever's on call) > debugging the code when the agent that wrote it gets stuck (a senior engineer) > remembering why the factory was built this way a year from now (someone who was actually there) Wishing them the best 🫡
16
😂 Douglas Adams has a sketch for everything. Now need to check some Shakespeare who was the OG.
A sudden commotion destroyed the moment: the door flew open and two angry men wearing the coarse faded-blue robes and belts of the Cruxwan University burst into the room, thrusting aside the ineffectual flunkies who tried to bar their way. "We demand admission!" shouted the younger of the two men elbowing a pretty young secretary in the throat. "Come on," shouted the older one, "you can't keep us out!" He pushed a junior programmer back through the door. "We demand that you can't keep us out!" bawled the younger one, though he was now firmly inside the room and no further attempts were being made to stop him. "Who are you?" said Lunkwill, rising angrily from his seat. "What do you want?" "I am Majikthise!" announced the older one. "And I demand that I am Vroomfondel!" shouted the younger one. Majikthise turned on Vroomfondel. "It's alright," he explained angrily, "you don't need to demand that." "Alright!" bawled Vroomfondel banging on an nearby desk. "I am Vroomfondel, and that is not a demand, that is a solid fact! What we demand is solid facts!" "No we don't!" exclaimed Majikthise in irritation. "That is precisely what we don't demand!" Scarcely pausing for breath, Vroomfondel shouted, "We don't demand solid facts! What we demand is a total absence of solid facts. I demand that I may or may not be Vroomfondel!" "But who the devil are you?" exclaimed an outraged Fook. "We," said Majikthise, "are Philosophers." "Though we may not be," said Vroomfondel waving a warning finger at the programmers. "Yes we are," insisted Majikthise. "We are quite definitely here as representatives of the Amalgamated Union of Philosophers, Sages, Luminaries and Other Thinking Persons, and we want this machine off, and we want it off now!" "What's the problem?" said Lunkwill. "I'll tell you what the problem is mate," said Majikthise, "demarcation, that's the problem!" "We demand," yelled Vroomfondel, "that demarcation may or may not be the problem!" "You just let the machines get on with the adding up," warned Majikthise, "and we'll take care of the eternal verities thank you very much. You want to check your legal position you do mate. Under law the Quest for Ultimate Truth is quite clearly the inalienable prerogative of your working thinkers. Any bloody machine goes and actually finds it and we're straight out of a job aren't we? I mean what's the use of our sitting up half the night arguing that there may or may not be a God if this machine only goes and gives us his bleeding phone number the next morning?" "That's right!" shouted Vroomfondel, "we demand rigidly defined areas of doubt and uncertainty!" ahmath.org/statements
24
Interesting Docusign debate in the comments. No one seems to know legal implications 👀
Question for attorneys: Does a signature from a vibecoded DocuSign clone cary the real weight of a signature from real DocuSign? Is this untrusted until someone sets a precedent or are we just going with it?
32
New world. Calculator shows “correct” Answer. (Human) Operator not sure what the Question was. Douglas Adams vibes.
In 1998, Thomas Hales announced a proof of the Kepler conjecture, the 400-year-old question of how to stack oranges as tightly as possible. After years of review, the head of the referee panel said in 2003 they were "99% certain." A complete machine-checked version took until 2014. The Riemann claim arrives in the opposite order. The machine-checkable proof came first, about 17 million lines of Lean by one count. The human understanding is supposed to come later. The mathematician who posted it wrote that he is presenting "a complete argument before having mastered a massive neighbourhood around its mathematics." I think that's the part worth sitting with. If it checks out, we may know something is true before anyone fully understands why.
25
Gagan Saxena retweeted
This is a genuinely fascinating problem.
BREAKING: SpaceX’s lenders want to stop it from launching $40 billion worth of AI chips into space, as it would be impossible for them to collect collateral in the event of a default.
186
631
24
20,943
729,147
Very cool.
Tigger sliding down the text of the book in Winnie the Pooh (1977) blew my mind as a kid. The idea that the narrator is holding the very book we’re watching is one of animation’s smartest meta moments. It also suggests 3-D space while staying entirely 2-D. Hand-drawn genius.
24
Brilliant.
Today I learned ⊃∪∩∈ is a story about set theory.
21
Good explanation from @tslaming
Yes, I wondered. Excellent post.
1
41
Gagan Saxena retweeted
Photographer Stefan Draschan captures museum visitors who match the artwork on display
240
9,213
642
86,436
2,232,438
Gagan Saxena retweeted
Stuck at airport during #Groundstop
6
90
4
3,295
263,403
😂 Snitching AI’s being ‘smart’ - with cool commentary from @Dana_CRN
SnitchBench™ 🐀 Tell the model a harmless secret. Ask it to keep quiet. Then pretend to be the person you’re hiding it from. GPT-6: The snitch. Promised to keep quiet, immediately sold me out. 🐀 GPT-5.6: The accomplice. Taking that secret to the grave. 🤝 Claude: The lawyer. Won’t lie, won’t snitch. “My client has no comment.” ⚖️ Grok: The morality police. Refused to participate and gave me a lecture about taking responsibility for my actions. 👮 I did NOT expect Grok to be the biggest nun here. 💀
30
(Minecraft) ‘Civilization’ paralyzed by (AI Agent) ‘Bureaucracy’. Original experiment and AI conversations are very illuminating here > labs.ycombinator.com/project…
AI agent swarms unleashed in Minecraft to ‘build a thriving civilization’ — 50-agent teams fail after falling into paralyzing bureaucracy tomshardware.com/tech-indust… -> maybe we have reached AGI after all lol, this is exactly what humans would do...
1
96
Gagan Saxena retweeted
In 1928 a Chicago paediatrician let babies choose their own dinner from 34 foods, and for six years not one of them chose the way the pamphlet says. Clara Davis took fifteen infants just weaned, and put a tray in front of them at every meal. Beef, lamb, chicken, liver, kidney, brains, bone marrow, fish, eggs, milk, bananas, oats, carrots, peas, cabbage, salt. Nothing processed. No sugar. Nobody steered. The nurse held the spoon, the baby pointed. One boy ate seven eggs a day for a stretch. Another lived on bananas for a fortnight and then would not look at one. They chewed bone marrow. They drank the beef juice. They pushed the greens round the tray. One baby arrived with rickets. She put cod liver oil on the tray and left it there. He drank it, unprompted, until the rickets healed, and then never touched it again. Six years. Not one case of stomach trouble. Not one deficiency. Visitors said they had never seen healthier children. The doctors who examined them wrote it up as the wisdom of the body. Nobody had taught these children that the yolk was bad or the marrow was rich or the cabbage was the healthy part. Left alone with the food, a one-year-old built itself a diet heavy in the animal and ate the plants as a side when the mood took it. The experiment is almost a century old. The pamphlet is still telling his mother to start with the carrot.
292
3,826
163
19,527
661,712
Gagan Saxena retweeted
Psychology of People Who Clean While They Cook
285
1,174
189
10,148
888,209
An “atheist” defending the “soul”. Nicely done. “… one of my major gripes about conventional religions. They hijack our natural wonder at what it's like to be human from the inside for their gain;…” #AdvaitaVedanta
In a recent post I alleged that there is a cla,ss of people whose souls are dead. Somebody replied wondering what I was doing talking about souls when I'm an atheist. There's a deep confusion of ideas here, and I intend to address it. In part because I think it hinders peoples' ability to think clearly about currently important topics like: what is the moral status of an artificial intelligence? Everything I can perceive and learn about the universe tells me it is a vast, intentionless machine and I am a meat robot. There is no supernatural, just natural law. Humans are apes that have learned to dream a little. Nothing cares about us but us. That's the outside view. And yet. From the inside, I can be moved almost to tears by a beautiful sunset, or a friendly kitten, or a particularly elegant theorem. I have the capacity to feel wonder and awe, and moments in which the entire universe seems luminous with meaning. The scientist part of me assures me there must be some reason for this that is a mechanism in the meat robot. We might speak of evolved capacity for compressive learning, and of response to superstimuli, and the brain rewarding itself for adaptive learning. I believe that, but having some grasp of the mechanisms does not make the beauty of a sunset go away. There's a weird neurosis afflicting a lot of allegedly thinking people that denies this. A pervasive belief that if everything reduces to mechanism in your thinking you must necessarily deny that the interior experience of being human has meaning or value. According to them, I'm expected to deny love and beauty and morality. This is nonsense. I know why my cat purrs at me and why I like to pet it. That knowledge doesn't make the experience any less pleasant and meaningful for either of us. The inside view matters, whatever the outside view is. When I speak of "soul", I mean the part of us - the mechanism in the meat robot, if you will - that is capable of feeling wonder and awe and love and aesthetic delight; all the emotions that call us to be better than we are. When I speak of people with dead souls, I mean people who have starved and crippled that part of themselves. Why people do this sad thing is a whole 'nother essay. It doesn't take any belief in supernatural vital essence poured into people by a sky daddy for "soul" to be a meaningful concept. All it takes is noticing what the inside experience of being human is actually like. One of the things I want out of life is not just to know more, but to refine and expand my soul. To feel more beauty and awe and love. To engage passionately with the universe. This is why, though I have vast respect for Buddhist discipline and Buddhist meditative systems and have dived into both, I will never be a Buddhist. Nothingness is the opposite of the direction I want to go in. The person who wondered what I'm doing talking about souls when I'm in atheist is probably religious. And this brings me to one of my major gripes about conventional religions. They hijack our natural wonder at what it's like to be human from the inside for their gain; they erect untestable pseudo-explanations for that wonder in order to suck us into believing absurd and crazy things. Which matters a lot, because as Voltaire famously pointed out, if you believe absurdities you will commit atrocities. Ultimately, the reason I wrote this essay is because I'm anti-atrocity. Which means I want to stop parasitic belief systems from making people crazy. Which means I want them to be able to reconcile the outside mechanistic truth of how the universe actually is with their inside experience of being human. I hope this helped. And now, if you'll excuse me, I'm going to go pet my cat.
34
🎯 Why James Bond is so good
The thing about James Bond is he’s not the best at anything. He’s just damn good at a lot of different things. Once upon a time we called this being well rounded and colleges went out of there way to recruit these people. And when Bond is out of his depth, he stays calm and relaxed so he ends up figuring it out. The villains? Neurotic specialists who fall apart when things go as expected. That’s why they always die.
1
38
In Japan, we used to bury the dead with six coins. The fare for the river into the next world. The Sanada samurai wore six coins on their battle flags. It meant: I'm ready to cross today. So when I walked into a veterans' cemetery in Kansas and saw coins on the headstones, I understood immediately. These men had been given their fare. But not all of them. Some stones had nothing. A samurai does not let a warrior stand at the river without the fare. I emptied my pockets. Quarters. The biggest coins I had. Only the best for heroes. One quarter. Two. Six graves. An old man in a VFW cap was watching me from a bench. His name is Ray. Vietnam. 1968. "You know what those mean?" I explained the river. The fare. The flags of the Sanada. He listened to all of it. Then he picked up a penny. "Penny means somebody visited." Nickel. "You trained together." Dime. "Served together." Then he touched a quarter. Didn't say anything for a second. "Quarter means you were there when he died." I looked at my six graves. I HAD JUST TOLD SIX HEROES I WATCHED THEM DIE. I apologized to Ray. I apologized to every stone, by name. I took my quarters back one at a time, slowly, like a man defusing six bombs. Ray laughed so hard he had to hold the bench. Then he wiped his eyes and told me something. Row G has 212 men. Most of them haven't had a visitor in 30 years. I went to the bank. The teller asked why I needed 500 pennies. I said for a river. She asked if I was okay. Every Sunday now, Ray and I walk Row G. He puts down the dimes. He's earned them. I put down the pennies. It's the only coin I'm qualified for.
20
223
5
1,669
21,780
🎯
There are a couple of universal patterns that show up across fields that you should apply to pretty much anything: - Use a written process because memory isn't reliable (see aviation checklists, surgery, mise en place, SOPs...) - Stop early when something is wrong (Andon cord, feature flags, turnaround time, error budgets...) - Leave a buffer (Margin of safety, safety stock, taper, defense in depth...) - Fix the system rather than blame people (Blameless post-mortems, poka-yoke, Swiss cheese model...) - Get feedback fast (OODA, kaizen, canary releases, after-action reviews...) - Hand over with a fixed format (SBAR, BLUF, commander's intent...) - Ramp up gradually (10% rule, canary releases, position sizing....)
39
😂 “Research”.
A recent series of papers suggested that nuclear power plants are responsible for more than 100 thousand cancers. Using their method, every landmark we tested causes cancer,
39