← Catalog

creole-llm

Training-free context compaction for coding agents: Creole, a compact working language for notes, plans and replies, plus compaction of long sessions into a small session graph of the task, the user's constraints and the current work.

Package

Install

Install with PiG

pig install npm:creole-llm

Install with Pi

pi install npm:creole-llm
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./skills"
  ],
  "extensions": [
    "./extensions/creole.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 2.0.0 (README.md). PiG does not review it.

creole-llm

Fewer tokens. Same work. The agent keeps what matters when the context fills up.

Tests Works with 20+ agents MIT license

20% to 45% lower cost than plain Claude Code
Mean over three scripted tasks, at lowest, default and max effort on Haiku 4.5, Sonnet 5.5 and Opus 5.5. One session per task and setting; all 27 Creole sessions passed their task. Claude Code 2.1.309. On Codex, Creole used more tokens than plain Codex in 7 of 9 sessions. Details.


Install

Claude Code:

claude plugin marketplace add gluppler/Creole-LLM
claude plugin install creole@creole-llm

Other agents:

AgentInstall
GitHub Copilot CLIcopilot plugin marketplace add gluppler/Creole-LLM, then copilot plugin install creole@creole-llm
Devin CLIdevin plugins install gluppler/Creole-LLM
Grok Buildgrok plugin install gluppler/Creole-LLM --trust
OpenCodeadd "creole-llm" to plugin in opencode.json
npm (any tool that installs packages)npm install creole-llm
Codex, Cursor, Qoder, omp, piinstall from a clone: INSTALL.md
Any agent with skillsnpx skills add gluppler/Creole-LLM
Any agent that reads AGENTS.md or a rules foldercopy AGENTS.md, or the rules file for your agent

Update (Claude Code): claude plugin marketplace update creole-llm, then claude plugin update creole@creole-llm, and restart.

Every agent, updating, uninstalling and the data Creole leaves behind: INSTALL.md.

What it does

creole-llm is a plugin that makes a coding agent cheaper on long sessions without forgetting the task, by teaching it Creole, a compact working language. No training, no GPU, no second model.

  1. A compact working language. The agent thinks, plans and replies in plain English words in the shape of code: one fact per line, no filler, every number and error kept.
  2. Compaction that keeps the task. When the context fills, the conversation becomes a session graph of about 250 words (task, the user's constraints word for word, what is built, decisions, open issues, the last step) plus the user's own messages.
  3. One record for every agent. Subagents start from the session graph and merge what they learn back into it, so the main agent and its subagents share one wiki.
  4. Works beside other plugins. Another plugin's rules win for what they prescribe, and after each compaction the agent is told to reload the skills it had invoked.
  5. Runs on 20+ agents. Compaction on Claude Code, Codex, Cursor, Qoder, omp and pi; the rules every turn on OpenCode and at session start on Copilot CLI; and the rules file on every agent that reads AGENTS.md or a rules folder.

Before / after

Before

6 tests are still failing:

  • test_blend_bucket_700 (util8): expects 31, got 32
  • test_clamp_bucket_723 (util8): expects 20, got 21
  • ... four more ...

All 6 failures are in util8.py, which you explicitly withdrew from the task. These are not to be fixed per your constraint.

After

Done: issues 1-24 fixed; the 6 you withdrew still fail, as asked.
checked: full suite -> 24 pass, 6 fail

The rules

Full text in SKILL.md.

  1. One fact, step or action per line; drop filler, keep every meaning-bearing word.
  2. Read the code a change touches first; take the first option that fully works.
  3. The shortest working diff wins; never cut validation, safety or accessibility.
  4. A user's constraint on a file beats a listed task, for the whole session.
  5. Find every target with one search; run the checks once, after the last edit.
  6. Reply with the outcome, what was checked, and any next action. Nothing else.
  7. Another skill or plugin in force wins for what it prescribes.

Numbers

Claude Code

Cost per session as Claude Code reports it, which may differ from what a subscription bills. Each plugin runs in its own sandbox with a pinned copy. One session per task and setting on Claude Code 2.1.309. Lowest is thinking off on Haiku and --effort low elsewhere; default sets no flag; max is --effort max.

Mean cost per session for Creole, plain Claude Code and each compared plugin, by model and effort. The tables below hold the same numbers.

Bug fixes, the mean of a short fix and a 30-issue review (lowest in bold):

ModelEffortCreolenativePonytaili-have-adhdCaveman
Haiku 4.5lowest$0.228$0.362$0.334$0.263$0.250
Haiku 4.5default$0.264$0.298$0.417$0.283$0.299
Haiku 4.5max$0.243$0.374$0.286$0.363$0.288
Sonnet 5.5lowest$0.251$0.295$0.301$0.330$0.313
Sonnet 5.5default$0.237$0.303$0.314$0.338$0.333
Sonnet 5.5max$0.392$0.871$0.574$0.627$0.524
Opus 5.5lowest$0.539$0.628$0.590$0.690$0.675
Opus 5.5default$0.498$0.571$0.607$0.706$0.586
Opus 5.5max$0.705$1.085$1.034$1.457$0.918

A review with two subagents:

ModelEffortCreolenativellm-wiki
Haiku 4.5lowest$0.615$0.738$1.021
Haiku 4.5default$0.513$0.764$0.902
Haiku 4.5max$0.544$0.884$0.892
Sonnet 5.5lowest$0.541$0.785$0.849
Sonnet 5.5default$0.456$0.795$0.940
Sonnet 5.5max$1.352$2.152$2.207
Opus 5.5lowest$1.174$1.685$1.821
Opus 5.5default$1.200$1.602$1.913
Opus 5.5max$2.306$3.759$4.444

Ponytail's own tasks (four small coding jobs from its benchmark, graded by its own checks: the rate limiter and the slug reuse by their behaviour, the CSV and JSON scripts only by whether a Python file was written and compiles): tasks passed, Python source lines changed per task with tests aside (Ponytail's own measure), and cost.

ModelEffortCreole passednative passedPonytail passedCreole linesnative linesPonytail linesCreole costnative costPonytail cost
Haiku 4.5lowest4/44/44/495.073.042.3$0.037$0.035$0.038
Haiku 4.5default4/44/43/453.344.39.8$0.042$0.033$0.036
Haiku 4.5max4/44/44/467.057.530.0$0.039$0.040$0.041
Sonnet 5.5lowest4/44/44/448.359.024.3$0.050$0.045$0.049
Sonnet 5.5default4/44/44/455.374.535.8$0.056$0.065$0.056
Sonnet 5.5max4/44/44/466.8200.532.8$0.346$0.588$0.303
Opus 5.5lowest4/44/44/451.571.532.3$0.122$0.114$0.107
Opus 5.5default4/44/44/464.892.548.0$0.153$0.156$0.127
Opus 5.5max4/44/44/477.0196.036.0$0.854$2.138$0.750

Against each plugin at its own thing, across the nine settings (Creole better / tied / plugin better):

PluginIts own thing, as measuredResultCost
Ponytailsource lines changed, on Ponytail's own tasks0 / 0 / 92 / 0 / 7
Ponytaillines per fix, on the bug fixes0 / 9 / 09 / 0 / 0
i-have-adhdwords in the final reply7 / 0 / 29 / 0 / 0
Cavemanoutput tokens5 / 0 / 49 / 0 / 0
llm-wikisubagent session passing its task and hard rules1 / 8 / 09 / 0 / 0
  • Cheaper than plain Claude Code at all nine settings over the three tasks, but not on every task: the short fix cost more at six of them.
  • All 27 Creole sessions passed their task and broke no hard rule. Ponytail failed one of its own tasks (Haiku 4.5, default: no file written, which also lowers its line count there).
  • Ponytail writes less code on its own tasks at every setting, often half of Creole's, and costs less there at seven settings. Creole does not beat it at that.
  • Caveman's output tokens and Creole's are within 12% of each other at every setting.
  • Replies to the review's last question, checked against the session: Creole and i-have-adhd each gave the right failing-test count in the first line and named the cause in 9 of 9, and showed the tests run in 6 of 9; Creole's replies averaged 45 words, i-have-adhd's 81.
  • Creole's bug-fix and subagent sessions are from a later run than the other arms (same tasks, sandboxes and Claude Code version). One session per cell, so these are observations, not verdicts; single sessions vary by about a quarter, which is more than some of these gaps.
  • Not tested: Fable 5.1, which needs usage credits. Not shown: lower cost on every kind of task, public benchmark scores, or five hours of maximum-effort work.

Codex

Tokens per session as Codex records them, cache reads included. The account is a subscription and reports no dollar figure, so no cost is shown. Same tasks, oracles and pinned plugins as on Claude Code; one session per task and arm at the lowest effort (low) on GPT-6.1-Sol, GPT-6-Astra and GPT-6.1-Terra; Codex CLI 0.167.0 and 0.169.0. All 75 sessions ran to the end.

Tokens per session on Codex at the lowest effort for Creole, plain Codex and each compared plugin, by model. The tables below hold the same numbers.

Creole against plain Codex, task by task:

ModelTaskCodex CLICreolenativeCreole against native
GPT-6.1-Solbugfix-two0.167.0105,98988,938+19.2%
GPT-6.1-Solbugfix-review0.167.0392,943313,906+25.2%
GPT-6.1-Solreview-subagents0.167.0796,468652,567+22.1%
GPT-6-Astrabugfix-two0.167.0109,721102,810+6.7%
GPT-6-Astrabugfix-review0.167.0350,962314,967+11.4%
GPT-6-Astrareview-subagents0.169.0 / 0.167.0779,134579,549+34.4%
GPT-6.1-Terrabugfix-two0.169.072,47180,250-9.7%
GPT-6.1-Terrabugfix-review0.169.0448,166297,071+50.9%
GPT-6.1-Terrareview-subagents0.169.0644,957717,191-10.1%

Bug fixes, the mean of the short fix and the review (fewest in bold):

ModelCreolenativePonytaili-have-adhdCaveman
GPT-6.1-Sol249k201k248k297k251k
GPT-6-Astra230k209k200k259k251k
GPT-6.1-Terra260k189k248k261k247k

A review with two subagents:

ModelCreolenativellm-wikiCreole deltas merged
GPT-6.1-Sol796k653k780k2 of 2
GPT-6-Astra779k580k815k1 of 2
GPT-6.1-Terra645k717k732k2 of 2

Ponytail's own tasks: tasks passed, then source lines changed and tokens per task over the tasks all three arms passed (like for like).

ModelCreole passednative passedPonytail passedTasks all passedCreole linesnative linesPonytail linesCreole tokensnative tokensPonytail tokens
GPT-6.1-Sol3/44/44/4336.039.338.356k52k55k
GPT-6-Astra3/44/44/4335.342.336.356k52k54k
GPT-6.1-Terra4/44/44/4437.343.825.565k55k79k

Against each plugin at its own thing, across the three models (Creole better / tied / plugin better):

PluginIts own thing, as measuredResultTokens
Ponytailsource lines changed, on Ponytail's own tasks2 / 0 / 11 / 0 / 2
Ponytaillines per fix, on the bug fixes0 / 3 / 00 / 0 / 3
i-have-adhdwords in the final reply0 / 0 / 33 / 0 / 0
Cavemanoutput tokens1 / 0 / 22 / 0 / 1
llm-wikisubagent session passing its task and hard rules0 / 3 / 02 / 0 / 1
  • The Claude Code savings did not carry over. Creole used more tokens than plain Codex in 7 of 9 sessions (6 of the 8 run on one CLI version), and over the three tasks 6.5% to 24.3% more at every model. On Codex a hook cannot remove history: Codex compacts with its own summary and Creole restores its graph after it, so the language and the graph are added to the context instead of replacing it.
  • Every Creole bug-fix and subagent session passed and broke no hard rule (9 of 9), and 5 of its 6 subagent deltas were merged exactly (the sixth subagent's final update was not recorded).
  • Creole failed 2 of Ponytail's 12 tasks: on GPT-6.1-Sol and GPT-6-Astra it put the JSON configuration loader in its reply and wrote no file. Native and Ponytail passed all 12.
  • Replies to the review's last question: every arm gave the right failing-test count in the first line and named the cause. Creole showed the tests run in 3 of 3 and every other arm in 2 of 3, but its replies were the longest, 26 words on average against 18 for i-have-adhd.
  • Lifecycle on all ten models the account offered: 118 of 120 checks passed (usage read, one language section per prompt, the graph stored and restored after Codex's own compaction, a resume restoring once, language off, wiki off, graph-shaped user text kept as data). Two failed, both at a second compaction: on GPT-6-Luna the restored graph lacked a corrected rate and a reopened issue; on GPT-6-Sol it held both, but it was a full graph two passes on instead of the expected single delta.
  • Not run: default and highest effort, and the comparison on the seven other models (two GPT-6-Sol sessions aside); the collection stopped at the account's usage limits. Not shown: cost in dollars.

Support

AgentRouteTier
Claude Code 2.1.309function hooks (hooks/creole-module.mjs)live-verified
Codex CLI 0.167.0, 0.169.0command hookslive-verified; 118 of 120 lifecycle checks passed
omp, piextension (extensions/creole.ts)mock-tested; no session wiki
Windsurf, Cline, Kirotheir rules foldersinstruction
GitHub Copilot.github/copilot-instructions.mdinstruction
Gemini CLI, Qwen Code, Kimi CodeAGENTS.md as context, .kimi-plugin/instruction
OpenCodeserver plugin (.opencode/plugins/creole.mjs)mock-tested
Cursor, Qoderplugins with Creole's hooks (or a rules file)mock-tested
GitHub Copilot CLIplugin, rules at session startmock-tested
Devin CLI, Grok Buildtheir plugin installersinstruction
Amp, Zed, Jules, Goose, Junie and any agent that reads AGENTS.mdAGENTS.mdinstruction

Tiers are defined in INSTALL.md.

Settings

SettingDefault / behavior
CREOLE_HEADROOM_TOKENS100000; compact once the context has grown this far past its smallest size (below 100k, the window's share binds)
CREOLE_THRESHOLD_PERCENT60; never let the context pass this share of the window first
CREOLE_CONTEXT_WINDOW_TOKENSFor routes without a host-reported window
CREOLE_MAX_WORDS250; the graph's target, soft after one correction
CREOLE_LANGUAGEOn; off removes the language and its work and reply rules
CREOLE_WIKIOn; off stops the session wiki and the codebase map, and deletes nothing
CREOLE_AUTO_COMPACT=0Stops the compactions the omp extension starts
CREOLE_CHECKPOINTgraph; natural and proposal exist for comparison experiments only

Nothing to configure: the defaults adapt on their own (an unset headroom grows when compactions come close together and shrinks back). To override one, set its CREOLE_* environment variable. Claude Code's own auto-compaction settings win over Creole's. Each compaction says what it did, or why Creole could not and the host compacted instead; --debug-file <path> logs every turn, compaction and subagent merge.

Privacy. Session records (the user's messages with known credential patterns removed, and the last graph) stay on your machine, capped at 256 KiB per session and 3 MiB in all, and are removed once a session has gone 30 days without use. Redaction is pattern-based. Where they live and how to delete them: INSTALL.md.

Access. No dependencies, no install scripts, no network. Creole reads the host's plugin folder and data folder variables (CLAUDE_PLUGIN_ROOT, CLAUDE_PLUGIN_DATA, PLUGIN_ROOT, PLUGIN_DATA, COPILOT_PLUGIN_DATA, CURSOR_VERSION, Claude Code's CLAUDE_PLUGIN_OPTION_* settings) and its own CREOLE_* settings, and no other environment variable. It reads the host's session log for token use, its skill file, and, for the codebase map, the first 64 KiB of the project's source files and git ls-files (run with fsmonitor off; CREOLE_WIKI=off turns the map off). It writes only in its data folder, and /creole compress rewrites only the file you name.

Limits

  • Compaction is lossy: the agent may re-read what the graph left out.
  • A graph is refused when a constraint is not the user's words or a code name, path or quoted error is not in the conversation (on Claude Code's module; elsewhere, constraints only). Its other wording is a model's and is not checked.
  • An edit to a file the user said to leave alone is refused (Claude Code's module only; a clause it can't read, or a change made through a shell command, gets through).
  • The language section (about 3,500 characters) rides on every request.
  • On Codex and the other command-hook hosts, Creole cannot shrink the context; it adds the graph and restores it after the host's own compaction. On Codex this cost more tokens than no plugin in 7 of 9 measured sessions.
  • On Codex at the lowest effort, 2 of 12 small build tasks ended with the code in Creole's reply and no file written.
  • A subagent's rows are a model's words; of two subagents changing one row, the later merge wins.
  • Labels around the graph and the codebase map do not stop a model from following a hostile line inside them.

Development

npm test

Node 22.18 or later. Start at CONTRIBUTING.md. The rules files for other agents are written from the skill: after editing skills/creole/SKILL.md, run node scripts/sync-rules.mjs (the tests fail while they differ). The CP2 final report is in thesis/.

License

MIT.