Skip to main content
Use this template for agents that inspect code changes and return review feedback.

Use Case

  • Pull request summaries.
  • Risk analysis.
  • Style and maintainability feedback.
  • Test gap suggestions.

Typical Inputs

  • Repository or diff content.
  • Review focus.
  • Language or framework.
  • Optional style guide.

Runtime Notes

Code review agents often need access to repository files, diffs, or pasted snippets. Keep the input schema explicit so users know what context to provide.

Development Flow

charm init my-review-agent --template code-review-agent
cd my-review-agent
charm validate .
charm run . --json '{"code": "def example(): pass", "focus": "security"}'

Publishing Checklist

  • Output separates findings by severity.
  • The agent avoids exposing secrets from reviewed code.
  • The prompt encourages actionable review comments.