So Expensive, A Caveman Can Do It

A few years back a company had an ad campaign with a discouraged caveman who was angry because the company claimed their website was “so easy, even a caveman could do it.” Maybe that inspired [JuliusBrussee] to create caveman, a tool for reducing costs when using Claude Code.

The trick is that Claude, like other LLMs, operates on tokens. Tokens aren’t quite words, but they are essentially words or word fragments. Most LLM plans also charge you by the token. So fewer tokens means lower costs. However, LLMs can be quite verbose, unless you make them talk like a caveman.

For example, here is some normal output from Claude:

Sure! I’d be happy to help you with that. The issue you’re experiencing is most likely caused by your authentication middleware not properly validating the token expiry. Let me take a look and suggest a fix.

After Caveman that is reduced to:

Bug in auth middleware. Token expiry check use < not <=. Fix:

Turns out, you can understand the caveman output just fine.

There are a few rules. Caveman removes filler words, but knows to keep technical terms, code blocks, and error messages intact. It also outputs normal messages for things like commits.

As the website says: “Caveman not dumb. Caveman efficient. Caveman say what need saying. Then stop. If caveman save you mass token, mass money — leave mass star.”

If you want to code with an LLM, make sure you understand the terms of service. If you want to learn more about how LLMs work with tokens and other details, but want to skip the math, we can help with that.

14 thoughts on “So Expensive, A Caveman Can Do It

  1. The tool is basically an extensive prompt in a skill.md file so the LLM has this capability available when needed. It’s often interesting to look at the prompt:

    Grammar

    Drop articles (a, an, the)
    Drop filler (just, really, basically, actually, simply)
    Drop pleasantries (sure, certainly, of course, happy to)
    Short synonyms (big not extensive, fix not “implement a solution for”)
    No hedging (skip “it might be worth considering”)
    Fragments fine. No need full sentence
    Technical terms stay exact. “Polymorphism” stays “polymorphism”
    Code blocks unchanged. Caveman speak around code, not in code
    Error messages quoted exact. Caveman only for explanation

    The complete skill can be viewed here:
    https://github.com/JuliusBrussee/caveman/blob/main/caveman/SKILL.md

    1. exactly , and by time it will get simpler and simpler , and humans and their ability to express themselves abstract will evolve backwards and with that culture ,skills and knowledge is gone .

  2. “I’m just a simple caveman, Your Honor. Your modern technology like phones and cars frighten me! But even I can see that my client isn’t guilty of what he have been accused of.”

Leave a Reply to KevinCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.