Skip to content

CloudAEye in VS Code Agent Mode

Connect CloudAEye to GitHub Copilot to describe changes and review code in VS Code's Agent mode. This guide covers Copilot, not the separate Claude Code or Codex extensions; use their respective setup guides for those clients.

Prerequisites

  • VS Code with GitHub Copilot enabled and signed in.
  • A CloudAEye account with Code Review access.
  • A Git repo with at least one commit.
  • Git, Python 3, curl, and Bash installed and available to your coding agent.

On Windows, use Git Bash and check that you can run Python from it. See the shared prerequisites for setup details.

For self-hosted CloudAEye, follow the Self-Hosted MCP guide using the endpoint provided by your administrator.

Step 1 - Install the plugin

Install CloudAEye from its GitHub repository:

  1. Run Chat: Install Plugin From Source from the Command Palette.
  2. Enter https://github.com/CloudAEye/cloudaeye-plugin.
  3. Review and approve the plugin's trust prompt.
  4. Reload VS Code and start a new chat.

If plugin support is disabled, enable chat.plugins.enabled in Settings. See VS Code plugin installation.

Step 2 - Connect your account

  1. Run MCP: List Servers from the Command Palette.
  2. Select CloudAEye and start the connection.
  3. Approve trust if prompted, then select Authenticate when required.
  4. Complete sign-in and consent in the browser, choosing your organization.
  5. Return to Chat, select Agent mode, and enable CloudAEye in the tool selector.

The plugin connects to https://api.cloudaeye.com/mcp. If you added CloudAEye manually before installing the plugin, disable the old connection.

Initialize a repository

In Copilot Chat with Agent mode selected, run /cloudaeye:init once for each repository before using the review commands.

Init detects the repository and branch, then guides you through connecting your Git provider and choosing the branch to monitor. Wait for initialization to finish.

Step 3 - Verify

Make a small edit in the repository, then run /cloudaeye:inspect in Copilot Chat with Agent mode selected.

A working setup reports findings or confirms that it found none. Expand the tool calls to see the CloudAEye result. If it reports an error, see Troubleshooting.

The commands

Select Agent mode in Copilot Chat, then enter /cloudaeye:<command> followed by any arguments. For example: /cloudaeye:add-docs #412.

Command What it does
/cloudaeye:inspect Bug pass, without security checks; use after an ordinary coding task.
/cloudaeye:security Application, LLM, agent, and MCP security, including secrets.
/cloudaeye:review Combined bug and security review.
/cloudaeye:ultrareview Every review at once with a merge verdict; on a PR, posted as one comment.
/cloudaeye:slop-score Assess how much careful manual review a change needs.
/cloudaeye:risk-score Assess whether an open PR needs human review and why.
/cloudaeye:triage-prs Prioritize the review queue across connected repositories; does not review or post on PRs.
/cloudaeye:assign-reviewer Recommend reviewers and what to check; request reviews only when asked.
/cloudaeye:create-owners Write local OWNERS.md files from Git history; never commit or push.
/cloudaeye:config Set your team's settings and review rules, in files you commit.
/cloudaeye:control-flow Show changes to execution order as before/after diagrams.
/cloudaeye:review-arch Explain architectural impact, layers, and boundary violations.
/cloudaeye:describe Produce a change description for a PR body or commit message.
/cloudaeye:check-task Check pending changes against a ticket, issue, or written task.
/cloudaeye:ask Answer questions about pending changes using repository context.
/cloudaeye:explain Explain a Jira or GitHub issue against the code it touches.
/cloudaeye:check Run the PR hygiene checklist and post its report on the PR.
/cloudaeye:add-docs Generate docstrings and post them as PR suggestions.
/cloudaeye:add-tests Generate unit tests and post them as PR suggestions.
/cloudaeye:implement Get a fix plan for selected local-review findings; the agent applies requested fixes.
/cloudaeye:create-issue File selected findings as Jira tickets or GitHub issues.
/cloudaeye:init Connect the current repository and configure its provider integration.
/cloudaeye:help Show the command catalog or a command's manual without running it.

Run /cloudaeye:help to see the commands in your installed version. If a command is missing, update CloudAEye.

Each command links to its section in the User Guide. For a command's manual, append its name to the help command, for example /cloudaeye:help add-docs.

The workflow

The commands are built to sit inside a coding turn rather than beside it. Rather than running a review yourself and relaying the findings, ask for the whole loop in one prompt:

Implement the retry logic in the webhook handler, then review it with
CloudAEye Inspect and fix anything it finds.

Copilot writes the code, runs the CloudAEye inspect skill, and brings back the findings with the file and line for each. CloudAEye identifies the issues; the coding agent applies the fixes you request. To see the findings before deciding what to fix, end your prompt with "Show me the findings before making any fixes."

Ask for specific fixes, then run the same review again. CloudAEye resumes the review session, and the agent describes what it changed and which findings it deliberately left. This gives the next pass the context to focus on the latest changes rather than repeat findings you have already addressed or set aside.

For findings from a review of local changes, use implement to get a fix plan and have the agent apply it. See the User Guide for more workflows.

Make the review part of "done"

Add this to your project's .github/copilot-instructions.md to have Copilot review its own work before it reports a task complete. Keep any instructions already in the file.

## Code review policy (cloudaeye)

After completing any coding task, before reporting done:

1. Run the CloudAEye inspect skill (bug pass, no security checks).
2. Show the findings and reviewed scope. Do not auto-fix unless asked.

If the review fails, report the error instead of marking the review complete.

If the change touches auth, untrusted input, deserialization, secrets, crypto,
LLM prompts, tool definitions, or agent orchestration, suggest CloudAEye security
after reporting the inspect findings. Do not run it uninvited.

This snippet tells the agent to run the check before reporting a task complete. Without it, the commands are available, but you need to ask for a review.

Update

Run Extensions: Check for Extension Updates and apply the available plugin update. Reload VS Code and start a new chat. For a local plugin installation, update its complete checkout instead. See plugin updates.

Troubleshooting

Problem What to do
CloudAEye commands do not appear when you type /cloudaeye Open Chat: Open Customizations > Plugins and enable CloudAEye for the current workspace. Check that chat.plugins.enabled is on, then start a new chat in Agent mode. Plugin setup
The command loads, but Agent mode cannot call CloudAEye Run MCP: List Servers, select CloudAEye, and start it if stopped. In Chat's tool selector, enable the CloudAEye tools. Retry the command and expand the tool call to check its result. MCP controls
CloudAEye sign-in fails or the connection reports an authentication error Run MCP: List Servers > CloudAEye > Show Output. Check that the connection uses https://api.cloudaeye.com/mcp, then follow Connect your account. If it still fails, send CloudAEye support the OAuth error from the output, without tokens or authorization headers. Connection diagnostics
A CloudAEye tool is missing after an update Run MCP: Reset Cached Tools from the Command Palette, then check the tool selector again. This refreshes the server's tool list; it does not reinstall missing slash commands. Tool cache