Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/aaronnat23/disp8ch/context-engineeringnpx skills add aaronnat23/disp8ch --skill context-engineeringgit clone --depth 1 https://github.com/aaronnat23/disp8chWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/aaronnat23/disp8ch/context-engineering)<a href="https://agentmods.dev/skills/aaronnat23/disp8ch/context-engineering"><img src="https://agentmods.dev/badge/skills/aaronnat23/disp8ch/context-engineering.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00445 |
| Opus 5 | $0.00000 | $0.00222 |
| Sonnet 5 | $0.00000 | $0.00089 |
| Haiku 4.5 | $0.00000 | $0.00044 |
Grade A, and why
context-engineering scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Context Engineering
Design agent context so the model receives the right information at the right time without stuffing every instruction, file, and tool result into the prompt.
Use When
- Building or debugging agentic runtimes, memory systems, tool loops, retrieval, compaction, or multi-agent workflows.
- A model forgets changed files, loses goals after compaction, overuses stale memory, or drowns in tool output.
- Designing skills, prompt indexes, evidence dossiers, scratch files, or session summaries.
Playbook
- Separate static context from dynamic context. Static context should contain stable rules and compact catalogs; dynamic context should be retrieved on demand.
- Put critical instructions, current task, decisions, and final constraints near the beginning or end of context.
- Store large tool outputs, logs, research notes, and intermediate plans as files or structured records, then cite or retrieve them selectively.
- Prefer skill names and descriptions in static context; load full skill bodies only when relevant.
- Preserve task state during compaction: objective, changed files, commands run, failures, open questions, and next action.
- Track context failure modes: missing context, too much irrelevant context, stale context, poisoned context, and lost-in-the-middle.
- Evaluate context changes by task success and total tokens per completed task, not by prompt size alone.
Patterns
- Filesystem scratchpad for large evidence and work logs.
- Evidence dossier for tool results and source maps.
- Skill catalog plus lazy skill loading.
- Anchored summaries with stable sections for goal, decisions, changed files, tests, blockers, and next steps.
- Multi-agent handoff packets that include only role-relevant context.
Guardrails
- Do not hide important safety constraints during compression.
- Do not save transient failures as durable context.
- Do not enable this by default for all agents; use it for agent-runtime, architecture, memory, and long-horizon work.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 41 lines · 0 tokens per session scan A 3ce374c9b8e9
context-engineering is a skill published in the GitHub repository aaronnat23/disp8ch (98 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 445 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
add-dashboard-orpc-procedure
Verify permission guards when creating, modifying, or reviewing any oRPC procedure file in packages/xinity-ai-dashboard/src/lib/server/orpc/procedures/.
run-tests
End-to-end verification that every test suite in the workspace runs green locally. Use when validating dependency changes, refactors, or anything else that could plausibly affect runtime behavior across packages.
add-env-variable
Add a new environment variable to any service package following the env-schema / parseEnv pattern with Zod schema, describe(), and meta(secret()) annotations.
code-quality-control
Apply repo quality standards (comments, naming, simplicity, structure) when reviewing or writing code. Use as a checklist before completing work on any file.
integrate-model
Integrate a new inference model into Xinity from a loose request like "install/integrate/add model X". Researches the model, assembles validated model data (the xinity-infoserver model entry), and verifies it actually runs via the daemon's run-model script, iterating on failures. Use whenever someone wants to make a…
modularity-review
Review codebase or design for modularity problems and produce actionable improvement recommendations. Also guides design of new modular boundaries from functional requirements. Inspired by Vlad Khononov's balanced-coupling model and golden-age-of-modularity principles. NOTE: Full upstream plugin at…