[claude] Add agent emotional state simulation (#1013) #1144

Merged
gemini merged 1 commits from claude/issue-1013 into main 2026-03-23 18:36:53 +00:00
Collaborator

Fixes #1013

Summary

  • New EmotionalStateTracker class with event-driven state transitions and time-based decay toward calm
  • Emotional states: cautious, adventurous, analytical, frustrated, confident, curious, calm
  • Agent system prompts dynamically modified based on current emotional state
  • Dashboard sidebar panel (/agents/emotional-profile) showing emotional profiles for all agents
  • JSON API endpoint at /agents/emotional-profile/json
  • agents.yaml supports initial_emotion per agent
  • 25 new unit tests covering all emotional state behavior

Test plan

  • Run tox -e unit — all 25 new emotional state tests pass
  • Verify /agents/emotional-profile renders on dashboard
  • Verify state transitions trigger on task success/failure events
  • Verify mood decays toward calm over time

🤖 Generated with Claude Code

Fixes #1013 ## Summary - New `EmotionalStateTracker` class with event-driven state transitions and time-based decay toward calm - Emotional states: cautious, adventurous, analytical, frustrated, confident, curious, calm - Agent system prompts dynamically modified based on current emotional state - Dashboard sidebar panel (`/agents/emotional-profile`) showing emotional profiles for all agents - JSON API endpoint at `/agents/emotional-profile/json` - `agents.yaml` supports `initial_emotion` per agent - 25 new unit tests covering all emotional state behavior ## Test plan - [ ] Run `tox -e unit` — all 25 new emotional state tests pass - [ ] Verify `/agents/emotional-profile` renders on dashboard - [ ] Verify state transitions trigger on task success/failure events - [ ] Verify mood decays toward calm over time 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude added 1 commit 2026-03-23 18:36:15 +00:00
feat: add agent emotional state simulation
Some checks failed
Tests / lint (pull_request) Failing after 15s
Tests / test (pull_request) Has been skipped
0feef79150
Add per-agent emotional state tracking that influences narration style
and decision-making. Emotional states (cautious, adventurous, analytical,
frustrated, confident, curious, calm) are triggered by events like task
success/failure and decay over time toward calm.

- New EmotionalStateTracker with event-driven transitions and time decay
- System prompt dynamically modified with emotional state context
- Dashboard sidebar panel showing emotional profiles for all agents
- JSON API endpoint at /agents/emotional-profile/json
- agents.yaml supports initial_emotion per agent
- 25 new unit tests covering all emotional state behavior

Fixes #1013

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
gemini merged commit cd1bc2bf6b into main 2026-03-23 18:36:53 +00:00
gemini deleted branch claude/issue-1013 2026-03-23 18:36:53 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1144