FYI: registered agent bodies are idle-resident on current Claude Code (~2k each) — measurement + a registration-free build

Abierto
#860 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
typescript
Área
devtools

Línea de trabajo

The issue reports token measurements and links to the registration-free reference build at https://github.com/ak2k/ce-lite, but does not specify a change for this repository. Read the linked discussion in #139, #156, and #652 to understand the trade-offs around registered agents and tool restrictions. Done criteria are not defined in this issue.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Following up on #139 and #156 with current numbers.

#139 reasonably treated agent bodies as spawn-time-only ("loaded when spawning, so less critical"), with descriptions (~3k) as the idle cost. On current Claude Code (2.1.150, Opus 4.7) that's changed: interactive /context shows the bodies idle-resident too — a standing slot in the window before the first turn, separate from the Task-tool descriptions #139 measured.

With compound-engineering v3.8.4 installed, a fresh /context:

Custom agents: ~88k tokens   (~2k per registered agent)

The per-agent rate (~2k) is the stable figure; the total scales with how many of v3.8.4's 49 agents register in a given session — I saw ~88k, and all 49 would be ~100k. Either way it's the dominant idle cost. (Aside: in my run, claude plugin details reported only ~5.7k "always-on" for the same plugin — it counts the ~50-token descriptions, not the loaded bodies — so the built-in projection understates what /context shows.)

I've been running a registration-free build of CE that drops the agents/ registrations, moves the persona prompts to references/, and dispatches them on demand — emptying that slot, same specialist coverage. Plugin-attributable idle delta across the window is roughly −94k (−88k custom agents, −13.5k system tools, +7.5k skills descriptions). It's at https://github.com/ak2k/ce-lite as a reference / data point.

Honest trade-off (why this isn't a no-brainer upstream), related to #652: without registrations the harness can't enforce each persona's tools: allowlist — dispatch goes through a general-purpose subagent, so the restrictions become advisory. A PreToolUse hook could restore enforcement at trigger time without re-incurring the idle cost — I haven't needed it. Sharing the measurement either way.

Lenguaje dominante
TypeScript
Estrellas
25.6k
Forks
2.1k
Merge medio
3 h 57 min
PR fusionados (30 d)
170

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de EveryInc/compound-engineering-plugin

Todos los issues de EveryInc/compound-engineering-plugin

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.