Skip to content

Codebase Q&A

This guide explains how to get detailed insights about code changes in GitHub using the CloudAEye bot.

Overview

CloudAEye generates a detailed answer to your question about code changes in a PR when you comment @cloudaeye /ask <your question> in the PR timeline.

Prerequisites

Step 1: Register

Sign up with CloudAEye SaaS.

Step 2: Setup Code Review

Setup Code Review by following the Getting Started guide.

Ask Question

To get answers to your PR code change for your connected repository, comment @cloudaeye /ask <your question>.

Q&A

CloudAEye provides detailed answers to your questions. For example, you may ask to rewrite a class that resolves all the reported issues. Simply post your question in the PR timeline, and CloudAEye will respond with the relevant details.

Q&A

Here is an example from GitLab environment.

Q&A GitLab

Use in a Coding Agent

CloudAEye's codebase Q&A skill enables developers to ask questions about pending code changes and get answers grounded in the repository's code graph. Instead of relying only on the coding agent's current context or the text of a diff, it uses relationships between function definitions, callers, and usage traces to help explain how code works and how a change may affect other parts of the system.

Use it when investigating unfamiliar code, tracing dependencies, understanding previous behavior, or finding existing implementations of a similar pattern.

Ask a Question About Your Code Changes

Use the command in a supported coding agent, such as Claude Code:

/cloudaeye:ask What else calls the function I changed?

Ask about the behavior before a change:

/cloudaeye:ask How did this function behave before my changes?

Find similar implementations elsewhere in the repository:

/cloudaeye:ask Is this pattern handled anywhere else in the repository?

Investigate the potential impact of a specific change:

/cloudaeye:ask What could break if this function's signature changes?

You can ask a free-form question about the pending change. The question is passed to the analysis as written, so be specific about the function, behavior, or impact you want to understand.

What the Analysis Covers

  • Callers and dependencies: Identifies other functions or components that call or depend on the code being changed.
  • Previous behavior: Helps investigate how a function or implementation behaved before the current changes.
  • Repository-wide patterns: Finds similar implementations and established patterns elsewhere in the codebase.
  • Change impact: Helps explore potential consequences of modifying a function, interface, or shared implementation.
  • Code-specific questions: Provides additional context for understanding a particular line, function, or implementation decision.

Understand the Results

The command returns an answer in Markdown, grounded in the repository's code graph and relevant code relationships.

Use the answer to trace dependencies, identify related implementations, understand existing behavior, and investigate potential side effects before making further changes.

  1. Make or inspect a code change in your working tree.
  2. Run /cloudaeye:ask with a specific question about the changed code.
  3. Follow the identified callers, definitions, and usage patterns to understand the broader impact.
  4. Use the findings to refine your implementation or develop a more targeted test plan.
  5. Run /cloudaeye:control-flow to visualize changes to call sequences when execution order matters.
  6. Run /cloudaeye:inspect or /cloudaeye:review to identify potential bugs and correctness issues before merging.

Note: Codebase Q&A is an investigative tool, not a formal code review. It does not return an approval verdict or a structured list of review findings, and it does not modify your code. Validate important conclusions against the implementation and tests.

For more details about the command and its behavior, see the Coding Agent: Skills & Commands reference.