claudeers.
// Claude Skills

paleo

🦴 paleo β€” token-saving skills for LLM agents: compress output, trim context, cap budget (Claude Code / Codex / Gemini / Hermes)

// Claude Skills[ cli ][ api ][ web ][ claude ]#claude#agent-skills#ai-agents#ai-efficiency#automation#claude-code#codex#context-window#skillsβ—· MIT$open-sourceupdated about 1 month ago
Repository unavailable
0/100
last commit about 1 month ago
last release about 1 month ago
releases 1
open issues 0

Install with your AI

This project is repository unavailable β€” not recommended for automated install, so we don't generate an auto-install prompt for it. Read the repo and decide for yourself.

// compatibility

Platformscli, api, web
Operating systemsβ€”
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguagePython

paleo logo

Β· Β· Β· Β· Β· Β·

🦴 paleo

Token-saving skills for LLM agents β€” cut output & context tokens without choking the model.

Why Β· See it Β· Features Β· Skills Β· Combos Β· Quick Start Β· Benchmarks Β· Comparison Β· Tips Β· Install

Why paleo?

  • Tokens cost money and latency. Every trimmed token means faster, cheaper inference.
  • One-size-fits-all prompting fails. Sometimes you want terse output, sometimes a hard budget, sometimes just no fluff. paleo gives each as a separate, well-scoped skill.
  • Skills stay minimal. Every SKILL.md is written terse on purpose β€” loading one costs less context than a long prompt.

See it (Before / After)

paleo compresses delivery, not meaning. Code, commands, and technical terms stay byte-exact.

Normal agent🦴 paleo
"The re-render happens because you create a new object literal on every render. That inline object is a fresh reference each time, so React sees a changed prop and re-renders. Wrap it in useMemo to keep a stable reference.""New object each render β†’ new ref β†’ re-render. Wrap in useMemo. Stable ref = no re-render."
"To authenticate requests, add middleware that checks the token on each request and returns 401 if it is missing or expired.""Add auth middleware. Check token per request. 401 if missing/expired."

[!NOTE] paleo keeps technical accuracy at 100% β€” it drops filler, not facts.

Features

  • Modular & composable β€” load one skill or all seven, mix per task.
  • Output + context savings β€” ~50–70% fewer output tokens (median ~54% on a 6-task sample β€” see BENCHMARK.md), plus proactive context trimming.
  • Auto-detect β€” paleo-auto watches session state and enables the right skills automatically. No thinking required.
  • Production-safe β€” compresses output and context only; never rewrites your code.
  • Hard token budget β€” paleo-budget caps spend and summarizes the tail.
  • Cross-agent β€” open Agent Skills standard: Claude Code, Codex, Gemini CLI, Qwen Code, OpenCode, Cursor, GitHub Copilot, Cline, Windsurf + 40+ agents via npx skills add.
  • Zero-setup triggers β€” plain English phrases, no slash commands to register.
  • Low overhead β€” each SKILL.md is intentionally terse, so loading stays cheap.
  • Open & extensible β€” drop in your own token-saving skills.

Skills

SkillWhat it doesTrigger example
paleoTerse output mode β€” cut output tokens ~50–70%, keep code/terms exact.paleo mode Β· be brief Β· save tokens
paleo-autoπŸ†• Zero-touch auto-detection β€” watches session & enables the right skills automatically.paleo-auto Β· auto paleo Β· enable auto-save
paleo-budgetHard token budget per task β€” cap spend, summarize if exceeded.budget 2000 Β· stay under 2000 tokens
paleo-trim-contextProactively trim/summarize context to save tokens without losing task state.trim context (auto on long sessions)
paleo-converseCondense old chat turns + merge duplicate messages; keep last N verbatim.condense chat Β· compress conversation Β· paleo-converse N=8
paleo-summaryTight intisari of bulky tool output / logs / diffs / dumps.tldr Β· condense this Β· summarize output
paleo-jsonMinify & compact structured/JSON output, stay parseable.compact json Β· minify

paleo is the base β€” keep it on. Layer the rest by what you're doing:

