> ## Documentation Index
> Fetch the complete documentation index at: https://docs.charmos.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Code Review Agent

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

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
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.
