PR Q&A
CodeFactory includes a built-in PR question-answering system that lets you interrogate your pull requests using natural language.
Overview
Instead of manually reading through large diffs, you can ask questions like:
- "What does this PR change?"
- "Why did the tests fail?"
- "What are the architectural implications of this change?"
- "Does this PR introduce any security concerns?"
CodeFactory uses an AI agent to analyze the PR diff, review comments, and commit history to provide accurate answers.
How to Use
- Open a PR in the CodeFactory dashboard.
- Navigate to the Q&A tab.
- Type your question and press Enter.
The agent will analyze the PR context and return a detailed answer within seconds.
What the Agent Sees
When answering a question, the agent has access to:
- The full diff of the PR.
- All review comments and threads.
- The PR description and title.
- The commit history on the branch.
- The surrounding code context in affected files.
Use Cases
Code Review Assistance
Ask the agent to summarize changes before you start reviewing:
"Summarize the key changes in this PR and flag anything that needs careful review."
Debugging Failed Checks
When CI fails, ask the agent to diagnose:
"The lint check is failing — what's causing it and how should it be fixed?"
Architecture Review
For larger PRs, get a high-level understanding:
"Does this PR change any public API surfaces? What are the breaking changes?"
Limitations
- The agent only sees the PR context — it does not have access to external documentation or issue trackers.
- Answers are generated by AI and should be verified for critical decisions.
- Very large PRs (1000+ changed files) may exceed context limits.