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

Đang mở
#860 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
25.6k
Fork
2.1k
Merge trung bình
3 giờ 57 phút
Pull request đã merge (30 ngày)
170

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của EveryInc/compound-engineering-plugin

Tất cả issue của EveryInc/compound-engineering-plugin

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.