Install
openclaw skills install @cutd/dongwoSet up, inspect, or maintain a local user-preference memory shared across coding agents such as Codex and Claude Code. Use only when the user explicitly asks to remember a preference, review or forget stored preferences, configure Dongwo lifecycle hooks, or maintain an existing Dongwo installation.
openclaw skills install @cutd/dongwoDongwo keeps one local Markdown-based preference memory that multiple coding agents can share. It captures user prompts through lifecycle hooks, redacts common secrets, derives conservative preferences, and injects a short context snapshot into later turns.
[!CAUTION] Enabling lifecycle hooks is an explicit opt-in to local preference capture. Dongwo stores only prompts that look like preference or long-term-memory statements; ordinary prompts and prompts matching sensitive-data rules are skipped. Detection is imperfect. Review
.dongwo/memory/inbox/before using Dongwo in projects that handle confidential information.
myprofile.md, .dongwo/memory/, inbox,
generated context, or credentials.Read references/memory-policy.md before changing memory behavior.
Dongwo requires only:
myprofile.md and .dongwo/memory/;scripts/dongwo.py with python3;It does not require network access, credentials, elevated privileges, or access outside the configured project root.
scripts/dongwo.py: standard-library-only memory engine.myprofile.md: optional user-confirmed profile, owned by the user..dongwo/memory/inbox/: redacted, immutable prompt evidence..dongwo/memory/preferences.md: generated preference inventory..dongwo/memory/review.md: generated conflicts and low-confidence candidates..dongwo/memory/current-context.md: generated context injected into agents..dongwo/memory/state.md: generated diagnostics.Legacy vaults that already contain 03_Projects/15_懂我/memory/ continue to use
that location automatically.
Install the skill with ClawHub, then run the setup helper from the installed skill directory:
python3 scripts/setup.py --root /path/to/project
python3 scripts/setup.py --root /path/to/project --apply
The first command is a preview. The second explicitly applies the setup. The helper:
.dongwo/scripts/dongwo.py;Review the printed snippets, merge them into the project's hook configuration, and approve the hooks in each client when prompted.
Before --apply, tell the user that opted-in preference statements will be kept
locally until they remove them. Do not enable hooks on the user's behalf without
their explicit request.
For a legacy Obsidian layout, keep the existing engine path and set:
export DONGWO_ROOT=/path/to/vault
export DONGWO_HOME=/path/to/vault/03_Projects/15_懂我
Hooks should call:
python3 .dongwo/scripts/dongwo.py hook --agent codex
python3 .dongwo/scripts/dongwo.py hook --agent claude
On UserPromptSubmit, the engine:
<dongwo-memory> as additional context.On SessionStart, it rebuilds and loads context without capturing a prompt.
Hooks fail open: a memory failure must not block the user's normal agent task.
# Validate layout and rebuild generated files
python3 .dongwo/scripts/dongwo.py doctor
# Print current injectable context
python3 .dongwo/scripts/dongwo.py load
# Rebuild all generated memory from inbox evidence
python3 .dongwo/scripts/dongwo.py consolidate
# Test capture without a lifecycle hook
python3 .dongwo/scripts/dongwo.py capture \
--agent codex \
--session-id manual \
"以后默认使用中文回答。"
Set DONGWO_ROOT when commands are launched outside the project directory.
Set DONGWO_HOME to override the data directory and DONGWO_PROFILE to override
the confirmed-profile path.
When <dongwo-memory> is present:
Preference evidence remains local until the user removes it. To forget an item:
.dongwo/memory/inbox/;myprofile.md;python3 .dongwo/scripts/dongwo.py consolidate.Deleting inbox evidence is destructive. Show the matching files first and obtain
explicit confirmation before deletion. Generated files may be removed safely
because consolidate rebuilds them from remaining evidence.
When auditing or improving Dongwo:
references/memory-policy.md.python3 .dongwo/scripts/dongwo.py consolidate
python3 .dongwo/scripts/dongwo.py doctor
Completion means all generated files can be rebuilt from confirmed profile data and inbox evidence while the current prompt still has highest priority.