latent-briefing
यह क्या करती है
यह स्किल बताती है कि लीड AI एजेंट अपना जमा तर्क लंबे टेक्स्ट को दोबारा भेजे बिना, मॉडल के cache में संपीड़ित करके, worker एजेंटों के साथ कैसे साझा कर सकता है। यह ऐसे multi-agent सिस्टम बनाने वालों के लिए है जहाँ tokens की लागत तेज़ी से बढ़ती है।
कब इस्तेमाल करें
- ✓जब लीड एजेंट का लंबा तर्क हर worker कॉल को महँगा बना दे।
- ✓जब आप चाहते हों कि workers पिछला तर्क देखें, पर ऐसे सारांशों के बिना जो विवरण खो दें।
- ✓जब आप एजेंट हैंडऑफ़ के लिए साझा मेमोरी की तुलना summarization या retrieval से कर रहे हों।
Skill का लिंक
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/latent-briefing/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा orchestrator एजेंट हर worker को अपना पूरा इतिहास भेजता है और लागत बहुत ज़्यादा है। context साझा करने का सस्ता तरीका दिखाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल बताती है कि लीड एजेंट के संग्रहीत तर्क को सिकोड़ा जाए, ताकि हर worker अपने मौजूदा उप-कार्य के लिए केवल ज़रूरी हिस्से रखे।
तकनीकी सामग्री (मूल 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 cache compaction क्या है?
यह उस संग्रहीत मेमोरी को सिकोड़ता है जो मॉडल पहले के टेक्स्ट के लिए रखता है, ताकि कम दोबारा प्रोसेस या भेजना पड़े।
यह सारांश बनाने से कैसे अलग है?
सारांश टेक्स्ट के रूप में लिखे जाते हैं और विवरण खो सकते हैं, जबकि यह तरीका मॉडल स्तर पर प्रासंगिक हिस्से रखता है।
यह तरीका कहाँ फ़िट होता है?
स्किल इसे नियंत्रित runtimes के लिए बताती है, जहाँ मॉडल के cache तक पहुँच हो, न कि सादे टेक्स्ट prompt की चाल के रूप में।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 11/10/2026
कमेंट
- …
इस repository की और skills
context-engineering-collection
18kयह आपके एजेंट को AI मॉडल की context window में क्या जाए, इसका प्रबंधन करने में मदद करती है, मेमोरी और टूल्स से लेकर मल्टी-एजेंट सेटअप और मूल्यांकन तक।
advanced-evaluation
18kयह आपके एजेंट को सिखाती है कि दूसरे AI की मदद से AI के जवाबों को कैसे परखा जाए, स्कोरिंग, आमने-सामने तुलना और पूर्वाग्रह जाँच के साथ।
bdi-mental-states
18kयह आपके एजेंट को BDI तरीके से विश्वास, लक्ष्य और योजनाओं का मॉडल बनाना सिखाती है, ताकि उसके फ़ैसले ट्रेस और समझाए जा सकें।
context-compression
18kयह आपके एजेंट को लंबे AI सत्रों को ऐसे सारांशों में छोटा करने में मदद करती है जिनमें फ़ैसले, फ़ाइलें, जोखिम और अगले कदम बचे रहें।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।