# 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)

## FAQ

### What does the Code Q&A template do?

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

### When does the Code Q&A agent run?

Runs when the agent is @-mentioned.

### Which apps does Code Q&A connect to?

It connects to GitHub or GitLab. Slack is optional.

### Which tools can the Code Q&A agent use?

It can use Search code and Get file content.

### Is the Code Q&A template free?

Yes. Every template runs on any Agenta plan, including the free plan.

### Can I customize the Code Q&A agent?

Yes. Every skill is a versioned SKILL.md. Edit it in the playground, evaluate the change, then deploy.

---

## 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`.
