Skip to content llms.txt

context_injection

Whether hooks can inject messages, system prompts, or conversation context into the agent’s active session.

Type: bool Content type: hooks

ProviderSupportedMechanism
claude-codeHooks return systemMessage field in JSON output to inject context into agent's active session
clinecontext_modification_output: Cline hooks can inject additional context into the agent's session via hook output
codexhook_system_message: Codex hooks can inject a system message into the agent's active session context
ampAmp hooks cannot inject context into the agent session beyond the pre-execute 'send-user-message' action that cancels the tool call
copilot-cliCopilot CLI hooks cannot inject context into the agent session
crushnot documented
cursorCursor hooks do not document a mechanism to inject additional context into the agent session.
factory-droidFactory Droid hooks cannot inject context into the agent session
gemini-cliGemini CLI hooks cannot inject context into the agent session
kiroKiro hooks cannot inject context into the agent session
opencodenot documented
piPi hooks cannot inject context into the agent session via hook output
roo-codenot documented
windsurfWindsurf hooks cannot inject context into the agent's active session
zednot documented