# Code Q&A

Answers questions about the repo when mentioned.

Canonical HTML page: <https://agenta.ai/marketplace/code-qa>

[Use it for free](https://cloud.agenta.ai/?template=code-qa)

- Category: Engineering
- Author: [Agenta team](https://agenta.ai/creators/agenta)
- Trigger: Mention
- Tools: 2 GitHub tools
- Version: 1.0.0

## Overview

Answers questions about your repo when mentioned, citing the files and lines it used.

## How it works

1. Runs when the agent is @-mentioned.
2. Read the code with GitHub.
3. Answer on a Slack mention with Slack (optional).

## Example output

@agent where do we validate API keys?

1. Searched the repo for the validation path
2. Read the two files that own it

Validation happens in `api/oss/src/utils/auth.py` — the middleware resolves the key, then the router's dependency checks scope per request. Both are cited below.

## How to set this up

1. Use it for free. Agenta creates the agent from this template in your workspace.
2. Connect GitHub and Slack. Each app connects from the setup screen.
3. Test, then let it run. Run it once to check the result. Then the trigger takes over.

## What it needs

- GitHub account
- Slack account (Optional)

## Apps

GitHub, Slack

## Related templates

- [PR reviewer](https://agenta.ai/marketplace/pr-reviewer)
- [Changelog writer](https://agenta.ai/marketplace/changelog-writer)
- [Issue triage](https://agenta.ai/marketplace/issue-triage)

---

## Machine-readable

- [Sitemap](https://agenta.ai/sitemap-index.xml)
- [llms.txt](https://agenta.ai/llms.txt)
- [OpenAPI specification](https://agenta.ai/openapi.json)
- [Documentation](https://docs.agenta.ai)

Every page on https://agenta.ai serves this representation when requested with
`Accept: text/markdown`.
