aka Adaptive Prompting, Just-in-Time Context
Inject task-specific scaffolding (examples, hints, schemas) into the prompt only when the task type warrants it.
Agents handling heterogeneous tasks where always-present scaffolding wastes tokens and sometimes biases outputs.
Static prompts either include everything (wasteful, sometimes misleading) or include nothing (under-scaffolded for hard cases).
Maintain a library of scaffolds (few-shot examples, schemas, hints) keyed by task type or feature. At runtime, classify the task and inject the matching scaffolds. Audit which scaffolds fired per request.
uses → routingcomplements → context-window-packingcomplements → agent-skills