Prompt engineering has been stuck in a weird place. Everyone agrees it matters. Nobody agrees on what to call the parts, and most people treat token waste like weather: annoying but unavoidable.

Two recent developments change that calculus. The PICCO framework, published this month by David Cook at Mayo Clinic, gives prompts a proper taxonomy. You can finally name what's in your prompt and talk about it with precision. Token-optimizer v5.6, an open-source tool by Alex Greensh, gives you a way to measure and reduce the waste that taxonomy helps you identify. One lets you classify. The other lets you cut.

Together they signal something bigger: prompt engineering is leaving the folklore phase and entering the measurement phase.

The Problem: You Can't Fix What You Can't Name

Ask five people to name the parts of a prompt and you get five different lists. Some say "system prompt and user message." Others break it into "role, task, context, format." A few add constraints. A few omit them. The inconsistency isn't cosmetic. It means you can't compare prompts, can't audit them, and can't systematically improve them.

David Cook ran into this problem from the medical education side, of all places. Cook is a physician at Mayo Clinic with a background in educational research, where classification schemes are table stakes. You can't study what you can't define. He found 11 published prompting frameworks and discovered they all used different terminology for overlapping concepts. Some called it "role," others "persona." Some had an "examples" element, others folded that into "context." Nobody was wrong, but nobody was speaking the same language.

His paper, "The PICCO Framework for Large Language Model Prompting: A Taxonomy and Reference Architecture for Prompt Structure" (arXiv:2604.14197, April 2026), does two things.

First, a taxonomy

Cook distinguishes five concepts that people keep conflating:

  • Prompt frameworks: the structural templates people use to organize prompts (CRISPE, RISE, CREATE, etc.)
  • Prompt elements: the actual components inside a prompt (instructions, context, persona)
  • Prompt generation: the process of constructing a prompt
  • Prompting techniques: methods like few-shot, chain-of-thought, self-critique
  • Prompt engineering: the iterative discipline of improving prompts over time

These are related but not interchangeable. A framework is a container for elements. A technique is a way to use those elements. Engineering is the iterative loop that ties it all together. Mixing them up has led to years of confused discourse.

Second, the PICCO reference architecture

From those 11 frameworks, Cook derived a five-element reference architecture. Every well-structured prompt, he argues, contains these components:

  • P: Persona. Who the model should be. Not just "act as a lawyer" but the full identity, tone, expertise, and perspective the model adopts for the task.
  • I: Instructions. What the model should do. The core directive: the task, the steps, the rules.
  • C: Context. What the model needs to know. Background facts, reference material, domain knowledge, prior conversation.
  • C: Constraints. What the model should not do. Boundaries: length limits, format rules, safety rails, exclusions.
  • O: Output. What the result should look like. Format, structure, length, style, medium.

The framework defines the function, scope, and relationship of each element. Persona frames everything else. Instructions drive action. Context grounds it. Constraints bound it. Output specifies the deliverable.

Cook is explicit that PICCO is not an optimization method. It is a classification scheme. A vocabulary. A way to look at a prompt and say: "This prompt has instructions and context but no constraints and no output format. That's probably why the results are inconsistent."

The Other Problem: You Can't Cut What You Can't Measure

Even if you can name every part of your prompt, there's a separate challenge. Most prompts are bloated. They carry dead weight that costs tokens, degrades quality, and speeds up context exhaustion.

Alex Greensh's token-optimizer, now at v5.6, tackles this head-on. It's an open-source tool (650+ stars on GitHub, PolyForm Noncommercial license) that runs as a plugin for Claude Code and OpenClaw. The tagline is blunt: "Your AI is getting dumber and you can't see it."

Two kinds of waste

The tool identifies two distinct waste streams:

Runtime waste (15-25% of context): verbose command output, long API responses, noisy logs. This is the stuff most compression tools handle. They strip the noise from npm install output or git diff results.

