Shipping code. Sharing lessons. Occasionally funny. DM for Work or Collab.

Joined August 2025
Gaurav retweeted
28
3
47
915
Gaurav retweeted
Imagine getting rejected due to commit message💀
44
10
3
303
46,315
Gaurav retweeted
"Member of Technical Staff" level interview question: An AI agent calls an external API and times out. You don't know whether the API executed the action. Should the agent retry? How would you make the operation safe?
18
1
21
763
Gaurav retweeted
Replying to @Leapofcode
everyone shouting 'idempotency keys' is failing the actual MTS interview question—you specifically asked what happens when the external API DOES NOT support idempotency the 3 distributed systems patterns for surviving agent timeouts against non-idempotent legacy APIs: 1. the fundamental rule: timeout is an unknown in-flight state: a timeout is the Two Generals' problem: the TCP packet could have failed on ingress, OR the bank/vendor executed the mutation and only the response dropped if an agent blindly retries a non-idempotent POST, you guarantee duplicate side effects (double charges, duplicate records) the state machine must transition to IN_DOUBT, never straight to RETRY 2. deterministic read-before-retry (synthetic idempotency probes): even if the vendor has no Idempotency-Key header, their payload usually accepts custom metadata or reference fields embed a deterministic token into the request: reference = hash(agent_id, task_id, step_nonce) on timeout, the agent NEVER retries the POST directly—it issues an out-of-band probe: GET /transactions?reference=REF_42 - if the record exists: adopt the remote ID, mark succeeded, proceed - if 404 after an established quiet window: only then is it safe to retry 3. the Saga pattern & asynchronous reconciliation queues: if the vendor has neither idempotency nor deterministic reference queries, synchronous resolution is mathematically impossible the agent must persist the intent to a dead-letter / reconciliation outbox and yield an out-of-band worker attempts reconciliation or issues a compensating reversal (void / cancel) before unlocking the agent's workflow the true MTS architecture answer: never let agents call raw un-idempotent third-party APIs directly. you place an internal egress proxy in front that shims synthetic idempotency and transaction locks
1
1
2
36
Gaurav retweeted
I don't understand why OpenAI investing in computer-use models? What are some real-world use cases for computer use beyond the browser?
27
3
28
531
Gaurav retweeted
Linus's setup to build Linux VS my friends setup to approve Claude's action.
19
1
39
2,047
Gaurav retweeted
leaked footage from Sama's study room.
22
1
26
591
Gaurav retweeted
27
1
37
735
Gaurav retweeted
If your secret keys get exposed on GitHub through a .env file, is rotating them enough? Asking for a friend.
39
1
45
1,391
Gaurav retweeted
Microsoft really said, "You thought you had a choice?"
19
1
32
786
Gaurav retweeted
maybe a dumb question... why no comparison with Gemini 4 Argon?
Introducing Kimi K3.1 Pro: our most capable 3T-class open-weight model. 🔹 1M-token context, 2.8T total / 104B active params (MoE), Multimodal. 🔹 Full-project coding: games in Unreal, Unity & Godot. 🔹 Excels at parametric 3D modeling in Blender & CAD. 🔹 More reliable at finance work: Accurate modeling with hallucination down by 65%. 🔹 Matching the strongest proprietary models across coding, agentic and knowledge benchmarks. Kimi K3.1 Pro and K3.1 Pro Highspeed (2–3× faster) are now live on Kimi.ai, Kimi Work, Kimi Code, and the Kimi API. Open weights by Nov 4, 2026. 🔗 API: platform.kimi.ai 🔗 Tech blog: kimi.ai/blog/kimi-k3-1-pro
17
1
21
585
Gaurav retweeted
80
216
17
2,982
57,693
Gaurav retweeted
trillion dollar company btw. $4.218 trillion 🤯
41
1
48
1,296
Gaurav retweeted
What's the best place to store an authentication token in a web app? A) localStorage B) HTTP-only cookies C) IndexedDB D) It depends Which would you choose, and why?
38
2
1
48
2,681
Gaurav retweeted
41
2
49
1,030
Gaurav retweeted
Junior React developer interview question: Your React app is open in multiple browser tabs. A user logs out from one tab. How would you synchronize the authentication state across all other tabs instantly, without refreshing the page?
27
1
25
774
Gaurav retweeted
Average senior developer skill set:
23
1
32
574
Gaurav retweeted
The biggest irony of AI era.
37
2
54
1,968
Gaurav retweeted
I ranked all the SaaS launched in 2026. let me know if I missed yours.
15
1
21
581
Gaurav retweeted
Day 9/60 of AI agent problems nobody warns you about. You told your agent: "Never email customers." 200 messages later, its memory filled up. The oldest ones got dropped, and that rule went with them. No error. It just forgot. What does your agent forget first? 👇
28
4
43
1,811