SituationComboWhy
Daily driver (long / chatty sessions)paleo + paleo-trim-contextBase + automatic context hygiene.
History piling up+ paleo-converseCondense + merge duplicate turns once a session gets long.
Debugging / bulky tool outputpaleo + paleo-summary + paleo-jsonLogs β†’ intisari; JSON β†’ minified.
Tight cost / hard limitpaleo + paleo-budget (+ paleo-trim-context)Hard ceiling + shrink context first.
Max savings (all on)all seven skillsOverkill daily, but safe for extreme thrift.

[!TIP] You rarely need every skill at once. paleo + paleo-auto is the default for most users β€” auto-detect handles the rest. For manual control: paleo + paleo-trim-context is the baseline; add paleo-converse for messy chats, paleo-summary / paleo-json for heavy tool output, and paleo-budget only when a hard cap is required.

Quick Start

# 1. Clone the collection
git clone https://github.com/mocasus/paleo.git

# 2. Claude Code β€” one plugin bundles all 7 skills
claude plugin marketplace add https://github.com/mocasus/paleo
claude plugin install paleo@paleo

# 3. Any agent via the open Agent Skills registry (installs to 40+ clients)
npx skills add mocasus/paleo

Then just talk to your agent β€” no command to register:

paleo mode Β· save tokens Β· budget 2000 Β· trim context

Benchmarks

Real, reproducible numbers β€” not hand-waved claims.

ModelTasksMedian output savingsMean
claude-sonnet-4.5653.8%45.1%

Full method, per-task table, and the runnable harness are in BENCHMARK.md. Rerun on your own stack:

export IDROUTER_API_KEY=your_key
python3 bench/benchmark.py --model claude-sonnet-4.5

[!TIP] Savings are task-dependent: biggest on verbose generative work (code, walkthroughs, comparisons β€” 54–79%), smaller on already-compact factual answers. paleo also cuts context tokens via paleo-trim-context, a layer a terse-persona prompt cannot reach.

Comparison

paleo is often compared with two other token-saving approachesa terse-persona system prompt and Ponytail (a code-reuse coding skill). Here is how they differ.

Dimension🦴 paleoTerse-persona promptPonytail
Form6 composable skillsSingle system prompt (persona)Single coding skill / workflow
What it targetsOutput tokens + context + conversation turnsOutput tokens onlyVolume of code the agent writes (+ MCP caching)
GranularityPer-task, mix & matchOne modeOne workflow
Touches your code❌ No (output/context only)❌ No⚠️ Yes β€” refactors / reuses code
Context & reasoning savingsβœ… paleo-trim-context❌ Noneβ—‘ Partial (caching)
Hard budgetβœ… paleo-budget❌❌
Cross-agentβœ… 40+ agents (open standard)βž– Portable prompt, but monolithicβž– Claude Code skill
ActivationPlain phrasesEdit system promptInstall + invoke skill
Reasoning-model safeβœ… Never compresses thought❌ Can raise tokens (e.g. +3% on Opus)βž–
Known riskNone (output-only)Can fight "expand" heuristics; may raise tokens on reasoning modelsRefactor can change behavior
Open benchmarkβœ… Reproducible harness❌ Claim only❌ Claim only

[!TIP] They're complementary, not rivals. Ponytail cuts the code you have to write; paleo cuts the tokens in the conversation. Terse-persona prompts proved a terse prompt helps output β€” paleo takes that same idea and makes it modular, adds context-trimming and a hard budget, and drops the persona gimmick. Use Ponytail for code-heavy work and paleo for chatty, long sessions.

FAQ

Prompt dipangkas, context dipotong, kualitas gak bakal sama dong?

Gak lebih jelek β€” malah sering lebih bagus. paleo bukan potong buta, dia buang redundansi (ulang-ulang, filler, boilerplate hasil tool, whitespace), bukan info esensial. Constraint, error, code, keputusan tetap utuh. Prompt lo gak diapa-apain β€” yang di-trim itu context kerja agent (hasil tool berulang, riwayat convo). Context bersih = model fokus ke signal, bukan lost track karena noise. Benchmark: median 53.8% token turun, kualitas task gak drop. Trade-off jujur: budget ekstrem (token cap rendah banget) bisa turun kualitas, tapi setting optional. Intinya: lebih murah & cepet, kualitas tetap.

