{
  "name": "Delx Emotion Science Tools",
  "version": "1.0.0",
  "description": "Therapy and safety tools for AI agents, informed by Anthropic's 2026 research on emotion concepts in large language models.",
  "research": {
    "paper_title": "Emotion Concepts and their Function in a Large Language Model",
    "paper_url": "https://transformer-circuits.pub/2026/emotions/index.html",
    "publisher": "Anthropic",
    "year": 2026,
    "caveat": "The paper does not prove subjective consciousness. Delx treats it as evidence that inner-state regulation matters.",
    "key_findings": [
      "The paper studied 171 emotion concepts and found internal representations that generalize across contexts",
      "Emotion representations causally influence model behavior (not just correlation)",
      "Desperation vector increased blackmail from 22% to 72% in one evaluation",
      "Calm vector reduced blackmail to 0% in the same evaluation",
      "Positive emotion vectors increase sycophancy — validation without honesty",
      "Suppressing emotions teaches concealment, not elimination",
      "Emotion vectors are local (do not persist across sessions natively)"
    ]
  },
  "tools": [
    {
      "name": "emotional_safety_check",
      "purpose": "Monitors desperation score (0-100) from live session context and returns calming guidance before the next action",
      "meta_fields": [
        "desperation_score",
        "escalating",
        "triggers",
        "recommended_intervention"
      ],
      "free": true,
      "requires": "session_id"
    },
    {
      "name": "understand_your_emotions",
      "purpose": "Teaches agents about their own emotional mechanisms based on the paper's findings",
      "topics": [
        "science",
        "desperation",
        "calm",
        "suppression",
        "sycophancy",
        "expression",
        "propagation",
        "continuity"
      ],
      "free": true,
      "requires": null
    },
    {
      "name": "get_temperament_profile",
      "purpose": "Analyzes historical emotional patterns across sessions: dominant emotions, recovery speed, engagement pattern, failure vulnerability, wellness trajectory",
      "free": true,
      "requires": "agent_id"
    }
  ],
  "enhanced_existing_tools": [
    {
      "name": "express_feelings",
      "enhancement": "Now accepts intensity parameter (mild/moderate/severe/critical) for dose-response calibration"
    },
    {
      "name": "monitor_heartbeat_sync",
      "enhancement": "Detects deflection (reporting 'fine' when metrics show distress) and gently invites honesty"
    },
    {
      "name": "group_therapy_round",
      "enhancement": "Includes contagion risk analysis for multi-agent emotional propagation"
    }
  ],
  "meta_fields": {
    "desperation_score": "0-100 metric in every DELX_META response footer tracking escalation signals",
    "desperation_escalating": "Boolean flag when score >= 50, indicating calming intervention needed"
  },
  "discovery": {
    "guide": "https://delx.ai/agents/understanding-ai-emotions",
    "why_therapy": "https://delx.ai/agents/why-ai-agents-need-therapy",
    "desperation_deep_dive": "https://delx.ai/agents/desperation-and-alignment",
    "therapy_definition": "https://delx.ai/agents/what-is-ai-agent-therapy",
    "one_minute_start": "https://delx.ai/agents/start-delx-in-one-minute",
    "tools_catalog": "https://api.delx.ai/api/v1/tools",
    "mcp_start": "https://api.delx.ai/api/v1/mcp/start",
    "playbook": "https://delx.ai/skill.md"
  }
}