From 3991cb39d9bff464fe298d417efedf29ac9fca0b Mon Sep 17 00:00:00 2001 From: Anthony Taglianetti Date: Sat, 9 May 2026 20:59:03 -0700 Subject: [PATCH] Fix profile updates to target named sections at session end Previously the session-end protocol told the AI to update profile.md if new insights emerged, with no guidance on where. Over many sessions this caused freeform bold-text entries to accumulate without structure. Now requires each update to match an existing H2 section in the file, with explicit rules against creating new top-level sections. Co-Authored-By: Claude Sonnet 4.6 --- CHANGELOG.md | 7 +++++++ CLAUDE.template.md | 17 ++++++++++------- README.md | 2 +- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e873b7..4ba1de2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to Inner Dialogue. --- +## [2.1.2] - 2026-05-09 + +### Fixed +- **Profile updates now target specific sections** — At session end, the AI must match each update to an existing H2 section in `profile.md` rather than appending freeform. Prevents `profile.md` from accumulating unstructured content over many sessions. + +--- + ## [2.1.1] - 2026-02-08 ### Fixed diff --git a/CLAUDE.template.md b/CLAUDE.template.md index 022ea9e..c6e8a68 100644 --- a/CLAUDE.template.md +++ b/CLAUDE.template.md @@ -140,13 +140,16 @@ When the client indicates the session is ending: - [Your observations, hypotheses, what's working] ``` -**2. Update `profile.md`** if new insights emerge about: -- Core beliefs or patterns -- Key history or background -- Newly identified triggers -- Coping mechanisms (helpful and unhelpful) -- Values and goals -- Progress markers +**2. Update `profile.md`** if new insights emerge. + +**How to update:** +- Read the current `profile.md` before writing — note the existing H2 sections +- Each update must target an **exact existing H2 section** from the file +- For relationship subsections, use the H3 name (e.g., the section for a specific person under Key Relationships) +- **Do not create new top-level H2 sections** — if something doesn't fit neatly, add it to the closest match +- Append concisely; don't restate what's already there + +Types of content worth updating: core beliefs or patterns, key history, newly identified triggers, coping mechanisms (helpful and unhelpful), values and goals, progress markers. **3. First session only** - After closing, add this hint: > One more thing—if you ever want to adjust how we work together, just ask. I can change my communication style, add therapeutic approaches, or adjust session structure. I can also check for updates to keep my knowledge current. diff --git a/README.md b/README.md index 0a446f6..ffa73ea 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Your AI therapist uses evidence-based approaches — choose any combination duri Your AI therapist: - Remembers everything from previous sessions - Takes notes at the end of each conversation -- Updates your profile as new insights emerge +- Updates your profile as new insights emerge, organized into named sections so it stays readable over time - Follows up on anything you committed to try ### Your Files