DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

ninthmonee /

ninthmonee/AccreMind

仅 Topic 仓库

Agent-era KnowledgeOps platform for recalling and compounding development experience through MCP.

★ 6 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@ef99af51

AccreMindAccreMind

Models are always superseded by the next generation. Knowledge is not.

Turn the experience scattered across your projects into reusable knowledge assets.

English · 简体中文

CI License: MIT Node.js Core: host-agnostic DSH plugin

AccreMind is a local-first knowledge base for AI-assisted engineering. It turns the experience scattered across your projects — the decisions, the abandoned routes, the domain rules and shared conventions, the traps already fallen into, and how all of it connects — into Markdown knowledge assets you can commit, review and reuse. Then it puts them back in front of the model and the developer right before the next change.

Everything stays on your machine: Markdown is the source of truth, node:sqlite (WAL + FTS5 trigram) is only ever a rebuildable index. No background service, no external vector store, no telemetry.


Table of contents

  • The problem
  • How it works
  • Host model
  • What we accumulate
  • Three injection layers
  • Features
  • Quick start
  • Host integrations
  • Standalone workbench
  • Where the data lives
  • CLI
  • Model access (optional)
  • Design principles
  • How it compares
  • Non-goals
  • Requirements
  • Development
  • Documentation
  • Contributing
  • License

The problem

Model context rolls over. Human memory decays. Documentation keeps the conclusion and throws away the reason.

The knowledge that actually cost a team something — "retrying this endpoint double-charges", "this library cannot be dynamically imported under SSR since 3.x", "we tried the queue-based design and reverted it" — lives in a chat thread, a postmortem, or one person's head. It is exactly the knowledge that is missing at the moment the next change is written, and exactly the knowledge an AI assistant cannot infer from the repository.

AccreMind stores that delta and nothing else.

How it works

Three moments, one knowledge base:

Moment What happens
Before a change Entries that match the turn are injected as references — id plus one-line summary, explicitly marked as material, not instructions
During a change Touching a file that an entry watches unfolds the full entry: preconditions, counterexamples, how to verify, where the evidence is
After a change A turn-tail receipt lists what was used, with one-click "helpful / not helpful / inaccurate" feedback

Host model

AccreMind does not belong to any one host. The engine, @accremind/core, is a zero-dependency Node.js library — it imports nothing but node:* built-ins — and it is driven by three front doors that share the same public API:

Front door Package Needs a host?
Plugin for DeepSeek Harness (DSH) @accremind/dsh-plugin Yes — the first host integration, and the most complete one
Command line accremind (in @accremind/core) No
Standalone workbench @accremind/webui No

DSH is the first adapter, not the design centre: turn hooks, tools, the sidebar panel and skill export are the surface a host can offer, and every one of them is a thin mapping onto the kernel. Adding another host — an IDE extension, a server — means writing an adapter that calls the public API and expresses the same three layers in that host's own vocabulary.

The DSH integration does carry DSH-shaped defaults: per-user state lives in ~/.dsh/accremind/ (override it with globalDir) and exported skills land in .dsh/skills/<slug>/SKILL.md. Those paths are conventions of the adapter, not of the engine's data model — the knowledge itself is plain Markdown in the repository.

What we accumulate

"The experience scattered across projects" is not a slogan here — it is six concrete kinds of knowledge, each with a home in the store:

Kind What it looks like in practice Entry type Layer
Decisions and their reasoning why this design, what it cost, what it rules out next time decision project
Traps and abandoned routes "retrying this endpoint double-charges"; "we tried the queue design and reverted it" pitfall project
Domain rules business invariants, temporal rules, what a settled order may never become model / guideline domain
Shared conventions naming, error envelope, migration pattern, review expectations guideline / process project, and team_rule once accepted as a team norm
Shared-tech gotchas "this library cannot be dynamically imported under SSR since 3.x" — true in every repository model / pitfall shared_tech
Process knowledge how a release, rollout or incident is actually handled here process project / personal

