Skip to content
Back to skills

Deepagent Memory Fold

ASecurity

DeepAgent-style memory folding for VCO sessions: compress long context into structured working/tool memory without using episodic-memory.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsgo

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill deepagent-memory-fold --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deepagent Memory Fold?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deepagent Memory Fold
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-deepagent-memory-fold-claude-skill-registry/badge)](https://www.skillsdirectory.com/skills/majiayu000-deepagent-memory-fold-claude-skill-registry)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: deepagent-memory-fold
description: "DeepAgent-style memory folding for VCO sessions: compress long context into structured working/tool memory without using episodic-memory."
---

# DeepAgent Memory Fold (VCO)

## When to use

Use this skill when:

- The task is long-horizon and context is getting large
- You need to “take a breath” and restart reasoning from a compact state
- You see repeated retries / route instability / losing track of decisions
- You need to hand off to another agent or start a new session

## Governance constraints (must follow)

- VCO memory governance **disables** `episodic-memory`.
- Use **state_store** (session) by default.
- Only write to Serena memory when the user explicitly approves a **project decision**.

## Runtime (Upstream vendoring)

DeepAgent upstream is vendored (optional/advanced):

- `C:\Users\羽裳\.codex\_external\ruc-nlpir\DeepAgent\`

Runtime config + preflight (no secrets stored/printed):

- `C:\Users\羽裳\.codex\skills\vibe\config\ruc-nlpir-runtime.json`
- `pwsh C:\Users\羽裳\.codex\skills\vibe\scripts\ruc-nlpir\preflight.ps1`

## Output contract (structured fold)

Produce a “folded memory” object with these sections:

1. **Working memory**
   - Current goal
   - Current sub-goal
   - Current blockers
   - Next 3 actions
2. **Tool memory**
   - Tools/skills used
   - What worked / what failed
   - Availability notes (keys required, deps missing)
3. **Evidence memory**
   - Top 5 evidence anchors (file:line or URLs)
4. **Decision log**
   - Only decisions actually made (no speculation)
5. **Resume prompt**
   - A compact prompt that can be pasted into a new session

## Where to store it

- Default: write to `outputs/runtime/memory-fold.json` (or similar session output)
- If user requests: also write a human-readable `memory-fold.md`

## Minimal template (copy/paste)

```json
{
  "working_memory": {
    "goal": "",
    "sub_goal": "",
    "blockers": [],
    "next_actions": []
  },
  "tool_memory": {
    "used": [],
    "worked": [],
    "failed": [],
    "availability": []
  },
  "evidence_memory": {
    "anchors": []
  },
  "decision_log": [],
  "resume_prompt": ""
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.