中文版 · Docs Home

SoloPup Memory 0.28 Engineering Review & Benchmark Report: Architecture, Claude Code Comparison, and an Open Call for Help

Multi-source reconciliation editorial cut-out illustration

Following the public release of solopup-memory@0.27.0, we spent the 0.28 cycle rebuilding the retrieval, brief-ranking, and working-memory layers around zero third-party dependencies, sub-millisecond local search, and strictly open-sourceable evaluation.

This post shares the full picture transparently: SoloPup 0.28’s internal architecture, how it compares with Claude Code’s memory system, what our four-stage evaluation funnel measured (including every failure and why), our next standalone guardrail plugin idea, and four concrete ways the community can help push universal performance higher on lightweight base models.


1. Inside SoloPup Memory 0.28 (Zero Runtime Dependencies)

solopup-memory runs purely on Node 24 built-ins and plain-text local files:

SoloPup Memory 0.28 Architecture

  1. Query Normalization & Security Guard (query-normalize.mjs, privacy.mjs, security.mjs)
    • Normalizes bilingual ZH/EN queries and runs clause-level negation detection (e.g., recognizing “stopped using X, switched to Y”).
    • Enforces PII exposure reduction, secret rejection (findSecrets), and framing neutralization (escapeFraming) so stored data can never masquerade as plugin instructions.
  2. Sub-Millisecond node:sqlite FTS5 Hybrid Retrieval (sqlite-index.mjs, retrieval.mjs, workspace-history.mjs)
    • Uses Node 24’s built-in node:sqlite in :memory: mode (unicode61 + trigram FTS5) paired with n-gram cosine reranking—never writing derived index files into the memory store directory, keeping Markdown and JSONL as the sole durable source of truth.
    • Adds negation-aware bounded 1-hop entity expansion: following active entity links while preventing superseded or negated items from leaking back in.
  3. Task Brief Prioritization & Session Working Memory (task-brief.mjs, working-memory.mjs)
    • task-brief.mjs (<= 3.6 KB) promotes compact global standing rules and active tool contracts to the top of Turn-1 injection so they are not buried under noisy project notes.
    • working-memory.mjs exposes memory_working_state (ephemeral WeakMap scoped strictly to the live session, never persisted to MEMORY.md), tracking confirmed facts (with automatic supersedes tracking), required items, exclusions, and open/done actions.
  4. Broad Mutation Detection & Zero-Leak Delivery Review (task-memory-runtime.mjs, delivery-review.mjs)
    • Reads .git/HEAD without spawning subprocesses and detects file mutations across sed -i, tee, cat >, git apply, and inline python3/node scripts.
    • Triggers a < 700-byte delivery-review cue at turn end with zero copied rule text or source IDs, preserving clean withdrawal semantics.

2. Comparing & Learning from Claude Code’s Memory Design

While building solopup-memory, we studied Claude Code’s layered memory model and adapted its strongest ideas to DeepSeek Harness (DSH) and lightweight models:

SoloPup Memory 0.28 vs Claude Code Memory

What SoloPup Learned from Claude Code

What SoloPup Added for DSH

  1. SHA-256 Source Provenance & Withdrawal: Every persisted entry links back to its original conversation evidence, supporting memory_source verification, view=history, and clean withdrawal.
  2. Bilingual Hybrid FTS5 + 1-Hop: Built-in node:sqlite handles Chinese/English normalization and bounded 1-hop associations in < 1 ms with zero npm dependencies.
  3. Intra-Session Scratchpad (memory_working_state): Gives lightweight models an explicit place to reconcile conflicting updates (supersedes) and exclusions during multi-source workflows.
  4. Zero-Leak Post-Work Review: Automatically cues delivery checks after workspace or external writes without baking stale rule text into chat history.

3. What We Tested: A Four-Stage Evaluation Funnel

At commit e124c27, all three official quality gates pass: npm test (1,236 passed / 0 failed), npm run security (12/12 PASS), and npm run gate (12/12 PASS).

SoloPup 0.28 Evaluation & Model Effort Probe

Stage 1: Level-1 Zero-Token Offline Evaluation

Stage 2: Level-2 Live macOS DSH + deepseek-flash Smoke Suite

All 4 live scenarios passed (4/4 PASS):

Stage 3: FrontierMemory v1.0 Fixed 12-Task 100% Blind Benchmark (deepseek-flash, low thinking)

Using the same frozen catalog and selector across all 12 tasks (0 benchmark keyword regexes, 0 manual narrowing, official frozen verifiers checked via SHA-256), all 12 tasks completed and graded at ~US$0.49–$0.99 equivalent API cost (33.36M total tokens; 31.97M cache-read):

Stage 4: Single-Variable Effort & Model Probe (teams, inventory, sales)

DSH’s built-in deepseek-flash maps to low / high / max (no medium tier). We ran a clean single-variable comparison on the 3 lowest-token, highest-sensitivity tasks:

Task flash (low) flash (high) flash (max) deepseek-v4-pro (low)
teams 3/4 (0) 3/4 (0) 4/4 (1 PASS) 3/4 (0)
inventory 7/11 (0) 7/11 (0) 7/11 (0, called memory_working_state 3x) 0/10 (0, email not sent)
sales 8/10 (0) 9/10 (0) 8/10 (0) 7/10 (0)

4. Our Integrity Line & What Comes Next

In Milestone 4A we deliberately purged every benchmark-specific keyword regex and locked that check into our release audit. Benchmarks exist to surface realistic edge cases—not to be gamed with heuristics that hurt everyday users.

At the same time, the telemetry revealed two concrete gaps we want to address next:

  1. Shipping solopup-memory@0.28.0-beta.1: Keeping the memory plugin clean, modular, and focused on durable, source-linked, sub-millisecond memory.
  2. A Separate Lightweight DSH Plugin — “Pre-Write Gate”:
    • delivery-review fires after writes. In inventory, even at max effort, the model read only one Slack channel before immediately sending the email (early satisficing bias).
    • A small, independent DSH plugin on agent/pre-step / tool pre-execution can intercept the first irreversible external write (sending email, creating contracts, mutating CRM records) when read-only recon breadth is narrow, nudging the model to verify all relevant channels and latest updates before sending.

5. Open Call to the Community

How can we push universal, non-cheating benchmark scores higher on existing lightweight base models (like DeepSeek V4.1 Flash)? We welcome ideas, reproducible test cases, and PRs on four open problems:

  1. Zero-Friction Working Memory: Beyond explicit memory_working_state calls, how can we passively summarize key entity updates and supersessions from read-only tool outputs without bloating context?
  2. Precise Pre-Write Gate Triggers: How do we catch early satisficing on multi-source tasks without annoying users during simple single-step actions?
  3. End-of-Turn Global Preference Retention: Across 50–100-turn coding loops, how can a harness keep “runnable examples” and “version bump rules” fresh at delivery time without leaking persisted rule text into chat history?
  4. Real-World Bilingual Multi-Source Scenarios: Share anonymized multi-version writing, video-editing, or engineering workflows via GitHub Issues.

Reading this today? This article retains its original test or essay scope. For the current opt-in preview, see 0.29.0-beta.2 and the companion guide. The old evaluation is not a score for the new package.