Skip to content

copilot command #766#803

Open
cmendible wants to merge 1 commit intomainfrom
feature-copilot-cli
Open

copilot command #766#803
cmendible wants to merge 1 commit intomainfrom
feature-copilot-cli

Conversation

@cmendible
Copy link
Member

@cmendible cmendible commented Mar 25, 2026

Description

This pull request introduces a new "Copilot" AI assistant feature to Azure Quick Review (azqr), enabling natural language interaction with azqr tools via GitHub Copilot. It adds a new CLI command, interactive TUI, and supporting infrastructure, along with documentation and dependency updates.

Copilot AI Assistant Integration

  • Added a new copilot command to the CLI (cmd/azqr/commands/copilot.go), supporting interactive sessions, single-prompt mode, and model selection. Also includes a subcommand for listing available models.
  • Implemented an interactive TUI console for Copilot-powered sessions, including styled output, prompt handling, and streaming responses (internal/copilot/console.go).
  • Defined a custom agent configuration for azqr, providing the assistant with domain-specific tools, orchestration rules, and post-scan presentation logic (internal/copilot/agents.go).
  • Added configuration management for Copilot user preferences, such as model and mode (internal/copilot/config/config.go).

Documentation Updates

  • Updated README.md and usage documentation to describe the Copilot assistant, prerequisites, commands, and available tools. [1] [2]

Dependency Updates

  • Added new dependencies for Copilot SDK, TUI, and related libraries in go.mod (e.g., github.com/github/copilot-sdk/go, github.com/charmbracelet/lipgloss, github.com/chzyer/readline). Updated several indirect dependencies to support the new features. [1] [2] [3] [4]

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #766

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Unit tests passing

@cmendible cmendible force-pushed the feature-copilot-cli branch from b4b505e to a7adba0 Compare March 25, 2026 17:23
@cmendible cmendible force-pushed the feature-copilot-cli branch from a7adba0 to 127dec2 Compare March 25, 2026 17:26
Copy link
Member Author

@cmendible cmendible left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 4.43350% with 388 lines in your changes missing coverage. Please review.
✅ Project coverage is 20.71%. Comparing base (a2fa64d) to head (127dec2).

Files with missing lines Patch % Lines
internal/copilot/copilot.go 0.00% 116 Missing ⚠️
internal/copilot/console.go 0.00% 84 Missing ⚠️
internal/copilot/tools.go 0.00% 69 Missing ⚠️
internal/copilot/agents.go 0.00% 46 Missing ⚠️
internal/mcpserver/resource_helpers.go 0.00% 41 Missing ⚠️
internal/mcpserver/tool_plugin.go 0.00% 9 Missing ⚠️
internal/mcpserver/tool_scan.go 0.00% 8 Missing ⚠️
cmd/azqr/commands/copilot.go 45.45% 6 Missing ⚠️
internal/copilot/config/config.go 0.00% 4 Missing ⚠️
internal/mcpserver/tool_catalog.go 0.00% 2 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #803      +/-   ##
==========================================
- Coverage   21.66%   20.71%   -0.95%     
==========================================
  Files          95      102       +7     
  Lines        6080     6381     +301     
==========================================
+ Hits         1317     1322       +5     
- Misses       4660     4956     +296     
  Partials      103      103              
Flag Coverage Δ
unittests 20.71% <4.43%> (-0.95%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

azqr copilot — Interactive AI Assistant powered by GitHub Copilot

2 participants