Skip to content

feat(prompt): support custom Copilot instructions file#1467

Merged
deathbeam merged 1 commit into
CopilotC-Nvim:mainfrom
deathbeam:support-copilot-instr
Oct 21, 2025
Merged

feat(prompt): support custom Copilot instructions file#1467
deathbeam merged 1 commit into
CopilotC-Nvim:mainfrom
deathbeam:support-copilot-instr

Conversation

@deathbeam
Copy link
Copy Markdown
Collaborator

@deathbeam deathbeam commented Oct 21, 2025

Add support for including custom Copilot instructions from .github/copilot-instructions.md in the system prompt. Refactor prompt resolution logic into a new prompt.lua module, and update function and tool resolution to use this module. Also simplify diff hunk application fallback logic.

BEGIN_COMMIT_OVERRIDE
feat(prompt)!: support custom Copilot instructions file

Add support for including custom Copilot instructions from
.github/copilot-instructions.md in the system prompt. Refactor prompt
resolution logic into a new prompt.lua module, and update function and
tool resolution to use this module. Also simplify diff hunk application
fallback logic.

BREAKING CHANGE: Passing function to system_prompt is no longer supported
END_COMMIT_OVERRIDE

Add support for including custom Copilot instructions from
.github/copilot-instructions.md in the system prompt. Refactor prompt
resolution logic into a new prompt.lua module, and update function and
tool resolution to use this module. Also simplify diff hunk application
fallback logic.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
@deathbeam deathbeam added the enhancement New feature or request label Oct 21, 2025
@deathbeam deathbeam mentioned this pull request Oct 21, 2025
7 tasks
@deathbeam deathbeam merged commit b06fd11 into CopilotC-Nvim:main Oct 21, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant