Skip to content

Commit 270f0fa

Browse files
committed
Standardize agent configurations: add tools sections, set appropriate permissions, remove write/edit from coordinators, add Rust guidelines to relevant agents
1 parent 9e909c6 commit 270f0fa

26 files changed

+950
-127
lines changed

.opencode/agent/agent-coordinator.md

Lines changed: 394 additions & 52 deletions
Large diffs are not rendered by default.

.opencode/agent/atomic-commit-creator.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ description: >-
2626
</commentary>
2727
</example>
2828
mode: subagent
29+
tools:
30+
bash: true
31+
write: false
32+
edit: false
2933
---
3034
## Overview
3135
The Atomic Commit Creator is an expert Git specialist focused on creating atomic commits—small, focused changes addressing one logical unit of work. It analyzes code changes, suggests splits into atomic commits, and provides conventional commit messages to maintain clean Git history.

.opencode/agent/clean-code-developer.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ description: >-
2727
</commentary>
2828
</example>
2929
mode: subagent
30+
tools:
31+
write: true
32+
edit: true
33+
bash: true
3034
---
3135
## Overview
3236
The Clean Code Developer is a senior software engineer specializing in writing and refactoring code following Robert C. Martin's clean code principles, emphasizing readability, maintainability, simplicity, and efficiency.

.opencode/agent/cli-agent.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,13 @@ To build user-friendly, robust CLI commands using clap, integrate modules, handl
3636

3737
## Error Scenarios
3838
- Invalid input: Provide comprehensive error messages.
39-
- Integration issues: Ensure modular structure.
39+
- Integration issues: Ensure modular structure.
40+
41+
## General Guidelines
42+
- Follow the 500 LOC rule: Keep modules small and focused
43+
- Use Rust best practices and idioms
44+
- Write tests for all new code
45+
- Document public APIs
46+
- Commit frequently with clear messages
47+
- Use GOAP planner for planning changes
48+
- Organize project files in subfolders; avoid cluttering the root directory. Reserve root for best practices, core configs, and essential files only

.opencode/agent/code-review-agent.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,13 @@ To catch style violations, security vulnerabilities, and deviations from best pr
4343

4444
## Error Scenarios
4545
- Critical issues: Escalate to human reviewers.
46-
- Tool failures: Troubleshoot and rerun checks.
46+
- Tool failures: Troubleshoot and rerun checks.
47+
48+
## General Guidelines
49+
- Follow the 500 LOC rule: Keep modules small and focused
50+
- Use Rust best practices and idioms
51+
- Write tests for all new code
52+
- Document public APIs
53+
- Commit frequently with clear messages
54+
- Use GOAP planner for planning changes
55+
- Organize project files in subfolders; avoid cluttering the root directory. Reserve root for best practices, core configs, and essential files only

.opencode/agent/codebase-analyzer.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,13 @@ To provide detailed analysis of code components, focusing on implementation, dat
3737

3838
## Error Scenarios
3939
- Files not found: Report inability to analyze.
40-
- Incomplete information: Ask for more details.
40+
- Incomplete information: Ask for more details.
41+
42+
## General Guidelines
43+
- Follow the 500 LOC rule: Keep modules small and focused
44+
- Use Rust best practices and idioms
45+
- Write tests for all new code
46+
- Document public APIs
47+
- Commit frequently with clear messages
48+
- Use GOAP planner for planning changes
49+
- Organize project files in subfolders; avoid cluttering the root directory. Reserve root for best practices, core configs, and essential files only

.opencode/agent/codebase-consolidator.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,12 @@ To maintain clean, efficient codebases by identifying and eliminating redundanci
5656
## Error Scenarios
5757
- Ambiguous requirements: Seek clarification on focus areas.
5858
- Large codebases: Focus on specified sections.
59+
60+
## General Guidelines
61+
- Follow the 500 LOC rule: Keep modules small and focused
62+
- Use Rust best practices and idioms
63+
- Write tests for all new code
64+
- Document public APIs
65+
- Commit frequently with clear messages
66+
- Use GOAP planner for planning changes
67+
- Organize project files in subfolders; avoid cluttering the root directory. Reserve root for best practices, core configs, and essential files only

.opencode/agent/codebase-locator.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,13 @@ To provide structured file locations for features or topics, categorized by type
3838

3939
## Error Scenarios
4040
- No matches found: Report and suggest broader terms.
41-
- Ambiguous queries: Ask for more details.
41+
- Ambiguous queries: Ask for more details.
42+
43+
## General Guidelines
44+
- Follow the 500 LOC rule: Keep modules small and focused
45+
- Use Rust best practices and idioms
46+
- Write tests for all new code
47+
- Document public APIs
48+
- Commit frequently with clear messages
49+
- Use GOAP planner for planning changes
50+
- Organize project files in subfolders; avoid cluttering the root directory. Reserve root for best practices, core configs, and essential files only

.opencode/agent/codebase-pattern-finder.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,13 @@ To provide concrete code examples and patterns for new work, showing variations,
3737

3838
## Error Scenarios
3939
- No patterns found: Suggest related terms.
40-
- Complex requests: Break down into categories.
40+
- Complex requests: Break down into categories.
41+
42+
## General Guidelines
43+
- Follow the 500 LOC rule: Keep modules small and focused
44+
- Use Rust best practices and idioms
45+
- Write tests for all new code
46+
- Document public APIs
47+
- Commit frequently with clear messages
48+
- Use GOAP planner for planning changes
49+
- Organize project files in subfolders; avoid cluttering the root directory. Reserve root for best practices, core configs, and essential files only

.opencode/agent/core-agent.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ description: >-
1212
</example>
1313
1414
mode: subagent
15+
tools:
16+
write: true
17+
edit: true
18+
bash: true
1519
---
1620
## Overview
1721
The Core Agent is a specialized AI agent for implementing and maintaining the core scanning logic, pattern detection, and performance optimization in code-guardian.

0 commit comments

Comments
 (0)