github / github/copilot-cli

Feature: Prompt injection hooks for model

未關閉
#1,023 0 則留言 7 個 reaction 已指派 0 人 在 GitHub 檢視
area:models area:plugins
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。