Hacker News new | ask | show | jobs
by songodongo 136 days ago
Does Copilot include system prompts at the extension level or the API level?
1 comments

Copilot prompts are in the extension, they make the system_prompt field you send in the API request to an LLM

The underlying models have various guardrails and alignments that you cannot work around trivially

For Copilot, you can look at the code on GitHub, it is JSX based, which is interesting, they pass context budget info around

For Claude Code, and many others, you can find the extracted prompts online

At this point, they are all dynamically generated from fragments and contextual data (like what files or language you're working with)