context_injection
Whether hooks can inject messages, system prompts, or conversation context into the agent’s active session.
Type: bool Content type: hooks
Provider Support
Section titled “Provider Support”| Provider | Supported | Mechanism |
|---|---|---|
| claude-code | ✓ | Hooks return systemMessage field in JSON output to inject context into agent's active session |
| cline | ✓ | context_modification_output: Cline hooks can inject additional context into the agent's session via hook output |
| codex | ✓ | hook_system_message: Codex hooks can inject a system message into the agent's active session context |
| amp | ✗ | Amp hooks cannot inject context into the agent session beyond the pre-execute 'send-user-message' action that cancels the tool call |
| copilot-cli | ✗ | Copilot CLI hooks cannot inject context into the agent session |
| crush | ✗ | not documented |
| cursor | ✗ | Cursor hooks do not document a mechanism to inject additional context into the agent session. |
| factory-droid | ✗ | Factory Droid hooks cannot inject context into the agent session |
| gemini-cli | ✗ | Gemini CLI hooks cannot inject context into the agent session |
| kiro | ✗ | Kiro hooks cannot inject context into the agent session |
| opencode | ✗ | not documented |
| pi | ✗ | Pi hooks cannot inject context into the agent session via hook output |
| roo-code | ✗ | not documented |
| windsurf | ✗ | Windsurf hooks cannot inject context into the agent's active session |
| zed | ✗ | not documented |