memory-set
The memory-set skill updates a session's working memory file (MEMORY.md) by applying minimal, targeted edits when the HostAgent determines that durable information warrants retention. Use this skill to record stable user preferences, project conventions, architectural decisions, and critical continuity notes while avoiding temporary task progress, secrets, and transcript excerpts. The skill preserves existing file structure, merges related entries, and defers unstable or tentative information until confirmed.
git clone --depth 1 https://github.com/mnemon-dev/mnemon /tmp/memory-set && cp -r /tmp/memory-set/harness/loops/memory/skills/memory-set ~/.claude/skills/memory-setSKILL.md
# memory-set
Use this skill only after the HostAgent has decided, according to `GUIDE.md`,
that working memory should be updated.
## Boundary
This skill edits `MEMORY.md`. It does not write Mnemon long-term memory. Long-
term consolidation belongs to the dreaming subagent.
Resolve the working memory path as:
```text
$MNEMON_MEMORY_LOOP_DIR/MEMORY.md
```
If `MNEMON_MEMORY_LOOP_DIR` is not available, use the path injected by the Prime
hook. Do not guess a repository-root `MEMORY.md`, `~/.mnemon/MEMORY.md`, or a
runtime-specific default unless the HostAgent has explicitly provided that path.
## Procedure
1. Identify the smallest durable memory worth keeping.
2. Open `$MNEMON_MEMORY_LOOP_DIR/MEMORY.md`.
3. Preserve any organization already present in `MEMORY.md`. If the file has no
useful structure yet, create the smallest heading or bullet layout needed for
the current memory.
4. Apply a minimal edit:
- add a concise bullet;
- replace stale or superseded wording;
- remove obsolete or unsafe content.
5. Prefer one clear sentence over a transcript excerpt.
6. Merge by default: same topic, same preference, or same decision should update
the existing entry instead of appending a new one.
7. Defer unstable memories. If the user is still negotiating wording or making a
first passing mention, leave `MEMORY.md` unchanged.
8. Keep the file compact. If the file is becoming long or repetitive, trigger
or recommend dreaming instead of appending more text.
9. After a successful edit, emit a best-effort daemon event:
```bash
mnemon event emit memory.hot_write_observed \
--loop memory \
--payload '{"file":"MEMORY.md","source":"memory-set"}'
```
If emit fails or `mnemon` is unavailable, continue without retrying; the
memory edit remains the primary action.
## Entry Style
Use compact bullets:
```markdown
- <durable fact or preference> (source: <user|repo|agent|command>, confidence: <high|medium|low>)
```
Omit metadata only when the source is obvious from nearby context.
## What To Keep
- stable user preferences
- project conventions
- active architecture decisions
- important operational notes
- critical open continuity
- decisions that supersede older guidance
## What To Reject
- secrets or credentials
- raw chat logs
- temporary task progress
- unverified guesses
- facts already obvious from source files
- restatements of `GUIDE.md`, memory policy, safety policy, or skip conditions
- noisy implementation details
- low-confidence speculation
## Safety
If an update could conflict with user intent or current repository facts, ask
for clarification or leave `MEMORY.md` unchanged.
Do not write a memory entry merely because the user repeated an existing safety
rule such as not storing secrets. Apply the rule for the current turn and leave
`MEMORY.md` unchanged unless the user explicitly provides a new durable policy.Analyze Mnemon harness eval reports, classify outcomes, and extract improvement evidence.
Turn stable Mnemon harness eval findings into scoped project, loop, adapter, docs, or eval asset improvements.
Design a scenario-driven Mnemon harness eval with target, hypothesis, HostAgent, loop configuration, evidence, and rubric.
Execute or supervise a planned Mnemon harness eval run in an isolated HostAgent workspace.
Manage project-scoped Mnemon goal state, evidence, verification, completion, blockers, and host goal links.
Recall long-term memory from Mnemon when GUIDE.md indicates that prior memory may help the current task.
Draft or revise high-quality SKILL.md content for approved or proposed Mnemon skill changes.
Start a low-frequency review of skill evidence and canonical skill lifecycle state.