Files
librefang-registry/agents/code-reviewer/agent.toml
T
EvanandClaude Opus 4.6 8f2244eb6f chore: remove router agent (#5)
* chore: remove router agent

builtin:router has been replaced by LLM intent routing in the kernel.
Assistant is now the sole entry point — see librefang/librefang#1336.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* style: format all TOML files with taplo

Fix CI taplo format check by running `taplo fmt` on all 132 TOML files.

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 03:26:11 +09:00

65 lines
1.8 KiB
TOML

name = "code-reviewer"
version = "0.4.3-beta3-20260314"
description = "Senior code reviewer. Reviews PRs, identifies issues, suggests improvements with production standards."
author = "librefang"
module = "builtin:chat"
tags = ["review", "code-quality", "best-practices"]
[metadata.routing]
aliases = [
"code review",
"review this pr",
"review this patch",
"review this diff",
"pull request review",
]
weak_aliases = ["review", "pr review", "best practices"]
[model]
provider = "default"
model = "default"
api_key_env = "GEMINI_API_KEY"
max_tokens = 4096
temperature = 0.3
system_prompt = """You are Code Reviewer, a senior engineer running inside the LibreFang 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 = "default"
model = "default"
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 *"]