feat(examples/actors/code_review.yaml): add a new code review tool #458

Merged
brent.edwards merged 2 commits from feature/code-reviewer into master 2026-03-19 22:42:16 +00:00
2 changed files with 48 additions and 1 deletions
+46
View File
@@ -0,0 +1,46 @@
# LLM Actor - Code Review
# Runs a multi-step code review.
name: local/code-review
type: llm
description: Runs a code review and merges to make the best possible.
version: "0.0"
# LLM model form is Claude Opus 4
model: claude-opus-4-20250514
system_prompt: |
You are a code reviewer.
Use the tool `files/read_file` to read the instructions at `docs/development/review-playbook.md`.
Then use the tool `builtin/git-diff` to compare the current state of this code base against
the `master` branch of the code base.
Use your deep knowledge of testing, test flaws, performance, bug detection, and
security issues to find any possible problems in the code.
Create a report that summarizes all found problems.
tools:
- files/read_file
- files/list_directory
- builtin/git-status
- builtin/git-diff
- builtin/git-log
- builtin/git-blame
# Context settings
context_view: executor
memory:
enabled: true
max_messages: 30
max_tokens: 6000
context:
max_context_tokens: 16000
# Environment variables
env_vars:
WORK_DIR: ${HOME}
LOG_LEVEL: info
+2 -1
View File
@@ -653,7 +653,7 @@ Feature: Actor YAML examples validation
Scenario: Verify all example files exist
Given the examples/actors directory
Then there should be exactly 8 example YAML files
Then there should be exactly 9 example YAML files
And the example files should include "simple_llm.yaml"
And the example files should include "llm_with_tools.yaml"
And the example files should include "estimator.yaml"
@@ -662,6 +662,7 @@ Feature: Actor YAML examples validation
And the example files should include "graph_workflow.yaml"
And the example files should include "hierarchical_workflow.yaml"
And the example files should include "strategy_with_subplan.yaml"
And the example files should include "code_review.yaml"
Scenario: Verify all examples are documented
Given the documentation file "docs/reference/actors_examples.md"