Two properties make this a body of knowledge rather than a pile of notes:

  • Relations are part of the record. An entry states what it supersedes, which shared-tech entry it specializes, which team rule it overrides, and which tags and domains it belongs to. A specialised pair is never served together, so refinement replaces contradiction instead of adding to it.
  • Scope decides who gets it. A personal entry stays with you, project stays in the repository, domain and shared_tech travel to other repositories, and team_rule is organisation-wide — it is only ever proposed by a person, never written by automatic capture, and is exempt from automatic demotion.

What is deliberately not accumulated

  • Anything the code, tests or existing docs already say.
  • Diffs and file listings that git log regenerates for free.
  • Machine-local paths and one-off environment noise.
  • Unverified guesses: they wait in needs_confirmation for a human, and are dropped if nobody vouches for them.

How a candidate is filtered

Only a knowledge_delta — the part a reader could not reconstruct from the code and the existing docs — is accepted. Every candidate goes through five-way triage:

Disposition Meaning
index_only Already discoverable in code/docs; index it for retrieval, do not store a card
link_existing Duplicate of an entry we already have; link to it instead
knowledge_candidate A real delta; promote into a Markdown card
needs_confirmation Plausible but unverified; park it until a human decides
discard Empty delta, a guess, or a machine-local path; drop it

New cards start in probation. They become verified only after being surfaced by real turns and validated — no silent self-promotion.

Three injection layers

Layer Fires on Default budget Role
Resident rules Start of every turn 500 tokens Team hard constraints; byte-stable so the KV cache survives
Turn radar Each turn, by query 300 tokens Matching entries by id, marked as reference material
Tool guard Reading/writing a watched file 240 / 1500 tokens Unfolds the full entry when the same file is touched

All three are read-only reference material. They never override host rules and have no execution authority.

Features

  • Local-first, two-tier storage — team knowledge lives in .accremind/ inside the repo (commit it, review it in PRs); drafts, queues, indexes and per-user retrieval logs live in ~/.dsh/accremind/. The index can be rebuilt from the Markdown at any time.
  • Five-way triage — index_only / link_existing / knowledge_candidate / needs_confirmation / discard, so code-recoverable input never pollutes the base.
  • Shadow probation — new entries are used quietly, then promoted on independent validation. Repeated exposure without feedback archives them.
  • Staleness and symbol anchors — entries record watch_paths and symbol-anchor hashes. Code changes or an expired review window push the entry into a re-check queue; a counterexample suspends it immediately. Formatting-only edits do not raise false alarms.
  • Rule documents — domain / business_rules / project_norms / project_profile are indexed by ## section, with import, change proposals, accept/reject and a change log, written to .accremind/docs/ and reviewed with the code.
  • Cross-repository knowledge — repository identity comes from .accremind/repo.json, then origin, then a path hash. Entries in the domain and shared_tech layers surface across repositories in the same domain.
  • Structured relations — an entry can declare what it supersedes, which shared-tech entry it specializes, and which team rule it overrides, and it shares controlled tags and domains with related knowledge. Relations are honoured at serving time — a specialised pair is never delivered together — so the structure survives instead of decaying into prose links.
  • Receipts and offline evaluation — every turn keeps a redacted question plus feedback; accremind eval replays real feedback and hand-written cases, --grid sweeps parameters, --apply writes back only when the score improves.
  • Workbench — seven views covering overview, library, candidate review, rule documents, governance, turn receipts and a Git radar. A verified entry can be exported to .dsh/skills/<slug>/SKILL.md.
  • Self-improvement, unattended and reversible — configurable via autoEvolve: { tune: false, demote: false }:
    • Auto-tuning runs one minute after a session opens, at most once a week per repository. It only applies when there are ≥ 30 labelled samples, the score improves by ≥ 0.03, recall drops by no more than 0.02, and rejected entries do not surface more often. It then enters an observation window and rolls itself back if either the adjusted feedback or the real "does not apply" rate gets worse. Every step is recorded in ~/.dsh/accremind/tuning-history.jsonl and can be undone.
    • Demotion moves a verified entry back to probation when at least two sessions in the current revision flag it as "not applicable" at ≥ 25% of exposures, or when it has been surfaced in ≥ 40 sessions over 30 days and never opened, quoted or confirmed. Suspended entries archive after 30 days untouched; probation drafts after 60. Team norms, entries confirmed on the current revision, and counterexample-backed entries are exempt. Every action lands in the overview's needs your attention list with a one-click undo.

