latent-briefing
Skill18k starsChanged 4 months agoMITView on GitHub
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.
1 other project uses a version of this, 1 of them edited.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- docxology/templateedited, first seen Aug 29, 2026
Who's talking about muratcankoylan/Agent-Skills-for-Context-Engineering
- @dailygithubtrends.bsky.social“今日のGitHubトレンド muratcankoylan/Agent-Skills-for-Context-Engineering …”Bluesky · Feb 27, 2026 · 3 likes
- A Hacker News story“Agent-Skills-for-Context-Engineering”Hacker News · Dec 25, 2025 · 3 points
- A Hacker News story“Agent Skills for Context Engineering”Hacker News · Dec 22, 2025 · 3 points
- AAswordman/OperitSkillMarket“memory-systems”GitHub · Feb 20, 2026 · 2 reactions
- vercel-labs/skills“[Bug]: Only some skills discovered from repositories with nested skills/ directory structure”GitHub · Jan 21, 2026 · 2 reactions
The biggest 5 of 44 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 44
Talked about on GitHub, Bluesky and Hacker News (44 times).
On GitHub · 37
- Feb 20, 2026memory-systems — AAswordman/OperitSkillMarket2 reactions
- Jan 21, 2026[Bug]: Only some skills discovered from repositories with nested skills/ directory structure — vercel-labs/skills2 reactions · 6 comments
- Aug 2, 2026Add more skills from below repos https://github.com/nextlevelbuilder/ui-ux-pro-max-skill https://github.com/hardikpandya/stop-slop https://github.com/muratcankoylan/agent-skills-for-context-engineering — shivam-verma-philips-1/ai-team1 reaction
- Mar 22, 2026More context engineering — davidamitchell/Research1 reaction
- Dec 25, 2025Add skills: muratcankoylan/context-engineering collection — VoltAgent/awesome-agent-skills1 reaction
32 more on GitHub
- Oct 28, 2026docs(compound-packs): add ci-compound-pack for runner placement, efficient CI and check verdicts — systemfsoftware/systemfsoftware0 reactions · 1 comment
- Oct 9, 2026[Candidate] muratcankoylan/agent-skills-for-context-engineering/skills/context-fundamentals - context-fundamentals — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 9, 2026[Candidate] muratcankoylan/agent-skills-for-context-engineering/skills/context-degradation - context-degradation — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 9, 2026[Candidate] muratcankoylan/agent-skills-for-context-engineering/skills/context-compression - context-compression — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 4, 2026claude-code-plugins.github.muratcankoylan.agent-skills-for-context-engineering: init at 2.3.0 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.muratcankoylan.agent-skills-for-context-engineering: init at 2.3.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026Skills: vendor the BADF-compatible subset of Agent-Skills-for-Context-Engineering at IMPLEMENTED (pinned, overlaid, not routed) — bstBizEra/badf0 reactions
- Sep 30, 2026agent-skills.github.muratcankoylan.agent-skills-for-context-engineering: init at 2.3.0 — sudosubin/agents.nix0 reactions
- Jul 9, 2026[Collection]: muratcankoylan/agent-skills-for-context-engineering — shimoncohen/the-great-skill-dictionary0 reactions · 2 comments
- May 30, 2026feat(swarm): latent-briefing — KV cache compaction as orchestrator-to-worker context handoff — deftai/directive0 reactions
- Apr 25, 2026Audit candidate: muratcankoylan/Agent-Skills-for-Context-Engineering — xiaolai/nlpm0 reactions · 3 comments
- Mar 24, 2026Dynamic skill loading — install new tools at runtime without restarting — JeetVaidya1/jarvis0 reactions
- Mar 22, 2026Research: Applied context engineering — practical skills, workflows, and best practices for agent development — davidamitchell/Research0 reactions
- Mar 22, 2026research: 外部AI知見(Claude Skills / MCP / OSS)の分析と活用計画 — uminomae/creation-space0 reactions · 2 comments
- Mar 8, 2026Research: Context Engines for AI Agents — Market Analysis, Comparison & Context vs Memory — humanjack/ai-engineering0 reactions
- Feb 27, 2026Agent Skills for Context Engineering — MateuszNaKodach/SelfImprovement0 reactions
- Feb 26, 2026Research: Agent Skill Systems — Standards, Protocols & Frameworks for Extending AI Agents — humanjack/ai-engineering0 reactions
- Feb 25, 2026Analysis: Agent-Skills-for-Context-Engineering — Context Management Patterns for AI Agents — humanjack/ai-engineering0 reactions
- Feb 20, 2026tool-design — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026multi-agent-patterns — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026evaluation — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026context-optimization — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026context-fundamentals — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026context-degradation — AAswordman/OperitSkillMarket0 reactions
- Feb 20, 2026context-compression — AAswordman/OperitSkillMarket0 reactions
- Jan 6, 2026New plugins: 11 skills from skills (low risk) — aiskillstore/marketplace0 reactions
- Jan 3, 2026Weekly Journal Sources - Week of 2026-01-06 — beijaflor/gen-ai-journal0 reactions · 1 comment
- Dec 27, 2025Multi cli integration — AutoMaker-Org/automaker0 reactions · 3 comments
- Dec 25, 2025Enhance skills with Agent-Skills repository patterns — jamditis/tools0 reactions
- Dec 24, 2025Agent-Skills-for-Context-Engineering — jonath92/Copilot-Training0 reactions
- Dec 22, 2025Integrate Tool Use Learning — m2ux/concept-rag0 reactions
- Dec 12, 2025dec 2025 jan 2026 — kimtth/azure-openai-llm-notes0 reactions
On Bluesky · 5
- Feb 27, 2026今日のGitHubトレンド muratcankoylan/Agent-Skills-for-Context-Engineering このリポジトリは、AIエージェントの性能を最大化するための「コンテキストエンジニアリング」に焦点を当てたスキル集です。… — @dailygithubtrends.bsky.social3 likes and reposts
- May 27, 2026https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering — @sigmanor.net1 likes and repost
- Feb 27, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 muratcankoylan / Agent-Skills-for-Context-Engineering ⭐ 12,191 (+836) 🗒 Python A comprehensive… — @github-trending.bsky.social1 likes and repost · 1 reply
- Feb 26, 2026github.com/muratcankoyl... — @pcl25387.bsky.social1 likes and repost
- Feb 25, 2026今日のGitHubトレンド muratcankoylan/Agent-Skills-for-Context-Engineering このリポジトリは、AIエージェントの性能を最大化するための「コンテキストエンジニアリング」に焦点を当てたスキル集です。… — @dailygithubtrends.bsky.social1 likes and repost
On Hacker News · 2
- Dec 25, 2025Agent-Skills-for-Context-Engineering3 points
- Dec 22, 2025Agent Skills for Context Engineering3 points · 3 comments
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- docxology/template★ 2098% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- context-engineering-collectionSkill
- advanced-evaluationSkill
- bdi-mental-statesSkill
- context-compressionSkill
- context-degradationSkill
- context-fundamentalsSkill
- context-optimizationSkill
- evaluationSkill
- filesystem-contextSkill
- harness-engineeringSkill
- hosted-agentsSkill
- long-horizon-promptingSkill
- memory-systemsSkill
- multi-agent-patternsSkill
- project-developmentSkill
- self-improvement-loopsSkill
- self-managed-contextSkill
- tool-designSkill
- skill-templateSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Do not activate this skill for adjacent work owned by other skills:
- Distinctive: line 36
Use task-guided query vectors derived from the current worker prompt.
- Very specific: line 38
Use a robust threshold such as median + tau * MAD rather than fixed top-k per head.
- Distinctive: line 62
Task-guided query vectors: Use queries from the current worker task prompt, not generic samples from the context.
- Very specific: line 66
MAD thresholding: Keep positions above a robust outlier threshold such as median + tau * MAD.
- Distinctive: line 101
Expect orchestrator variance: If decomposition strategy changes run to run, average over enough trials to separate compaction effects from …
- Very specific: line 118
If the worker runs behind a hosted text-generation API that does not expose KV tensors, Latent Briefing cannot be implemented directly.
- Distinctive: line 122
Prefer Latent Briefing when the main waste comes from replaying orchestrator state into workers, not from retrieving source documents.
- Distinctive: line 123
Prefer plain text handoff when auditability, portability, or closed-model APIs matter more than token efficiency.
- Distinctive: line 129
Infrastructure access is the first gate: If the runtime cannot inspect and rewrite worker KV state, Latent Briefing is a research idea, not …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 Language Models treat long context as an environment and recurse over it: an orchestrator decomposes work and delegates to workers. Latent Briefing fits the gap where the orchestrator has already built task-specific state that should inform the worker, but re-serializing that state as text is too expensive or noisy.
In the ideal setup, the worker maintains a persistent KV state for the orchestrator trajectory. New trajectory tokens extend that state, then compaction runs just before generation for the current subtask.
Three Inference-Time Modifications
- Task-guided query vectors. Use queries from the current worker task prompt, not generic samples from the context. Forward-pass the trajectory plus current task through the worker model, then score trajectory positions by how strongly the task attends to them.
- Shared token selection. Aggregate scores across layers and heads into one per-position score. One shared mask enables batched operations and avoids hundreds of incompatible per-head solves.
- MAD thresholding. Keep positions above a robust outlier threshold such as
median + tau * MAD. Highertauis more aggressive. Optimal settings depend on task regime, trajectory quality, and document length.
Infrastructure Preconditions
Latent Briefing is only practical when the system controls the worker inference runtime closely enough to inspect or transform KV state. It is a poor default for API-only stacks where internal KV tensors are inaccessible. It also assumes the orchestrator trajectory can be represented in the worker's model space. If orchestrator and worker differ materially in tokenizer, architecture, or attention layout, direct representation sharing may not be viable.
Decision Framework
Choose the mechanism that matches the bottleneck:
| Need | Prefer | Why |
| Stable repeated prefix with minimal logic changes | Prefix caching | Cheapest optimization; no information loss |
| Human-readable and auditable cross-step state | Structured notes or summarization | Easy to inspect and store |
| Sparse lookup across a large external corpus | Retrieval / RAG | Finds documents efficiently |
| Worker needs task-specific slices of orchestrator state and runtime access exists | Latent Briefing | Transfers relevant latent state without replaying all text |
Latent Briefing is not a universal replacement for summarization or retrieval. It is a specialized optimization for systems that already run a controllable orchestrator-worker stack.
Threshold Regimes
Reported long-document QA results suggest:
- Longer documents: lighter compaction can preserve broader evidence coverage while still saving tokens.
- Harder questions: more aggressive compaction can help when the orchestrator trajectory contains speculative or low-value branches.
- Shorter, easier contexts: moderate compaction may remove redundancy without dropping needed evidence.
These are tuning hypotheses, not portable laws. Re-measure on the target workload.
Practical Guidance
- Define the shared memory boundary first. Decide exactly what enters the trajectory cache: prior worker replies, tool output, chain-of-thought, or only selected artifacts. Compaction quality depends on what is allowed into the cache in the first place.
- Tune on validation data, not anecdotes. Track task accuracy, worker tokens, total tokens, retention rate, and compaction overhead together.
- Measure end-to-end latency. Compaction only pays off if compaction plus generation beats the best text-layer alternative for the same quality target.
- Use strong baselines. Compare against prefix caching, structured notes, retrieval, and selective text handoff, not only "send everything."
- Expect orchestrator variance. If decomposition strategy changes run to run, average over enough trials to separate compaction effects from orchestrator noise.
Examples
Scenario: orchestrator trajectory grows across worker calls
Call 1: trajectory T1 -> worker answers subquestion A
Call 2: trajectory T2 = T1 + new reasoning + reply A
compact KV(T2) using the task prompt for B
worker answers subquestion BThe task prompt for B decides which parts of T2 survive into the compacted worker state.
Negative example: API-only worker
If the worker runs behind a hosted text-generation API that does not expose KV tensors, Latent Briefing cannot be implemented directly. Use a structured text handoff from context-compression or retrieve state from memory-systems instead.
Guidelines
- Prefer Latent Briefing when the main waste comes from replaying orchestrator state into workers, not from retrieving source documents.
- Prefer plain text handoff when auditability, portability, or closed-model APIs matter more than token efficiency.
- Co-design compaction with evaluation. A small quality drop can erase large token savings.
- Expose compaction aggressiveness as a controlled parameter, not a hidden constant.
Gotchas
- Infrastructure access is the first gate. If the runtime cannot inspect and rewrite worker KV state, Latent Briefing is a research idea, not a deployable technique.
- Shared model space matters. KV compaction is defined in a specific model's attention space. Do not assume latent handoff works cleanly across unrelated model families.
- Threshold is workload-dependent. One global
taurarely works across long vs short context and easy vs hard tasks. Expect accuracy cliffs when compaction becomes too aggressive. - Benchmark scope is narrow. Public results focus on long-document QA. Code generation, math, and multi-document synthesis may behave differently.
- Orchestrator variance can hide the signal. A stochastic orchestrator can change the trajectory enough to swamp small compaction gains or losses.
- Weak baselines inflate the apparent win. Compare against strong text-level alternatives before claiming a system-level advantage.
Integration
- context-optimization - Prefix caching and observation masking remain the default first moves; Latent Briefing is a more specialized optimization for compatible orchestrator-worker stacks.
- multi-agent-patterns - Applies when multi-agent token cost is driven by supervisor trajectory replay, not only by coordination overhead.
- context-compression - Text-layer summaries remain preferable when human-readable state, portability, or audit logs matter.
- memory-systems - Helps decide when to keep cross-step state in external memory versus in the worker's latent state.
- tool-design - Worker call shapes and task prompts determine which tokens score highly during compaction.
References
Internal reference:
- Attention Matching formulation and task-guided scoring - Read when: needing the AM objective, how task-guided scoring changes the query source, or why a shared global mask matters for batching
Related skills in this collection:
- context-optimization - Read when: the main need is prefix caching, observation masking, or text-layer compaction rather than worker KV manipulation
- multi-agent-patterns - Read when: deciding whether the architecture should be orchestrator-worker at all
- context-compression - Read when: human-readable summaries may be a better fit than latent transfer
- memory-systems - Read when: comparing in-model latent state with external persistent memory
External resources:
- Ramp Labs announcement: Latent Briefing: Efficient Memory Sharing for Multi-Agent Systems via KV Cache Compaction
- Attention Matching (AM): Fast KV Compaction via Attention Matching
- Recursive Language Models: Recursive Language Models
Skill Metadata
Created: 2026-04-14 Last Updated: 2026-05-15 Author: Agent Skills for Context Engineering Contributors; primary technical source Ramp Labs (public post) Version: 1.2.0
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

