debug-memory SKILL.md skillA
debug-memory from dzhng/duet-agent is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add dzhng/duet-agent/debug-memory@git:20260525.773900dPins git:20260525.773900d in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- dzhng/duet-agent
- Path
.agents/skills/debug-memory/SKILL.md- Versions recorded
- 4
- Latest version
- git:20260525.773900d, committed May 25, 2026
- First version recorded
- May 18, 2026
- Size
- 17,499 bytes
- Repository stars
- 50
- License
- Apache-2.0
Reproduce observational-memory bugs (reflection, recall, observer, freshness, eviction) by dumping the live `~/.duet/memory.db` into a fixture and driving an eval against it. Use whenever the agent's memory misbehaves — wrong observations, bad reflections, missing recall, runaway tokens — or whenever the user asks to debug, repro, audit, or tune memory.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Debug Memory The standard operating procedure when memory misbehaves is: dump the live store, narrow to the smallest reproducing slice, seed it into a `MemorySession` fixture, write the failing eval, then iterate on the prompt or code until it goes green. Never tune against the user's running database — every dump is a fixture. ## 1. Dump the live store `scripts/dump-memory.ts` reads any PGlite memory store and writes JSON. Default source is `~/.duet/memory.db`, default destination is stdout. ```bash # Everything bun run scripts/dump-memory.ts --pretty --stats --out /tmp/memory.json # Only raw observations from the last 7 days bun run scripts/dump-memory.ts --kind observation --since 7d --pretty \ --out evals/fixtures/global-reflect/recent-pool.json --stats # Only reflection rows (to inspect what global prune produced) bun run scripts/dump-memory.ts --kind reflection --pretty --stats # A specific session's tail bun run scripts/dump-memory.ts --session <session_id> --limit 50 --pretty # High-priority cross-session reflections older than 30 days bun run scripts/dump-memory.ts --kind reflection --priority high --until 30d --pretty ``` …
Read the whole file at its exact version.
How to install
mdr add dzhng/duet-agent/debug-memory@sha256:5ecc3f7faba8f82eThe line at the top of this page pins the label git:20260525.773900d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_waenzeglzifnvz3b)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between May 18, 2026 and May 25, 2026, about one every 2 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260525.773900d latest | 2026-05-25 | 773900d | 17,499 B | A | view · diff |
| git:20260525.d847bcf | 2026-05-25 | d847bcf | 15,761 B | A | view · diff |
| git:20260525.c83ca2e | 2026-05-25 | c83ca2e | 14,387 B | A | view · diff |
| git:20260518.95c9280 | 2026-05-18 | 95c9280 | 10,224 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (17499 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
dzhng/duet-agent · 50 stars · license Apache-2.0 · pushed 2026-10-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_waenzeglzifnvz3b GET https://markdownregistry.com/api/v1/resolve?ref=dzhng/duet-agent/debug-memory GET https://markdownregistry.com/api/v1/blob/5ecc3f7faba8f82e2d07cc2b238d80c7d69ab82cee26dfc58d821290a6459e6b
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from dzhng/duet-agent
Every file in dzhng/duet-agent