Structural waste (75-85% of context): bloated config files, unused skills, duplicate system prompts, stale memory entries, dead MCP servers. Almost nobody touches this, and it's where most of the real waste lives.

A typical power user burns 50-70K tokens before typing a single word. That's system prompt, tool definitions, skill descriptions, CLAUDE.md, MEMORY.md. Most of it never changes between sessions. Some of it is never even used.

What v5.6 actually does

The "Activity Intelligence + Savings Measurement" release introduced two key capabilities:

  • Activity intelligence: the dashboard now tracks which skills and MCP servers you actually invoke versus which ones just sit in your config eating tokens. It surfaces adoption trends so you can see, over time, which installed skills you never call.
  • Savings measurement: a cumulative tracker that measures how many dollars each optimization saved. Loop detection estimates 15K tokens saved per caught loop. Compaction avoidance, checkpoint restores, and archive hits all get dollar amounts attached. The claim from real usage data: $1,500 to $2,500 per month for a heavy Opus user running 942 sessions over 30 days.

But the core feature set goes deeper:

  • Structural audit: scans CLAUDE.md, MEMORY.md, skill definitions, and MCP configs for unused components, orphaned entries, and duplicates. Flags what's dead.
  • Smart compaction: checkpoints session state at multiple fill thresholds (20%, 35%, 50%, 65%, 80%) and before agent fan-out. After auto-compact fires and destroys 60-70% of your conversation, token-optimizer restores what the summary dropped.
  • Tool result archiving: large outputs get archived to disk and replaced with short previews. The model can retrieve the full output later if needed, without burning context tokens on the re-read.
  • Quality scoring: a 7-signal quality score tracks context degradation in real time. Quality drops as context fills. MRCR accuracy drops from 93% to 76% between 256K and 1M tokens. The dashboard shows you exactly when and where that happens.
  • Cache-aware design: token-optimizer never modifies content already in your context window, which preserves the prompt cache. This is a subtle but critical point. Tools that edit mid-conversation break your cache and cost you more than they save.

Everything runs locally. Zero dependencies. Zero telemetry. Zero context tokens consumed. The dashboard is a single HTML file served from localhost.

Where PICCO and Token-Optimizer Intersect

Here's the thing that makes both developments interesting at the same time: they're complementary.

