AI Agent Hub
Back to skills
Memory Manager English icon

Memory Manager English

AI Agent Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_98283d0f/memory-manager-en by following https://skillhub.cn/install/skillhub.md.

About this skill

The Problem

Many AI Agent sessions inject long-term memory from .workbuddy/memory directly into context. As the file grows, more tokens are loaded, responses slow down, and prompt costs rise. Deleting files alone is not enough: the model needs fewer, more task-relevant memories, not more raw text. Old projects, duplicate snippets, and outdated preferences can crowd out context and steer answers away from the current task.

How It Works

Memory Manager EN treats memory as a throttle valve before context injection, organizing commands around analysis, search, compression, and backup:
- analyze, token-check, and search inspect memory size, token usage, and matching content
- load --query, rank, and throttle help load relevant memories and compress them into a budget before a session
- dedup and auto-clean default to dry-run previews, requiring explicit confirmation before changes
- Destructive operations such as import, restore, and clean require --execute to reduce accidental deletion
- export and import support memory backup and restoration
- Optional colorama, jieba, and tiktoken improve display, Chinese tokenization, and token estimation, with automatic fallback when missing

Boundaries And Notes

This skill targets .workbuddy/memory; it is not a general file manager, code debugger, or system disk cleaner. Token trends may be empty on first use, and very short memory files may be skipped during summarization. Prefer dry-run output before cleanup or restoration, and confirm the target directory is writable and memory files are UTF-8 encoded.

Use Cases

  • Before a long session, retrieve task-relevant memories from `.workbuddy/memory` and compress them into a limited token budget.
  • When memory files grow too large, use `analyze`, `token-check`, and `rank` to locate high-impact, high-importance fragments.
  • Before cleaning stale memories, preview duplicates and removable entries with `dedup` and `auto-clean` dry-run output.
  • When migrating an agent workspace, export `.workbuddy/memory`, restore it, and verify search and import behavior.

Best For

  • Agent engineers maintaining `.workbuddy/memory` who want to control memory size and token cost before context injection.
  • Product engineers debugging drifting long conversations who need to search relevant memories by project, tag, or keyword and remove duplicates.
  • Technical owners operating multi-agent environments who need to back up, restore, diagnose memory systems, and check permissions or encoding issues.
  • Individual developers using bilingual prompts who need to keep preference records and safely load relevant memories across sessions.