Feature: Prompt injection hooks for model
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
## Description
Add support for hooks that can inject content into prompts before they're sent to the model.
## Use Case
Currently, hooks like user prompt submit hooks can only execute scripts. This feature request is for hooks that can:
- Inject custom commands into user prompts before submission
- Not just execute side-effect scripts, but actively modify/enhance the user's prompt
- Inject context, instructions, or commands into the model request
## Example
A hook that could automatically inject environment-specific instructions or context into every prompt sent to the model, without requiring the user to manually type it each time.
## Benefits
- Automate prompt enhancement and context injection
- Create reusable prompt templates and patterns
- Enforce prompt standards across teams
- Enhance model responses with injected context
贡献指南
评估
这个 Issue 还没有评估数据。