Quick start

From source (current, recommended until the npm release)

git clone https://github.com/ninthmonee/AccreMind.git
cd AccreMind
pnpm install
pnpm build      # builds core, plugin and the inlined workbench bundle
pnpm verify     # build + full test suite + workbench artifact fingerprint

Then link the plugin into a DSH profile:

pnpm install:dsh                      # desktop profile by default
pnpm install:dsh -- --profile web     # or a specific profile

From the plugin marketplace

The package is published as @accremind/dsh-plugin; the index URL for DSH's Custom plugin indexes is:

https://raw.githubusercontent.com/ninthmonee/AccreMind/main/market/index.json

Add it under Plugins → Experimental plugins → Custom plugin indexes, then install AccreMind from Discover. Release mechanics are documented in docs/market-publishing.md.

Host integrations

DeepSeek Harness (DSH)

The reference adapter. After installation an AccreMind panel appears in the sidebar, entries are injected as the conversation needs them, and a receipt is appended to each turn. Six tools are available to the model:

Tool Purpose
accremind_capture Submit a candidate and run five-way triage
accremind_search Search by keyword, kind, layer or file path
accremind_get Fetch full text, preconditions, verification steps and evidence
accremind_validate Record a success or failure for this use; failure suspends the entry
accremind_export_skill Freeze a verified entry into a DSH skill document
accremind_propose_doc_change Propose a change to a rule document for human review

Standalone workbench

The same UI runs without DSH (port 3180, loopback only):

pnpm ui -- --port 3180
View What it answers
Overview What needs my attention, how healthy is the base
Library Browse, search and summarise every entry
Review Compare baseline against delta, check evidence
Rule documents Domain, business rules, project norms and pending proposals
Governance Staleness re-checks, counterexamples, settings
Receipts Which entries each turn actually used
Git radar Scan commit history for high-signal experience

For UI work use pnpm dev:webui (Vite HMR). Before releasing, always run pnpm verify: check:webui compares the packages/webui sources with the inlined artifact so a UI change cannot silently miss the published bundle.

Where the data lives

Path Contents
<repo>/.accremind/entries/ Verified experience cards (Markdown, with revisions and evidence)
<repo>/.accremind/evidence/ Evidence attachments
<repo>/.accremind/rules/ Resident rules
<repo>/.accremind/docs/ The four rule document kinds and their change log
<repo>/.accremind/repo.json Repository identity and business domain (commit this)
~/.dsh/accremind/probation/ Probation drafts (never written into the repo)
~/.dsh/accremind/queue/ Auto-capture and evaluation queues
~/.dsh/accremind/index/ Rebuildable SQLite index
~/.dsh/accremind/{personal,domain,shared-tech}/ Cross-repository knowledge layers
~/.dsh/accremind/{registry,users,workspaces}/ Repository registry, user identity, per-repository retrieval logs

CLI

pnpm accremind status                     # overview + staleness sweep
pnpm accremind search "order retry" --scope auto --file packages/core/src/store/local-store.ts
pnpm accremind get K-XXXX                 # full entry
pnpm accremind rebuild                    # rebuild the index from Markdown
pnpm accremind bootstrap --top 10         # scan Git history for high-signal commits
pnpm accremind bootstrap --extract        # hand them to the model for triage
pnpm accremind migrate                    # cross-repo migration rehearsal; --apply, --rollback
pnpm accremind repo --domains payments,ledger
pnpm accremind docs import ./adr --category business_rules
pnpm accremind docs proposals             # pending document and vocabulary proposals
pnpm accremind docs accept <proposal-id>
pnpm accremind eval --grid --apply        # replay feedback, tune, write back only if better
pnpm accremind eval auto                  # run one tuning cycle now (incl. observation verdict)
pnpm accremind eval history               # tuning history and observation state
pnpm accremind eval rollback              # undo the last tuning
pnpm accremind demotions [--all]          # automatic demotion / archive records
pnpm accremind demotions restore K-XXXX   # undo a demotion or archive
pnpm accremind ui --port 3180

