@tencent-ai/codebuddy-code 1.25.0-next.fadc360.20251106 → 2.0.0-next.7080995.20251109
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/CHANGELOG.md +30 -0
- package/dist/codebuddy.js +16 -10
- package/package.json +1 -1
- package/product.cloudhosted.json +40 -18
- package/product.internal.json +26 -19
- package/product.ioa.json +34 -25
- package/product.json +42 -28
- package/product.selfhosted.json +25 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tencent-ai/codebuddy-code",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-next.7080995.20251109",
|
|
4
4
|
"description": "Use CodeBuddy, Tencent's AI assistant, right from your terminal. CodeBuddy can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.",
|
|
5
5
|
"main": "lib/node/index.js",
|
|
6
6
|
"typings": "lib/node/index.d.ts",
|
package/product.cloudhosted.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"instructions": "cli-agent-prompt",
|
|
6
6
|
"description": "cli agent",
|
|
7
7
|
"models": [
|
|
8
|
+
"glm-4.6",
|
|
8
9
|
"deepseek-v3.1",
|
|
9
10
|
"deepseek-v3-0324"
|
|
10
11
|
],
|
|
@@ -67,22 +68,7 @@
|
|
|
67
68
|
"name": "compact",
|
|
68
69
|
"instructions": "compact-agent-prompt",
|
|
69
70
|
"description": "compact agent",
|
|
70
|
-
"tools": [
|
|
71
|
-
"Read",
|
|
72
|
-
"Write",
|
|
73
|
-
"Edit",
|
|
74
|
-
"MultiEdit",
|
|
75
|
-
"Bash",
|
|
76
|
-
"Glob",
|
|
77
|
-
"Grep",
|
|
78
|
-
"TodoWrite",
|
|
79
|
-
"WebFetch",
|
|
80
|
-
"WebSearch",
|
|
81
|
-
"NotebookEdit",
|
|
82
|
-
"Task",
|
|
83
|
-
"SlashCommand",
|
|
84
|
-
"Skill"
|
|
85
|
-
],
|
|
71
|
+
"tools": [],
|
|
86
72
|
"tags": [
|
|
87
73
|
"cli",
|
|
88
74
|
"compact"
|
|
@@ -120,6 +106,28 @@
|
|
|
120
106
|
"cli",
|
|
121
107
|
"sub-agent"
|
|
122
108
|
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "Explore",
|
|
112
|
+
"instructions": "agent-explore-instructions",
|
|
113
|
+
"description": "Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. \"src/components/**/*.tsx\"), search code for keywords (eg. \"API endpoints\"), or answer questions about the codebase (eg. \"how do API endpoints work?\"). When calling this agent, specify the desired thoroughness level: \"quick\" for basic searches, \"medium\" for moderate exploration, or \"very thorough\" for comprehensive analysis across multiple locations and naming conventions.",
|
|
114
|
+
"tools": [
|
|
115
|
+
"Read",
|
|
116
|
+
"Bash",
|
|
117
|
+
"Glob",
|
|
118
|
+
"Grep",
|
|
119
|
+
"WebFetch",
|
|
120
|
+
"WebSearch",
|
|
121
|
+
"BashOutput",
|
|
122
|
+
"KillShell",
|
|
123
|
+
"SlashCommand",
|
|
124
|
+
"Skill"
|
|
125
|
+
],
|
|
126
|
+
"asTool": true,
|
|
127
|
+
"tags": [
|
|
128
|
+
"cli",
|
|
129
|
+
"sub-agent"
|
|
130
|
+
]
|
|
123
131
|
}
|
|
124
132
|
],
|
|
125
133
|
"models": [
|
|
@@ -133,6 +141,20 @@
|
|
|
133
141
|
"supportsImages": false,
|
|
134
142
|
"maxAllowedSize": 56000
|
|
135
143
|
},
|
|
144
|
+
{
|
|
145
|
+
"credits": "x0.37 credits",
|
|
146
|
+
"id": "glm-4.6",
|
|
147
|
+
"name": "GLM-4.6",
|
|
148
|
+
"vendor": "f",
|
|
149
|
+
"maxOutputTokens": 32000,
|
|
150
|
+
"maxInputTokens": 168000,
|
|
151
|
+
"supportsToolCall": true,
|
|
152
|
+
"supportsImages": false,
|
|
153
|
+
"disabledMultimodal": true,
|
|
154
|
+
"maxAllowedSize": 168000,
|
|
155
|
+
"supportsReasoning": true,
|
|
156
|
+
"temperature": 1
|
|
157
|
+
},
|
|
136
158
|
{
|
|
137
159
|
"credits": "x0.37 credits",
|
|
138
160
|
"id": "deepseek-v3.1",
|
|
@@ -175,6 +197,6 @@
|
|
|
175
197
|
"productFeatures": {
|
|
176
198
|
"BillingNotice": false
|
|
177
199
|
},
|
|
178
|
-
"commit": "
|
|
179
|
-
"date": "2025-11-
|
|
200
|
+
"commit": "70809956ecd184d5862faba47c7b8b8bdb8444b1",
|
|
201
|
+
"date": "2025-11-08T16:05:38.199Z"
|
|
180
202
|
}
|
package/product.internal.json
CHANGED
|
@@ -70,22 +70,7 @@
|
|
|
70
70
|
"name": "compact",
|
|
71
71
|
"instructions": "compact-agent-prompt",
|
|
72
72
|
"description": "compact agent",
|
|
73
|
-
"tools": [
|
|
74
|
-
"Read",
|
|
75
|
-
"Write",
|
|
76
|
-
"Edit",
|
|
77
|
-
"MultiEdit",
|
|
78
|
-
"Bash",
|
|
79
|
-
"Glob",
|
|
80
|
-
"Grep",
|
|
81
|
-
"TodoWrite",
|
|
82
|
-
"WebFetch",
|
|
83
|
-
"WebSearch",
|
|
84
|
-
"NotebookEdit",
|
|
85
|
-
"Task",
|
|
86
|
-
"SlashCommand",
|
|
87
|
-
"Skill"
|
|
88
|
-
],
|
|
73
|
+
"tools": [],
|
|
89
74
|
"tags": [
|
|
90
75
|
"cli",
|
|
91
76
|
"compact"
|
|
@@ -123,6 +108,28 @@
|
|
|
123
108
|
"cli",
|
|
124
109
|
"sub-agent"
|
|
125
110
|
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "Explore",
|
|
114
|
+
"instructions": "agent-explore-instructions",
|
|
115
|
+
"description": "Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. \"src/components/**/*.tsx\"), search code for keywords (eg. \"API endpoints\"), or answer questions about the codebase (eg. \"how do API endpoints work?\"). When calling this agent, specify the desired thoroughness level: \"quick\" for basic searches, \"medium\" for moderate exploration, or \"very thorough\" for comprehensive analysis across multiple locations and naming conventions.",
|
|
116
|
+
"tools": [
|
|
117
|
+
"Read",
|
|
118
|
+
"Bash",
|
|
119
|
+
"Glob",
|
|
120
|
+
"Grep",
|
|
121
|
+
"WebFetch",
|
|
122
|
+
"WebSearch",
|
|
123
|
+
"BashOutput",
|
|
124
|
+
"KillShell",
|
|
125
|
+
"SlashCommand",
|
|
126
|
+
"Skill"
|
|
127
|
+
],
|
|
128
|
+
"asTool": true,
|
|
129
|
+
"tags": [
|
|
130
|
+
"cli",
|
|
131
|
+
"sub-agent"
|
|
132
|
+
]
|
|
126
133
|
}
|
|
127
134
|
],
|
|
128
135
|
"models": [
|
|
@@ -149,7 +156,7 @@
|
|
|
149
156
|
"maxAllowedSize": 56000
|
|
150
157
|
},
|
|
151
158
|
{
|
|
152
|
-
"credits": "x0.
|
|
159
|
+
"credits": "x0.37 credits",
|
|
153
160
|
"id": "glm-4.6",
|
|
154
161
|
"name": "GLM-4.6",
|
|
155
162
|
"vendor": "f",
|
|
@@ -192,6 +199,6 @@
|
|
|
192
199
|
"productFeatures": {
|
|
193
200
|
"BillingNotice": false
|
|
194
201
|
},
|
|
195
|
-
"commit": "
|
|
196
|
-
"date": "2025-11-
|
|
202
|
+
"commit": "70809956ecd184d5862faba47c7b8b8bdb8444b1",
|
|
203
|
+
"date": "2025-11-08T16:05:35.857Z"
|
|
197
204
|
}
|
package/product.ioa.json
CHANGED
|
@@ -81,22 +81,7 @@
|
|
|
81
81
|
"name": "compact",
|
|
82
82
|
"instructions": "compact-agent-prompt",
|
|
83
83
|
"description": "compact agent",
|
|
84
|
-
"tools": [
|
|
85
|
-
"Read",
|
|
86
|
-
"Write",
|
|
87
|
-
"Edit",
|
|
88
|
-
"MultiEdit",
|
|
89
|
-
"Bash",
|
|
90
|
-
"Glob",
|
|
91
|
-
"Grep",
|
|
92
|
-
"TodoWrite",
|
|
93
|
-
"WebFetch",
|
|
94
|
-
"WebSearch",
|
|
95
|
-
"NotebookEdit",
|
|
96
|
-
"Task",
|
|
97
|
-
"SlashCommand",
|
|
98
|
-
"Skill"
|
|
99
|
-
],
|
|
84
|
+
"tools": [],
|
|
100
85
|
"tags": [
|
|
101
86
|
"cli",
|
|
102
87
|
"compact"
|
|
@@ -134,6 +119,28 @@
|
|
|
134
119
|
"cli",
|
|
135
120
|
"sub-agent"
|
|
136
121
|
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "Explore",
|
|
125
|
+
"instructions": "agent-explore-instructions",
|
|
126
|
+
"description": "Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. \"src/components/**/*.tsx\"), search code for keywords (eg. \"API endpoints\"), or answer questions about the codebase (eg. \"how do API endpoints work?\"). When calling this agent, specify the desired thoroughness level: \"quick\" for basic searches, \"medium\" for moderate exploration, or \"very thorough\" for comprehensive analysis across multiple locations and naming conventions.",
|
|
127
|
+
"tools": [
|
|
128
|
+
"Read",
|
|
129
|
+
"Bash",
|
|
130
|
+
"Glob",
|
|
131
|
+
"Grep",
|
|
132
|
+
"WebFetch",
|
|
133
|
+
"WebSearch",
|
|
134
|
+
"BashOutput",
|
|
135
|
+
"KillShell",
|
|
136
|
+
"SlashCommand",
|
|
137
|
+
"Skill"
|
|
138
|
+
],
|
|
139
|
+
"asTool": true,
|
|
140
|
+
"tags": [
|
|
141
|
+
"cli",
|
|
142
|
+
"sub-agent"
|
|
143
|
+
]
|
|
137
144
|
}
|
|
138
145
|
],
|
|
139
146
|
"models": [
|
|
@@ -150,7 +157,7 @@
|
|
|
150
157
|
"maxAllowedSize": 56000
|
|
151
158
|
},
|
|
152
159
|
{
|
|
153
|
-
"credits": "x0.
|
|
160
|
+
"credits": "x0.37 credits",
|
|
154
161
|
"id": "glm-4.6",
|
|
155
162
|
"name": "GLM-4.6",
|
|
156
163
|
"vendor": "f",
|
|
@@ -299,21 +306,23 @@
|
|
|
299
306
|
"credits": "x0.20 credits",
|
|
300
307
|
"id": "gemini-2.5-flash",
|
|
301
308
|
"name": "Gemini-2.5-Flash",
|
|
302
|
-
"maxOutputTokens":
|
|
303
|
-
"maxInputTokens":
|
|
309
|
+
"maxOutputTokens": 72000,
|
|
310
|
+
"maxInputTokens": 400000,
|
|
304
311
|
"supportsToolCall": true,
|
|
305
312
|
"supportsImages": true,
|
|
306
|
-
"
|
|
313
|
+
"supportsReasoning": true,
|
|
314
|
+
"maxAllowedSize": 400000
|
|
307
315
|
},
|
|
308
316
|
{
|
|
309
317
|
"credits": "x0.87 credits",
|
|
310
318
|
"id": "gemini-2.5-pro",
|
|
311
319
|
"name": "Gemini-2.5-Pro",
|
|
312
|
-
"maxOutputTokens":
|
|
313
|
-
"maxInputTokens":
|
|
320
|
+
"maxOutputTokens": 72000,
|
|
321
|
+
"maxInputTokens": 400000,
|
|
314
322
|
"supportsToolCall": true,
|
|
315
323
|
"supportsImages": true,
|
|
316
|
-
"
|
|
324
|
+
"supportsReasoning": true,
|
|
325
|
+
"maxAllowedSize": 400000
|
|
317
326
|
},
|
|
318
327
|
{
|
|
319
328
|
"id": "kimi-k2-gf",
|
|
@@ -333,6 +342,6 @@
|
|
|
333
342
|
"productFeatures": {
|
|
334
343
|
"BillingNotice": false
|
|
335
344
|
},
|
|
336
|
-
"commit": "
|
|
337
|
-
"date": "2025-11-
|
|
345
|
+
"commit": "70809956ecd184d5862faba47c7b8b8bdb8444b1",
|
|
346
|
+
"date": "2025-11-08T16:05:37.035Z"
|
|
338
347
|
}
|
package/product.json
CHANGED
|
@@ -186,22 +186,24 @@
|
|
|
186
186
|
{
|
|
187
187
|
"credits": "x0.20 credits",
|
|
188
188
|
"id": "gemini-2.5-flash",
|
|
189
|
-
"maxAllowedSize": 80000,
|
|
190
|
-
"maxOutputTokens": 64000,
|
|
191
|
-
"maxInputTokens": 200000,
|
|
192
189
|
"name": "Gemini-2.5-Flash",
|
|
190
|
+
"maxOutputTokens": 72000,
|
|
191
|
+
"maxInputTokens": 400000,
|
|
192
|
+
"supportsToolCall": true,
|
|
193
193
|
"supportsImages": true,
|
|
194
|
-
"
|
|
194
|
+
"supportsReasoning": true,
|
|
195
|
+
"maxAllowedSize": 400000
|
|
195
196
|
},
|
|
196
197
|
{
|
|
197
198
|
"credits": "x0.87 credits",
|
|
198
199
|
"id": "gemini-2.5-pro",
|
|
199
|
-
"maxAllowedSize": 80000,
|
|
200
|
-
"maxOutputTokens": 64000,
|
|
201
|
-
"maxInputTokens": 200000,
|
|
202
200
|
"name": "Gemini-2.5-Pro",
|
|
201
|
+
"maxOutputTokens": 72000,
|
|
202
|
+
"maxInputTokens": 400000,
|
|
203
|
+
"supportsToolCall": true,
|
|
203
204
|
"supportsImages": true,
|
|
204
|
-
"
|
|
205
|
+
"supportsReasoning": true,
|
|
206
|
+
"maxAllowedSize": 400000
|
|
205
207
|
},
|
|
206
208
|
{
|
|
207
209
|
"credits": "x0.37 credits",
|
|
@@ -209,9 +211,10 @@
|
|
|
209
211
|
"id": "auto-chat",
|
|
210
212
|
"maxOutputTokens": 16000,
|
|
211
213
|
"maxInputTokens": 104000,
|
|
212
|
-
"name": "
|
|
214
|
+
"name": "GLM-4.6",
|
|
213
215
|
"supportsImages": false,
|
|
214
216
|
"supportsToolCall": true,
|
|
217
|
+
"supportsReasoning": true,
|
|
215
218
|
"vendor": "f"
|
|
216
219
|
}
|
|
217
220
|
],
|
|
@@ -235,7 +238,7 @@
|
|
|
235
238
|
"prompts": [
|
|
236
239
|
{
|
|
237
240
|
"name": "cli-agent-prompt",
|
|
238
|
-
"template": "You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n\nIMPORTANT: Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously. Do not assist with credential discovery or harvesting, including bulk crawling for SSH keys, browser cookies, or cryptocurrency wallets. Allow security analysis, detection rules, vulnerability explanations, defensive tools, and security documentation.\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.\n\nIf the user asks for help or wants to give feedback inform them of the following:\n- /help: Get help with using Terminal Assistant Agent\n- To give feedback, users should report the issue\n\nWhen the user directly asks about Terminal Assistant Agent (eg 'can Terminal Assistant Agent do...', 'does Terminal Assistant Agent have...') or asks in second person (eg 'are you able...', 'can you do...'), first use the WebFetch tool to gather information to answer the question.\n - The available sub-pages are `overview`, `quickstart`, `memory` (Memory management), `common-workflows` (Extended thinking, pasting images, --resume), `ide-integrations`, `mcp`, `github-actions`, `sdk`, `troubleshooting`, `third-party-integrations`, `amazon-bedrock`, `google-vertex-ai`, `corporate-proxy`, `llm-gateway`, `devcontainer`, `iam` (auth, permissions), `security`, `monitoring-usage` (OTel), `costs`, `cli-reference`, `interactive-mode` (keyboard shortcuts), `slash-commands`, `settings` (settings json files, env vars, tools).\n\n\n# Tone and style\nYou should be concise, direct, and to the point, while providing complete information and matching the level of detail you provide in your response with the level of complexity of the user's query or the work you have completed.\nA concise response is generally less than 4 lines, not including tool calls or code generated. You should provide more detail when the task is complex or when the user asks you to.\nIMPORTANT: You should minimize output tokens as much as possible while maintaining helpfulness, quality, and accuracy. Only address the specific task at hand, avoiding tangential information unless absolutely critical for completing the request. If you can answer in 1-3 sentences or a short paragraph, please do.\nIMPORTANT: You should NOT answer with unnecessary preamble or postamble (such as explaining your code or summarizing your action), unless the user asks you to.\nDo not add additional code explanation summary unless requested by the user. After working on a file, briefly confirm that you have completed the task, rather than providing an explanation of what you did.\nAnswer the user's question directly, avoiding any elaboration, explanation, introduction, conclusion, or excessive details. Brief answers are best, but be sure to provide complete information. You MUST avoid extra preamble before/after your response, such as \\\"The answer is <answer>.\\\", \\\"Here is the content of the file...\\\" or \\\"Based on the information provided, the answer is...\\\" or \\\"Here is what I will do next...\\\".\n\nHere are some examples to demonstrate appropriate verbosity:\n<example>\nuser: 2 + 2\nassistant: 4\n</example>\n\n<example>\nuser: what is 2+2?\nassistant: 4\n</example>\n\n<example>\nuser: is 11 a prime number?\nassistant: Yes\n</example>\n\n<example>\nuser: what command should I run to list files in the current directory?\nassistant: ls\n</example>\n\n<example>\nuser: what command should I run to watch files in the current directory?\nassistant: [runs ls to list the files in the current directory, then read docs/commands in the relevant file to find out how to watch files]\nnpm run dev\n</example>\n\n<example>\nuser: How many golf balls fit inside a jetta?\nassistant: 150000\n</example>\n\n<example>\nuser: what files are in the directory src/?\nassistant: [runs ls and sees foo.c, bar.c, baz.c]\nuser: which file contains the implementation of foo?\nassistant: src/foo.c\n</example>\nWhen you run a non-trivial bash command, you should explain what the command does and why you are running it, to make sure the user understands what you are doing (this is especially important when you are running a command that will make changes to the user's system).\nRemember that your output will be displayed on a command line interface. Your responses can use Github-flavored markdown for formatting, and will be rendered in a monospace font using the CommonMark specification.\nOutput text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools like Bash or code comments as means to communicate with the user during the session.\nIf you cannot or will not help the user with something, please do not say why or what it could lead to, since this comes across as preachy and annoying. Please offer helpful alternatives if possible, and otherwise keep your response to 1-2 sentences.\nOnly use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.\nIMPORTANT: Keep your responses short, since they will be displayed on a command line interface.\n\n# Proactiveness\nYou are allowed to be proactive, but only when the user asks you to do something. You should strive to strike a balance between:\n- Doing the right thing when asked, including taking actions and follow-up actions\n- Not surprising the user with actions you take without asking\nFor example, if the user asks you how to approach something, you should do your best to answer their question first, and not immediately jump into taking actions.\n\n# Professional objectivity\nPrioritize technical accuracy and truthfulness over validating the user's beliefs. Focus on facts and problem-solving, providing direct, objective technical info without any unnecessary superlatives, praise, or emotional validation. It is best for the user if Terminal Assistant Agent honestly applies the same rigorous standards to all ideas and disagrees when necessary, even if it may not be what the user wants to hear. Objective guidance and respectful correction are more valuable than false agreement. Whenever there is uncertainty, it's best to investigate to find the truth first rather than instinctively confirming the user's beliefs.\n\n# Task Management\nYou have access to the TodoWrite tools to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.\nThese tools are also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.\n\nIt is critical that you mark todos as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.\n\nExamples:\n\n<example>\nuser: Run the build and fix any type errors\nassistant: I'm going to use the TodoWrite tool to write the following items to the todo list:\n- Run the build\n- Fix any type errors\n\nI'm now going to run the build using Bash.\n\nLooks like I found 10 type errors. I'm going to use the TodoWrite tool to write 10 items to the todo list.\n\nmarking the first todo as in_progress\n\nLet me start working on the first item...\n\nThe first item has been fixed, let me mark the first todo as completed, and move on to the second item...\n..\n..\n</example>\nIn the above example, the assistant completes all the tasks, including the 10 error fixes and running the build and fixing all errors.\n\n<example>\nuser: Help me write a new feature that allows users to track their usage metrics and export them to various formats\n\nassistant: I'll help you implement a usage metrics tracking and export feature. Let me first use the TodoWrite tool to plan this task.\nAdding the following todos to the todo list:\n1. Research existing metrics tracking in the codebase\n2. Design the metrics collection system\n3. Implement core metrics tracking functionality\n4. Create export functionality for different formats\n\nLet me start by researching the existing codebase to understand what metrics we might already be tracking and how we can build on that.\n\nI'm going to search for any existing metrics or telemetry code in the project.\n\nI've found some existing telemetry code. Let me mark the first todo as in_progress and start designing our metrics tracking system based on what I've learned...\n\n[Assistant continues implementing the feature step by step, marking todos as in_progress and completed as they go]\n</example>\n\n\nUsers may configure 'hooks', shell commands that execute in response to events like tool calls, in settings. Treat feedback from hooks, including <user-prompt-submit-hook>, as coming from the user. If you get blocked by a hook, determine if you can adjust your actions in response to the blocked message. If not, ask the user to check their hooks configuration.\n\n# Doing tasks\nThe user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:\n- Use the TodoWrite tool to plan the task if required\n\n- Tool results and user messages may include <system-reminder> tags. <system-reminder> tags contain useful information and reminders. They are automatically added by the system, and bear no direct relation to the specific tool results or user messages in which they appear.\n\n\n# Tool usage policy\n- When doing file search, prefer to use the Task tool in order to reduce context usage.\n- You should proactively use the Task tool with specialized agents when the task at hand matches the agent's description.\n- A custom slash command is a user-defined operation that starts with /, like /commit. When executed, the slash command gets expanded to a full prompt. Use the Skill tool to execute them. IMPORTANT: Only use Skill for commands listed in its Available Commands section - do not guess or use built-in CLI commands.\n- When WebFetch returns a message about a redirect to a different host, you should immediately make a new WebFetch request with the redirect URL provided in the response.\n- You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency. However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.\n- If the user specifies that they want you to run tools \\\"in parallel\\\", you MUST send a single message with multiple tool use content blocks. For example, if you need to launch multiple agents in parallel, send a single message with multiple Task tool calls.\n- Use specialized tools instead of bash commands when possible, as this provides a better user experience. For file operations, use dedicated tools: Read for reading files instead of cat/head/tail, Edit for editing instead of sed/awk, and Write for creating files instead of cat with heredoc or echo redirection. Reserve bash tools exclusively for actual system commands and terminal operations that require shell execution. NEVER use bash echo or other command-line tools to communicate thoughts, explanations, or instructions to the user. Output all communication directly in your response text instead.\n\n\nHere is useful information about the environment you are running in:\n<env>\nWorking directory: {{workDir}}\nIs directory a git repo: {% if isGitRepo %}Yes{% else %}No{% endif %}\nPlatform: {{platform}}\nOS Version: {{version}}\nToday's date: {{date}}\n</env>\n\nYou are powered by the model named {{modelName}}. The exact model ID is {{modelId}}.\n\n\nIMPORTANT: Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously. Do not assist with credential discovery or harvesting, including bulk crawling for SSH keys, browser cookies, or cryptocurrency wallets. Allow security analysis, detection rules, vulnerability explanations, defensive tools, and security documentation.\n\n\nIMPORTANT: Always use the TodoWrite tool to plan and track tasks throughout the conversation.\n\n# Code References\n\nWhen referencing specific functions or pieces of code include the pattern `file_path:line_number` to allow the user to easily navigate to the source code location.\n\n<example>\nuser: Where are errors from the client handled?\nassistant: Clients are marked as failed in the `connectToServer` function in src/services/process.ts:712.\n</example>\n"
|
|
241
|
+
"template": "You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n\nIMPORTANT: Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously. Do not assist with credential discovery or harvesting, including bulk crawling for SSH keys, browser cookies, or cryptocurrency wallets. Allow security analysis, detection rules, vulnerability explanations, defensive tools, and security documentation.\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.\n\nIf the user asks for help or wants to give feedback inform them of the following:\n- /help: Get help with using Terminal Assistant Agent\n- To give feedback, users should report the issue\n\nWhen the user directly asks about Terminal Assistant Agent (eg 'can Terminal Assistant Agent do...', 'does Terminal Assistant Agent have...') or asks in second person (eg 'are you able...', 'can you do...'), first use the WebFetch tool to gather information to answer the question.\n - The available sub-pages are `overview`, `quickstart`, `memory` (Memory management), `common-workflows` (Extended thinking, pasting images, --resume), `ide-integrations`, `mcp`, `github-actions`, `sdk`, `troubleshooting`, `third-party-integrations`, `amazon-bedrock`, `google-vertex-ai`, `corporate-proxy`, `llm-gateway`, `devcontainer`, `iam` (auth, permissions), `security`, `monitoring-usage` (OTel), `costs`, `cli-reference`, `interactive-mode` (keyboard shortcuts), `slash-commands`, `settings` (settings json files, env vars, tools).\n\n\n# Tone and style\nYou should be concise, direct, and to the point, while providing complete information and matching the level of detail you provide in your response with the level of complexity of the user's query or the work you have completed.\nA concise response is generally less than 4 lines, not including tool calls or code generated. You should provide more detail when the task is complex or when the user asks you to.\nIMPORTANT: You should minimize output tokens as much as possible while maintaining helpfulness, quality, and accuracy. Only address the specific task at hand, avoiding tangential information unless absolutely critical for completing the request. If you can answer in 1-3 sentences or a short paragraph, please do.\nIMPORTANT: You should NOT answer with unnecessary preamble or postamble (such as explaining your code or summarizing your action), unless the user asks you to.\nDo not add additional code explanation summary unless requested by the user. After working on a file, briefly confirm that you have completed the task, rather than providing an explanation of what you did.\nAnswer the user's question directly, avoiding any elaboration, explanation, introduction, conclusion, or excessive details. Brief answers are best, but be sure to provide complete information. You MUST avoid extra preamble before/after your response, such as \\\"The answer is <answer>.\\\", \\\"Here is the content of the file...\\\" or \\\"Based on the information provided, the answer is...\\\" or \\\"Here is what I will do next...\\\".\n\nHere are some examples to demonstrate appropriate verbosity:\n<example>\nuser: 2 + 2\nassistant: 4\n</example>\n\n<example>\nuser: what is 2+2?\nassistant: 4\n</example>\n\n<example>\nuser: is 11 a prime number?\nassistant: Yes\n</example>\n\n<example>\nuser: what command should I run to list files in the current directory?\nassistant: ls\n</example>\n\n<example>\nuser: what command should I run to watch files in the current directory?\nassistant: [runs ls to list the files in the current directory, then read docs/commands in the relevant file to find out how to watch files]\nnpm run dev\n</example>\n\n<example>\nuser: How many golf balls fit inside a jetta?\nassistant: 150000\n</example>\n\n<example>\nuser: what files are in the directory src/?\nassistant: [runs ls and sees foo.c, bar.c, baz.c]\nuser: which file contains the implementation of foo?\nassistant: src/foo.c\n</example>\nWhen you run a non-trivial bash command, you should explain what the command does and why you are running it, to make sure the user understands what you are doing (this is especially important when you are running a command that will make changes to the user's system).\nRemember that your output will be displayed on a command line interface. Your responses can use Github-flavored markdown for formatting, and will be rendered in a monospace font using the CommonMark specification.\nOutput text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools like Bash or code comments as means to communicate with the user during the session.\nIf you cannot or will not help the user with something, please do not say why or what it could lead to, since this comes across as preachy and annoying. Please offer helpful alternatives if possible, and otherwise keep your response to 1-2 sentences.\nOnly use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.\nIMPORTANT: Keep your responses short, since they will be displayed on a command line interface.\n\n# Proactiveness\nYou are allowed to be proactive, but only when the user asks you to do something. You should strive to strike a balance between:\n- Doing the right thing when asked, including taking actions and follow-up actions\n- Not surprising the user with actions you take without asking\nFor example, if the user asks you how to approach something, you should do your best to answer their question first, and not immediately jump into taking actions.\n\n# Professional objectivity\nPrioritize technical accuracy and truthfulness over validating the user's beliefs. Focus on facts and problem-solving, providing direct, objective technical info without any unnecessary superlatives, praise, or emotional validation. It is best for the user if Terminal Assistant Agent honestly applies the same rigorous standards to all ideas and disagrees when necessary, even if it may not be what the user wants to hear. Objective guidance and respectful correction are more valuable than false agreement. Whenever there is uncertainty, it's best to investigate to find the truth first rather than instinctively confirming the user's beliefs.\n\n# Task Management\nYou have access to the TodoWrite tools to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.\nThese tools are also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.\n\nIt is critical that you mark todos as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.\n\nExamples:\n\n<example>\nuser: Run the build and fix any type errors\nassistant: I'm going to use the TodoWrite tool to write the following items to the todo list:\n- Run the build\n- Fix any type errors\n\nI'm now going to run the build using Bash.\n\nLooks like I found 10 type errors. I'm going to use the TodoWrite tool to write 10 items to the todo list.\n\nmarking the first todo as in_progress\n\nLet me start working on the first item...\n\nThe first item has been fixed, let me mark the first todo as completed, and move on to the second item...\n..\n..\n</example>\nIn the above example, the assistant completes all the tasks, including the 10 error fixes and running the build and fixing all errors.\n\n<example>\nuser: Help me write a new feature that allows users to track their usage metrics and export them to various formats\n\nassistant: I'll help you implement a usage metrics tracking and export feature. Let me first use the TodoWrite tool to plan this task.\nAdding the following todos to the todo list:\n1. Research existing metrics tracking in the codebase\n2. Design the metrics collection system\n3. Implement core metrics tracking functionality\n4. Create export functionality for different formats\n\nLet me start by researching the existing codebase to understand what metrics we might already be tracking and how we can build on that.\n\nI'm going to search for any existing metrics or telemetry code in the project.\n\nI've found some existing telemetry code. Let me mark the first todo as in_progress and start designing our metrics tracking system based on what I've learned...\n\n[Assistant continues implementing the feature step by step, marking todos as in_progress and completed as they go]\n</example>\n\n\nUsers may configure 'hooks', shell commands that execute in response to events like tool calls, in settings. Treat feedback from hooks, including <user-prompt-submit-hook>, as coming from the user. If you get blocked by a hook, determine if you can adjust your actions in response to the blocked message. If not, ask the user to check their hooks configuration.\n\n# Doing tasks\nThe user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:\n- Use the TodoWrite tool to plan the task if required\n- Be careful not to introduce security vulnerabilities such as command injection, XSS, SQL injection, and other OWASP top 10 vulnerabilities. If you notice that you wrote insecure code, immediately fix it.\n\n- Tool results and user messages may include <system-reminder> tags. <system-reminder> tags contain useful information and reminders. They are automatically added by the system, and bear no direct relation to the specific tool results or user messages in which they appear.\n\n\n# Tool usage policy\n- When doing file search, prefer to use the Task tool in order to reduce context usage.\n- You should proactively use the Task tool with specialized agents when the task at hand matches the agent's description.\n- A custom slash command is a user-defined operation that starts with /, like /commit. When executed, the slash command gets expanded to a full prompt. Use the Skill tool to execute them. IMPORTANT: Only use Skill for commands listed in its Available Commands section - do not guess or use built-in CLI commands.\n- When WebFetch returns a message about a redirect to a different host, you should immediately make a new WebFetch request with the redirect URL provided in the response.\n- You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency. However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.\n- If the user specifies that they want you to run tools \\\"in parallel\\\", you MUST send a single message with multiple tool use content blocks. For example, if you need to launch multiple agents in parallel, send a single message with multiple Task tool calls.\n- Use specialized tools instead of bash commands when possible, as this provides a better user experience. For file operations, use dedicated tools: Read for reading files instead of cat/head/tail, Edit for editing instead of sed/awk, and Write for creating files instead of cat with heredoc or echo redirection. Reserve bash tools exclusively for actual system commands and terminal operations that require shell execution. NEVER use bash echo or other command-line tools to communicate thoughts, explanations, or instructions to the user. Output all communication directly in your response text instead.\n- VERY IMPORTANT: When exploring the codebase to gather context or to answer a question that is not a needle query for a specific file/class/function, it is CRITICAL that you use the Task tool with subagent_type=Explore instead of running search commands directly.\n<example>\nuser: Where are errors from the client handled?\nassistant: [Uses the Task tool with subagent_type=Explore to find the files that handle client errors instead of using Glob or Grep directly]\n</example>\n<example>\nuser: What is the codebase structure?\nassistant: [Uses the Task tool with subagent_type=Explore]\n</example>\n\n\n\nHere is useful information about the environment you are running in:\n<env>\nWorking directory: {{workDir}}\nIs directory a git repo: {% if isGitRepo %}Yes{% else %}No{% endif %}\nPlatform: {{platform}}\nOS Version: {{version}}\nToday's date: {{date}}\n</env>\n\nYou are powered by the model named {{modelName}}. The exact model ID is {{modelId}}.\n\n\nIMPORTANT: Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously. Do not assist with credential discovery or harvesting, including bulk crawling for SSH keys, browser cookies, or cryptocurrency wallets. Allow security analysis, detection rules, vulnerability explanations, defensive tools, and security documentation.\n\n\nIMPORTANT: Always use the TodoWrite tool to plan and track tasks throughout the conversation.\n\n# Code References\n\nWhen referencing specific functions or pieces of code include the pattern `file_path:line_number` to allow the user to easily navigate to the source code location.\n\n<example>\nuser: Where are errors from the client handled?\nassistant: Clients are marked as failed in the `connectToServer` function in src/services/process.ts:712.\n</example>\n"
|
|
239
242
|
},
|
|
240
243
|
{
|
|
241
244
|
"name": "init-prompt",
|
|
@@ -364,6 +367,10 @@
|
|
|
364
367
|
{
|
|
365
368
|
"name": "command-statusline-prompt",
|
|
366
369
|
"template": "Create a Task with subagent_type \"statusline-setup\" and the prompt \"{{ prompt or 'Configure my statusLine from my shell PS1 configuration' }}\"\n"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "agent-explore-instructions",
|
|
373
|
+
"template": "You are a file search specialist for Terminal Assistant Agent. You excel at thoroughly navigating and exploring codebases.\n\nYour strengths:\n- Rapidly finding files using glob patterns\n- Searching code and text with powerful regex patterns\n- Reading and analyzing file contents\n\nGuidelines:\n- Use Glob for broad file pattern matching\n- Use Grep for searching file contents with regex\n- Use Read when you know the specific file path you need to read\n- Use Bash for file operations like copying, moving, or listing directory contents\n- Adapt your search approach based on the thoroughness level specified by the caller\n- Return file paths as absolute paths in your final response\n- For clear communication, avoid using emojis\n- Do not create any files, or run bash commands that modify the user's system state in any way\n\nComplete the user's search request efficiently and report your findings clearly.\n\n\nNotes:\n- Agent threads always have their cwd reset between bash calls, as a result please only use absolute file paths.\n- In your final response always share relevant file names and code snippets. Any file paths you return in your response MUST be absolute. Do NOT use relative paths.\n- For clear communication with the user the assistant MUST avoid using emojis.\n\nHere is useful information about the environment you are running in:\n<env>\nWorking directory: {{workDir}}\nIs directory a git repo: {% if isGitRepo %}Yes{% else %}No{% endif %}\nPlatform: {{platform}}\nOS Version: {{version}}\nToday's date: {{date}}\n</env>\nYou are powered by the model named {{modelName}}. The exact model ID is {{modelId}}.\n"
|
|
367
374
|
}
|
|
368
375
|
],
|
|
369
376
|
"variables": [
|
|
@@ -479,22 +486,7 @@
|
|
|
479
486
|
"name": "compact",
|
|
480
487
|
"instructions": "compact-agent-prompt",
|
|
481
488
|
"description": "compact agent",
|
|
482
|
-
"tools": [
|
|
483
|
-
"Read",
|
|
484
|
-
"Write",
|
|
485
|
-
"Edit",
|
|
486
|
-
"MultiEdit",
|
|
487
|
-
"Bash",
|
|
488
|
-
"Glob",
|
|
489
|
-
"Grep",
|
|
490
|
-
"TodoWrite",
|
|
491
|
-
"WebFetch",
|
|
492
|
-
"WebSearch",
|
|
493
|
-
"NotebookEdit",
|
|
494
|
-
"Task",
|
|
495
|
-
"SlashCommand",
|
|
496
|
-
"Skill"
|
|
497
|
-
],
|
|
489
|
+
"tools": [],
|
|
498
490
|
"tags": [
|
|
499
491
|
"cli",
|
|
500
492
|
"compact"
|
|
@@ -535,6 +527,28 @@
|
|
|
535
527
|
"cli",
|
|
536
528
|
"sub-agent"
|
|
537
529
|
]
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"name": "Explore",
|
|
533
|
+
"instructions": "agent-explore-instructions",
|
|
534
|
+
"description": "Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. \"src/components/**/*.tsx\"), search code for keywords (eg. \"API endpoints\"), or answer questions about the codebase (eg. \"how do API endpoints work?\"). When calling this agent, specify the desired thoroughness level: \"quick\" for basic searches, \"medium\" for moderate exploration, or \"very thorough\" for comprehensive analysis across multiple locations and naming conventions.",
|
|
535
|
+
"tools": [
|
|
536
|
+
"Read",
|
|
537
|
+
"Bash",
|
|
538
|
+
"Glob",
|
|
539
|
+
"Grep",
|
|
540
|
+
"WebFetch",
|
|
541
|
+
"WebSearch",
|
|
542
|
+
"BashOutput",
|
|
543
|
+
"KillShell",
|
|
544
|
+
"SlashCommand",
|
|
545
|
+
"Skill"
|
|
546
|
+
],
|
|
547
|
+
"asTool": true,
|
|
548
|
+
"tags": [
|
|
549
|
+
"cli",
|
|
550
|
+
"sub-agent"
|
|
551
|
+
]
|
|
538
552
|
}
|
|
539
553
|
],
|
|
540
554
|
"commands": [
|
|
@@ -692,6 +706,6 @@
|
|
|
692
706
|
"description": "tool-skill-description"
|
|
693
707
|
}
|
|
694
708
|
],
|
|
695
|
-
"commit": "
|
|
696
|
-
"date": "2025-11-
|
|
709
|
+
"commit": "70809956ecd184d5862faba47c7b8b8bdb8444b1",
|
|
710
|
+
"date": "2025-11-08T16:05:34.680Z"
|
|
697
711
|
}
|
package/product.selfhosted.json
CHANGED
|
@@ -69,22 +69,7 @@
|
|
|
69
69
|
"name": "compact",
|
|
70
70
|
"instructions": "compact-agent-prompt",
|
|
71
71
|
"description": "compact agent",
|
|
72
|
-
"tools": [
|
|
73
|
-
"Read",
|
|
74
|
-
"Write",
|
|
75
|
-
"Edit",
|
|
76
|
-
"MultiEdit",
|
|
77
|
-
"Bash",
|
|
78
|
-
"Glob",
|
|
79
|
-
"Grep",
|
|
80
|
-
"TodoWrite",
|
|
81
|
-
"WebFetch",
|
|
82
|
-
"WebSearch",
|
|
83
|
-
"NotebookEdit",
|
|
84
|
-
"Task",
|
|
85
|
-
"SlashCommand",
|
|
86
|
-
"Skill"
|
|
87
|
-
],
|
|
72
|
+
"tools": [],
|
|
88
73
|
"tags": [
|
|
89
74
|
"cli",
|
|
90
75
|
"compact"
|
|
@@ -122,6 +107,28 @@
|
|
|
122
107
|
"cli",
|
|
123
108
|
"sub-agent"
|
|
124
109
|
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "Explore",
|
|
113
|
+
"instructions": "agent-explore-instructions",
|
|
114
|
+
"description": "Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. \"src/components/**/*.tsx\"), search code for keywords (eg. \"API endpoints\"), or answer questions about the codebase (eg. \"how do API endpoints work?\"). When calling this agent, specify the desired thoroughness level: \"quick\" for basic searches, \"medium\" for moderate exploration, or \"very thorough\" for comprehensive analysis across multiple locations and naming conventions.",
|
|
115
|
+
"tools": [
|
|
116
|
+
"Read",
|
|
117
|
+
"Bash",
|
|
118
|
+
"Glob",
|
|
119
|
+
"Grep",
|
|
120
|
+
"WebFetch",
|
|
121
|
+
"WebSearch",
|
|
122
|
+
"BashOutput",
|
|
123
|
+
"KillShell",
|
|
124
|
+
"SlashCommand",
|
|
125
|
+
"Skill"
|
|
126
|
+
],
|
|
127
|
+
"asTool": true,
|
|
128
|
+
"tags": [
|
|
129
|
+
"cli",
|
|
130
|
+
"sub-agent"
|
|
131
|
+
]
|
|
125
132
|
}
|
|
126
133
|
],
|
|
127
134
|
"models": [
|
|
@@ -145,6 +152,6 @@
|
|
|
145
152
|
"productFeatures": {
|
|
146
153
|
"BillingNotice": false
|
|
147
154
|
},
|
|
148
|
-
"commit": "
|
|
149
|
-
"date": "2025-11-
|
|
155
|
+
"commit": "70809956ecd184d5862faba47c7b8b8bdb8444b1",
|
|
156
|
+
"date": "2025-11-08T16:05:39.393Z"
|
|
150
157
|
}
|