github / github/copilot-cli

Feature: Prompt injection hooks for model

オープン
#1,023 コメント 0 件 リアクション 7 件 担当者 0 名 GitHub で見る
area:models area:plugins
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。