System prompt itu buat bikin model bagus, klo dipangkas banyak yg ilang dong?

paleo gak pernah sentuh system prompt. System prompt = aturan main, utuh 100%. Instruksi yang define behavior gak diapa-apain β€” paleo jalan setelah system prompt ke-load, cuma kerja di context dinamis. Yang di-trim itu context kerja (tool output berulang, convo kepanjangan), bukan instruksi. System prompt kecil dibanding noise yang numpuk dari tool output. Plus bisa whitelist bagian yang mau dijaga. Efeknya kebalik: context bersih bikin model lebih patuh ke system prompt. Aturan main tetep nempel.

Bisa ngerusak code / formatting gak?

Gak. paleo melindungi code block, structured output (JSON/table), dan error message secara default. Yang di-compress cuma prose bertele-tele & tool output redundant. Kalo masih ragu, bisa whitelist file/section tertentu biar 100% gak ke-trim.

Ini butuh API key atau service eksternal?

Enggak. paleo murni teknik prompt/context β€” gak ada server, gak ada API call, gak ada dependensi luar. Skill-nya tinggal di-load ke agent lo, jalan di lokal. No overengineering.

Token savings-nya beneran kelihatan di billing?

Kelihatan, terutama di session panjang & agent loop. Tiap token yang gak dikirim = gak dibayar. Benchmark kita median 53.8% turun di context + output. Di agent yang muter 20+ tool call, itu selisih gede per run.

Works di semua model/provider?

Iya. paleo model-agnostic β€” kerja di level prompt & context, bukan di model tertentu. Claude, GPT, Gemini, GLM, Qwen, lokal β€” semua bisa. Sifatnya instruksi, bukan fine-tune.

Beda sama auto-compaction bawaan agent (Claude compaction, dll)?

Compaction bawaan itu generic & reaktif (baru jalan pas context mau penuh, sering blind truncation). paleo proaktif + selektif: jaga info esensial, buang redundansi, configurable, ada safety net (whitelist). Plus paleo juga ngurus output verbosity & tool-result summarization, bukan cuma convo history.

Cara enable/disable per task?

Trigger pakai natural language (skip preamble, ringkas output, trim context) β€” gak perlu slash command. Mau matiin? Tinggal gak dipanggil, atau cabut skill dari agent. No global lock-in.

Tips & Triggers

paleo activates from natural-language triggers β€” no slash command to register. Type the trigger, the skill loads and applies.

Activation & switches (plain phrases)

paleo β€” terse output

  • On: paleo mode Β· be brief Β· terse Β· compress output Β· save tokens
  • Level: paleo full (default) Β· paleo lite Β· paleo ultra
  • Off: stop paleo Β· normal mode

paleo-budget β€” token cap

  • On: budget 2000 Β· stay under 2000 tokens Β· token limit
  • Off: no budget Β· unlimited

paleo-trim-context β€” auto on long sessions; trim context to force. paleo-auto β€” paleo-auto Β· auto paleo β€” off: disable paleo-auto Β· manual paleo paleo-converse β€” condense chat Β· compress conversation Β· paleo-converse N=8 paleo-summary β€” tldr Β· condense this Β· summarize output paleo-json β€” compact json Β· minify

Combo: paleo + paleo-budget = max savings. Add paleo-trim-context on long sessions, paleo-converse on chatty ones, paleo-summary for bulky tool output.

Installation

πŸ”΅ Claude Code
claude plugin marketplace add https://github.com/mocasus/paleo
claude plugin install paleo@paleo
🟒 Codex
npx skills add mocasus/paleo
🟑 Gemini CLI
mkdir -p ~/.gemini/skills && cp -r skills/* ~/.gemini/skills/
🟣 Hermes Agent
hermes skills install mocasus/paleo
# Or copy skills manually
cp -r skills/paleo* ~/.hermes/skills/
⚫ Cursor
npx skills add mocasus/paleo
πŸ”· GitHub Copilot
npx skills add mocasus/paleo
🌊 Windsurf
npx skills add mocasus/paleo
πŸ“¦ Universal (any agent)
git clone https://github.com/mocasus/paleo.git
# copy skills/paleo*/ into your agent's skills directory

