一键导入
forget
Delete a memory from Wenlan by ID. Destructive and cannot be undone — prefer `/capture` with `supersedes` for corrections. Invoked as `/forget <source_id>`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Delete a memory from Wenlan by ID. Destructive and cannot be undone — prefer `/capture` with `supersedes` for corrections. Invoked as `/forget <source_id>`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Frictionless Wenlan setup for Codex. Detects a missing local runtime, installs or repairs it, and verifies the plugin to MCP to local runtime round-trip. Run when the user says "set up wenlan", "is wenlan working", or "fix wenlan".
Frictionless setup. Detects a missing local runtime, installs or repairs it, configures local memory, and verifies the full plugin -> MCP -> local runtime round-trip. Run after `/plugin install wenlan@7xuanlu-wenlan`, or any time the user says "set up wenlan", "is wenlan working", "fix wenlan".
Show a one-screen Codex reference for the Wenlan plugin. Use when the user asks for Wenlan help, command list, or invokes /help.
Run Wenlan diagnostics or resolve every finding into a ready repair, review item, system action, or blocker.
One-screen quick reference for the Wenlan plugin. Lists the daily verbs, the daily flow, where data lives, and how to view it without a GUI. Use when the user says "help", "what can I do", "list wenlan commands", "how do I use wenlan", or invokes `/help`.
Run Wenlan diagnostics or resolve every finding into a ready repair, review item, system action, or blocker.
| name | forget |
| description | Delete a memory from Wenlan by ID. Destructive and cannot be undone — prefer `/capture` with `supersedes` for corrections. Invoked as `/forget <source_id>`. |
| argument-hint | <source_id> |
| allowed-tools | ["Bash","mcp__plugin_wenlan_wenlan__forget","mcp__plugin_wenlan_wenlan__recall"] |
Permanently delete a memory by its source_id.
You need the source_id. If the user did not provide it, call
/recall first to find the matching memory and confirm with the
user before deleting.
forget(memory_id="<source_id>")
supersedes pointing
at the old one. That preserves history. Use /capture with the
supersedes arg instead./curate first, confirm with the user,
then delete one at a time.Deletion is destructive. Always confirm with the user before calling forget, unless the user has already given an explicit, unambiguous instruction in the same turn (e.g. they pasted the ID and said "delete this").
If the deletion removed a page md (daemon archives the page and
KnowledgeWriter unlinks the file), snapshot the change. Defensive —
silent skip if git missing, ~/.wenlan/ not a repo, or no diff.
Bash: git -C ~/.wenlan add -A && \
git -C ~/.wenlan -c user.name=Wenlan -c user.email=daemon@wenlan.local \
commit --quiet -m "forget: <source_id>" 2>/dev/null || \
(sleep 1 && git -C ~/.wenlan add -A && \
git -C ~/.wenlan -c user.name=Wenlan -c user.email=daemon@wenlan.local \
commit --quiet -m "forget: <source_id>" 2>/dev/null) || true
The retry handles index.lock races — the daemon may be writing to
~/.wenlan/ at the same moment (auto-commit from captures). One-second
wait is enough for the daemon to release the lock.