Functions

contextEngineering

Function: contextEngineering()

contextEngineering(agent): ContextEngineeringHandle

Defined in: src/recorders/core/contextEngineering.ts:167

Wrap a runner's agentfootprint.context.injected stream into two filtered subscriptions: engineered + baseline. Multiple listeners per stream are allowed; detach() removes all of them.

The classifier inspects event.payload.source. Unknown sources (forward-compat: ContextSource is open-extensible) are routed to NEITHER stream — preferring under-firing over miscategorizing. Use agent.on('agentfootprint.context.injected', ...) directly if you need to observe sources that aren't (yet) classified.

Parameters

agent

RunnerWithEvents

Returns

ContextEngineeringHandle

On this page