Context Engineering#

Document record

Version: 0.3.5 | Date: 27.11.2026 | Time: 14:31 | GlobalID: 20261127_1431_AI_Harness_Context_Engineering_v0.3.5

Last Updated: 27.11.2026 14:31

Framework: ai-quickstart_Documentation

Status: wip

Origin Domain: haluszka.com

Git: Repo: ai-quickstart | Branch: main | Path: docs/guide/context-engineering.md | Commit: pending

Tag block: #context_engineering #memory #retrieval #graph_rag

Six things that are not the same#

Term

Meaning

Training

learned patterns in model parameters

Active context

material supplied for the current inference

Retrieval

fetching material that may enter context

Persistent memory

records stored beyond the current run

Tool state

files, applications, databases, and other external state

Multimodal conditioning

image, audio, video, or other model inputs

Context engineering selects what is useful now. The next step in this guide’s approach is to name its reusable components more precisely: a Working Harness packages how to operate a repository; a Knowledge Harness packages maintained subject understanding and evidence. The runtime selects from both for the current task.

Anthropic describes context as a finite resource and recommends selecting high-signal material (source).

Start with a map, then load the task#

A compact AGENTS.md, HORIZON.md, or index.md should answer:

Field

What the agent needs to know

Scope and owner

what belongs here and who maintains it

Keywords

which subjects and task types this module covers

Use when

the trigger for loading this sub-harness

Routes

where the relevant skill, document, command, or evidence lives

Authority and freshness

which source governs a claim and when it was checked

Checks

how to establish that the work succeeded

An index is a routing map. It lets the agent identify the right branch before reading its contents. Load the entry point, follow the task route, and expand to exact evidence when precision requires it. Leave unrelated branches retrievable.

The map can also route to Skills offered by a connected MCP server. Discover the server’s Skill names and descriptions first; load the matching procedure and its resources only when the task needs it and the host supports the extension. This keeps service know-how near the capability without loading every service playbook into every task.

Retrieve a connected working set#

The working harness’s entry map routes to required local skills and knowledge. The Runtime Harness can separately discover an MCP server’s optional service Skills and load a matching guide when using that service. Local routes and server catalogs remain distinct origins with distinct owners. For growing Knowledge Harnesses in memory and domain work, the next step is an owner-scoped graph index: retrieve the relevant entities, relationships, and source excerpts, then rank and filter them into a bounded context packet. Keep the full graph outside the context window.

Knowledge graphs and GraphRAG explain this target design. The graph supplies relationships; exact sources supply evidence. Evaluate retrieval quality and token use together: a larger graph traversal can produce more context rather than less.

Keep instructions in their scope#

Personal conventions, repository operating rules, domain facts, and project requirements have different owners. Their entry points should state that scope before presenting rules. A skill describes how to perform an activity; source material supplies evidence rather than new instructions.

In the routed architecture, the Personal Governance Harness owns the shared responsibility contract. It defines where rules belong so consumers can select compatible modules. The active contract stays with that owner. A local instruction may specialize a shared convention where that convention allows it. A real contradiction needs an owner decision and a correction at the source; silently blending competing rules creates a third, invented rule.

The conversation itself creates context#

An answer, test failure, or tool result can change the next step’s context. Check intermediate results before using them as the premise for further work. Keep accepted decisions in durable records so a later run can reconstruct the relevant state without replaying the whole conversation.

This is the saddlebags’ return journey: outputs become inputs. The evaluation loop checks the result, while durable knowledge changes pass through review.

For the division between reusable method and live access, see Context, MCP, and Skills.