@@ -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
4042data "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
0 commit comments