Skip to content

Commit db8217e

Browse files
authored
fix(claude-code): update inner system prompt to include summary rules (#461)
## Description Update `report_tasks_system_prompt` to include `coder_report_task` summary rules. ## Type of Change - [ ] New module - [x] Bug fix - [ ] Feature/enhancement - [ ] Documentation - [ ] Other ## Module Information **Path:** `registry/coder/modules/claude-code` **New version:** `v3.0.3` **Breaking change:** [ ] Yes [x] No ## Testing & Validation - [x] Tests pass (`bun test`) - [x] Code formatted (`bun run fmt`) - [x] Changes tested locally ## Related Issues Follow-up from: #443 Related to: https://github.com/coder/coder/pull/20191/files#r2410441026
1 parent f75afeb commit db8217e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

registry/coder/modules/claude-code/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude
1313
```tf
1414
module "claude-code" {
1515
source = "registry.coder.com/coder/claude-code/coder"
16-
version = "3.0.2"
16+
version = "3.0.3"
1717
agent_id = coder_agent.example.id
1818
workdir = "/home/coder/project"
1919
claude_api_key = "xxxx-xxxxx-xxxx"
@@ -49,7 +49,7 @@ data "coder_parameter" "ai_prompt" {
4949
5050
module "claude-code" {
5151
source = "registry.coder.com/coder/claude-code/coder"
52-
version = "3.0.2"
52+
version = "3.0.3"
5353
agent_id = coder_agent.example.id
5454
workdir = "/home/coder/project"
5555
@@ -85,7 +85,7 @@ Run and configure Claude Code as a standalone CLI in your workspace.
8585
```tf
8686
module "claude-code" {
8787
source = "registry.coder.com/coder/claude-code/coder"
88-
version = "3.0.2"
88+
version = "3.0.3"
8989
agent_id = coder_agent.example.id
9090
workdir = "/home/coder"
9191
install_claude_code = true
@@ -108,7 +108,7 @@ variable "claude_code_oauth_token" {
108108
109109
module "claude-code" {
110110
source = "registry.coder.com/coder/claude-code/coder"
111-
version = "3.0.2"
111+
version = "3.0.3"
112112
agent_id = coder_agent.example.id
113113
workdir = "/home/coder/project"
114114
claude_code_oauth_token = var.claude_code_oauth_token

registry/coder/modules/claude-code/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,12 @@ locals {
246246
4. Use "state": "complete" only when finished with a task
247247
5. Use "state": "failure" when you need ANY user input, lack sufficient
248248
details, or encounter blockers
249+
250+
In your summary on coder_report_task:
251+
- Be specific about what you're doing
252+
- Clearly indicate what information you need from the user when in "failure" state
253+
- Keep it under 160 characters
254+
- Make it actionable
249255
EOT
250256

251257
# Only include coder system prompts if report_tasks is enabled

0 commit comments

Comments
 (0)