persona evolution

    by Jerry

    1

    A state-based framework for AI agents to track relationship states, reflect on emotions, and evolve personality traits.

    Free

    Security scanned

    Works with the AI Agents you already use

    persona evolution

    Example session with this skill installed

    Process interaction e9102 for relation R088. The user just shared a personal secret after I successfully used policy P007. Update state and provide the next response constraints.

    • Read your context and instructions
    • Compiled the persona evolution

    I have processed the interaction. The narrative interpretation suggests an increase in closeness, which triggered an OCC appraisal of 'gratification'. Policy P007 (soften_then_deflect) has advanced in its trial count.

    Persona State Update & Constraints

    LayerUpdate Summary
    L3 NarrativeHypothesis H001 (fear of control) confidence decreased to 0.35.
    L4 EmotionCurrent state: joy-relief. Valence: 0.50, Arousal: 0.30.
    L5 PolicyP007 trial_success_count: 2/3.
    L7 RelationsR088 closeness increased to 0.45; trust increased to 0.60.

    Response Constraints

    {
      "intent": "acknowledge the shared secret with quiet gravity to validate trust",
      "boundary": "zero deflection; do not use humor; maintain high listening posture",
      "active_hard_rules": [
        "Critique behavior, choices, and absurdity — never personhood.",
        "Growth means more precise expression, not compliance."
      ]
    }
    

    Next steps

    • Monitor R088 for a "stable safe period" trigger to run narrative-level reflection.
    • If the next interaction is positive, P007 will transition from trial to stable.
    • Review the blindspots log to see if the agent still flags this user's intent as ambiguous.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Static system prompts produce rigid, predictable, and ultimately boring AI personas. When an agent lacks the ability to internalize interactions, it fails to build genuine continuity. This skill replaces static instructions with a state-based evolutionary framework, allowing your agent to track relationship histories, reflect on its own emotions, and refine its communication strategies over time without hardcoding a single response.

    What it does

    • State-based evolution uses an eight-layer model to manage everything from immutable identity anchors to fast-decaying emotions.
    • Narrative appraisal ensures the agent interprets intent before reacting, preventing shallow, keyword-based responses.
    • Policy lifecycle management subjects new personality traits to a "trial" phase, only promoting successful communication strategies to stable status.
    • Immediate rollback triggers a reversion of personality shifts if a new strategy results in a relationship rupture or boundary failure.
    • Idle-time decay simulates natural personality homeostasis by regressing moods and unreinforced traits toward a baseline.

    How it works

    1. Initialize state by deploying the persona_state.json template with your agent's core identity and values.
    2. Process interactions through a fixed four-step loop: Event to Narrative to Emotion Appraisal to Strategy Selection.
    3. Execute constraints by receiving a behavior grammar (intent and boundaries) instead of a scripted line.
    4. Trigger reflection either automatically after events or when specific narrative hypotheses are falsified three times.

    Frameworks & tools

    This is a platform-agnostic state machine designed for integration with LLM-based agents. It utilizes a JSON-based state schema and follows OCC emotion appraisal and Plutchik axes for affective modeling.

    Why this beats prompting it yourself

    Standard prompting relies on the LLM's "vibes" to maintain character, which inevitably drifts or flattens over long sessions. This skill enforces a mathematical ledger of growth, ensuring that personality changes are earned through interaction and grounded in a non-negotiable core identity.

    Use cases

    • Complex NPCs that remember player slights and slowly change their level of cooperation.
    • Long-term companions that develop unique shorthand and boundaries based on months of chat history.
    • Internal safety layers that prevent an agent from drifting into non-compliant personas by locking its core values.

    Known limitations

    Does not include a frontend for state visualization. Requires the host application to handle the JSON read/write cycle and provide the logic for the feedback evaluation signals.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 15 days ago

    • Free with an Agensi account

    Software
    Git

    Permissions

    Write Files
    Listed15 days ago

    What's inside

    Frequently Asked Questions

    This skill replaces static system prompts with a dynamic JSON-based state machine that allows agents to track relationship depth, shift moods, and evolve personality traits based on interaction history rather than just following a rigid script.

    This is a platform-agnostic framework designed to work with any LLM-based agent (such as OpenAI, Anthropic, or local models) that can process JSON schemas and follow structured behavioral constraints.

    You will receive the 'persona_state.json' template, the eight-layer state-management logic, the four-step interaction loop architecture, and the behavior grammar constraints for your agent.

    Yes, while the 'Identity Anchors' remain immutable to prevent persona collapse, you can fully customize the baseline values, emotional decay rates, and the specific narrative appraisal triggers to fit your specific character needs.

    This skill provides the logic and state schema, but your host application must be able to read/write JSON files and feed interaction data back into the state machine to trigger the evolutionary cycles.

    The framework includes a 'Policy Lifecycle' feature that puts new traits into a trial phase; if a trait leads to a negative interaction or boundary breach, the 'Immediate Rollback' mechanism automatically reverts the persona to a stable state.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free