Skip to content

feat(openclaw): add agent behavioral skill + directive guidance (0.6.12)#126

Merged
wey-gu merged 1 commit intomainfrom
dev_0611
Mar 15, 2026
Merged

feat(openclaw): add agent behavioral skill + directive guidance (0.6.12)#126
wey-gu merged 1 commit intomainfrom
dev_0611

Conversation

@wey-gu
Copy link
Copy Markdown
Member

@wey-gu wey-gu commented Mar 15, 2026

Register skills/memory-guide/SKILL.md via manifest skills[] array so OpenClaw auto-discovers it. The skill teaches the agent when and how to search, save, explore connections, and fetch threads — the single biggest change for memory recall quality.

Rewrite behavioral.js to use directive "Before answering questions about prior work, decisions, dates, people, preferences, or plans: search" instead of passive "When prior context would improve your response." Explicitly notes "natural language queries, not file paths" to counter OpenClaw's built-in file-based memory section.

Summary by CodeRabbit

  • New Features

    • Added memory-guide skill with capabilities for search, save, timeline exploration, connection browsing, and working memory access.
  • Improvements

    • Memory search is now active before answering questions about prior work, decisions, people, preferences, and plans.
    • Two-layer deduplication system for improved memory management.
    • Enhanced session context behavior for more efficient recall.
  • Documentation

    • Updated behavioral guidance with new memory search semantics.

Register skills/memory-guide/SKILL.md via manifest skills[] array so
OpenClaw auto-discovers it. The skill teaches the agent when and how to
search, save, explore connections, and fetch threads — the single biggest
change for memory recall quality.

Rewrite behavioral.js to use directive "Before answering questions about
prior work, decisions, dates, people, preferences, or plans: search"
instead of passive "When prior context would improve your response."
Explicitly notes "natural language queries, not file paths" to counter
OpenClaw's built-in file-based memory section.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wey-gu wey-gu merged commit 5429f88 into main Mar 15, 2026
1 check was pending
@wey-gu wey-gu deleted the dev_0611 branch March 15, 2026 15:08
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 15, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bb245886-62cb-43c9-9063-cb457836441c

📥 Commits

Reviewing files that changed from the base of the PR and between 69b63d3 and 146f053.

📒 Files selected for processing (7)
  • nowledge-mem-openclaw-plugin/CHANGELOG.md
  • nowledge-mem-openclaw-plugin/CLAUDE.md
  • nowledge-mem-openclaw-plugin/README.md
  • nowledge-mem-openclaw-plugin/openclaw.plugin.json
  • nowledge-mem-openclaw-plugin/package.json
  • nowledge-mem-openclaw-plugin/skills/memory-guide/SKILL.md
  • nowledge-mem-openclaw-plugin/src/hooks/behavioral.js

📝 Walkthrough

Walkthrough

This release introduces version 0.6.12 of the nowledge-mem-openclaw-plugin, adding a new memory-guide behavioral skill registered via the OpenClaw manifest. The skill provides comprehensive memory operations (search, save, connections, timelines, threads, working memory). Behavioral guidance updated to direct proactive memory search before answering questions about prior work, decisions, dates, people, preferences, or plans.

Changes

Cohort / File(s) Summary
Release & Manifest Configuration
CHANGELOG.md, openclaw.plugin.json, package.json
Version bump from 0.6.11 to 0.6.12; added skills field to plugin manifest and updated package distribution files list to include skills directory.
Documentation Updates
CLAUDE.md, README.md
Updated terminology from "behavioral hook" to "behavioral skill"; expanded descriptions of memory guidance, deduplication logic, session context interactions, and two-layer recall approach; clarified memory search semantics and thread access patterns.
Memory-Guide Skill Definition
skills/memory-guide/SKILL.md
New documentation defining the memory-guide skill with sections for semantic search, structured memory saving, connection exploration, timeline browsing, thread retrieval, and working memory operations; includes usage examples and behavioral constraints.
Behavioral Guidance Logic
src/hooks/behavioral.js
Rewrote guidance text in BASE_GUIDANCE and SESSION_CONTEXT_GUIDANCE to direct proactive memory searches using natural language queries before answering about prior work, decisions, people, preferences, or plans; specified that searches return memories with scores, labels, and thread snippets; updated save triggers to decisions, preferences, plans, and learning outcomes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

🐰 A memory burrows deep and wide,
Search with purpose, let none hide,
Skills now guide the agent's way,
Through time's warren, come what may! 🌿✨

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev_0611
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant