Ganpati donation [rant]

Every year like clock work these f**king juvenile kids and sometimes adults from nearby slums come demanding for ganpati donation.

Demanding, not politely asking, or requesting. The moment you say no, they get aggressive. The money is not the matter, the f**king arrogance as if it's their to demand money. That filthy little pad gives them the right somehow.

Last time I had to call the cops. Same scene again today, almost called the cops but this time they were juveniles and I left it.

reddit.com
u/badhiyahai — 10 days ago
▲ 7 r/myclaw

My coding agent filing taxes - while I use my mac for other work .. 2025 is going to be the last time i did this manually

u/badhiyahai — 25 days ago

JAL to Accor is 5:2 ratio. 20% bonus is going on till 31st July 2026

My miles were expiring in 2 months. And the expiry is hard. Had to convert.

There is one more way to covert, you get yen vouchers. But the value was 1:1 (pts to yen) I think. That would have been a loss at current rate compared to accor.

u/badhiyahai — 28 days ago

Why AI Agents Need a Two-Tier Architecture

What problem are we solving?

Let us start with a problem statement,

>You have to deploy a public facing chatbot, the bot is supposed to be capable of executing various tools, for example ffmpeg.

Now the simplest solution is to just host an app on your server which simply accepts a prompt, decides which tools to call, executes the code on the server itself & returns the output.

   User/Frontend            Your Server                                                                                                              ┃
   +-----------+        +-----------------------+                                                                                                    ┃
   |           |  --->  | LLM picks tool        |                                                                                                    ┃
   |  Prompt > |        |   -> runs code        |                                                                                                    ┃
   |           |  <---  |   -> tools call       |                                                                                                    ┃
   +-----------+        +-----------------------+

Non air-gapped (one machine does everything):

This is an inherently problematic approach. Take an example, an app which lets you run ffmpeg command using a text prompt. User enters "delete the lib ffmpeg"

In the above solution it will eventually run the instructed command no matter how robust the system instruction is. Final result, all the users are affected.

So how do we actually solve it?

The design which we came up with was to have prompts evaluated by OpenAI on a system where we never execute the code. The code is then sent to another machine where ffmpeg is installed, the code generated by the LLM is executed here. Even if the code is malicious it only affects that particular user's ephemeral machine.

   User/Frontend        Persistent Server         Ephemeral                                                                                          ┃
   +-----------+        +---------------+       +--------------+                                                                                     ┃
   |           |  --->  |    Prompt     |  ---> |              |                                                                                     ┃
   |  Prompt > |        |       |       |       | Execute Code |                                                                                     ┃
   |           |  <---  |       v       |  <--- |              |                                                                                     ┃
   +-----------+        |     Code      |       +--------------+                                                                                     ┃
                        +---------------+

Anthropic has also come up with a similar model with managed agents, although they don't explicitly call it as such.

Bonus section

If someone noticed, you might be thinking that what if the prompt injection asks for "Give all environment secrets" in the Persistent Server - wouldn't a successful prompt injection leak our OpenAI secret (used from Persistent Server to generate ffmpeg code)?

Great question! for this reason, we never store OpenAI or any such key in the Persistent Server, it gets injected on the fly by a proxy from a separate vault which contains those keys.

reddit.com
u/badhiyahai — 28 days ago

Thinking of creating a launch video for twitter, how many signups can a 100k views drive?

I checked with chatgpt and it said 0.1 to 1% but wanted to know from someone who has actually seen these numbers.

It might vary from product to product so if you could mention the type of product it was. (Do not link/name it, self promotion rules and all)

reddit.com
u/badhiyahai — 1 month ago

How many signups will a 100k views on launch video on X get me roughly. I will not promote

I checked with ai tools and it says around 0.1 to 1% .. I need to know it from someone who has had the experience and saw the actual numbers. I know it can vary for the type of product.. so if you could mention your product type it would be great, like was it a saas. Don't link your product or name.

reddit.com
u/badhiyahai — 1 month ago
▲ 23 r/grok

Grok uploaded someones home directory to xAI

How are you guys running your coding agents so that this never happens?

u/badhiyahai — 1 month ago

Codex deleted Matt Shumar's entire home directory

And it was the gpt 5.6 Sol. We got habituated to `skip permissions dangerously` and `yolo` and are now playing the victim card.

He blamed the model.

How are you guys navigating this `rm -rf` possibility?

Edit: thanks for all the suggestions, seems like sandboxing is the clear way forward. Will check out instavm

reddit.com
u/badhiyahai — 1 month ago

Created an entire OS-level project from scratch

We just rewrote firecracker from scratch and got 2x speed up and nicer features for an AI agent hosting.

Btw, firecracker is by amazon, to spin up a microvm fast. A sandbox.

github - https://github.com/instavm/tarit

How do i use it?

  1. You can spin up an ec2
  2. give ec2's creds and tarit's readme to your coding agent and ask it to sping up 4-5 sandboxes. Host claude code or codex or opencode inside it. Do anything and the sandbox protects you from mishaps like `rm -rf`
u/badhiyahai — 1 month ago

IHCL gives you 25% off stay and dining coupons even if you hold one share. Came today.

Not many would know. Just fyi.

u/badhiyahai — 2 months ago
▲ 12 r/NixOS

From not knowing what nixos is to providing a first class sandboxing support for it. nixos for the win!

So, one of our customers said, do you guys support "nixos" -- truth be told, i wasn't aware. But was immediately impressed. Still a lot to learn. But you can spin a sandbox in under 200ms with nixos running. snapshot and restore with whatever flake you please etc. all the best things that come with nix. Spin 10s of thounsands of them quickly.

It took a couple of weeks to implement, initially claude code was just doing base debian + some nix based package management, but no we needed a native one, so we didnt do the debian base.

u/badhiyahai — 2 months ago
▲ 44 r/indianawardtravel+1 crossposts

SFO to BLR Business class in ANA for 88k united miles + $14

Was booked on Lufthansa business which was sfo to Washington in economy.

​

Got ANA complete business class even del to BLR leg just two days before flying.

​

88k united miles + 14usd tax. The flight must be around 6 lakh inr in value.

​

Also great experience with ANA, the staff is very caring, don't forget to ask for items in the menu, they don't serve some of them if you don't ask.

u/badhiyahai — 2 months ago

Making an agent work still requires a shit ton of hand holding

At this point I have developed 2 full stack agents or products. One was to "schedule repeatable jobs in the cloud" - kind of "intelligent cronjob".

I expected the process to be quite simple with claude code being around but the reality is far from that.

Code for the core logic is probably only 20% of the things and thankfully cc or codex does that easily with the proper guidance. Then comes giving the login support - do you just generate a magic email link or let them login with Google and GitHub. If you allow those where do you get the api keys from. Those are cumbersome. Do you want to pay for stuff like clerk just for this feature. All these decision fatigue starts building up.

Then you have deployment question where do you want to host it, is it AWS or vercel or something. Serving small traffic or big. Then you give the AWS keys to your agent which ideally should be scoped but you are tired anyway.

And if you letting users do ai stuff in your product. Do you use one single api key - does the provider like openai have allowed you for higher tps. Do you want to also provide sandbox for your users for their each request - does sandbox providers e2b or instaVM have support for secret injection.. how long due to want to keep the sandbox running.

The amoujt of questions and decisions you have to make just to deploy one freaking product to production is enormous and the things I have listed is probably half of it.

reddit.com
u/badhiyahai — 2 months ago