You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-16Lines changed: 19 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -324,21 +324,6 @@ Currently, Agent mode is supported by:
324
324
-**DeepSeek** (`deepseek-chat` and other models with function calling)
325
325
-**Zhipu** (`glm-4` and other models with function calling)
326
326
327
-
### Available Tools
328
-
329
-
| Tool | Description | Use Case |
330
-
|------|-------------|----------|
331
-
|`read_file`| Read file contents with pagination | View complete source files, type definitions |
332
-
|`search_content`| Search code with regex patterns | Find function definitions, method calls |
333
-
|`list_directory`| List directory structure | Understand project organization |
334
-
335
-
### How It Works
336
-
337
-
1. AI receives the diff and list of changed files
338
-
2. AI analyzes the changes and identifies areas needing more context
339
-
3. AI uses tools to retrieve relevant code (e.g., type definitions, related functions)
340
-
4. AI generates a comprehensive review based on full context
341
-
5. Process repeats until AI has enough information or limits are reached
342
327
343
328
### Agent Mode Prompt Example
344
329
@@ -352,6 +337,7 @@ export default {
352
337
maxIterations:5,
353
338
maxToolCalls:10
354
339
},
340
+
..., // other options
355
341
prompt:`You are a senior code reviewer with access to the full codebase context.
356
342
357
343
Project Info:
@@ -390,7 +376,24 @@ Final recommendation on whether to merge`
390
376
}
391
377
```
392
378
393
-
> **Note**: Agent mode increases API token usage due to multi-turn conversations and tool results. Consider this when reviewing large changes.
379
+
> **Note**: Agent mode increases API token usage due to multi-turn conversations and tool results. Consider this when reviewing large changes. To save tokens, the diff content is also merged and displayed.
380
+
381
+
382
+
### Available Tools
383
+
384
+
| Tool | Description | Use Case |
385
+
|------|-------------|----------|
386
+
|`read_file`| Read file contents with pagination | View complete source files, type definitions |
387
+
|`search_content`| Search code with regex patterns | Find function definitions, method calls |
388
+
|`list_directory`| List directory structure | Understand project organization |
389
+
390
+
### How It Works
391
+
392
+
1. AI receives the diff and list of changed files
393
+
2. AI analyzes the changes and identifies areas needing more context
394
+
3. AI uses tools to retrieve relevant code (e.g., type definitions, related functions)
395
+
4. AI generates a comprehensive review based on full context
396
+
5. Process repeats until AI has enough information or limits are reached
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "code-gate",
3
-
"version": "1.2.0",
3
+
"version": "1.3.0",
4
4
"description": "Intelligent Git commit guard and code reviewer. Supports local (Ollama) and cloud models (DeepSeek, OpenAI, Anthropic, etc.) with a rich CLI UI.",
0 commit comments