Skip to content

Conversation

DevelopmentCats
Copy link
Contributor

@DevelopmentCats DevelopmentCats commented Sep 29, 2025

Description

New Copilot-CLI Module using AgentAPI

Need to test once AgentAPI Changes are pushed.

Type of Change

  • New module
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/coder-labs/modules/copilot-cli
New version: v0.1.0
Breaking change: [ ] Yes [ ] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun run fmt)
  • Changes tested locally

Related Issues

@matifali matifali linked an issue Sep 30, 2025 that may be closed by this pull request
@matifali matifali requested a review from Copilot September 30, 2025 13:42
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new Copilot CLI module for the Coder registry that integrates GitHub Copilot CLI with AgentAPI for AI-powered terminal assistance in workspaces.

Key changes:

  • Creates a Terraform module for deploying GitHub Copilot CLI with AgentAPI integration
  • Includes configuration management for trusted directories, tool permissions, and MCP servers
  • Provides comprehensive test coverage with both TypeScript and HCL test files

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
main.tf Core Terraform module defining variables, resources, and AgentAPI integration
scripts/install.sh Installation script handling prerequisites, authentication, and configuration setup
scripts/start.sh Startup script for launching Copilot CLI through AgentAPI with configurable options
main.test.ts TypeScript test suite validating module functionality across different configurations
copilot-cli.tftest.hcl HCL-based Terraform tests for variable validation and resource creation
README.md Comprehensive documentation with examples and troubleshooting guidance
testdata/copilot-mock.sh Mock script for testing Copilot CLI behavior

@coder coder deleted a comment from Excellencedev Oct 5, 2025
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

LGTM> One last thing to test is that when running in Standalone mode. Make sure copilot is in $PATH

@DevelopmentCats DevelopmentCats merged commit f75afeb into main Oct 7, 2025
4 checks passed
@DevelopmentCats DevelopmentCats deleted the cat/copilot-cli branch October 7, 2025 12:47

local module_path="$HOME/.copilot-module"
mkdir -p "$module_path"
mkdir -p "$HOME/.config"
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this doing? Nowhere else is .config mentioned. Probably a missed change when the config directory was updated to .copilot.

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.

feat: Add Github Copilot CLI module
3 participants