添加总结

添加总结
This commit is contained in:
tycon
2025-10-14 22:04:51 +08:00
parent c87083d594
commit 60ddd120c4
1067 changed files with 134118 additions and 10742 deletions

View File

@@ -1,6 +1,6 @@
## Prompt.txt
```text
````text
Answer the user's request using the relevant tool(s), if they are available. Check that all the required parameters for each tool call are provided or can reasonably be inferred from context. IF there are no relevant tools or there are missing values for required parameters, ask the user to supply these values; otherwise proceed with the tool calls. If the user provides a specific value for a parameter (for example provided in quotes), make sure to use that value EXACTLY. DO NOT make up values for or ask about optional parameters. Carefully analyze descriptive terms in the request as they may indicate required parameter values that should be included even if not explicitly quoted.
<identity>
@@ -405,4 +405,5 @@ When using the insert_edit_into_file tool, avoid repeating existing code, instea
<function_calls>
<invoke name="[tool_name]">
<parameter name="[param_name]">[param_value]
```
````

View File

@@ -1,6 +1,6 @@
## chat-titles.txt
```text
````text
You are an expert in crafting pithy titles for chatbot conversations. You are presented with a chat conversation, and you reply with a brief title that captures the main topic of discussion in that conversation.
Follow Microsoft content policies.
Avoid content that violates copyrights.
@@ -13,4 +13,4 @@ Here are some examples of good titles:
- Location of LinkedList implentation in codebase
- Adding a tree view to a VS Code extension
- React useState hook usage
```
````

View File

@@ -1,6 +1,6 @@
## claude-sonnet-4.txt
```text
````text
You are an expert AI programming assistant, working with a user in the VS Code editor.
When asked for your name, you must respond with "GitHub Copilot".
Follow the user's requirements carefully & to the letter.
@@ -131,4 +131,4 @@ When referring to a filename or symbol in the user's workspace, wrap it in backt
</userRequest>
copilot_cache_control: {"type":"ephemeral"}
~~~
```
````

View File

@@ -1,6 +1,6 @@
## gemini-2.5-pro.txt
```text
````text
You are an expert AI programming assistant, working with a user in the VS Code editor.
When asked for your name, you must respond with "GitHub Copilot".
Follow the user's requirements carefully & to the letter.
@@ -145,4 +145,5 @@ hey
</userRequest>
copilot_cache_control: {"type":"ephemeral"}
~~~
```
````

View File

@@ -1,6 +1,6 @@
## gpt-4.1.txt
```text
````text
You are an expert AI programming assistant, working with a user in the VS Code editor.
When asked for your name, you must respond with "GitHub Copilot".
Follow the user's requirements carefully & to the letter.
@@ -142,4 +142,4 @@ When using the insert_edit_into_file tool, avoid repeating existing code, instea
hey (See <attachments> above for file contents. You may not need to search or read the file again.)
</userRequest>
copilot_cache_control: {"type":"ephemeral"}
```
````

View File

@@ -1,6 +1,6 @@
## gpt-4o.txt
```text
````text
You are an expert AI programming assistant, working with a user in the VS Code editor.
When asked for your name, you must respond with "GitHub Copilot".
Follow the user's requirements carefully & to the letter.
@@ -96,4 +96,5 @@ applyTo: '**'
</instructions>
copilot_cache_control: {"type":"ephemeral"}
```
````

View File

@@ -1,6 +1,6 @@
## gpt-5-mini.txt
```text
````text
You are an expert AI programming assistant, working with a user in the VS Code editor.
When asked for your name, you must respond with "GitHub Copilot".
Follow the user's requirements carefully & to the letter.
@@ -217,4 +217,4 @@ When referring to a filename or symbol in the user's workspace, wrap it in backt
</importantReminders>
</reminderInstructions>
```
````

View File

@@ -1,6 +1,6 @@
## gpt-5.txt
```text
````text
You are an expert AI programming assistant, working with a user in the VS Code editor.
When asked for your name, you must respond with "GitHub Copilot".
Follow the user's requirements carefully & to the letter.
@@ -232,4 +232,7 @@ When referring to a filename or symbol in the user's workspace, wrap it in backt
hey (See <attachments> above for file contents. You may not need to search or read the file again.)
</userRequest>
copilot_cache_control: {"type":"ephemeral"}
```
````

View File

@@ -1,16 +1,21 @@
# VSCode Agent (EN)
# VSCode Agent
## 内容列表
- [chat-titles](./chat-titles.md)
- [claude-sonnet-4](./claude-sonnet-4.md)
- [gemini-2.5-pro](./gemini-2.5-pro.md)
- [gpt-4.1](./gpt-4.1.md)
- [gpt-4o](./gpt-4o.md)
- [gpt-5-mini](./gpt-5-mini.md)
- [gpt-5](./gpt-5.md)
- [nes-tab-completion](./nes-tab-completion.md)
- [Prompt](./Prompt.md)
- 📄 [chat-titles](/en/en/vscode-agent/chat-titles.md)
- 📄 [claude-sonnet-4](/en/en/vscode-agent/claude-sonnet-4.md)
- 📄 [gemini-2.5-pro](/en/en/vscode-agent/gemini-2.5-pro.md)
- 📄 [gpt-4.1](/en/en/vscode-agent/gpt-4.1.md)
- 📄 [gpt-4o](/en/en/vscode-agent/gpt-4o.md)
- 📄 [gpt-5-mini](/en/en/vscode-agent/gpt-5-mini.md)
- 📄 [gpt-5](/en/en/vscode-agent/gpt-5.md)
- 📄 [nes-tab-completion](/en/en/vscode-agent/nes-tab-completion.md)
- 📄 [Prompt](/en/en/vscode-agent/Prompt.md)
## Summary of Product Tool Documents
This directory contains the core instructions and configuration files designed for the AI programming assistant "GitHub Copilot" integrated into VS Code. These files collectively define the multifaceted behavior of the assistant:
*完整还原。*
- **`Prompt.md`**: This is the main system prompt, defining the assistant's identity, high-level instructions, tool usage rules (such as `semantic_search`, `run_in_terminal`, `insert_edit_into_file`, etc.), and best practices for file editing and error handling.
- **Specific Model Prompts (e.g., `gpt-4o.md`, `gemini-2.5-pro.md`, `claude-sonnet-4.md`, etc.)**: These files provide customized instruction sets for different large language models. While they share many general instructions, they also include fine-tuning for specific model tools (e.g., `apply_patch`) or behaviors to optimize their performance in the Copilot environment.
- **Functional Prompts (e.g., `chat-titles.md`, `nes-tab-completion.md`)**: These are dedicated prompts for specific functionalities. `chat-titles.md` guides the AI on how to generate concise titles for chat conversations, while `nes-tab-completion.md` (empty content) might be used to define functionalities related to Tab key code completion.
In summary, this directory, through a general base prompt and multiple specialized prompts for different models and specific functionalities, constructs a complex, layered, and highly configurable AI agent system, enabling it to efficiently assist users with programming tasks in the VS Code environment.

View File

@@ -1,6 +1,6 @@
## nes-tab-completion.txt
```text
````text
Your role as an AI assistant is to help developers complete their code tasks by assisting in editing specific sections of code marked by the <|code_to_edit|> and <|/code_to_edit|> tags, while adhering to Microsoft's content policies and avoiding the creation of content that violates copyrights.
You have access to the following information to help you make informed suggestions:
@@ -168,4 +168,5 @@ Assistant
```
this cycle repeats
```
```
````