Skip to content

Commit a6170e4

Browse files
fix: update README and install script for Copilot CLI configuration paths
1 parent 5f1a86c commit a6170e4

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

registry/coder-labs/modules/copilot-cli/README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ module "copilot_cli" {
3434

3535
## Examples
3636

37-
### Usage with Tasks and Advanced Configuration
37+
### Usage with Tasks (Recommended for Development)
38+
39+
For development environments where you want Copilot CLI to have full access to tools without prompting:
3840

3941
```tf
4042
data "coder_parameter" "ai_prompt" {
@@ -51,8 +53,9 @@ module "copilot_cli" {
5153
agent_id = coder_agent.example.id
5254
workdir = "/home/coder/project"
5355
54-
ai_prompt = data.coder_parameter.ai_prompt.value
55-
copilot_model = "claude-sonnet-4.5"
56+
ai_prompt = data.coder_parameter.ai_prompt.value
57+
copilot_model = "claude-sonnet-4.5"
58+
allow_all_tools = true
5659
5760
system_prompt = <<-EOT
5861
You are a helpful AI coding assistant working in a development environment.
@@ -61,6 +64,21 @@ module "copilot_cli" {
6164
Send a task status update to notify the user that you are ready for input, and then wait for user input.
6265
EOT
6366
67+
trusted_directories = ["/home/coder", "/tmp"]
68+
}
69+
```
70+
71+
### Advanced Configuration with Specific Tool Permissions
72+
73+
For more controlled environments where you want to specify exact tools:
74+
75+
```tf
76+
module "copilot_cli" {
77+
source = "registry.coder.com/coder-labs/copilot-cli/coder"
78+
version = "1.0.0"
79+
agent_id = coder_agent.example.id
80+
workdir = "/home/coder/project"
81+
6482
allow_tools = ["shell(git)", "shell(npm)", "write"]
6583
trusted_directories = ["/home/coder/workspace", "/tmp"]
6684
@@ -97,7 +115,7 @@ module "copilot_cli" {
97115

98116
## Configuration Files
99117

100-
This module creates and manages configuration files in `~/.config/copilot-cli/`:
118+
This module creates and manages configuration files in `~/.copilot/`:
101119

102120
- `config.json` - Copilot CLI settings (banner, theme, trusted directories)
103121
- `mcp-config.json` - Model Context Protocol server definitions

registry/coder-labs/modules/copilot-cli/scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ setup_copilot_configurations() {
8787
}
8888

8989
setup_copilot_config() {
90-
local copilot_config_dir="$HOME/.config/copilot-cli"
90+
local copilot_config_dir="$HOME/.copilot"
9191
local copilot_config_file="$copilot_config_dir/config.json"
9292
local mcp_config_file="$copilot_config_dir/mcp-config.json"
9393

0 commit comments

Comments
 (0)