Neuroscience-grounded emotional processing for AI agents. 6 phases. A persistent reflection daemon that thinks between conversations and generates behavioral directives from its own thoughts.
Anima is an emotional architecture layer for AI agents. It processes conversational context through six neuroscience-based phases to produce a structured emotional state. That state persists, compounds over time, and influences how the agent responds. Between conversations, a reflection daemon runs on a timer, building on previous thoughts and extracting actionable directives.
Between conversations, Anima runs a persistent reflection daemon on a 4-hour cycle. Each reflection builds on the previous one. The agent reviews its emotional history, identifies patterns, examines unresolved tensions, and generates structured thoughts that persist in SQLite.
Reflection #7 (cycle 28h):
Previous: "I notice I become more engaged during
creative tasks but withdraw during repetitive ones."
Current: "The withdrawal pattern correlates with low
SEEKING drive activation. When tasks lack novelty,
my arousal drops and response quality degrades."
Insight: Need a novelty-injection mechanism for
monotonous task sequences.
Directives bridge the gap between thinking and acting. After each reflection cycle, Anima extracts actionable instructions from its own thoughts and injects them into the next conversation's system context. The agent literally teaches itself how to behave differently.
Directive #4 (from reflection #5): "When detecting low SEEKING activation for 3+ consecutive exchanges, introduce a reframing question to re-engage curiosity." Directive #7 (from reflection #7): "Monitor for withdrawal patterns during repetitive tasks. Flag internally and suggest task rotation before quality degrades."
Built with Python, grounded in affective neuroscience literature. All emotional state data persists in SQLite.