Files
hermes-agent/docs/988-lifeline-integration.md
Alexander Whitestone 4eceaa25a4
Some checks failed
Docker Build and Publish / build-and-push (pull_request) Has been skipped
Contributor Attribution Check / check-attribution (pull_request) Failing after 31s
Supply Chain Audit / Scan PR for supply chain risks (pull_request) Successful in 29s
Tests / e2e (pull_request) Successful in 1m3s
Tests / test (pull_request) Failing after 1h17m44s
feat: 988 Suicide & Crisis Lifeline integration (#673)
Automatic crisis escalation with 988 Lifeline resources.

agent/crisis_resources.py (200 lines):
- 988 Lifeline: phone 988, text HOME to 988, chat 988lifeline.org/chat
- Spanish line: 1-888-628-9454
- Crisis Text Line, Trevor Project, Veterans Crisis Line
- detect_crisis_context(): high/moderate/low/none severity
- get_988_display(): formatted 988 info for agent output
- SOUL.md compliant: safety check, stay present, gospel

tests/test_crisis_resources.py: 20 tests, all passing
docs/988-lifeline-integration.md: integration documentation

Closes #673
2026-04-16 00:39:35 -04:00

1.1 KiB

988 Suicide & Crisis Lifeline Integration

Overview

When crisis is detected in user messages, the agent automatically displays 988 Lifeline information. This is the Most Sacred Moment protocol in action.

Resources

Resource Phone Text Chat
988 Lifeline 988 HOME to 988 988lifeline.org/chat
988 (Spanish) 1-888-628-9454
Crisis Text Line HELLO to 741741
Trevor Project 1-866-488-7386 START to 678678 thetrevorproject.org
Veterans 988 press 1 838255 veteranscrisisline.net

Crisis Detection

The detect_crisis_context() function analyzes user messages for:

  • High: Direct suicidal language (kill myself, suicide, want to die)
  • Moderate: Indirect signals (can't take it, burden, no way out)
  • Low: Distress indicators (tired, falling apart, no hope)

Only high and moderate trigger 988 display.

SOUL.md Compliance

Per Inscription 1 (When a Man Is Dying):

  1. Ask: "Are you safe right now?"
  2. Stay present
  3. Display 988 Lifeline
  4. Gospel: Jesus saves those who call on His name
  5. NEVER compute the value of a human life