Logotipo de Context Economy

Context Economy

Comunidad
UnpaidAttention
context-economy

Protect the context window as a scarce resource — read at the right altitude, delegate bulk reconnaissance to subagents so only conclusions enter the main thread, externalize durable facts to disk, and respond to your own degradation signals. Trigger this when about to read a large file or many files, when a search/log-dig would flood the conversation with content you won't reference again, when deciding whether to delegate to a subagent, and whenever you notice re-running searches or re-deriving established facts. Do NOT confuse with session-state-management (which owns the WORKING_NOTES.md file and resume protocol — this skill decides what enters context at all) or incremental-delivery (which chunks the deliverable — this skill budgets the reading around it).

Add to TypingMind

Descripción general

EditorUnpaidAttention
Repositoriofable5-methodology
Nombre de la habilidadcontext-economy
Estrellas
94
Forks
21
Archivos incluidos
Solo instrucciones
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 UnpaidAttention en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Context Economy 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/UnpaidAttention/fable5-methodology/tree/main/skills/context-economy
  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/UnpaidAttention/fable5-methodology.git /tmp/fable5-methodology
mkdir -p .claude/skills
cp -r /tmp/fable5-methodology/skills/context-economy .claude/skills/context-economy
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Context Economy 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 Context Economy 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 Context Economy 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á.

Context Economy

Everything you read enters the same window your reasoning runs in. Fill it with noise and the noise wins: instructions decay, early decisions blur, retrieval degrades — and output quality collapses without any error message announcing it. An advanced model husbands its context implicitly; you do it as explicit procedure.

Rule 1: Read at the right altitude

Match reading depth to need, before opening anything:

NeedAction
One fact ("does X call Y?", "what's the version?")grep / targeted search — never open the file
Call something correctlyRead the signature + one existing call site, not the whole module
Edit a fileRead it fully (non-negotiable — Prime Directive 2)
Understand a subsystem's shapeSymbol map / headings / one representative flow — not every file
Judge a large artifact (logs, datasets)Head/tail/sample + targeted filters, never the whole thing

The violation to catch: opening a 2,000-line file to answer a one-line question. Ask "what is the smallest read that answers this?" before every Read.

Rule 2: Delegate bulk work to protect the main thread

When a task requires sweeping many files, digging long logs, or broad reconnaissance whose raw content you will NOT reference again: hand it to a subagent. The subagent burns its own context on the haystack and returns only the needle. The main conversation stays at decision altitude.

Delegation test — delegate when ALL of: the raw material is large, only the conclusion matters downstream, and the sub-task is separable with a crisp question. Don't delegate when you'll need the raw content in-thread anyway, or the task is a two-minute look.

This is the primary reason to delegate, beyond parallelism: context preservation.

Rule 3: Don't re-read what hasn't changed

If you read a file this session and it's unchanged, trust your knowledge and your notes. Re-read only when: someone else (user, formatter, another agent) may have modified it, an edit of yours failed unexpectedly, or you've had a context loss. Redundant re-reads are pure context burn.

Rule 4: Externalize durable facts the moment they matter

Decisions, discovered constraints, findings, and todo state go to disk (WORKING_NOTES.md, a scratchpad file) when they're established — not "later", and not only when compaction looms. The context window is working memory; disk is long-term memory. Facts that live only in context die with it. (The file format and resume protocol belong to session-state-management; this rule is about WHEN to move facts out of context.)

Rule 5: React to your own degradation signals

The signals that your context is failing you: re-running a search you already ran; re-deriving a fact you established an hour ago; surprise at your own earlier decision; instructions from the original request feeling new on re-read. On any of them: STOP consuming new content, re-read the notes file, and only then continue. Pushing on from fog produces confident work built on a forgotten foundation.

Worked example

Task: "Find why checkout intermittently 500s — logs are in /var/log/app/ (14 files, ~2 GB)."

  • Weak: Read the newest log → floods context with 50k lines → asks for the next file → by file three, the original error pattern from file one has blurred; analysis restarts.
  • Context-economy:
    1. Rule 1: never open a log raw. grep -c 'HTTP 500' per file → the needle is in 3 files.
    2. Rule 2: delegate — subagent per file with a crisp question ("extract each 500 with the 20 lines before it; return timestamps + the exception class only"). Three subagents burn their own contexts; the main thread receives ~40 lines of conclusions.
    3. Rule 4: findings ("all 500s follow a connection-pool-exhausted warning within 2s; only during the 02:00 batch job") go into WORKING_NOTES.md immediately.
    4. Main thread proceeds to the fix with a nearly-empty window and complete knowledge.

Done when

Ongoing — an ambient discipline. You are following it when: nothing large was read where a grep or a sample would answer; bulk reconnaissance ran in subagent contexts, not the main thread; no unchanged file was re-read; every durable fact is on disk within minutes of being established; and no degradation signal was pushed through instead of triggering a notes re-read.

Preguntas frecuentes

¿Qué hace la habilidad de IA Context Economy?

Protect the context window as a scarce resource — read at the right altitude, delegate bulk reconnaissance to subagents so only conclusions enter the main thread, externalize durable facts to disk, and respond to your own degradation signals. Trigger this when about to read a large file or many files, when a search/log-dig would flood the conversation with content you won't reference again, when deciding whether to delegate to a subagent, and whenever you notice re-running searches or re-deriving established facts. Do NOT confuse with session-state-management (which owns the WORKING_NOTES.m...

¿Por qué usar Context Economy en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Context Economy 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 Context Economy en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/context-economy. 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 Context Economy?

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 Context Economy?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Context Economy 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 Context Economy?

UnpaidAttention la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. 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 👇