latent-briefing
하는 일
이 스킬은 주 AI 에이전트가 긴 텍스트를 다시 보내는 대신, 모델의 캐시 안에서 누적된 추론을 압축해 작업자 에이전트와 공유하는 방법을 설명합니다. 토큰 비용이 빠르게 오르는 다중 에이전트 시스템을 만드는 사람을 위한 스킬입니다.
사용하는 경우
- ✓주 에이전트의 긴 추론 때문에 작업자 호출마다 비용이 많이 들 때.
- ✓세부 내용을 잃는 요약 대신, 작업자가 앞선 추론을 보기를 원할 때.
- ✓에이전트 인계를 위해 공유 메모리 방식을 요약이나 검색 방식과 비교할 때.
스킬 링크
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/latent-briefing/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“오케스트레이터 에이전트가 모든 작업자에게 전체 기록을 보내서 비용이 엄청납니다. 맥락을 공유하는 더 저렴한 방법을 보여 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 주 에이전트가 저장한 추론을 줄여서, 각 작업자가 현재 하위 작업에 중요한 부분만 간직하게 하는 방법을 설명합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Latent Briefing and KV Cache Memory Sharing
Hierarchical multi-agent systems often pay for the same context twice. The orchestrator accumulates a long reasoning trajectory, but each worker usually receives only a narrow text handoff such as a subtask prompt plus raw document slices. Passing the full trajectory fixes coverage but drives token cost up on every worker call. Summarization introduces latency and information loss. Retrieval helps with document access but does not preserve the orchestrator's evolving reasoning state.
Latent Briefing addresses this by sharing memory at the representation level rather than the text level. The core idea is to compact the orchestrator trajectory in the worker model's KV cache, keeping positions that are most relevant to the current worker task. The method builds on Attention Matching (AM) KV cache compaction and adapts it for inference-time multi-agent handoff with task-guided queries, a shared token mask across heads, and robust thresholding.
When to Activate
Activate this skill when:
- Designing orchestrator-worker or supervisor-specialist systems where workers need access to prior orchestrator state without replaying the full trajectory as text
- Evaluating alternatives to LLM summarization or RAG for cross-agent state transfer
- Implementing or studying KV cache compaction as a first-class inference primitive, not only prefix caching of identical prompts
- Debugging token explosion in recursive, hierarchical, or tool-heavy agent graphs
- Interpreting benchmarks that report worker-token savings, total-token savings, compaction overhead, and accuracy together
Do not activate this skill for adjacent work owned by other skills:
- API-only stacks where internal KV tensors are inaccessible: use
context-compression,memory-systems, ormulti-agent-patterns. - Ordinary persistent memory, entity tracking, or graph retrieval:
memory-systems. - General multi-agent topology without representation-level state sharing:
multi-agent-patterns. - Prefix caching, masking, or budget policy that does not transform KV state:
context-optimization.
Core Concepts
The token explosion pattern. In recursive or REPL-style systems, the orchestrator repeatedly calls a worker to inspect evidence, verify hypotheses, or answer subquestions. The orchestrator's trajectory grows with partial conclusions, dead ends, tool output, and prior worker responses. If that trajectory is passed in full on every worker call, cost compounds quickly.
Representation-level sharing. Instead of summarizing the trajectory into natural language, the system operates on the worker model's KV cache. It retains the positions that the worker would attend to for the current task and drops the rest. This is more specific than ordinary prefix caching: prefix caching reuses identical prefixes, while Latent Briefing also performs task-conditioned selective retention inside the reused trajectory.
Attention Matching as the compaction engine. AM seeks a smaller cache whose attention outputs approximate the full cache. Latent Briefing adapts AM for multi-agent inference by changing the scoring signal and batching strategy:
- Use task-guided query vectors derived from the current worker prompt.
- Aggregate scores into a shared global mask instead of per-head independent subsets.
- Use a robust threshold such as
median + tau * MADrather than fixed top-k per head.
Reference result shape. The public write-up reports substantial worker-token reduction, material total-token savings, and low-single-digit-second compaction overhead on long-document QA workloads (claim-latent-briefing-public-results). Treat these numbers as workload-specific evidence, not a general guarantee.
Detailed Topics
Why Text-Only Mitigations Fall Short
| Approach | Primary weakness |
|---|---|
| LLM summarization | High latency, lossy abstraction, and no guarantee the summary preserves what the next subtask needs |
| Retrieval / RAG | Depends on chunking and embeddings; can miss cross-chunk or cross-step dependencies |
| Pass full trajectory | Cost scales with every worker call and irrelevant context can degrade worker quality |
Latent Briefing is useful when the bottleneck is not document retrieval itself, but how to transfer orchestrator state into a worker efficiently and precisely.
Recursive Orchestrator-Worker Shape
Frameworks such as **Recursive
자주 묻는 질문
KV 캐시 압축이란 무엇인가요?
모델이 앞선 텍스트를 위해 유지하는 저장 메모리를 줄이므로, 다시 처리하거나 다시 보내야 할 양이 줄어듭니다.
요약과는 어떻게 다른가요?
요약은 텍스트로 쓰여서 세부 내용을 잃을 수 있지만, 이 방법은 관련 부분을 모델 수준에서 유지합니다.
이 방법은 어디에 맞나요?
스킬은 모델의 캐시에 접근할 수 있는 통제된 실행 환경에 맞는 방법으로 설명하며, 일반 텍스트 프롬프트 기법으로 설명하지 않습니다.
상세 정보
작성자의 원본 설명
This skill should be used when the user asks to \"share memory between agents\", \"KV cache compaction for multi-agent\", \"orchestrator worker context\", \"latent briefing\", \"reduce worker tokens\", \"cross-agent memory without summarization\", or discusses Attention Matching compaction, recursive language models with workers, or token explosion in hierarchical agents.
인기도
- GitHub 스타
- 18k
- 순위
- #10645
- 라이선스
- MIT
- 업데이트
- 2026. 10. 11.
댓글
- …
이 저장소의 다른 스킬
context-engineering-collection
18k에이전트가 AI 모델의 컨텍스트 창에 들어가는 내용을 관리하도록 돕습니다. 메모리와 도구부터 다중 에이전트 구성, 평가까지 다룹니다.
advanced-evaluation
18k에이전트가 다른 AI를 이용해 AI 답변을 평가하는 방법을 가르칩니다. 점수 매기기, 나란히 비교, 편향 점검을 포함합니다.
bdi-mental-states
18k에이전트가 BDI 방식으로 믿음, 목표, 계획을 모델링하도록 가르쳐서, 결정을 추적하고 설명할 수 있게 합니다.
context-compression
18k에이전트가 긴 AI 세션을 결정, 파일, 위험, 다음 단계를 유지한 요약으로 줄이도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.