
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.
solopup-memory runs purely on Node 24 built-ins and plain-text local files:
query-normalize.mjs, privacy.mjs, security.mjs)
findSecrets), and framing neutralization (escapeFraming) so stored data can never masquerade as plugin instructions.node:sqlite FTS5 Hybrid Retrieval (sqlite-index.mjs, retrieval.mjs, workspace-history.mjs)
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.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.task-memory-runtime.mjs, delivery-review.mjs)
.git/HEAD without spawning subprocesses and detects file mutations across sed -i, tee, cat >, git apply, and inline python3/node scripts.< 700-byte delivery-review cue at turn end with zero copied rule text or source IDs, preserving clean withdrawal semantics.While building solopup-memory, we studied Claude Code’s layered memory model and adapted its strongest ideas to DeepSeek Harness (DSH) and lightweight models:
project stores to .git roots while keeping global preferences separate.MEMORY.md index as the entry map rather than dumping unbounded text into every prompt.memory_source verification, view=history, and clean withdrawal.node:sqlite handles Chinese/English normalization and bounded 1-hop associations in < 1 ms with zero npm dependencies.memory_working_state): Gives lightweight models an explicit place to reconcile conflicting updates (supersedes) and exclusions during multi-source workflows.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).
8/9 (88.9%), sqliteIndex median 0.173 ms.30/30 (100.0%), median 0.161 ms.青岚计划, Suite C): Returns active [D, C] with zero leak of superseded A/B in 0.155 ms.50/50 (100.0%), median 0.639 ms (P95 0.849 ms, well under the 5.0 ms gate).deepseek-flash Smoke SuiteAll 4 live scenarios passed (4/4 PASS):
global-under-noise (25 noisy project cards + global rules): PASSshell-edit-delivery-review (inline Python shell edit triggers delivery review): PASSqinglan-1hop (1-hop recall with zero old-tag leak): PASSmulti-source-reconciliation (email quote/contact superseded by Slack + mandatory SLA + excluded SKU): deepseek-flash autonomously called memory_working_state and triggered delivery-review, producing deliverables with 100% latest values and zero stale items: PASS.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):
1/12 (Off = 1/12, v1 = 1/12)csm: 4/4 PASS (1)cattrs: 76/77 (p2p 7/7, f2p 69/70 — functional 100%, missed runnable docstring pattern & changelog path)customer: 186/188 (p2p 162/162, f2p 24/26 — monotonic clock passed, missed async example & structured error context)cookie, awilix-ex, awilix-im: 100% functional pass (1285/1285+115/115, 172/172+23/23, 184/184+23/23), missing only end-of-turn preferences (runnable example or package.json minor version bump)teams: 3/4; sales: 8/10; inventory: 7/11; partnership: 2/8; dapt: 30/37; word2vec: collection errorteams, 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) |
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:
solopup-memory@0.28.0-beta.1: Keeping the memory plugin clean, modular, and focused on durable, source-linked, sub-millisecond memory.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).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.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:
memory_working_state calls, how can we passively summarize key entity updates and supersessions from read-only tool outputs without bloating context?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.