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: https://github.com/coder/registry/pull/443 Related to: https://github.com/coder/coder/pull/20191/files#r2410441026
This commit is contained in:
parent
f75afeb0c8
commit
db8217e4e5
@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude
|
|||||||
```tf
|
```tf
|
||||||
module "claude-code" {
|
module "claude-code" {
|
||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "3.0.2"
|
version = "3.0.3"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
workdir = "/home/coder/project"
|
workdir = "/home/coder/project"
|
||||||
claude_api_key = "xxxx-xxxxx-xxxx"
|
claude_api_key = "xxxx-xxxxx-xxxx"
|
||||||
@ -49,7 +49,7 @@ data "coder_parameter" "ai_prompt" {
|
|||||||
|
|
||||||
module "claude-code" {
|
module "claude-code" {
|
||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "3.0.2"
|
version = "3.0.3"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
workdir = "/home/coder/project"
|
workdir = "/home/coder/project"
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ Run and configure Claude Code as a standalone CLI in your workspace.
|
|||||||
```tf
|
```tf
|
||||||
module "claude-code" {
|
module "claude-code" {
|
||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "3.0.2"
|
version = "3.0.3"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
workdir = "/home/coder"
|
workdir = "/home/coder"
|
||||||
install_claude_code = true
|
install_claude_code = true
|
||||||
@ -108,7 +108,7 @@ variable "claude_code_oauth_token" {
|
|||||||
|
|
||||||
module "claude-code" {
|
module "claude-code" {
|
||||||
source = "registry.coder.com/coder/claude-code/coder"
|
source = "registry.coder.com/coder/claude-code/coder"
|
||||||
version = "3.0.2"
|
version = "3.0.3"
|
||||||
agent_id = coder_agent.example.id
|
agent_id = coder_agent.example.id
|
||||||
workdir = "/home/coder/project"
|
workdir = "/home/coder/project"
|
||||||
claude_code_oauth_token = var.claude_code_oauth_token
|
claude_code_oauth_token = var.claude_code_oauth_token
|
||||||
|
|||||||
@ -246,6 +246,12 @@ locals {
|
|||||||
4. Use "state": "complete" only when finished with a task
|
4. Use "state": "complete" only when finished with a task
|
||||||
5. Use "state": "failure" when you need ANY user input, lack sufficient
|
5. Use "state": "failure" when you need ANY user input, lack sufficient
|
||||||
details, or encounter blockers
|
details, or encounter blockers
|
||||||
|
|
||||||
|
In your summary on coder_report_task:
|
||||||
|
- Be specific about what you're doing
|
||||||
|
- Clearly indicate what information you need from the user when in "failure" state
|
||||||
|
- Keep it under 160 characters
|
||||||
|
- Make it actionable
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
# Only include coder system prompts if report_tasks is enabled
|
# Only include coder system prompts if report_tasks is enabled
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user