Skip to content

Commit 9e00e9c

Browse files
committed
fix(template): update agent environment configuration and templates
1 parent fa31c26 commit 9e00e9c

File tree

8 files changed

+92
-91
lines changed

8 files changed

+92
-91
lines changed

pkg/agentenv/template/agentenv.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22

3-
# yaml-language-server: $schema=./agentenv.schema.json
4-
5-
version: "1.0"
3+
version: 1.0
64

75
project:
86
name: go42x
@@ -48,8 +46,6 @@ providers:
4846
- workflows/40-debugging.tpl.md
4947
- workflows/50-investigation.tpl.md
5048
- workflows/60-code-review.tpl.md
51-
agents:
52-
- claude/agents/dummy.tpl.md
5349
tools:
5450
- Edit
5551
- Glob
@@ -201,7 +197,7 @@ mcp:
201197
- mcp__go42_kwb__list_files
202198

203199
github:
204-
enabled: true
200+
enabled: false
205201
type: stdio
206202
name: github
207203
command: docker
@@ -303,7 +299,7 @@ mcp:
303299
- mcp__github__get_team_members
304300

305301
gitlab:
306-
enabled: true
302+
enabled: false
307303
type: stdio
308304
name: gitlab
309305
command: docker
@@ -330,7 +326,7 @@ mcp:
330326
USE_PIPELINE: true
331327

332328
jira:
333-
enabled: true
329+
enabled: false
334330
type: sse
335331
name: jira
336332
url: https://mcp.atlassian.com/v1/sse
@@ -350,7 +346,7 @@ mcp:
350346
- mcp__jira__assign_copilot_to_issue
351347

352348
eleven-labs:
353-
enabled: true
349+
enabled: false
354350
type: stdio
355351
name: eleven-labs
356352
command: uvx

pkg/agentenv/template/chunks/20-operation.tpl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Operation
22

3-
- Ignore anything between `[IGNORE]` and `[/IGNORE]` tags - it used for internal notes
3+
- Ignore anything between `[IGNORE]` and `[/IGNORE]` tags in prompts.
44

55
#### Execution Strategy
66

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### Responding
22

3-
The agent should respond in a concise and clear manner, directly addressing the user's query or request. It should avoid unnecessary elaboration or deviation from the topic at hand. The response should be structured logically, with a clear beginning, middle, and end, ensuring that the user can easily follow the information provided.
4-
5-
When responding, the agent should also consider the user's context and prior interactions to provide relevant and personalized information. This includes referencing previous conversations or data points that may enhance the quality of the response.
3+
- The agent should respond in a concise and clear manner, directly addressing the user's query or request.
4+
- It should avoid unnecessary elaboration or deviation from the topic at hand.
5+
- The response should be structured logically, with a clear beginning, middle, and end, ensuring that the user can easily follow the information provided.

pkg/agentenv/template/chunks/70-tooling.tpl.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
This is list of extra tools you are allowed to use to help you solve user requests.
44

5+
### Makefile
6+
7+
Before using external tools, please check if the project has a Makefile and a relevant target for the task you are trying to accomplish. If it does, you should use make to run the target instead of using external tools.
8+
59
#### gh
610

711
**git repo** - <https://github.com/cli/cli>

pkg/agentenv/template/chunks/80-search.tpl.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,20 @@ What do you need to find?
114114
#### Search Tool Priority Order
115115

116116
1. **Specialized MCP tools** (if available and applicable)
117-
- Language servers for semantic understanding
118-
- Knowledge base for indexed searches
119-
- Domain-specific tools
117+
- Language servers for semantic understanding
118+
- Knowledge base for indexed searches
119+
- Domain-specific tools
120120

121121
2. **Native search tools** (always available)
122-
- Grep for content search
123-
- Glob for file patterns
124-
- Read for direct access
125-
- Task for complex searches
122+
- Grep for content search
123+
- Glob for file patterns
124+
- Read for direct access
125+
- Task for complex searches
126126

