latent-briefing
Skill này làm gì
Skill này giải thích cách một agent AI điều phối có thể chia sẻ lập luận tích lũy với các agent thợ bằng cách nén nó trong cache của model, thay vì gửi lại văn bản dài. Nó dành cho người xây dựng hệ thống nhiều agent mà chi phí token tăng nhanh.
Khi nào nên dùng
- ✓Khi lập luận dài của agent điều phối làm mỗi lần gọi agent thợ đều tốn kém.
- ✓Khi bạn muốn các agent thợ thấy lập luận trước đó mà không có bản tóm tắt làm mất chi tiết.
- ✓Khi bạn đang so sánh các phương pháp bộ nhớ chia sẻ với tóm tắt hoặc truy xuất cho việc bàn giao giữa các agent.
Liên kết skill
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/latent-briefing/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Agent điều phối của tôi gửi toàn bộ lịch sử cho mỗi agent thợ và chi phí rất lớn. Hãy chỉ tôi một cách rẻ hơn để chia sẻ ngữ cảnh.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill mô tả cách thu gọn lập luận đã lưu của agent điều phối, để mỗi agent thợ chỉ giữ những phần quan trọng cho tác vụ con hiện tại.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nén KV cache là gì?
Nó thu nhỏ bộ nhớ mà model giữ cho văn bản trước đó, nên ít phải xử lý lại hoặc gửi lại hơn.
Khác gì so với tóm tắt?
Tóm tắt được viết thành văn bản và có thể mất chi tiết, còn phương pháp này giữ các phần liên quan ở cấp model.
Cách tiếp cận này phù hợp ở đâu?
Skill mô tả nó cho các môi trường chạy được kiểm soát, nơi có thể truy cập cache của model, chứ không phải một mẹo prompt văn bản thuần.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 18k
- Vị trí xếp hạng
- #10645
- Giấy phép
- MIT
- Cập nhật
- 11/10/2026
Bình luận
- …
Thêm skill từ kho mã này
context-engineering-collection
18kGiúp agent của bạn quản lý những gì đưa vào cửa sổ ngữ cảnh của model AI, từ bộ nhớ và công cụ đến thiết lập nhiều agent và đánh giá.
advanced-evaluation
18kDạy agent của bạn cách đánh giá câu trả lời AI bằng một AI khác, với chấm điểm, so sánh cạnh nhau và kiểm tra thiên lệch.
bdi-mental-states
18kDạy agent của bạn mô hình hóa niềm tin, mục tiêu và kế hoạch bằng cách tiếp cận BDI, để các quyết định của nó có thể được truy vết và giải thích.
context-compression
18kGiúp agent của bạn rút gọn các phiên AI dài thành bản tóm tắt giữ lại quyết định, file, rủi ro và bước tiếp theo.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.