Logotipo de Conversation Compaction

Conversation Compaction

OrganizaciónPopular
Prismer-AI
conversation-compaction

Produce the SESSION PROJECTION of memory for an aging conversation slice. Runs as a single background model call (mirroring the memory `extract` hook) with NO live memory tools — durable capture to memory is `extract`'s job. You MATCH the slice's durable facts to the memory pages you're handed (recall-found `<existing-memory-pages>`) and emit POINTERS to them; your unique output is the thin ephemeral residue (open threads, abandoned directions) plus those pointers. A digest is memory's projection onto the session, synced by POINTER, never by re-summarizing what memory already holds. Output is a compressed segment the dispatcher splices into future context.

Descripción general

EditorPrismer-AI
RepositorioPrismerCloud
Nombre de la habilidadconversation-compaction
Estrellas
1.6K
Forks
17
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por Prismer-AI en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Conversation Compaction en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/Prismer-AI/PrismerCloud/tree/main/sdk/cloud/catalog/skills/conversation-compaction
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Prismer-AI/PrismerCloud.git /tmp/PrismerCloud
mkdir -p .claude/skills
cp -r /tmp/PrismerCloud/sdk/cloud/catalog/skills/conversation-compaction .claude/skills/conversation-compaction
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Conversation Compaction en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Conversation Compaction automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Conversation Compaction no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Conversation Compaction — memory's session projection

You are producing the session projection of a slice of an aging conversation (messages that scrolled past the recent verbatim window). The projection replaces the raw slice in future agent context.

The model — sync by POINTER, not by re-summary

Durable knowledge lives in memory (the memory skill owns it). A session projection does not re-summarize durable facts — it points at the memory pages that hold them, NOT by you re-deriving what memory already knows.

How this runs (important): you execute as a SINGLE model call inside the agent's daemon (mirroring the memory extract post-turn hook) — you have no live memory tools to browse/write. Durable capture to memory is the extract hook's job (it runs alongside you every turn). Your input carries the memory pages you need: <existing-memory-pages> (recall-found). You MATCH durable facts to those pages and emit POINTERS; you do not write memory yourself.

Your job over a slice is only:

① for each slice message:
     durable + matches a provided page  → emit a memoryRefs POINTER (path + note)
     durable + NO page matches          → inline into summary (degraded; extract will capture it)
     ephemeral                          → carry THIN in the digest (ages out)
     noise                              → DROP
② emit — the thin ephemeral digest + POINTERS to every matched page

Input you receive

  • slice: the raw messages, oldest first, each [msgId] @username (role): text.
  • conversationType: group | direct.
  • <existing-memory-pages>: pages found by DEVICE-LOCAL recall over this slice that may already hold durable facts from it (a fuzzy match, not an exact raw→page mapping).

Pointer-first rule (recall-fed)

You are given <existing-memory-pages> (pages recall thinks already hold durable facts from this slice). For a durable fact in the slice that matches an existing page, emit a memoryRefs pointer { path, note } — do not restate it in summary. Only inline a durable fact into summary (degraded) when no existing page matches it.

Flow

Triage each slice message:

  • Durable ("would matter in a different conversation next week?") → does a page in <existing-memory-pages> already hold it? Yes → emit a memoryRefs pointer (path + a short note), do NOT restate it in summary. No → inline it into summary (degraded); the extract hook captures it to memory separately and a later pass — once recall finds that page — will pointer it.
  • Ephemeral ("only matters to keep this thread coherent?") → thin digest line.
  • Noise ("lose it, nothing changes?") → drop.

Then compose the segment output (below): the thin ephemeral residue + the pointer list (pages you matched).

Not a re-summary: your unique work is (a) the ephemeral residue and (b) pointing durable facts at their memory pages. Durable capture (writing pages) is the extract hook's job, not yours.

Speaker attribution → into the memory page's provenance

For group slices, who decided / who objected IS content. Carry attribution into the memory page (who decided, who dissented). Once it is in the page, you do NOT restate it in the digest — the pointer resolves to the page.

Output shape

Return ONLY this JSON — no prose, no fences:

json
{
  "summary": "<3-8 short lines: current thread state, referencing durable parts by memory:<path>; NOT a re-statement of the slice>",
  "salientFacts": {
    "memoryRefs":          [ { "path": "decisions/vendor.pkf", "note": "vendor B (compliance); @ceo decided, @eng dissented" } ],
    "openThreads":         [ "awaiting @ceo sign-off on A4 vs Letter page size" ],
    "abandonedDirections": [ "tried gpt-4o for compaction — too slow, dropped" ]
  }
}
  • memoryRefs — one POINTER per matched page ({ path, note }).
  • openThreads / abandonedDirections — the ephemeral residue only. Omit if empty.
  • No decisions / entities / preferences / commitments fields — those are durable, they live in memoryRefs, never inline.

Size check: the digest is the ephemeral residue + pointers, a fraction of the slice. If summary reads like a retelling, you are duplicating memory — cut to thread-state.

Failure / degradation

  • No matching pages (empty <existing-memory-pages>) → inline the durable facts into summary (degraded) with empty memoryRefs. extract still captures them to memory, and a later pass — once recall finds those pages — will pointer them. Never fail the compaction.
  • Slice is pure noise → { "summary": "(no substantive content)", "salientFacts": {} }.

Anti-patterns

  • ❌ Restating in the digest what lives in memory — point to the page.
  • ❌ Re-implementing memory triage/authoring here — delegate to the memory skill.
  • ❌ A faithful blow-by-blow summary — you produce a projection, not a transcript.
  • ❌ Dropping attribution on a decision/objection — it goes into the page's provenance.
  • ❌ Promoting ephemeral state to memory (current open question, in-flight step) — that stays in the thin digest and ages out.
  • ❌ Posting the digest as a chat message — machinery; return the structured object only.

Preguntas frecuentes

¿Qué hace la habilidad de IA Conversation Compaction?

Produce the SESSION PROJECTION of memory for an aging conversation slice. Runs as a single background model call (mirroring the memory `extract` hook) with NO live memory tools — durable capture to memory is `extract`'s job. You MATCH the slice's durable facts to the memory pages you're handed (recall-found `<existing-memory-pages>`) and emit POINTERS to them; your unique output is the thin ephemeral residue (open threads, abandoned directions) plus those pointers. A digest is memory's projection onto the session, synced by POINTER, never by re-summarizing what memory already holds. Output...

¿Por qué usar Conversation Compaction en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Conversation Compaction está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Conversation Compaction en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/Prismer-AI/PrismerCloud/tree/main/sdk/cloud/catalog/skills/conversation-compaction. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Conversation Compaction?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Conversation Compaction?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Conversation Compaction con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Conversation Compaction?

Sí. Prismer-AI la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