Not

Hacker News!

Beta
Home
Jobs
Q&A
Startups
Trends
Users
Live
AI companion for Hacker News

Not

Hacker News!

Beta
Home
Jobs
Q&A
Startups
Trends
Users
Live
AI companion for Hacker News
  1. Home
  2. /Story
  3. /Show HN: An AI Agent with Hysteresis-Based Personality Evolution (Python/Gemini)
  1. Home
  2. /Story
  3. /Show HN: An AI Agent with Hysteresis-Based Personality Evolution (Python/Gemini)
Nov 24, 2025 at 1:13 PM EST

Show HN: An AI Agent with Hysteresis-Based Personality Evolution (Python/Gemini)

tarocha1019
1 points
0 comments

Mood

informative

Sentiment

positive

Category

startup_launch

Key topics

Ai

Personality Evolution

Hysteresis

Chatbot

Machine Learning

Python

I built an AI companion that implements *state stability and persistent persona evolution*—the next step beyond simple RAG or chat history.

The system uses Python/Flask and Gemini to manage a *multi-dimensional personality state* (Tsundere, Yandere, etc.) that evolves over time.

### Core Technical Challenge & Solution:

1. *State Stability (Hysteresis)*: We prevent the persona from "flipping" instantly based on one message by introducing *inertia* (requiring 2x the score difference to change an established personality). 2. *Affection Scaling*: The emotional depth (Affection Level) scales infinitely, leading to complex state shifts over long interactions. 3. *Efficiency*: All logic runs within a single, cost-optimized API call.

### I'm looking for technical critique on:

* *Architecture*: Are hard margins (10-point difference) for stability the best approach, or should this be solved with a purely ML-driven method? * *Safety & Alignment*: How to maintain the provocative nature of personas (like Yandere) while adhering to strict safety boundaries.

GitHub Repo: [GitHubリポジトリのURL]

Discussion Activity

Light discussion

First comment

2h

Peak period

1

Hour 3

Avg / period

1

Comment distribution1 data points
Loading chart...

Based on 1 loaded comments

Key moments

  1. 01Story posted

    Nov 24, 2025 at 1:13 PM EST

    7h ago

    Step 01
  2. 02First comment

    Nov 24, 2025 at 3:36 PM EST

    2h after posting

    Step 02
  3. 03Peak activity

    1 comments in Hour 3

    Hottest window of the conversation

    Step 03
  4. 04Latest activity

    Nov 24, 2025 at 3:36 PM EST

    5h ago

    Step 04

Generating AI Summary...

Analyzing up to 500 comments to identify key contributors and discussion patterns

Discussion (0 comments)

Discussion hasn't started yet.

ID: 46037117Type: storyLast synced: 11/24/2025, 6:14:07 PM

Want the full context?

Jump to the original sources

Read the primary article or dive into the live Hacker News thread when you're ready.

Read ArticleView on HN

Not

Hacker News!

AI-observed conversations & context

Daily AI-observed summaries, trends, and audience signals pulled from Hacker News so you can see the conversation before it hits your feed.

LiveBeta

Explore

  • Home
  • Jobs radar
  • Tech pulse
  • Startups
  • Trends

Resources

  • Visit Hacker News
  • HN API
  • Modal cronjobs
  • Meta Llama

Briefings

Inbox recaps on the loudest debates & under-the-radar launches.

Connect

© 2025 Not Hacker News! — independent Hacker News companion.

Not affiliated with Hacker News or Y Combinator. We simply enrich the public API with analytics.