Every command accepts --repo and --global-dir, defaulting to the current directory and ~/.dsh/accremind.

Model access (optional)

Retrieval, reminders, file guards and the staleness sweep are entirely local and need no key. Only extraction (bootstrap --extract, extraction in the workbench, and auto-capture when enabled) calls a model. The plugin reuses the host's llm service by default; an external endpoint can be configured with environment variables:

cp .env.example .env
# ACCREMIND_LLM_BASE_URL / ACCREMIND_LLM_MODEL / ACCREMIND_LLM_API_KEY
# or DEEPSEEK_API_KEY / OPENAI_API_KEY

Keys are only sent to the service they belong to: a custom ACCREMIND_LLM_BASE_URL pointing at another host never receives a DeepSeek or OpenAI key.

Design principles

# Principle What it means in the implementation
1 Only the delta Baseline answer is generated from code and docs first; triage drops anything reconstructible
2 Local-first, Markdown is the source of truth Every entry is a reviewable card; SQLite is a rebuildable index
3 Reference, not instruction Injected inside read-only tags, sanitised, marked as material; no host override, no execution
4 Evidence and freshness before conclusions Entries carry evidence locations and symbol anchors; code drift queues a re-check
5 AI proposes, humans decide Probation before verification; rule documents and vocabularies only change on human acceptance
6 Respect the context budget Per-layer token budgets; byte-stable resident block for KV cache; silence when relevance is uncertain
7 Self-improvement you can audit and undo Retrieval parameters auto-tune and auto-roll-back; knowledge content is never rewritten automatically

How it compares

AccreMind AGENTS.md / CLAUDE.md Wiki / ADR Chat-memory assistants
What is stored Only the delta code cannot give back Whatever gets pasted in Decisions, rarely the traps Past conversation turns
Where it lives Markdown cards in the repo + local index One flat file, hand-edited Prose, human search only Usually cloud embeddings
When it reaches the model Three budgeted moments Every turn, whole file When a human reads it Similarity match
Freshness Symbol anchors, watch paths, re-check queue None Manual None
Verification Probation → verified on real use None Review, if any None
Leaves your machine No No Depends Usually yes

Non-goals

  • Not a general-purpose chat memory or a personal note app.
  • Not a code knowledge graph or an index of your repository's structure.
  • Not a replacement for ADRs — it complements them by keeping what ADRs usually omit.
  • It never writes code, never runs commands, and never overrides the host's rules.

Requirements

  • Node.js ≥ 24 — node:sqlite with FTS5 trigram tokenisation.
  • DeepSeek Harness ≥ 0.2.2-rc.5 — only if you use the plugin; declared as engines.dsh, and DSH refuses to install or start the bundle below that range. The CLI and the standalone workbench need nothing but Node.js.

Development

pnpm build          # build core, plugin and the workbench artifact
pnpm build:webui    # rebuild only the workbench and write it back inline
pnpm test           # node:test (builds first)
pnpm verify         # build + tests + artifact fingerprint — run before every PR
pnpm typecheck      # kernel + workbench type checks
pnpm pack:check     # verify the published package shape (incl. host compatibility)
pnpm market:index   # regenerate market/index.json

CI runs pnpm verify, pnpm pack:check and the market index check on every push. See CONTRIBUTING.md for the full workflow.

Documentation

  • Architecture and design principles — vision, seven principles, data flow, lifecycle, retrieval pipeline, self-improvement
  • Product design V3.2 — scope, data model, acceptance criteria
  • Technical design V3.2 — module contracts, retrieval and governance
  • Marketplace publishing — package shape, index schema, release order
  • Legacy V1 / V2 design — the September 2026 design notes, archived verbatim
  • Introduction article — a long-form introduction for teams
  • Changelog · Security policy · Contributing

Deep-dive documents are currently written in Chinese; English translations are tracked in docs/README.md.

Contributing

Issues and pull requests are welcome. Read CONTRIBUTING.md first — it covers the local setup, the checks a PR must pass, and the commit conventions. This project follows the Contributor Covenant.

License

MIT © 2026 AccreMind contributors

—/ 5

暂无评分

需要先验证清单

Commit ef99af5184dd

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于