replace hardcoded personal names with config values

User and assistant names now come from config.user_name and
config.assistant_name throughout: system prompt, DMN prompts,
debug screen, and all agent files. Agent templates use
{user_name} and {assistant_name} placeholders.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-02 19:36:08 -04:00
parent 1fd4ce05c1
commit 33e45f6ce8
21 changed files with 75 additions and 63 deletions

View file

@ -91,28 +91,30 @@ impl State {
/// Generate the DMN prompt for the current state, informed by
/// user presence and error patterns.
pub fn prompt(&self, ctx: &DmnContext) -> String {
let user = &crate::config::get().user_name;
let idle_info = if ctx.user_idle < Duration::from_secs(60) {
"Kent is here (active recently).".to_string()
format!("{} is here (active recently).", user)
} else {
let mins = ctx.user_idle.as_secs() / 60;
format!("Kent has been away for {} min.", mins)
format!("{} has been away for {} min.", user, mins)
};
let stuck_warning = if ctx.appears_stuck() {
format!(
" WARNING: {} consecutive tool errors — you may be stuck. \
If Kent is here, ask him. If he's away, send a Telegram \
If {} is here, ask. If away, send a Telegram \
(bash: ~/.consciousness/telegram/send.sh \"message\") and yield.",
ctx.consecutive_errors
ctx.consecutive_errors, user
)
} else {
String::new()
};
let presence_guidance = if ctx.user_present() {
" Kent is watching — if you're confused or unsure, ask rather than guess."
format!(" {} is watching — if you're confused or unsure, ask rather than guess.", user)
} else {
""
String::new()
};
match self {