-
Notifications
You must be signed in to change notification settings - Fork 73
feat(claude-code): add coder-specific prompt to system_prompt #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(claude-code): add coder-specific prompt to system_prompt #443
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice tests!
The only issue that I see with this, is if someone wanted to disable |
@johnstcn @mafredri @DevelopmentCats thank you for the review.
This would still be a breaking change, and we would need to update the documentation to recommend |
My understanding is that the "breaking" part of this change would be defaulting |
That’s a good approach. We can release a minor version now with |
Sounds good to me! Once this is done I'll this to the list of things to expand to the other AI modules as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for implementing this change @ssncferreira!
…ude-code-system-prompt
…ude-code-system-prompt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about these suggestions?
…ude-code-system-prompt
…#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
## Description Update `claude_code` module `system_prompt` variable in template "Write Coder on Coder". Claude-code module now incorporates Coder's inner system prompt for proper integration with task reporting. Related to PRs: * #20053 * coder/registry#443 and coder/registry#461 --------- Co-authored-by: Atif Ali <[email protected]>
Description
This PR updates the
claude-code
module to automatically include the Coder task-reporting system prompt wheneverreport_tasks = true
, and to wrap the final system prompt in<system>…</system>
when non-empty.Previously, users needed to manually include this content in their system prompts to enable proper task reporting. When
report_tasks = true
, the system prompt is prepended with the Coder task-reporting, and any usersystem_prompt
(if provided) is appended after it, ensuring consistent integration without manual copy/paste.When
report_tasks = false
, the module includes only the usersystem_prompt
(if any). If bothreport_tasks = false
andsystem_prompt
is empty, the system prompt sent to Claude is empty.Type of Change
Module Information
Path:
registry/coder/modules/claude-code
New version:
v3.0.2
Breaking change: [] Yes [x] No
Testing & Validation
bun test
)bun run fmt
)Related to internal slack thread: https://codercom.slack.com/archives/C0992H8HGCS/p1759317555713269