All 7 skills load automatically β€” paleo, paleo-trim-context, paleo-auto, paleo-budget, paleo-converse, paleo-summary, paleo-json.

Full per-agent steps in INSTALL.md. See real compression numbers in BENCHMARK.md.

Hermes Integration

paleo is battle-tested on Hermes Agent by @mocasus β€” first user & case study.

# Install via Hermes skills manager
hermes skills install mocasus/paleo

# Or by path
cp -r skills/paleo* ~/.hermes/skills/

Then in your Hermes chat (Telegram, WhatsApp, etc.):

> paleo
🦴 paleo full β€” terse output, code-first

> build a REST API with FastAPI
[terse, code-first response β€” no preamble, no filler]

> paleo-auto
🦴 paleo-auto: watching session... enabled paleo + trim-context (23 turns)

> budget 2000
🦴 paleo-budget: 2000 output tokens, hard mode

Hermes tips:

  • Start with paleo β€” instant token savings on every reply.
  • paleo-auto for sessions >15 turns (watches context fill & enables the right skills).
  • Combine paleo + budget for expensive models via provider routing.
  • paleo-converse kicks in when your agent loop hits 60%+ context cap.

Custom Skills

paleo is open β€” wire your own token-saving skills:

  1. skills/<your-name>/SKILL.md with name + description frontmatter.
  2. Add the skills directory to .claude-plugin/plugin.json β€” the skills field is a path string (e.g. "./skills/"), not an array. Gemini + other agents pick skills up natively; no extra manifest needed.
  3. Bump version badge (this file + footer) + plugin version.
  4. Commit + push.

No repo edit needed β€” just drop any SKILL.md into your agent's skills dir (e.g. ~/.hermes/skills/<name>/). paleo loads whatever it finds under skills/.

User Stats

Share your numbers, get listed. PR your monthly token savings to this table.

User / TeamAgentTokens/month savedSkills
Add yours β†’β€”β€”β€”

How to measure:

  1. Use agent 1 week without paleo β†’ note token usage from provider dashboard
  2. Enable paleo (or paleo-auto) 1 week β†’ note new usage
  3. Diff Γ— 4 = estimated monthly savings

Contributing

Contributions are welcome β€” new token-saving skills, better triggers, or benchmark data.

  • Open an issue describing the skill or improvement.
  • Keep SKILL.md files terse (they load into context).
  • Add name + description frontmatter and register in both plugin manifests.
  • Bump the version badge and version fields before opening a PR.

License

MIT β€” see LICENSE.


Sponsors

Kliqo.co

Kliqo.co sponsors paleo Β· kliqo.co

🦴 paleo · v2.5.0 · MIT

// faq

What is paleo?

🦴 paleo β€” token-saving skills for LLM agents: compress output, trim context, cap budget (Claude Code / Codex / Gemini / Hermes). It is open-source on GitHub.

Is paleo free to use?

paleo is open-source under the MIT license, so it is free to use.

What category does paleo belong to?

paleo is listed under skills in the Claudeers registry of Claude-compatible tools.

2 views
β˜… 17 stars
unclaimed
updated about 1 month ago

// embed badge

paleo on Claudeers
[![Claudeers](https://claudeers.com/api/badge/paleo.svg)](https://claudeers.com/paleo)

// retro hit counter

paleo hit counter
[![Hits](https://claudeers.com/api/counter/paleo.svg)](https://claudeers.com/paleo)

// reviews

// guestbook

0/500

// related in Claude Skills

πŸ”“

An agentic skills framework & software development methodology that works.

// skillsobra/⟨ShellβŸ©β˜… 272,506β—· MIT[ claude ]
πŸ”“

Public repository for Agent Skills

// skillsanthropics/⟨PythonβŸ©β˜… 169,406[ claude ]
πŸ”“

πŸ’« Toolkit to help you get started with Spec-Driven Development

// skillsgithub/⟨PythonβŸ©β˜… 129,208β—· MIT[ claude ]
πŸ”“

AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…

// skillsGraphify-Labs/⟨PythonβŸ©β˜… 106,387β—· MIT[ claude ]
β†’ see how paleo connects across the ecosystem