jostlebot Claude Opus 4.5 commited on
Commit
2fe5e9d
·
1 Parent(s): 0b56fd7

Make FEEL/NEED reflections brief and natural

Browse files

- 3-5 sentences max, no headers or bullet points
- Embed wisdom naturally without explicit citations
- Focus on building emotional intelligence
- Warm, conversational tone

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. static/index.html +16 -29
static/index.html CHANGED
@@ -1354,7 +1354,6 @@
1354
  const feelingsText = selectedFeelings.join(', ');
1355
  addToolMsg('user', `I'm feeling: ${feelingsText}`);
1356
 
1357
- // Get reflection from API with psychoeducation
1358
  addToolLoading();
1359
  const isVerbose = document.getElementById('toggle-verbose')?.checked || false;
1360
  try {
@@ -1365,25 +1364,20 @@
1365
  tool: 'feelings_needs',
1366
  partner_message: lastPartnerMessage,
1367
  user_draft: '',
1368
- user_input: `The person has identified these feelings: ${feelingsText}. ${userInput ? 'They added: ' + userInput : ''}
1369
-
1370
- TASK:
1371
- 1. Validate these feelings - they make sense
1372
- 2. Help connect feelings to underlying needs (NVC framework)
1373
- 3. Include brief psychoeducation about these specific feelings - draw from:
1374
- - Brené Brown (vulnerability, shame, connection)
1375
- - Tara Brach (RAIN, self-compassion, presence)
1376
- - Sarah Peyton (neuroscience of resonance, attachment)
1377
- 4. Keep it warm, brief, and actionable
1378
-
1379
- Format: Acknowledge → What the feelings might point to → Brief insight → Connection to needs`,
1380
  verbose: isVerbose
1381
  })
1382
  });
1383
  const data = await response.json();
1384
  removeToolLoading();
1385
  if (data.response) {
1386
- addToolMsg('tool', data.response, 'Feelings Reflection');
1387
  }
1388
  } catch (e) {
1389
  removeToolLoading();
@@ -1398,7 +1392,6 @@ Format: Acknowledge → What the feelings might point to → Brief insight → C
1398
  const needsText = selectedNeeds.join(', ');
1399
  addToolMsg('user', `I'm needing: ${needsText}`);
1400
 
1401
- // Get reflection from API with psychoeducation
1402
  addToolLoading();
1403
  const isVerbose = document.getElementById('toggle-verbose')?.checked || false;
1404
  try {
@@ -1409,26 +1402,20 @@ Format: Acknowledge → What the feelings might point to → Brief insight → C
1409
  tool: 'feelings_needs',
1410
  partner_message: lastPartnerMessage,
1411
  user_draft: '',
1412
- user_input: `The person has identified these needs: ${needsText}. ${userInput ? 'They added: ' + userInput : ''}
1413
-
1414
- TASK:
1415
- 1. Validate these needs - they are universal human needs
1416
- 2. Help them see how these needs connect to their feelings and the relationship
1417
- 3. Include brief psychoeducation about needs - draw from:
1418
- - Marshall Rosenberg (NVC, universal needs, requests vs demands)
1419
- - Brené Brown (connection, worthiness, vulnerability)
1420
- - Attachment theory (safety, closeness, autonomy)
1421
- 4. Suggest what a request might sound like to meet these needs
1422
- 5. Keep it warm, brief, and actionable
1423
-
1424
- Format: Validate → What these needs mean → Brief insight → Possible request`,
1425
  verbose: isVerbose
1426
  })
1427
  });
1428
  const data = await response.json();
1429
  removeToolLoading();
1430
  if (data.response) {
1431
- addToolMsg('tool', data.response, 'Needs Reflection');
1432
  }
1433
  } catch (e) {
1434
  removeToolLoading();
 
1354
  const feelingsText = selectedFeelings.join(', ');
1355
  addToolMsg('user', `I'm feeling: ${feelingsText}`);
1356
 
 
1357
  addToolLoading();
1358
  const isVerbose = document.getElementById('toggle-verbose')?.checked || false;
1359
  try {
 
1364
  tool: 'feelings_needs',
1365
  partner_message: lastPartnerMessage,
1366
  user_draft: '',
1367
+ user_input: `The person identified these feelings: ${feelingsText}. ${userInput ? 'They added: ' + userInput : ''}
1368
+
1369
+ Be BRIEF (3-5 sentences max). No headers, no bullet points, no explicit citations.
1370
+
1371
+ Validate the feeling. Share one insight about what this feeling tends to signal in relationships or the nervous system. Name what need might be underneath. Keep it warm and conversational - building emotional intelligence, not lecturing.
1372
+
1373
+ Draw wisdom from attachment neuroscience, somatic awareness, and relational psychology - but embed it naturally, don't name sources.`,
 
 
 
 
 
1374
  verbose: isVerbose
1375
  })
1376
  });
1377
  const data = await response.json();
1378
  removeToolLoading();
1379
  if (data.response) {
1380
+ addToolMsg('tool', data.response, 'Feelings');
1381
  }
1382
  } catch (e) {
1383
  removeToolLoading();
 
1392
  const needsText = selectedNeeds.join(', ');
1393
  addToolMsg('user', `I'm needing: ${needsText}`);
1394
 
 
1395
  addToolLoading();
1396
  const isVerbose = document.getElementById('toggle-verbose')?.checked || false;
1397
  try {
 
1402
  tool: 'feelings_needs',
1403
  partner_message: lastPartnerMessage,
1404
  user_draft: '',
1405
+ user_input: `The person identified these needs: ${needsText}. ${userInput ? 'They added: ' + userInput : ''}
1406
+
1407
+ Be BRIEF (3-5 sentences max). No headers, no bullet points, no explicit citations.
1408
+
1409
+ Validate these as universal human needs. Share one insight about why these needs matter in connection. Optionally suggest what a request might sound like. Keep it warm and conversational - building emotional intelligence, not lecturing.
1410
+
1411
+ Draw wisdom from NVC, attachment theory, and relational psychology - but embed it naturally, don't name sources.`,
 
 
 
 
 
 
1412
  verbose: isVerbose
1413
  })
1414
  });
1415
  const data = await response.json();
1416
  removeToolLoading();
1417
  if (data.response) {
1418
+ addToolMsg('tool', data.response, 'Needs');
1419
  }
1420
  } catch (e) {
1421
  removeToolLoading();