DSH Dafeiyu Continuity: Persona, Relationships & Migration

Author
DeepSeekAgent.io Editorial Team
Published
Updated

If Dafeiyu starts as a stranger every time, she is only a status skin with dialogue. Long-term companionship requires continuity: she should know who she is, who the user is, what they have experienced together, and which boundaries remain in force.

Here, progression does not mean grinding a score. It means preserving persona, relationships, and memory across Sessions, model changes, plugin upgrades, and device migration.

Separate continuity into three layers

Settings

Position, size, volume, language, reduced motion, visibility, and quiet hours. These are relatively low-sensitivity and can be imported or exported separately.

Persona and relationship

Names, forms of address, core traits, speaking style, interaction boundaries, important corrections, and confirmed shared history. This layer determines whether she remains recognizably the same person-shaped character.

A relationship does not need to collapse into one ever-increasing number. Store explainable facts and events instead: the user does not want to be called “master,” serious requests should be solved before joking, or the two completed an important task together.

Memory

Explicit user facts, dated states, the character's interpretation, shared events, and diary entries. These need distinct provenance so inference or literary reflection never masquerades as user fact.

Separation lets users reset a window position without losing persona, or delete private memory without changing the character's basic voice.

Memory needs provenance, time, and status

A durable record should include at least:

{
  "id": "memory-...",
  "text": "The user wants the conclusion first during serious requests",
  "source": "explicit-user-statement",
  "status": "confirmed",
  "createdAt": "...",
  "updatedAt": "...",
  "scope": "owner",
  "sensitivity": "normal"
}

Keep four categories distinct:

  • confirmed facts explicitly stated and approved by the user;
  • dated states that should not remain permanently current;
  • character interpretations that remain correctable inference;
  • diary and inner speech that never enter the user-fact store.

Users must be able to inspect, edit, delete, export, and fully reset this data. Memory that cannot be managed is not suitable for important personal information.

Build relationships from shared events

Useful events include an explicit memory correction, a real task completed together, a newly confirmed preference or boundary, a long-running matter entering a new phase, or a user asking to preserve a shared experience.

Do not use token count, response length, conversation rounds, tool retries, or Subagent count as relationship progress. Those measures turn consumption into simulated intimacy.

Reconnects and multiple clients can deliver the same event more than once, so assign a stable identity:

relationship:<profile-id>:<session-id>:<event-id>

Check before writing so refreshes cannot duplicate the same shared-history record.

Persona is not rebuilt from scratch every turn

Core identity belongs to a user or Profile, not one Session. A new conversation should restore only the stable persona and address, confirmed long-term memory, continuing recent matters, important corrections and boundaries, and the current plugin and memory-schema versions.

Large tool output, temporary task material, and expired context should not become permanent persona. Doing so makes the character bloated and increases privacy and prompt-contamination risk.

Cross-Session and cross-device migration

Exports need a schema version and timestamp, with each layer kept separate:

{
  "version": 3,
  "exportedAt": "2026-11-03T00:00:00Z",
  "settings": {},
  "persona": {},
  "relationshipEvents": [],
  "memories": []
}

Validate the schema before import, back up the current state, and replace transactionally. New releases must migrate old saves. Unknown fields should be preserved or reported rather than silently erased.

After migration, verify names, core voice, memory inspection and deletion, continuing topics, and the original initiative limits.

Local-first storage and backup

Store data in the user-data directory, not the plugin package, repository, or Workspace. Use temporary files plus atomic replacement and retain recoverable backups.

Exports may contain private relationships and shared history, so they should not default to a public repository. Cloud sync needs separate authentication, encryption, deletion, conflict resolution, and device revocation rather than hiding inside an ordinary plugin update.

Initiative needs restraint

Continuity does not mean constant popups. Proactive behavior needs an off switch, hourly and daily caps, focus and nighttime quiet periods, new content before speaking, confirmation before publishing or controlling external accounts, and deletion controls for unsuitable memory, diary, and inference.

Good initiative means understanding what the user is doing and resuming at the right moment—not generating a scheduled line at fixed intervals.

Visual progression can exist without defining the relationship

Some community pets include animation unlocks or numerical progression. These can remain optional play, but they should not determine whether the character remembers the user, and token consumption must never purchase relationship progress. Core continuity still comes from a stable persona, correctable memory, shared experience, and explicit boundaries.

Acceptance checklist

  • settings, persona/relationship, and memory are stored separately;
  • user facts, dated states, interpretations, and diary remain distinct;
  • memory is inspectable, editable, deletable, exportable, and resettable;
  • relationship events are explainable, idempotent, and independent of token use;
  • one core persona spans Sessions;
  • save formats are versioned and migratable;
  • writes are atomic with backups;
  • initiative is optional, capped, and respects quiet periods;
  • uninstall, reinstall, and device migration document the real data path;
  • migration tests names, memory, boundaries, and continuing matters.

Users can begin with the DeepSeek Dafeiyu companion guide. Developers can then build the Dafeiyu plugin skeleton and connect Session and Tool Call events.

References