PICCO tells you what is in your prompt. Token-optimizer tells you how much each piece costs and whether you need it. Together you get a loop:

  1. Classify your prompt using PICCO. Break it into Persona, Instructions, Context, Constraints, Output.
  2. Measure each element's token cost with token-optimizer's structural audit.
  3. Trim the elements that aren't pulling their weight. Remove unused skills, deduplicate context, tighten constraints.
  4. Verify that quality improved (or at least didn't degrade) using the 7-signal quality score.

Without PICCO, you're trimming blindly. Without measurement, you're trimming on faith. Together you get a disciplined loop: classify, measure, trim, verify.

The PICCO framework also surfaces a specific optimization opportunity that token-optimizer is well-positioned to address. Cook's taxonomy distinguishes Context from Constraints. In practice, most prompts dump both into the same unstructured block. The model gets a wall of text that mixes "here's what you need to know" with "here's what you should avoid." Separating them is a PICCO discipline. Removing the overlap between them is a token-optimizer discipline.

The constraint audit opportunity

Consider a typical system prompt for a coding assistant. It might include:

  • A persona block ("You are a senior developer...")
  • Instructions ("Write clean, tested code...")
  • Context ("The project uses React 19 and TypeScript 5.5...")
  • Constraints ("Do not use any deprecated APIs. Do not add new dependencies without permission. Keep responses under 200 lines.")
  • Output format ("Respond with code blocks using markdown formatting.")

Now look at what often happens. The same prompt includes:

  • Redundant context that's already in the project's CLAUDE.md
  • Constraints that duplicate instructions already in the skill definition
  • Persona language that the model already internalizes from the system prompt
  • Output format instructions that apply globally and don't need repeating

PICCO gives you the categories. Token-optimizer gives you the data on which categories are over-represented. The intersection is where the real savings live.

What This Signals About the Field

Three things.

Prompts are becoming infrastructure, not art

The PICCO taxonomy treats prompts like an architecture problem. You wouldn't build a service without naming your modules. You shouldn't build a prompt without naming your elements. The fact that this framework came from medical education research, not from a Silicon Valley startup, reinforces the point. The people who depend on clear classification are the ones building it.

Measurement is replacing intuition

Token-optimizer's v5.6 release is telling. The big additions aren't new compression tricks. They're measurement tools. Activity intelligence tells you what you actually use. Savings measurement tells you what your optimizations are worth in dollars. Quality scoring tells you whether your optimizations hurt or helped.

This is the direction. The next generation of prompt tools won't just compress. They'll measure, classify, and verify. The era of "I trimmed some words and it feels faster" is ending.

The cache changes everything

Token-optimizer's insistence on cache-preserving optimization is a signal for the whole field. When your prompt cache is working, you pay 10% of the input cost on subsequent turns. Break the cache, and you pay full price. Any optimization that modifies mid-conversation context invalidates the cache and can cost more than it saves.

This constraint will shape how future tools are built. You can trim before a session starts. You can compress new content entering the window. You can checkpoint and restore around compaction boundaries. But you can't edit what's already in context without paying the cache penalty. Token-optimizer is built around this insight. Expect more tools to follow.

Getting Started

PICCO: Read the paper. It's free on arXiv (2604.14197). The taxonomy and reference architecture sections are practical and require no math. The synthesis table comparing 11 existing frameworks is worth the read on its own.

Token-optimizer: Install it as a plugin for Claude Code (/plugin marketplace add alexgreensh/token-optimizer) or OpenClaw. Run the structural audit first. It will show you exactly how many tokens are burned on things you never use. The dashboard at http://localhost:24842/token-optimizer updates after every session.

Together: Classify your prompts with PICCO. Measure their costs with token-optimizer. Cut what PICCO helps you identify and token-optimizer helps you quantify. Verify with the quality score. Repeat.

That loop, not any single technique, is what turns prompt engineering into a discipline.


Citations

Suggested Title

Prompt Engineering Grows Up: What Happens When You Can Classify Your Prompts and Cut Your Waste

Word Count

1,750

Fact-Check Notes

  • PICCO paper details: The abstract was verified directly from arXiv. The five-element breakdown (Persona, Instructions, Context, Constraints, Output) and the five-concept taxonomy distinction come from the abstract. I did not have access to the full paper text (the PDF did not parse), so the specific internal structure and argument details beyond the abstract should be verified by a human editor before publishing. The abstract states the framework is "derived through a rigorous synthesis of 11 previously published prompting frameworks identified through a multi-database search."
  • Token-optimizer v5.6.0 details: The "Activity Intelligence + Savings Measurement" release name is confirmed from the GitHub release tag. The specific v5.6.0 release notes page (detailing what changed in that version specifically) could not be fetched due to GitHub rendering issues. The savings claim of $1,500-$2,500/month and the 15K tokens per caught loop figure come from the README and newreleases.io snippet. These are vendor claims, not independently verified.
  • MRCR accuracy drop (93% to 76% between 256K and 1M): This figure comes directly from the token-optimizer README. I was unable to find the original source for this benchmark. It should be verified or attributed to Anthropic's published benchmarks.
  • token-optimizer star count: Listed as 647 in one search result and 215 in another (likely cached at different times). The current count is 650+ per the most recent data.
  • PICCO is explicitly not an optimization method: The paper's abstract states it "does not claim empirical validation of PICCO as an optimization method." I've represented it accurately as a classification framework, not a performance tool.
  • Author identity: David A. Cook, MD, MHPE, Mayo Clinic College of Medicine and Science. Alex Greensh is the GitHub username for the token-optimizer author. No further biographical details were found for Greensh.