{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "slow-stack-mneme--serve-memory-to-scripts-without-dsh-open",
 "repo": "slow-stack/mneme",
 "repo_url": "https://github.com/slow-stack/mneme",
 "repo_slug": "slow-stack-mneme",
 "title": "Read and write memory from scripts with DSH closed",
 "page_title": "How to read and write memory from scripts with DSH closed with Mneme",
 "summary": "Run the standalone daemon so third-party scripts and your own panel reach the same memory library.",
 "who": "A developer building a script, web bridge, or custom panel that needs memory access while DSH is not open.",
 "problem": "Memory is only reachable while DSH runs, which blocks integrations that work at other times.",
 "outcome": "A resident daemon on 127.0.0.1:8790 serves the memory library, and your script reads and writes it with the same token used by the DSH panel and CLI.",
 "steps": [
  "Install the package globally: `npm i -g @modusensus/dsh-mneme`",
  "Start the daemon: `dsh-mneme-serve`",
  "Copy the token used by the DSH panel and CLI into your script's configuration",
  "Send an authenticated HTTP request from your script to 127.0.0.1:8790 to list recent memories and confirm a response (inferred, check the README)"
 ],
 "agent_prompt": "In the dsh-mneme repo, start the daemon with dsh-mneme-serve and send one authenticated request to 127.0.0.1:8790 using the token in <token-file>. Expected output: a successful response listing memories. Verify that the daemon refuses to start if port 8790 is already in use.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The first phase of the daemon has no LLM, so consolidation and distillation still depend on the DSH host, and the port cannot be shared with DSH external access.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "requirements": [
  "DeepSeek Harness (DSH) installed, with the dsh command available",
  "Node.js and npm for the MCP server and the standalone daemon",
  "Access to the DSH settings panel to generate an external access token"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The daemon uses the same token as the DSH panel and CLI, so anyone who obtains it can read and change the memory library."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/slow-stack-mneme/serve-memory-to-scripts-without-dsh-open/",
 "md": "https://dedupedai.com/use-cases/slow-stack-mneme/serve-memory-to-scripts-without-dsh-open/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/slow-stack-mneme--serve-memory-to-scripts-without-dsh-open.json",
 "api_version": "v1"
}
