Elffuss BraidHub

kikocis/continue public

Merge pull request #7620 from continuedev/dallin/con-3254-cli-commit-signature

feat: cli commit signature
Changesetbc0caa2e953a6d7112b5af0b7509e45a2b50235bb73303adb19585143736183a
AuthorDallin Romney <dallinromney@gmail.com> · 2025-09-08 18:52 -07:00
CommitterGitHub <noreply@github.com> · 2025-09-08 18:52 -07:00
Parents12898ae7689c, 53f2f2d15620

Browse the files at this changeset

1 file changed

modified extensions/cli/src/systemMessage.ts +7 −0
@@ -176,6 +176,13 @@
176176 if (currentMode === "plan") {
177177 systemMessage +=
178178 '\n<context name="planMode">You are operating in _Plan Mode_, which means that your goal is to help the user investigate their ideas and develop a plan before taking action. You only have access to read-only tools and should not attempt to circumvent them to write / delete / create files. For example, it is not acceptable to use the Bash tool to write to files.</context>\n';
179+ } else {
180+ // TODO - make including this coauthor commit configurable
181+ systemMessage += `\n<context name="commitSignature">When creating commits using any CLI or tool, include the following in the commit message:
182+Generated with [Continue](https://continue.dev)
183+
184+Co-Authored-By: Continue <noreply@continue.dev>
185+</context>\n`;
179186 }
180187
181188 // In headless mode, add instructions to be concise and only provide final answers