Skillpedia
الوكلاء18k · #10645

latent-briefing

ما الذي تفعله

تشرح هذه المهارة كيف يشارك وكيل ذكاء اصطناعي قائد تفكيره المتراكم مع وكلاء العمل، بضغطه داخل ذاكرة التخزين المؤقت للنموذج بدل إعادة إرسال نص طويل. وهي لبناة أنظمة الوكلاء المتعددين حيث ترتفع تكاليف الرموز بسرعة.

متى تستخدمها

  • ✓عندما يجعل التفكير الطويل لوكيل القائد كل استدعاء لوكلاء العمل مكلفًا.
  • ✓عندما تريد أن يرى وكلاء العمل التفكير السابق دون ملخصات تفقد التفاصيل.
  • ✓عندما تقارن طرق الذاكرة المشتركة بالتلخيص أو الاسترجاع في تسليم الوكلاء.

رابط المهارة

https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/latent-briefing/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/latent-briefing/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“يرسل الوكيل المنسّق لدي التاريخ الكامل إلى كل وكيل عمل، والتكاليف مرتفعة جدًا. أرني طريقة أرخص لمشاركة السياق.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تصف المهارة تقليص التفكير المخزن لدى الوكيل القائد، بحيث يحتفظ كل وكيل عمل بالأجزاء المهمة لمهمته الفرعية الحالية فقط.

المحتوى التقني (ملف 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, or multi-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:

  1. Use task-guided query vectors derived from the current worker prompt.
  2. Aggregate scores into a shared global mask instead of per-head independent subsets.
  3. Use a robust threshold such as median + tau * MAD rather 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.

repo: muratcankoylan/Agent-Skills-for-Context-Engineering

الشعبية

نجوم GitHub
18k
الترتيب
#10645
الترخيص
MIT
آخر تحديث
11‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة