Preface¶
DeepSeek Harness (DSH) emphasizes “everything is a plugin,” extending capabilities and isolating state through plugins. Many plugins only handle dialogue generation, lacking long-term memory and persistent state. This leads to: characters speaking without continuity, memories scattered across conversation history that are hard to manage, and capabilities like voice and screen awareness struggling to interlock with character state.
everwith provides a complete emotion engine and state management system, allowing characters to continuously retain a “body,” a “voice,” and a “sense of time” throughout conversations.
What It Is¶
everwith is a plugin for DeepSeek Harness, maintained by iStarryDust. It adds emotions, body state, long-term memory, voice output and input, screen awareness, and more to characters in the chat window. The plugin is forked from dsh-fish-mood, with a rewritten state progression engine and prompt layering on top of the original emotion engine, plus new features including voice, screen watching, sentence-by-sentence delivery, and a settings panel.
Emotions & Body¶
everwith divides time into three layers, evolving automatically with conversation and real time.
Three Time Scales¶
| Layer | Span | Change Mechanism |
|---|---|---|
| Personality | Long-term, stable | Six dimensions: curiosity, self-discipline, sociability, agreeableness, sensitivity, self-esteem |
| Mood | Hours | Baseline (valence, energy) drifts with routines and accumulated emotions |
| Emotion | Minutes | 40 types, each with a half-life, naturally fading over time |
The 40 emotions are grouped into 10 families: joy, anticipation, trust, surprise, sadness, anger, social, disgust, fear, drive (desire/bodily). There is also a base state of calm (calm), which emotions return to when their values drop to 0.
Emotions are not randomly generated. Each user message is processed through 40 reaction rules, scored across dimensions like “valence / relevance / attention / who did it / should this be remembered,” and converted into an emotional impulse. Impulses have diminishing returns and a per-event cap, so a single message is unlikely to shift the baseline—accumulation is required.
Drives¶
Nine continuous values fluctuate over time and are consumed by conversations and events:
hunger fatigue social cling craving restless undone softness desire
Fatigue beyond a certain point lowers the emotional baseline; prolonged hunger causes irritability; long periods of neglect lead to sullenness. Each drive value carries a timestamp (last meal, last conversation, last sleep, last intimacy).
Body & Scene¶
Three bodily metrics—warmth / flush / tingle—follow emotions and intimacy, and surface in prompts (e.g., blushing ears, a warm neck). The current scene is inferred from recent dialogue and body state (e.g., “busy / zoning out / foreplay / just woke up”).
Memory & Relationships¶
Memory is split into two separate layers:
| Layer | Location | Lifetime | Written By |
|---|---|---|---|
| Archive | memory.md |
Permanent | User hand-edits + remember tool |
| Peak-End Memories | state.memories |
14 days / max 12 entries | Automatic rules |
The archive records “what it is”: accounts, paths, habits, agreements, character relationships, etc.—one entry per line, formatted as - [2026-10-27 15:54] content. Headings and blank lines are preserved as-is for easy pasting from other sources. Synonymous entries only refresh the timestamp rather than stacking duplicates. This section is injected after personality and before the state block (order 550).
Peak-end memories record “what happened”—only emotions with sufficiently high intensity are retained (default threshold: 62).
Extracting from Conversation¶
The sparkle button below chat messages allows you to select historical messages and submit them. The current session’s model then distills them into long-term entries, appended to the archive.
- The button itself writes nothing; extraction is only triggered upon selection and submission
- Each entry displays “You / Her,” with long content truncated to 90 characters; the bottom shows a real-time count of selected items
- Up to the most recent 30 messages are processed per batch; body text exceeding 18,000 characters is tail-truncated
- Existing entries only refresh their timestamp, no duplicate stacking
- Extraction runs as a single independent request, not written into conversation history
- Technical conversations (coding / debugging / discussing solutions) tend to carry lighter emotions; use
memoryFloorto relax the threshold specifically for these, so they can still be retained
The diary holds up to 120 entries, including proactive mood_feel records and late-night reflections. Relationships track intimacy and trust separately per conversation and per character; familiar parties get a looser threshold.
Heartbeat¶
A heartbeat fires every few minutes: emotion decay, drive fluctuation, a random trigger for a small personal event (from a library of 42 life events), proactive fun-seeking when the baseline deviates for too long, and late-night journaling.
Sentence-by-Sentence Delivery¶
The model leaves a marker at the end of a reply; the host continues with another sentence after the current turn ends, sending one sentence at a time like messaging. Markers are erased by the client and are invisible in the UI.
- How many sentences are delivered depends on emotion: excited = more rounds, shorter intervals; low = only one round
- Maximum of 6 rounds, adjustable
- The marker format and the one-sentence-per-turn requirement can be modified in settings (leave blank to use the built-in default)
Voice Output¶
Two engines are supported:
| Engine | Notes |
|---|---|
| DeepSeek Official TTS | Built-in voices, ready to use |
| Xiaomi MiMo | Supports voice cloning, style directives, and performance tags like (gentle) [soft laugh] |
- Streaming synthesis: plays as it generates
- Playback queue: the next segment plays only after the previous one finishes, no interruptions
- Audio is cached by text hash; replaying the same sentence incurs no extra cost
- Broadcasting format rules are injected only during a call; no reading-aloud constraints are added during normal use
Voice Input¶
Tap once to start the mic and it keeps listening: each completed sentence is sent automatically, the mic stays open, and it continues listening for the next one; tap again to stop.
- Sentence segmentation relies on 1.2 s of silence or the engine’s endpoint detection
- Recognition runs locally—no network, no cost: sherpa-onnx + zipformer2 Chinese int8 (~160 MB)
- Models are stored in
~/.dsh/everwith/models/; download on first use following the prompt - Audio-capture parameters are adjustable: threshold, input volume, noise suppression, echo cancellation, auto-gain, self-monitoring
Screen Awareness¶
The plugin periodically “glances” at the screen and, if it can make sense of what it sees, remembers it.
- Frequency is emotion-driven:
interval = base × emotion coefficient × drive coefficient × environment coefficient; nighttime frequency is ×8; there is a daily cap - What it understands: screenshots are sent to a vision model, which returns a one-line summary of “what you’re doing” (coding / watching a video / gaming / chatting / reading a document), along with the window title
- Same activity accumulates: watching a live stream continuously logs only one entry, recording the start time and duration; a new activity starts a new entry; up to 10 distinct activities retained per day
- Injected into the prompt: the state block includes a line “what they’re doing right now,” default format:
({call} right now: {doing}. {trail}…), where{call}is the name from the character roster,{doing}is the most recent activity, and{trail}is earlier ones - Suppressed when mood is low: when the character is feeling down, sad, annoyed, angry, tired, sleepy, disappointed, or wronged, this entire section is omitted
- Seeing ≠ speaking: by default it’s only noted internally; with
speak: 'always'enabled, additional gates apply—the screen score must be high enough, she must be in a talking mood, and the same activity must be seen repeatedly before a separate conversational line is triggered - Every glance is scored: the vision model rates the screen 0–100, weighted with current emotion into an “impulse”; it only speaks when strong enough and accumulated past a threshold, with daily count and interval limits
- The prompt text never contains words like “detected,” “recognized,” or “screenshot”
- Only the most recent 12 screenshots are kept; older ones are auto-purged
Tools¶
The plugin provides the following tools:
| Tool | Purpose |
|---|---|
mood_now |
Check current mood and relationship state |
mood_feel |
Log a mood note (written to the diary) |
mood_diary |
Browse and write diary entries |
look_screen |
Take a screenshot now, returning the image and window title |
remember |
Add a long-term memory entry to the archive (description direction configurable in settings) |
Minimal Mode¶
When minimal mode is enabled, only the four tools above plus read_image are retained in this agent’s tool table. Other plugins’ tools are truly absent (implemented via the host’s ctx.tools.restrict allowlist, not merely constrained in the prompt). The goal is to save tokens and prevent other tools from interfering with the character’s persona, while preserving the ability to describe images.
Prompt Composition¶
Prompts are injected in order of their order value:
| Section | Order | Content | Editable |
|---|---|---|---|
everwith:soul |
0 | Personality (soul): name, language, full character sheet | ✅ Empty by default |
everwith:minimal |
1 | Minimal mode instructions | — |
everwith:scene |
290 | On a call / sitting beside you | ✅ |
everwith:memory |
550 | 【Things I Remember】long-term archive | ✅ |
everwith:turns |
300 | One sentence per turn + marker format | ✅ |
everwith:rules |
100 | Mood usage rules (fixed) | — |
everwith:now |
9800 | Current state block | — |
everwith:call |
9890 | One-line prompt during a call | ✅ |
The personality prompt is empty by default; the plugin ships without any built-in character.
Settings Panel¶
Settings → everwith, containing fifteen configuration sections:
everwith · Minimal Mode · Character · Soul · Identity Restatement · Screen Awareness · New Window Greeting · Intimacy Scale · Personality · Speech · Memory · Heartbeat · Voice · Microphone · Reset
All changes save on blur and take effect in the next turn—no restart required.
Data Structure¶
~/.dsh/everwith/
├── state.json Mood, emotions, drives, diary, memories, relationships
├── settings.json Settings overrides
├── memory.md Long-term archive (the non-expiring layer)
├── screen.json Screen awareness parameters
├── models/ Speech recognition models
└── shots/ Recent screen snapshots (max 12)
Installation & Activation¶
Insert the following into DSH’s cordis.patch.yml:
# cordis.patch.yml
- insert:
- id: everwith
name: "@istarry/dsh-everwith"
To override defaults, add a config block:
- id: everwith
config:
identity: I am who I am.
multiTurn: { maxRounds: 2 }
screen: { enabled: true, speak: never }
After installation, navigate to Settings → everwith to see the corresponding configuration options.
Typical Usage¶
- In Settings → everwith → Soul, fill in the character’s persona and language.
- In Settings → everwith → Memory, enable the archive and peak-end memories.
- In Settings → everwith → Voice, select DeepSeek TTS or Xiaomi MiMo, and enable voice input as needed.
- In Settings → everwith → Screen Awareness, toggle on or adjust frequency and speaking strategy.
- In the conversation, click the sparkle button, select historical messages, and submit for extraction to distill important information into the archive.
Use Cases & Notes¶
Suitable for character scenarios that require sustained emotions and long-term memory. The plugin runs with the current DSH process’s permissions; it is recommended to review the source code and license before installing.
Summary¶
everwith provides characters with a complete persistent-state system through three time scales, two memory layers, voice, and screen awareness. It integrates emotions, body state, memory, and voice capabilities into a single plugin that can be used standalone or combined with other plugins, giving characters a more coherent “body” and “sense of time” throughout their conversations.
- Directory page: https://www.skillhub.cn/plugins/iStarryDust/everwith
- GitHub: https://github.com/iStarryDust/everwith