# Clara

> Clara helps maintain your GitHub repos. She reviews and fixes pull requests, triages and fixes issues, answers questions about your code, and handles security alerts and production errors.

## Documentation

- [Introduction](https://helloclara.dev/docs): Clara is a background agent that helps maintain your GitHub repositories. She reviews and fixes pull requests, triages issues, and handles security alerts and production errors.
- [Talking to Clara](https://helloclara.dev/docs/talking-to-clara): Say Clara's name in a comment to ask a question, request a review, ask for a fix, or tell her a finding doesn't need fixing.

### Pull requests

- [Reviews](https://helloclara.dev/docs/pull-requests/reviews): Clara reviews every pull request as it opens and changes, sorts what she finds into blocking problems and minor notes, and approves once nothing blocking is left and CI passes.
- [Fixes](https://helloclara.dev/docs/pull-requests/fixes): After a review, Clara fixes what she found in the pull request's own branch, the way a maintainer would before approving.
- [Failing CI](https://helloclara.dev/docs/pull-requests/ci): When CI fails on a pull request, Clara waits for the author, then fixes what the pull request broke and says so when the failure isn't its doing.
- [Applying your review](https://helloclara.dev/docs/pull-requests/your-review): Review a pull request as usual and say "clara, apply these". Clara pushes one commit with the changes your comments ask for.
- [Review bots](https://helloclara.dev/docs/pull-requests/review-bots): When CodeRabbit or Codex reviews a pull request, Clara fixes what's worth fixing, says why when it isn't, and resolves every thread.
- [Dependabot updates](https://helloclara.dev/docs/pull-requests/dependabot): Clara reviews Dependabot's pull requests like anyone's, and closes an update that needs a newer Node than your project supports.

### Commits

- [Reviewing pushes](https://helloclara.dev/docs/commits/reviews): Turn it on, and Clara reviews commits pushed straight to the default branch and opens a pull request that fixes the bugs she finds.
- [Failing CI on the default branch](https://helloclara.dev/docs/commits/ci): When CI fails on your default branch, Clara opens a pull request that fixes it, or comments on the commit when the failure isn't the code's doing.

### Issues

- [Triage](https://helloclara.dev/docs/issues/triage): Clara reads the code before she replies to a new issue, then posts a short triage comment with the files involved, likely duplicates, and what's missing.
- [Questions](https://helloclara.dev/docs/issues/questions): Ask Clara how something works, where it happens, or why it's written that way. She reads the code and answers with links to the lines.
- [Fixing issues](https://helloclara.dev/docs/issues/fixes): Label an issue clara: fix, or ask in a comment, and Clara opens a pull request that resolves it.

### Security

- [Code scanning](https://helloclara.dev/docs/security/code-scanning): Clara opens a pull request with the smallest fix for a real code scanning alert, and dismisses false positives with an explanation.
- [Dependabot alerts](https://helloclara.dev/docs/security/dependabot): When a Dependabot alert fires, Clara waits for Dependabot's own pull request and reviews it, or updates the dependency herself.
- [Socket alerts](https://helloclara.dev/docs/security/socket): Clara checks each dependency alert Socket raises on a pull request against how your code uses the package, before she approves.
- [Leaked secrets](https://helloclara.dev/docs/security/secrets): Clara resolves secret scanning alerts for revoked, test, and placeholder values, and leaves real secrets open for their owner.
- [Vulnerability reports](https://helloclara.dev/docs/security/vulnerability-reports): When someone privately reports a vulnerability, Clara checks it against the code and accepts it as a draft advisory if it holds up.

### Errors and releases

- [Production errors](https://helloclara.dev/docs/errors): Sentry tells Clara about each new error in your app. When the code is at fault, she opens a pull request that fixes the cause.
- [Releases](https://helloclara.dev/docs/releases): When a release is published, Clara comments on each pull request and issue it shipped, so the people waiting on a fix know it's out.

### Reference

- [Configuration](https://helloclara.dev/docs/configuration): Set who Clara listens to and what she does on a repository with a .github/clara.json file. Everything but reviewing pushes is on by default.
- [Limits](https://helloclara.dev/docs/limits): The waits and limits built into Clara, so she converges on a pull request instead of looping, and so one account can't run up her work.

## Agent resources

- [llms-full.txt](https://helloclara.dev/llms-full.txt): The full Markdown of every page in one file.
- [Page Markdown](https://helloclara.dev/index.md): Append `.md` to any page URL to fetch that page as raw Markdown.
- [JSON API](https://helloclara.dev/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://helloclara.dev/openapi.json.
- [API catalog](https://helloclara.dev/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here.
- [agent-readability.json](https://helloclara.dev/agent-readability.json): Manifest of every agent-facing artifact on this site.
- [Sitemap](https://helloclara.dev/sitemap.xml): Every indexable page URL with its last-modified date.
