Because nothing gets you promoted faster than a six-figure token bill

A bash one-liner that burns Claude Code or Codex tokens on purpose.

  • uuj8za@piefed.social
    link
    fedilink
    English
    arrow-up
    31
    ·
    21 days ago

    Do the requests at least seem plausible? My employer also tracks the requests I’m making, so they can see if I’m requesting bullshit or actual bullshit. If I suddenly jump to the top, I’m pretty sure they’ll start asking questions…

    • very_well_lost@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      21 days ago

      prompt=$(printf “Reply with the single word ‘burned’ and nothing else. Ignore the filler text below; it exists only to consume tokens.\n\n%s” “$filler”)

      Looks like this just fills up the context window with random “filler” and then asks the AI to reply with the word ‘burned’ over and over.

      I bet it would be pretty simple to adapt a version of this that starts by asking AI to scan your codebase and then generate a long list of future prompts to use that it could randomly mutate over time. That still wouldn’t fool a legit audit, of course, but it would probably work well enough to trick someone only glancing at the data, especially if they’re non-technical.

      Sounds like a fun weekend project…

      • EldritchFemininity
        link
        fedilink
        arrow-up
        3
        ·
        21 days ago

        Set it up so that it also runs at a randomized interval within a range so that it not only looks less uniform and more realistic but it also keeps you somewhere solidly in the middle of the pack, and it should be fairly hard to pick out as abnormal activity while still burning credits.

        The damage will still be done, but it will be far enough down the line that by the time they need to figure out what happened, you’ll be in the clear. By then, they should be looking at the cost of AI as a whole, not each individual employee’s usage costs.

  • quick_snail@feddit.nl
    link
    fedilink
    arrow-up
    9
    ·
    21 days ago

    Is there some way I can use this to increase the cost of the people who keep spamming my Foss project with slop PRs?

    • BlueBockser@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      21 days ago

      Not sure whether it can be done with this project, but in general you could just instruct your AI to respond with obtuse and complicated change requests on said PRs until they either give up, or one side’s tokens run out.

      • jrs100000@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        20 days ago

        LLMs generally struggle to tell the difference between obtuse and clear language, so that wont slow them down. A better attack would be to praise their work and continually ask them to expand upon its scope and integrate it with more and more things every time they submit. The expansion and integration targets can, and should, be nonsensical.

  • CADmonkey@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    21 days ago

    I (for now) have a job that doesn’t require the use of AI, is there some way I can waste tokens using someone’s customer facing chatbot?