Accidentally created my first fork bomb with Claude Code

(droppedasbaby.com)

38 points | by offbyone42 13 hours ago

5 comments

  • hnlmorg 2 hours ago
    My first ever fork bomb was in the 90s, running Microsoft own example code for OLE (or was it COM?).

    That was a great early lesson to never trust code you read online. Even if it is from Microsoft’s own developer portal.

  • ihaveajob 3 hours ago
    Congratulations! Mine was intentional, back in college, where all PCs had open telnet in order to facilitate cooperation. We discovered it was easy to seize someone's computer for a while, and then watch them look around for the culprit, which we thought was hilarious. Boy were we annoying.
    • offbyone42 1 hour ago
      How did you not get caught??!?
  • Jeremy1026 1 hour ago
    What was the purpose of having Claude Code spin up two more instances of Claude Code though? What was the intended outcome there?
    • offbyone42 4 minutes ago
      I have a `SessionEnd` hook that summarizes the conversation with a bunch of metadata, but it doesn't always fire 'cause of my habits.

      So, the `SessionStart` hook was meant to catch any conversation where the `SessionEnd` hook wasn't fired.

      Edit: I do realize a batch job is better. That's what I do now.

    • 331c8c71 37 minutes ago
      Exponential productivity gains?;)
    • awesome_dude 22 minutes ago
      I don't know about the author, but I recently saw an article where the author of Claude code apparently spins up multiple instances at once (note that it could have just been a marketing ploy to get people to use more tokens)

      https://www.xda-developers.com/set-up-claude-code-like-boris...

      • MarcelOlsz 3 minutes ago
        Just use Git worktrees and a lightweight VM environment (I like macOS native sandbox-exec) and you can spawn as many sessions as you want. I've run upwards of 30 at once on my M2 Pro with no noticeable resource impact.
  • siruwastaken 2 hours ago
    The realization that even badly running code is still faster than the average human is rather terrifying. Lucky you that it hogs so much RAM.
  • robshippr 2 hours ago
    [dead]