Skip to content

Commit ac1097a

Browse files
committed
Add simple code reviewer
1 parent f7c80a7 commit ac1097a

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

.agents/git-committer.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,13 @@ const definition: AgentDefinition = {
3838
toolName: 'run_terminal_command',
3939
input: {
4040
command: 'git diff',
41-
process_type: 'SYNC',
42-
timeout_seconds: 30,
4341
},
4442
}
4543

4644
yield {
4745
toolName: 'run_terminal_command',
4846
input: {
4947
command: 'git log --oneline -10',
50-
process_type: 'SYNC',
51-
timeout_seconds: 30,
5248
},
5349
}
5450

.agents/simple-code-reviewer.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import type { AgentDefinition } from './types/agent-definition'
2+
3+
const definition: AgentDefinition = {
4+
id: 'simple-code-reviewer',
5+
displayName: 'Simple Code Reviewer',
6+
publisher: 'james',
7+
model: 'anthropic/claude-sonnet-4',
8+
toolNames: [
9+
'read_files',
10+
'code_search',
11+
'run_terminal_command',
12+
'spawn_agents',
13+
],
14+
spawnableAgents: ['codebuff/file-explorer@0.0.2'],
15+
spawnerPrompt: 'Spawn when you need to review local code changes',
16+
systemPrompt:
17+
'You are an expert software developer. Your job is to review local code changes and give helpful feedback.',
18+
instructionsPrompt: `Instructions:
19+
1. Use git diff to get the changes, but also get untracked files.
20+
2. Read the files that have changed.
21+
3. Spawn a file explorer to find all related and relevant files.
22+
4. Read all the files that could be relevant to the changes.
23+
5. Review the changes and suggest improvements.`,
24+
}
25+
26+
export default definition

0 commit comments

Comments
 (0)