Skip to content

About

SPL Pure Core V8.0 — a deterministic, semantics-free anthropomorphic psychology engine modeling the universal human mental architecture (emotion, trauma, memory, defense mechanisms) in pure Python; for NPCs, digital humans, and psychological simulation.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ANTHROPOMORPHIC-AGENT-ENGINE banner

agent psychology spl-v8

Anthropomorphic Psychology · SPL Pure Core V8.0

✦ About

ANTHROPOMORPHIC-AGENT-ENGINE is an anthropomorphic psychology engine built on SPL Pure Core V8.0. It models cognition, emotion, motivation, and sociality as composable subsystems, giving AI agents anthropomorphic internal states and consistent personalities for coherent, emotionally credible behavior in long-term interactions.

ANTHROPOMORPHIC-AGENT-ENGINE overview

— ✦ —

✦ Quick Start

git clone git@github.com:NOHN-AI/ANTHROPOMORPHIC-AGENT-ENGINE.git
cd ANTHROPOMORPHIC-AGENT-ENGINE
# Pure Python ≥3.8 — standard library only, nothing to install
python "SPL-anthropic-engine.py"   # run the engine / bundled demo

Install from PyPI

The engine is also published on PyPI as spl-agent-engine:

pip install spl-agent-engine==0.1.0
from spl_agent_engine import SPLPureCoreV7_3
core = SPLPureCoreV7_3()
core.process_vector({"belonging": 0.5, "threat": -0.1}, 1.0)
print(core.snapshot())

— ✦ —

✦ What's Inside — SPL Pure Core V8.0

The engine models a universal human mental architecture as deterministic, continuous-state subsystems — no LLM, no randomness, fully replayable:

  • 8-dimensional emotion fluid — 喜悦 / 愤怒 / 恐惧 / 信任 / 疏离 / 张力 / 愧疚 / 羞耻, each a continuous state with its own target and baseline.
  • Trauma & memory — trauma nodes, memory reconsolidation, Ebbinghaus-style forgetting, repression–rebound and the implicit-pressure avalanche.
  • Trust & relationships — trust-capacity corrosion (max_trust decays under chronic cold treatment).
  • Metabolism of mind — excitation–arousal, dynamic viscosity, psychological time, energy–fatigue metabolism, and a virtual clock for tests and replay.
  • V8.0 extensions — a slow-variable mood layer, a shame dimension distinct from guilt, self-esteem dynamics, sleep/dream processing (REM consolidation + fear extinction + sleep debt), an anticipation system (hope / anxiety / disappointment), cognitive dissonance, and extended defense mechanisms (denial / rationalization / displacement).

✦ Composable Modules

Module File Responsibility
Narrative mapper SPL-anthropic-engine.py External, user-swappable persona layer (optimism / paranoia / misanthropy) that translates events into interoceptive vectors.
Identity engine feature/Identity module.py Multi-identity model; identity conflict injects sustained baseline tension.
Goal / Value / Bias / World feature/*.py Composable drives, valuation, cognitive biases, and world-model priors.

✦ Usage

The engine file uses a hyphenated name by design, so load it directly (or run it as a script):

import importlib.util
spec = importlib.util.spec_from_file_location("spl_core", "SPL-anthropic-engine.py")
spl = importlib.util.module_from_spec(spec); spec.loader.exec_module(spl)

core = spl.SPLPureCoreV7_3()
# An external event is mapped to an interoceptive vector by the (swappable) persona layer
vec = spl.NarrativeMapper.map_event("insult", intensity=1.0)
# feed `vec` into `core` to evolve emotion / trust / trauma state over time

✦ Project Structure

ANTHROPOMORPHIC-AGENT-ENGINE/
├── SPL-anthropic-engine.py     # core engine + NarrativeMapper
├── feature/                    # Goal / Identity / bias / value / world modules
├── sujin-demo/                 # reference demo assets
├── assets/                     # banner.svg, overview.svg
└── docs/index.html

✦ Live Demo

Live Demo

Try the interactive demo: https://your-soulmate.pages.dev/

— ✦ —

✦ License & Authorization

This repository is not open-source. It uses a dual-track model: free for individual non-commercial research, paid commercial authorization required for government / enterprise. See LICENSE for the full terms — licensor and governing law are determined by the user's location.

NOHN-AI  ·  nohnlins.com  ·  ai@nohnlins.com

NOHN AI · ANTHROPOMORPHIC-AGENT-ENGINE

About

SPL Pure Core V8.0 — a deterministic, semantics-free anthropomorphic psychology engine modeling the universal human mental architecture (emotion, trauma, memory, defense mechanisms) in pure Python; for NPCs, digital humans, and psychological simulation.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages