用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill context-engineering命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | context-engineering |
| description | Context design for agents: pre-fetch, compaction, envelopes. |
| version | 1.0.0 |
| author | Hermes Cortex (Esther, from verified 12-Factor Agents research, 2026-08-24) |
| license | MIT |
| platforms | ["linux","macos"] |
| metadata | {"hermes":{"tags":["context-engineering","agents","pre-fetch","compaction","context-window","12-factor","prompt-design"],"related_skills":["software-factory","session-manager","memory-architecture","autonomous-ai-agents"]}} |
The context window is the ONLY primitive: tokens in → tokens out. Get the best inputs to get the best outputs. This skill captures the verified patterns from Dex Horthy's 12-Factor Agents (F3 own-your-context-window, F13 pre-fetch) and how they were implemented in Hermes Cortex.
Full research bank: references/12-factor-agents.md.
"If you already know what tools you'll want the model to call, call them DETERMINISTICALLY and let the model do the hard part of figuring out how to use their outputs."
Don't tell the agent "you may want to fetch X" — fetch X and include the output. Free CPU ≠ inference tokens; pre-fetching costs CPU, letting the model fetch costs tokens + round-trips + drift.
ops/scripts/executor_context_builder.py — deterministic pre-fetch into
the execution_request envelope before dispatch. Sections in priority order,
budget-capped (~6000 chars, F3):
Pitfalls learned building it:
Files on disk are free context. docs/adr/ for durable decisions
(context/decision/consequences, never rewrite — supersede), docs/external/
for env var NAMES (never values) + third-party services. A fresh session
should read these instead of re-deriving or asking.
references/12-factor-agents.md — full verified research: 13 factors,
video points (software-factory model, program design, benchmarks-vs-
maintainability), the HC implementation map.