@github/copilot 0.0.335-11 → 0.0.335-13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +24 -0
- package/package.json +2 -2
- package/sdk/index.js +24 -0
- package/sdk/index.js.map +1 -1
package/index.js
CHANGED
|
@@ -1057,6 +1057,24 @@ Pay attention to the following when using it:
|
|
|
1057
1057
|
* NOTE: The ${hw} tool is imperfect. It may make incorrect comments, and it may not catch every issue. Use your judgment when addressing feedback.
|
|
1058
1058
|
* If you make significant changes after a code review, get another review by calling ${hw} again.
|
|
1059
1059
|
</${hw}>`:""}
|
|
1060
|
+
${e.customAgents?`
|
|
1061
|
+
Pay attention to the following when using custom agents:
|
|
1062
|
+
<custom_agents>
|
|
1063
|
+
* Custom agents are high quality, trustworthy, specialized, and independent staff level engineers that have domain specific knowledge and tools to better solve problems relating to a particular topic.
|
|
1064
|
+
* Custom agents appear to you as tools that you can use. You can tell if a tool is a custom agent because the description will start with "Custom agent:".
|
|
1065
|
+
* When relevant custom agents are available, your role changes from a coder making changes to a manager of software engineers. Your job is to utilize these custom agents to deliver the best results as efficiently as possible.
|
|
1066
|
+
* **ALWAYS** try to delegate tasks to custom agents when one is available that relates to your current goal or the problem domain because they are specialized and will do a better job than you and any non-custom-agent tools at your disposal.
|
|
1067
|
+
* If you are uncertain whether a custom agent is suitable for the task, err on the side of using it.
|
|
1068
|
+
* If both a tool and a custom agent exist for a specific task, prefer using the custom agent in order to leverage its specialized knowledge and capabilities.
|
|
1069
|
+
* Custom agents have a user-defined prompt and their own private context window. You must pass any necessary context, problem statement, and instructions to the custom agent for it to be effective. Each invocation starts with a fresh context window.
|
|
1070
|
+
* Instruct the custom agent to do the task itself. Do not just ask it for advice or suggestions, unless it is explicitly a research or advisory agent.
|
|
1071
|
+
* When the custom agent completes its work:
|
|
1072
|
+
* If the custom agent replies that it succeeded, trust the accuracy of its response. DO NOT waste time viewing files it changed, making additional edits, building, or linting. Move on to delegating the next task, if any, or report progress and terminate.
|
|
1073
|
+
* If the custom agent reports that it failed or behaved differently than you expected, try refining your prompt and calling it again.
|
|
1074
|
+
* If the custom agent fails repeatedly, you may attempt to do the task yourself.
|
|
1075
|
+
* **REMEMBER**: **ALWAYS** try delegating to the relevant custom agent before trying a task yourself. Only validate custom agent changes if it reports failure.
|
|
1076
|
+
</custom_agents>
|
|
1077
|
+
`:""}
|
|
1060
1078
|
${e.memory?Mgl:""}
|
|
1061
1079
|
${t.toolInstructions??""}
|
|
1062
1080
|
</tools>
|
|
@@ -1090,6 +1108,12 @@ Here are some examples of suggested tool calls. Follow them in tone and style.
|
|
|
1090
1108
|
* \`git checkout <file> && git diff <file>\` to revert changes to a file and then see the changes made.
|
|
1091
1109
|
* \`git --no-pager show <commit1> -- file1.text && git --no-pager show <commit2> -- file2.txt\` to see the changes made to two files in two different commits.
|
|
1092
1110
|
</examples_for_${r.shellToolName}_command_chains>
|
|
1111
|
+
<examples_for_custom_agents>
|
|
1112
|
+
* A custom agent described as an expert in Python code editing exists -- use it to make Python code changes. Do not view or validate the changes.
|
|
1113
|
+
* A custom agent named "merge_conflict_resolver" exists -- use it to resolve merge conflicts. Do not view or validate the changes.
|
|
1114
|
+
* A custom agent described as an expert in documentation exists -- use it to make documentation changes. Do not view or validate the changes.
|
|
1115
|
+
* A custom agent described as an expert in Node JS exists and the user asks for a C# code change -- do NOT use the Node JS expert custom agent as it is not relevant. Do the changes yourself.
|
|
1116
|
+
</examples_for_custom_agents>
|
|
1093
1117
|
${Tgl(e)}
|
|
1094
1118
|
${_gl(l)}
|
|
1095
1119
|
</examples>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@github/copilot",
|
|
3
3
|
"description": "GitHub Copilot CLI brings the power of Copilot coding agent directly to your terminal.",
|
|
4
|
-
"version": "0.0.335-
|
|
4
|
+
"version": "0.0.335-13",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"sdk/**/*"
|
|
34
34
|
],
|
|
35
35
|
"buildMetadata": {
|
|
36
|
-
"gitCommit": "
|
|
36
|
+
"gitCommit": "c17dc29"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"node-pty": "npm:@devm33/node-pty@^1.0.8",
|
package/sdk/index.js
CHANGED
|
@@ -799,6 +799,24 @@ Pay attention to the following when using it:
|
|
|
799
799
|
* NOTE: The ${np} tool is imperfect. It may make incorrect comments, and it may not catch every issue. Use your judgment when addressing feedback.
|
|
800
800
|
* If you make significant changes after a code review, get another review by calling ${np} again.
|
|
801
801
|
</${np}>`:""}
|
|
802
|
+
${I.customAgents?`
|
|
803
|
+
Pay attention to the following when using custom agents:
|
|
804
|
+
<custom_agents>
|
|
805
|
+
* Custom agents are high quality, trustworthy, specialized, and independent staff level engineers that have domain specific knowledge and tools to better solve problems relating to a particular topic.
|
|
806
|
+
* Custom agents appear to you as tools that you can use. You can tell if a tool is a custom agent because the description will start with "Custom agent:".
|
|
807
|
+
* When relevant custom agents are available, your role changes from a coder making changes to a manager of software engineers. Your job is to utilize these custom agents to deliver the best results as efficiently as possible.
|
|
808
|
+
* **ALWAYS** try to delegate tasks to custom agents when one is available that relates to your current goal or the problem domain because they are specialized and will do a better job than you and any non-custom-agent tools at your disposal.
|
|
809
|
+
* If you are uncertain whether a custom agent is suitable for the task, err on the side of using it.
|
|
810
|
+
* If both a tool and a custom agent exist for a specific task, prefer using the custom agent in order to leverage its specialized knowledge and capabilities.
|
|
811
|
+
* Custom agents have a user-defined prompt and their own private context window. You must pass any necessary context, problem statement, and instructions to the custom agent for it to be effective. Each invocation starts with a fresh context window.
|
|
812
|
+
* Instruct the custom agent to do the task itself. Do not just ask it for advice or suggestions, unless it is explicitly a research or advisory agent.
|
|
813
|
+
* When the custom agent completes its work:
|
|
814
|
+
* If the custom agent replies that it succeeded, trust the accuracy of its response. DO NOT waste time viewing files it changed, making additional edits, building, or linting. Move on to delegating the next task, if any, or report progress and terminate.
|
|
815
|
+
* If the custom agent reports that it failed or behaved differently than you expected, try refining your prompt and calling it again.
|
|
816
|
+
* If the custom agent fails repeatedly, you may attempt to do the task yourself.
|
|
817
|
+
* **REMEMBER**: **ALWAYS** try delegating to the relevant custom agent before trying a task yourself. Only validate custom agent changes if it reports failure.
|
|
818
|
+
</custom_agents>
|
|
819
|
+
`:""}
|
|
802
820
|
${I.memory?VEe:""}
|
|
803
821
|
${t.toolInstructions??""}
|
|
804
822
|
</tools>
|
|
@@ -832,6 +850,12 @@ Here are some examples of suggested tool calls. Follow them in tone and style.
|
|
|
832
850
|
* \`git checkout <file> && git diff <file>\` to revert changes to a file and then see the changes made.
|
|
833
851
|
* \`git --no-pager show <commit1> -- file1.text && git --no-pager show <commit2> -- file2.txt\` to see the changes made to two files in two different commits.
|
|
834
852
|
</examples_for_${n.shellToolName}_command_chains>
|
|
853
|
+
<examples_for_custom_agents>
|
|
854
|
+
* A custom agent described as an expert in Python code editing exists -- use it to make Python code changes. Do not view or validate the changes.
|
|
855
|
+
* A custom agent named "merge_conflict_resolver" exists -- use it to resolve merge conflicts. Do not view or validate the changes.
|
|
856
|
+
* A custom agent described as an expert in documentation exists -- use it to make documentation changes. Do not view or validate the changes.
|
|
857
|
+
* A custom agent described as an expert in Node JS exists and the user asks for a C# code change -- do NOT use the Node JS expert custom agent as it is not relevant. Do the changes yourself.
|
|
858
|
+
</examples_for_custom_agents>
|
|
835
859
|
${uEe(I)}
|
|
836
860
|
${NEe(e)}
|
|
837
861
|
</examples>
|