Engineering intelligence for coding agents — persistent, evidence-aware, project-isolated engineering memory with unified hybrid search (memory + RAG documentation) for DeepSeek Harness.
Install
# from npm (prebuilt)
dsh plugin --profile web add @lovedolove/veyra
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:LoveDoLove/Veyra
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Persistent engineering memory for coding agents. Veyra learns the lessons your agent already paid for, remembers the ones that held up, and puts them back in front of it the next time the same problem appears.
Local SQLite. Per-workspace isolation. No daemon. No API keys. No manual bookmarking. No re-deriving the same root cause next week.
A plugin for DeepSeek Harness. Local SQLite storage. No daemon. No API keys. 273.1 kB packed. Pure ESM.
The problem
A coding agent's context window is a working set, not a store. Every session it relearns the same things.
- Why the build needs that flag.
- Which fix was tried and rejected, and what it broke.
- That this module must stay untouched until the migration lands.
- Which of these facts stopped being true when the file changed.
Conversation history does not survive the session. Docs drift away from the code. A folder of markdown notes has no lifecycle, no authority model, and no way to tell you it went stale.
What Veyra does
Veyra turns the work an agent already did into durable, evidence-backed memory, and injects the relevant parts automatically.
| It captures without being asked | Veyra watches session events and distills each turn into an observation. A governed gate decides whether it earned a place in memory. A turn that produced nothing durable is dropped, not stored. |
| It recalls without being asked | At the start of a turn, the most relevant records are injected into context, each labelled with its trust state. The injected policy also makes one targeted veyra_recall call the agent's required first action on any non-trivial task, so keyword-matched injection is backed by an on-demand search. |
| It refuses to invent evidence | A path mentioned in prose is not a changed file. A symbol name in a sentence is not a symbol. Only real, resolved anchors ground a record. |
| It knows when it might be wrong | Every recalled record is re-checked against the current repository and classified trusted, review_required, stale, contradicted, or insufficient_evidence. |
| It never becomes the source of truth | The repository always wins. canonical authority is reachable only through an explicit human action. Nothing is written into your repo. |
| It keeps workspaces apart | Memory is partitioned into rooms keyed by the DSH workspace identity, never by filesystem path. Two workspaces on one repo never see each other's memory. |
Quick start
dsh plugin --profile web add @lovedolove/veyra
Restart DSH. That is the whole setup.
If DSH installs an older version than the one shown on the npm badge above, your package manager may be holding back a release that is still inside its supply-chain age window. Install the current version explicitly:
dsh plugin --profile web add @lovedolove/veyra@0.3.1
Then just work. At the end of a turn that produced something durable, Veyra stores it. At the start of the next turn in the same workspace, it comes back.
Check it:
/veyra status for this workspace
/veyra recent what was stored, including candidates
/veyra recall sqlite wal
/veyra inspect vey_…
Open /veyra in the DSH Web address bar to see the same memory as a graph.
The loop
work happens
│
▼
observe ──► observation ──► write gate ──► derived memory
(what changed, (accept / (recall-eligible)
what passed, merge /
what was tried) drop / defer)
│ │
│ ▼
│ SQLite + FTS5
│ one room per workspace
▼ │
next turn ◄── trust check ◄─────┘
(fresh? contradicted? checkable?)
Four things make the loop honest:
- Capture needs evidence. Files that actually changed, tests that actually ran, a root cause that is actually stated.
- Learning needs durability. A one-off command is not a lesson.
- Recall needs relevance. Hybrid search over lexical, semantic, intent, and graph signals, with a visible score breakdown.
- Reuse needs freshness. Code that moved demotes the memory that describes it.
Two layers, one rule
| Layer | Answers | Source of truth |
|---|---|---|
| Veyra Memory | What did we learn the hard way? | Accumulated evidence, per workspace |
| Code Intelligence | What is the code right now? | The live repository AST |
Code Intelligence is optional and lives in a separate plugin. It can mark a memory stale. It can never overwrite one.
The rule in both directions: repository truth wins. A memory that says the code does something is a claim to verify, not a fact to act on.
Memory rules
| What | Authority | Auto-recalled |
|---|---|---|
| Auto-captured observation | candidate |
no |
| Learned or explicitly remembered lesson | derived |
yes |
| Explicitly promoted truth | canonical |
yes |
Similarity is not identity, so overlapping memories are linked, not merged. Similarity is not authority, so a good match never promotes a record.
Documentation
| Document | What it covers |
|---|---|
| Documentation index | Every document, grouped by audience |
| Whitepaper · 简体中文 | Vision, design principles, architecture, core concepts, technical design, future direction |
| Memory model | Authority, validation, kinds, causal facets, lifecycle, trust, rooms and promotion |
| Tools | All eleven tools, their parameters, and the three bundled skills |
| Commands | Every /veyra command, including the Observatory |
| Configuration | Settings, environment variables, storage layout, reset |
| Code Intelligence | The optional structural layer, install, degradation, freshness |
| Troubleshooting | Symptom, cause, fix |
| Benchmark | The measured 45-dimension harness and what each number means |
| Architecture graph | Contracts, rejections, and the standing design boundary |
| CHANGELOG.md | Every released version and what changed in it |
| Retrieval effectiveness | The goal, the experiment, and the record of what the retrieval work proved |
| Contributing | How to report, propose, verify, and land a change |
| Security policy | Supported versions, what is stored, what is redacted, the threat model |
| AGENTS.md | Entry point for agents working on Veyra itself |
Requirements
| Node | >=22.12.0 <25.0.0 (node:sqlite, plus the unflagged require(esm) the bridge uses) |
| DSH | >=0.1.2-rc.1 <0.3.0-0 |
| Storage | node:sqlite + FTS5, under $DSH_HOME/veyra/ or $VEYRA_HOME |
| Runtime dependency | None required. Codebase Memory is an optional peer |
Installed per profile (web, tui, …). The Network Graph needs the web
surface.
What is measured, and what is not
Measured: the memory loop closes. A recall dispatch is observable, repeated recall is bounded, a restated root cause merges, and capture stops inventing evidence. The suite is 1173 tests, and the benchmark harness re-asserts its own table on every run.
Not measured: whether an agent with Veyra completes real tasks faster or better than one without. That needs a paired experiment, and the repo says so instead of implying otherwise. The whitepaper keeps design goals, implemented behaviour, verified behaviour, and unproven claims in separate sections.
Development
npm test # node --test test/*.test.mjs
npm run pack:check # what would be published
CI runs both on Node 22 and 24. See AGENTS.md for the rules that apply to changes here.
License
MIT. See LICENSE and THIRD_PARTY.md.
Veyra is pre-1.0. The command surface and APIs may still change between minor versions.
Links
More in this category
vectorize-io/hindsight#coding-agents★ 64023
Hindsight, agent memory that learns: long-term project memory with auto recall and retain, knowledge pages, deep reflection, and per-repo memory banks.
volcengine/OpenViking#examples/dsh-memory-plugin★ 42983
OpenViking memory and context bundle for DeepSeek Harness: pre-step auto-recall and profile injection, session capture, `viking://` URI guarding, and recall/write memory tools backed by an OpenViking server.
MemTensor/MemOS#memos-local-plugin★ 12530
Local-first memory plugin for DeepSeek Harness: layered L1/L2/L3 memory with automatic capture, manual memos_* retrieval tools, and a built-in memory viewer.
agentscope-ai/ReMe#dsh★ 3865
Connects DeepSeek Harness to ReMe's local-first, self-evolving personal knowledge base: automatically captures completed main-agent conversations as user-owned Markdown memory, searches conversations and source material through reme_search with BM25, optional embeddings, and wikilink expansion, and schedules daily memory consolidation.
zilliztech/memsearch#MemSearch★ 2962
Shared Markdown memory for DSH and other coding agents, with automatic capture, pre-step context injection, searchable recall, and memory-to-skill self-evolution through a review panel.
vshulcz/deja-vu#extensions/dsh★ 1694
Cross-session memory and context recovery across forty-five other coding agents (45+) on this machine, reading session files they already wrote before install (Claude Code, Codex, Cursor, Windsurf, Trae, Antigravity, VS Code Copilot Chat, opencode, OpenClaw, Hermes, Kimi, Qoder, Cline, Zed, Magpie and more): six tools (deja_recall, deja_session, deja_blame, deja_fix, deja_how, deja_remember), a /deja command, and optional automatic recall injected into runtime context. Local BM25 CLI/MCP index, no LLM, no embeddings, no network (dsh plugin --profile web add dsh-deja).
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.