一键导入
wm
Working memory. "$wm dive" to prep sessions, "$wm compile" for context, "$wm distill" to extract learnings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Working memory. "$wm dive" to prep sessions, "$wm compile" for context, "$wm distill" to extract learnings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | wm |
| description | Working memory. "$wm dive" to prep sessions, "$wm compile" for context, "$wm distill" to extract learnings. |
Captures tacit knowledge from sessions and provides relevant context for current work.
All commands invoke the wm CLI. If wm is not installed, show:
wm not installed. Install with:
brew tap open-horizon-labs/homebrew-tap && brew install wm
# or: cargo install working-memory
Get relevant context for current work. Synthesizes knowledge from past sessions.
wm compile
Extract learnings from completed work sessions.
wm distill
Initialize working memory for this project.
wm init
Display the accumulated knowledge state.
wm show state
List recent work sessions.
wm show sessions
Save current dive context as a named prep.
wm dive save <name>
List all saved dive preps.
wm dive list
Switch to a named dive prep.
wm dive switch <name>
Show current dive prep content.
wm dive show
These features leverage Codex-specific capabilities.
Start every session with a dive. This is an agent flow, not a single CLI command.
Intent options:
fix - Bug fix sessionplan - Design/architecture workexplore - Understanding codeship - Getting changes mergedreview - Reflect on recent workStep 1: If intent not provided, ask user:
What's your intent for this session?
[ ] fix - Fix a bug or issue
[ ] plan - Design an approach
[ ] explore - Understand something
[ ] ship - Get something deployed
Step 2: Gather context from available sources:
git status
git log --oneline -5
cat AGENTS.md 2>/dev/null || cat CLAUDE.md 2>/dev/null
wm compile
Step 3: Build and write the dive manifest:
Create .wm/dive_context.md with:
# Dive Session
**Intent:** [intent]
**Started:** [timestamp]
## Context
[Project instructions, git state, relevant knowledge]
## Focus
[What we're working on]
## Workflow
[Steps for this intent type]
Step 4: Confirm to user:
Dive session prepared
Intent: [intent]
Context: .wm/dive_context.md
Ready to work.
No dive is too small. Even a quick bug fix benefits from 30 seconds of explicit intent.
Augment working memory with fresh web results (uses Codex web search).
Steps:
wm compile to get accumulated knowledge<query>Analyze recent Codex sessions for knowledge extraction.
Steps:
~/.codex/sessions/wm distillGet context for resuming a previous Codex session. Integrates with codex resume.
$wm dive <intent> - prep context$wm compile - get relevant knowledge as needed$sg review - metacognitive review$wm distill - capture learningsProtocol: Treat wm as your external memory. Don't guess at past decisions - check wm first.
Address PR comments for GitHub issue PRs, resolve feedback, push fixes
Open Horizon Labs meta-tool. One entry point for ba, wm, and superego. Use "bottle-init" to set up all tools, "bottle-status" to check state.
Task tracking. "$ba status" for current tasks, "$ba claim <id>" to start work, "$ba finish <id>" when done.
Metacognitive oversight. "$sg review" for on-demand evaluation, "$sg init" to set up, "$sg audit" to review decisions.
Open Horizon Labs orchestration. "$bottle init" for setup, "$bottle dive" to start sessions, "$bottle web-context" for fresh docs.