Merged
Conversation
Contributor
There was a problem hiding this comment.
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 |
…roved fallback methods
…nd Coder integrations
…le exports in install script
…ith custom settings
…fy and resume the latest session if more than one session file exists
…ipt for better handling
matifali
approved these changes
Oct 6, 2025
Member
matifali
left a comment
There was a problem hiding this comment.
LGTM> One last thing to test is that when running in Standalone mode. Make sure copilot is in $PATH
Co-authored-by: Atif Ali <atif@coder.com>
matifali
approved these changes
Oct 6, 2025
5bfa792 to
5bceee2
Compare
…ule and use new continue param for resuming sessions
…m prompt so it can be changed without obstructing task reporting behaviour
…better adherence to task reporting requirements
matifali
reviewed
Oct 7, 2025
matifali
approved these changes
Oct 7, 2025
romracer
reviewed
Oct 7, 2025
|
|
||
| local module_path="$HOME/.copilot-module" | ||
| mkdir -p "$module_path" | ||
| mkdir -p "$HOME/.config" |
Contributor
There was a problem hiding this comment.
What's this doing? Nowhere else is .config mentioned. Probably a missed change when the config directory was updated to .copilot.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
New Copilot-CLI Module using AgentAPI
Need to test once AgentAPI Changes are pushed.
Type of Change
Module Information
Path:
registry/coder-labs/modules/copilot-cliNew version:
v0.1.0Breaking change: [ ] Yes [ ] No
Testing & Validation
bun test)bun run fmt)Related Issues