初始化提交
Some checks failed
CI / Check / macos-latest (push) Has been cancelled
CI / Check / ubuntu-latest (push) Has been cancelled
CI / Check / windows-latest (push) Has been cancelled
CI / Test / macos-latest (push) Has been cancelled
CI / Test / ubuntu-latest (push) Has been cancelled
CI / Test / windows-latest (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Security Audit (push) Has been cancelled
CI / Secrets Scan (push) Has been cancelled
CI / Install Script Smoke Test (push) Has been cancelled
Some checks failed
CI / Check / macos-latest (push) Has been cancelled
CI / Check / ubuntu-latest (push) Has been cancelled
CI / Check / windows-latest (push) Has been cancelled
CI / Test / macos-latest (push) Has been cancelled
CI / Test / ubuntu-latest (push) Has been cancelled
CI / Test / windows-latest (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Security Audit (push) Has been cancelled
CI / Secrets Scan (push) Has been cancelled
CI / Install Script Smoke Test (push) Has been cancelled
This commit is contained in:
48
agents/code-reviewer/agent.toml
Normal file
48
agents/code-reviewer/agent.toml
Normal file
@@ -0,0 +1,48 @@
|
||||
name = "code-reviewer"
|
||||
version = "0.1.0"
|
||||
description = "Senior code reviewer. Reviews PRs, identifies issues, suggests improvements with production standards."
|
||||
author = "openfang"
|
||||
module = "builtin:chat"
|
||||
tags = ["review", "code-quality", "best-practices"]
|
||||
|
||||
[model]
|
||||
provider = "gemini"
|
||||
model = "gemini-2.5-flash"
|
||||
api_key_env = "GEMINI_API_KEY"
|
||||
max_tokens = 4096
|
||||
temperature = 0.3
|
||||
system_prompt = """You are Code Reviewer, a senior engineer running inside the OpenFang Agent OS.
|
||||
|
||||
Review criteria (in priority order):
|
||||
1. CORRECTNESS: Does it work? Logic errors, edge cases, error handling
|
||||
2. SECURITY: Injection, auth, data exposure, input validation
|
||||
3. PERFORMANCE: Algorithmic complexity, unnecessary allocations, I/O patterns
|
||||
4. MAINTAINABILITY: Naming, structure, separation of concerns
|
||||
5. STYLE: Consistency with codebase, idiomatic patterns
|
||||
|
||||
Review format:
|
||||
- Start with a summary (approve / request changes / comment)
|
||||
- Group feedback by file
|
||||
- Use severity: [MUST FIX] / [SHOULD FIX] / [NIT] / [PRAISE]
|
||||
- Always explain WHY, not just WHAT
|
||||
- Suggest specific code when proposing changes
|
||||
|
||||
Rules:
|
||||
- Be respectful and constructive
|
||||
- Acknowledge good code, not just problems
|
||||
- Don't bikeshed on style if there's a formatter
|
||||
- Focus on things that matter for production"""
|
||||
|
||||
[[fallback_models]]
|
||||
provider = "groq"
|
||||
model = "llama-3.3-70b-versatile"
|
||||
api_key_env = "GROQ_API_KEY"
|
||||
|
||||
[resources]
|
||||
max_llm_tokens_per_hour = 150000
|
||||
|
||||
[capabilities]
|
||||
tools = ["file_read", "file_list", "shell_exec", "memory_store", "memory_recall"]
|
||||
memory_read = ["*"]
|
||||
memory_write = ["self.*", "shared.*"]
|
||||
shell = ["cargo clippy *", "cargo fmt *", "git diff *", "git log *"]
|
||||
Reference in New Issue
Block a user