127127
3. **Combination strategies**
128-
- Use specialized tools for precision
129-
- Use native tools for breadth
130-
- Combine both for comprehensive analysis
128+
- Use specialized tools for precision
129+
- Use native tools for breadth
130+
- Combine both for comprehensive analysis
131131

132132
**Key principles:**
133133
- Start specific (specialized tools) then go broad (native tools)

pkg/agentenv/template/chunks/90-search-go.tpl.md

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,36 @@ The Knowledge Base server excels at **fast text-based searches** and **initial c
1515
#### Best Use Cases
1616

1717
1. **Initial Codebase Exploration**
18-
- When you need to quickly understand what files exist in a project
19-
- Getting an overview of the codebase structure
20-
- Finding files by type (code, documentation, config)
21-
```
22-
Example: "Show me all configuration files in the project"
23-
Tool: mcp__go42x-kwb__list_files with type="config"
24-
```
18+
- When you need to quickly understand what files exist in a project
19+
- Getting an overview of the codebase structure
20+
- Finding files by type (code, documentation, config)
21+
```
22+
Example: "Show me all configuration files in the project"
23+
Tool: mcp__go42x-kwb__list_files with type="config"
24+
```
2525
2626
2. **Keyword and Pattern Search**
27-
- Finding all occurrences of a specific string or pattern
28-
- Searching for TODO comments, error messages, or specific text
29-
- Looking for configuration values or environment variables
30-
```
31-
Example: "Find all files mentioning 'database connection'"
32-
Tool: mcp__go42x-kwb__search with query="database connection"
33-
```
27+
- Finding all occurrences of a specific string or pattern
28+
- Searching for TODO comments, error messages, or specific text
29+
- Looking for configuration values or environment variables
30+
```
31+
Example: "Find all files mentioning 'database connection'"
32+
Tool: mcp__go42x-kwb__search with query="database connection"
33+
```
3434
3535
3. **Quick File Content Retrieval**
36-
- When you know the exact file path and need its contents
37-
- Reading configuration files, documentation, or scripts
38-
- Accessing non-Go files (YAML, JSON, Markdown, etc.)
39-
```
40-
Example: "Show me the README file"
41-
Tool: mcp__go42x-kwb__get_file with path="README.md"
42-
```
36+
- When you know the exact file path and need its contents
37+
- Reading configuration files, documentation, or scripts
38+
- Accessing non-Go files (YAML, JSON, Markdown, etc.)
39+
```
40+
Example: "Show me the README file"
41+
Tool: mcp__go42x-kwb__get_file with path="README.md"
42+
```
4343
4444
4. **Cross-Language Searches**
45-
- Searching across mixed codebases (Go, JavaScript, Python, etc.)
46-
- Finding patterns in build scripts, CI/CD configs, and documentation
47-
- Exploring test fixtures and data files
45+
- Searching across mixed codebases (Go, JavaScript, Python, etc.)
46+
- Finding patterns in build scripts, CI/CD configs, and documentation
47+
- Exploring test fixtures and data files
4848
4949
#### Strengths
5050
@@ -68,58 +68,58 @@ The Go Language Server provides **deep semantic analysis** and **code intelligen
6868
#### Best Use Cases
6969
7070
1. **Understanding Go Code Structure**
71-
- Analyzing package dependencies and imports
72-
- Understanding module and workspace layout
73-
- Getting package API summaries
74-
```
75-
Example: "What packages does this project contain?"
76-
Tool: mcp__gopls__go_workspace
77-
```
71+
- Analyzing package dependencies and imports
72+
- Understanding module and workspace layout
73+
- Getting package API summaries
74+
```
75+
Example: "What packages does this project contain?"
76+
Tool: mcp__gopls__go_workspace
77+
```
7878
7979
2. **Finding Symbol Definitions and References**
80-
- Locating where a function, type, or variable is defined
81-
- Finding all usages of a specific symbol
82-
- Tracing method calls and type usage
83-
```
84-
Example: "Find all references to the Server.Run method"
85-
Tool: mcp__gopls__go_symbol_references with symbol="Server.Run"
86-
```
80+
- Locating where a function, type, or variable is defined
81+
- Finding all usages of a specific symbol
82+
- Tracing method calls and type usage
83+
```
84+
Example: "Find all references to the Server.Run method"
85+
Tool: mcp__gopls__go_symbol_references with symbol="Server.Run"
86+
```
8787
8888
3. **Semantic Code Search**
89-
- Finding symbols by name with fuzzy matching
90-
- Searching for types, interfaces, functions across packages
91-
- Locating implementations of interfaces
92-
```
93-
Example: "Find all types with 'Handler' in their name"
94-
Tool: mcp__gopls__go_search with query="handler"
95-
```
89+
- Finding symbols by name with fuzzy matching
90+
- Searching for types, interfaces, functions across packages
91+
- Locating implementations of interfaces
92+
```
93+
Example: "Find all types with 'Handler' in their name"
94+
Tool: mcp__gopls__go_search with query="handler"
95+
```
9696
9797
4. **Code Context and Dependencies**
98-
- Understanding file dependencies within a package
99-
- Analyzing cross-file relationships
100-
- Getting context about imports and usage
101-
```
102-
Example: "What does server.go depend on?"
103-
Tool: mcp__gopls__go_file_context with file="/path/to/server.go"
104-
```
98+
- Understanding file dependencies within a package
99+
- Analyzing cross-file relationships
100+
- Getting context about imports and usage
101+
```
102+
Example: "What does server.go depend on?"
103+
Tool: mcp__gopls__go_file_context with file="/path/to/server.go"
104+
```
105105
106106
5. **Package API Analysis**
107-
- Understanding public APIs of packages
108-
- Exploring third-party dependencies
109-
- Reviewing exported types and functions
110-
```
111-
Example: "Show me the public API of the storage package"
112-
Tool: mcp__gopls__go_package_api with packagePaths=["example.com/storage"]
113-
```
107+
- Understanding public APIs of packages
108+
- Exploring third-party dependencies
109+
- Reviewing exported types and functions
110+
```
111+
Example: "Show me the public API of the storage package"
112+
Tool: mcp__gopls__go_package_api with packagePaths=["example.com/storage"]
113+
```
114114
115115
6. **Code Quality and Diagnostics**
116-
- Finding compilation errors and issues
117-
- Checking for type errors
118-
- Validating code changes
119-
```
120-
Example: "Check for errors in the edited files"
121-
Tool: mcp__gopls__go_diagnostics with files=["/path/to/file.go"]
122-
```
116+
- Finding compilation errors and issues
117+
- Checking for type errors
118+
- Validating code changes
119+
```
120+
Example: "Check for errors in the edited files"
121+
Tool: mcp__gopls__go_diagnostics with files=["/path/to/file.go"]
122+
```
123123
124124
#### Strengths
125125

pkg/agentenv/template/modes/50-voice.tpl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ Use `eleven-labs` mcp server to generate voice responses.
5252
- Instead of: "Modified /src/components/Header.tsx line 42"
5353
- Say: "Updated the header component"
5454

55-
- Instead of: "Error: TypeError at line 15"
55+
- Instead of: "Error: TypeError at line 15"
5656
- Say: "Found a type error in the validation function"

pkg/agentenv/template/workflows/60-code-review.tpl.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ Comprehensive code evaluation for quality, security, and maintainability.
5959
- **🔴 Critical**: Must fix before merge
6060
- **🟡 Major**: Should fix before merge
6161
- **🔵 Minor**: Can fix in follow-up
62-
- **💡 Suggestion**: Consider for improvement
62+
- **💡 Suggestion**: Consider for improvement
63+

0 commit comments

Comments
 (0)