AI CompendiumA public chart of the language
Home / Agents & Harness / Context Pointer
Agents & Harness

Context Pointer

also called Reference

A cheap reference to something the agent can fetch if needed.

Definition

A short mention of where information lives — a file path, a document ID, a URL — placed in context instead of the content itself. The agent dereferences it only when the task requires it.

Pointers trade a little latency for a much smaller, sharper context. They also stay valid when the underlying content changes, which copies do not.

A pointer is a bet that the agent will fetch what it needs and will do so competently. That bet is good when the environment has cheap, reliable retrieval — a filesystem with grep, a search tool — and bad when the information is expensive to find or easy to misread.

How people use it
Reviewing a bloated prompt.
"Replace the pasted schema with a pointer to the migrations directory. Let it look when it matters."
Worked example

Paths instead of file contents

An agent needs to work across a large repository.

Give it the tree and the conventions, and let it read the files it decides matter. Pasting the contents of a fifty-file module costs a fortune and buries the relevant three paragraphs, which is why the working style converges on grepping first.

Sources
Related terms