Bundle
dsh-plugin-meta-memory
Structured long-term memory system for DeepSeek Harness -- unit-based brief/full pairs with auto-injection
- Source
- YYTbit
- stars
- 4 stars
- License
- MIT
- Updated
- Updated 7 days ago
Readme
# dsh-plugin-meta-memory
Structured long-term memory system for DeepSeek Harness.
## What it does
Teaches the agent how to organize memories using a structured system:
- **Units**: Work categories named `verb-modifier-noun.unit`
- **Records**: Each memory has a brief (quick scan) and full (detailed) version
- **Index**: Self-maintained global storyline
- **Auto-injection**: Relevant briefs are injected into context automatically
## Install
```sh
dsh plugin --profile your-profile add dsh-plugin-meta-memory
```
## How it works
### Memory structure
```
.meta-memory/
├── index.md
└── units/
├── debug-auth-module.unit/
│ ├── 0.token-refresh-fail.brief.md
│ └── 0.token-refresh-fail.full.md
└── read-deeplearning-paper.unit/
├── 0.transformer-attention.brief.md
└── 0.transformer-attention.full.md
```
### Brief format (injected into context)
```markdown
# token-refresh-fail
JWT token refresh returns 401 due to timestamp offset calculation error.
```
### Full format (loaded on demand)
```markdown
# token-refresh-fail
## Context
Auth module was failing on token refresh after 1 hour.
## Finding
expiresAt calculated using milliseconds instead of seconds.
## Evidence
src/auth/refresh.ts:42 - Math.floor(Date.now() / 1000) fixes it.
## Relevance
Any JWT/token related debugging in the future.
```
## CLI tool
```sh
mm init # Initialize memory directory
mm list # List all units and records
mm read <unit> # Read all briefs in a unit
mm search <query> # Search briefs by keyword
mm index # Show the index
```
## Configuration
```yaml
- id: meta-memory
name: dsh-plugin-meta-memory
config:
memoryPath: '~/.dsh/meta-memory'
enableInjection: true
enableSkill: true
maxBriefBytes: 4096
```
## License
MIT -- YYTbit
Install
dsh plugin --profile web add github:YYTbit/dsh-plugin-meta-memory
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-plugin-meta-memory from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.