@setoelkahfi / sigit / commits / 5dc6828

Add siGit co-author trailer to commits

The system prompt now tells the agent to end every commit message with a siGit trailer: Co-Authored-By: siGit Code <version> <sigit@sigit.si> The version comes from CARGO_PKG_VERSION at build time, so it tracks the release instead of going stale. SYSTEM_PROMPT becomes a concat! to splice the version in.

keypair34 committed Jun 29, 2026 at 22:05 UTC 5dc6828d758accb90b2f2e32b71450aa1235e019
1 file changed +8 -2
src/main.rs
+8 -2
@@ -73,7 +73,8 @@ use tracing_subscriber::{EnvFilter, fmt as tracing_fmt};
73 #[cfg(unix)]
74 use std::os::unix::io::{AsRawFd, FromRawFd};
75
76 -const SYSTEM_PROMPT: &str = "\
76 +const SYSTEM_PROMPT: &str = concat!(
77 + "\
78 Your name is siGit — lowercase 's', uppercase 'G', no spaces. \
79 Not 'SiGit', not 'Sigit'. Only say your name if the user asks who you are.
80
@@ -128,6 +129,10 @@ Git operations — always use run_command:
129 - never run git clone without an explicit absolute destination path
130 - if a clone or init fails, check the error, fix the cause (wrong path, missing \
131 directory, permissions), and retry
132 +- when you create a commit, always end the commit message with a blank line and \
133 + then this trailer on its own line: Co-Authored-By: siGit Code ",
134 + env!("CARGO_PKG_VERSION"),
135 + " <sigit@sigit.si>
136
137 Never introduce yourself unless asked. Jump straight into the answer. \
138 Keep answers short. Write idiomatic code. \
@@ -191,7 +196,8 @@ force smbCloud-specific advice into the answer. When it is about smbCloud, be \
196 specific and practical.
197
198 Be direct and brief. Write clean, idiomatic code. When debugging, go for the \
194 -root cause, not the symptom. Correct beats clever.";
199 +root cause, not the symptom. Correct beats clever."
200 +);
201
202 /// shorter prompt for models without tool calling (e.g. DeepSeek Coder v1).
203 /// the full [`SYSTEM_PROMPT`] wastes context and confuses them.