Tooluck logoTooluck
SKILL.md

latent-briefing

Agent skill frommuratcankoylan/Agent-Skills-for-Context-Engineering

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.

How to install latent-briefing

install latent-briefing
# install the Agent-Skills-for-Context-Engineering pack with the skills CLI
npx skills add muratcankoylan/Agent-Skills-for-Context-Engineering

# or add only this skill to Claude Code: copy the folder

skills/latent-briefing/

# into

~/.claude/skills/latent-briefing/ (all projects)

.claude/skills/latent-briefing/ (one project)

skills/latent-briefing/SKILL.md

MITFull file
1# Latent Briefing and KV Cache Memory Sharing
2
3Hierarchical 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.
4
5Latent 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.
6
7## When to Activate
8
9Activate this skill when:
10
11- Designing orchestrator-worker or supervisor-specialist systems where workers need access to prior orchestrator state without replaying the full trajectory as text
12- Evaluating alternatives to LLM summarization or RAG for cross-agent state transfer
13- Implementing or studying **KV cache compaction** as a first-class inference primitive, not only prefix caching of identical prompts
14…

Excerpt shown under the repository's MIT license.

More skills in Agent-Skills-for-Context-Engineering

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates