# Context Retention

## AI Agent Instructions

Use this Classifier via the SuperClassify API from server code, not browser playground automation.

Before assembling an agent's next prompt, segment history, files and tool outputs into meaningful chunks with source IDs. Supply the next task and judge each optional chunk. Keep exact material, summarize designated chunks separately and omit only from the new prompt. Preserve mandatory rules outside filtering and check the assembled result with Context Sufficiency.

Class: superclassify/context-retention@2.0.0
Fetch setup as text: https://superclassify.com/skills/superclassify/SKILL.md
Contract (JSON): https://superclassify.com/v1/resolve?ref=superclassify%2Fcontext-retention%402.0.0

## First-time API access

When the user asks to run or integrate this Class, explain its workflow and that live Jev runs use SuperClassify service credits. Public card descriptions can be read without an account. Reuse an existing account, credit balance and API key when available. Otherwise, guide the user through the official setup links below. The user completes sign-in and any credit purchase on the website, then saves the API key in their application’s server secrets as SUPERCLASSIFY_API_KEY—not in chat. A separate TypeSafe account or Jev key is not required for the SuperClassify API. Reading a link does not authorize a purchase or paid run.

1. Create an account or sign in: https://superclassify.com/login
2. Add credits if needed: https://superclassify.com/billing
3. Create an API key: https://superclassify.com/keys

## Purpose

Marks context to preserve exactly, summarize, or omit before an agent continues.

Class: superclassify/context-retention@2.0.0
Input: One raw text string
Model: jev-1.13.0

## Outputs

- retention (choice): keep_exact, omit, summarize, unclear

### Exact acceptance rule

Current task: fix an export. Target block, still active: export only records with status exactly "active" and preserve account_id as a string.

Author expectation: {"retention":"keep_exact"}

### Summarizable history

Current task: continue the agreed dashboard redesign. Target block: a long discussion of three discarded layout alternatives; the final choice is separately preserved.

Author expectation: {"retention":"summarize"}

### Duplicate log

Current task: debug error E42. Target block: the fourth exact duplicate of the same trace. The first complete trace is retained and no unique details appear here.

Author expectation: {"retention":"omit"}

Documentation: https://superclassify.com/docs
Skill: https://superclassify.com/skills/superclassify/SKILL.md
