Skip to content

Add use case: Intelligent Memory-Driven Assistant#98

Open
skele1280-commits wants to merge 3 commits into
hesamsheikh:mainfrom
skele1280-commits:add-intelligent-memory-assistant
Open

Add use case: Intelligent Memory-Driven Assistant#98
skele1280-commits wants to merge 3 commits into
hesamsheikh:mainfrom
skele1280-commits:add-intelligent-memory-assistant

Conversation

@skele1280-commits
Copy link
Copy Markdown

@skele1280-commits skele1280-commits commented Apr 3, 2026

Add use case: Intelligent Memory-Driven Assistant

What problem does this solve?

Most AI assistants are stateless - they forget context between conversations, give inconsistent recommendations, and require constant repetition of preferences. Standard OpenClaw memory is passive storage without intelligent routing or decision consistency.

What this use case provides

An upgraded OpenClaw assistant with:

  • Intelligent multi-file memory (core, decisions, daily, contacts)
  • Automatic memory routing by importance level
  • Decision intelligence that references past choices
  • Auto intent detection (execution vs strategy vs debug vs quick vs creative)

Why this is useful

  • Eliminates repetition across conversations
  • Maintains strategic consistency over weeks/months
  • Automatically organizes information without manual filing
  • Adapts response style to user intent
  • Works with FREE Groq models ($0 cost)

Verification

Tested for 3+ days with real projects:

  • News automation system (Telegram bot)
  • Learning platform development (Skecodex)
  • Daily personal assistant workflows

Confirmed working:

  • ✅ Memory persistence across restarts
  • ✅ Decision consistency in recommendations
  • ✅ Intent detection accuracy
  • ✅ Zero API costs with Groq models

Category

Productivity

Summary by CodeRabbit

  • Documentation
    • Added "Intelligent Memory-Driven Assistant" use case documentation describing a personal assistant with structured memory (core/decisions/daily/contacts), automated routing of new information to appropriate memories, decision-intelligence behavior that detects and reconfirms contradictory reversals, and auto intent detection that selects response formats. Includes setup guidance and a system prompt template for building a context-aware, consistency-preserving assistant with direct, technical response style.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 3, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'path_instructions'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ab7d035f-df48-42d8-9484-9cc1ec577f83

📥 Commits

Reviewing files that changed from the base of the PR and between ed107b8 and ccf68e6.

📒 Files selected for processing (1)
  • usecases/intelligent-memory-assistant.md
✅ Files skipped from review due to trivial changes (1)
  • usecases/intelligent-memory-assistant.md

📝 Walkthrough

Walkthrough

Added documentation for an "Intelligent Memory-Driven Assistant" use case: README index entry and a detailed guide describing a multi-file memory layout, automated routing rules for memory items, decision-intelligence checks, and an agent system prompt with auto-intent detection and response constraints.

Changes

Cohort / File(s) Summary
Intelligent Memory Assistant Documentation
README.md, usecases/intelligent-memory-assistant.md
Added README entry and a new use-case doc detailing multi-file memory structure (MEMORY.md, decisions.md, memory/YYYY-MM-DD.md, contacts.md), routing rules for storing information, decision-confirmation behavior, auto intent detection, and a complete agent system prompt and setup commands.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 I hop through files, nest thoughts by date and name,
Core rules, daily crumbs, and choices kept the same,
I check past promises before I change the plan,
Quiet, precise—your memory's little fan.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add use case: Intelligent Memory-Driven Assistant' directly and accurately summarizes the main change: introducing a new productivity use case with documentation and README entry.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@usecases/intelligent-memory-assistant.md`:
- Around line 63-67: The instruction list uses a literal placeholder
"[latest-date].md" which is not a real path; implement deterministic lookup
logic instead: add a resolver (e.g. getLatestMemoryPath or
resolveLatestMemoryFile) that scans ~/.openclaw/workspace/memory, finds the most
recent memory file by ISO date-named filenames (YYYY-MM-DD.md) or by filesystem
mtime, and returns an explicit filepath to use in the “BEFORE EVERY RESPONSE,
READ:” sequence; update the text to reference this resolver or the concrete rule
(use ISO date filenames or mtime-based selection) rather than the placeholder
"[latest-date].md".
- Around line 149-155: The heredoc that creates ~/.openclaw/workspace/MEMORY.md
(cat > ~/.openclaw/workspace/MEMORY.md << 'EOF') is missing its terminating EOF
and the closing markdown code fence; close the heredoc by adding a lone EOF on
its own line after the content and then add the closing triple backticks to end
the fenced code block so the initialization snippet is complete and
copy-pasteable.
- Around line 55-57: Before creating the system-prompt.txt file, ensure the
agent directory (~/.openclaw/agents/[YOUR-AGENT-ID]) exists by creating the
directory with parent directories (use mkdir -p semantics) and then run the
existing command to write system-prompt.txt; reference the target file name
system-prompt.txt and the agent directory ~/.openclaw/agents/[YOUR-AGENT-ID]
when making the change.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: cf96b34b-23e1-4bb2-8052-2b0e52b3bd4c

📥 Commits

Reviewing files that changed from the base of the PR and between 659895e and d1c4683.

📒 Files selected for processing (2)
  • README.md
  • usecases/intelligent-memory-assistant.md

Comment thread usecases/intelligent-memory-assistant.md
Comment on lines +63 to +67
BEFORE EVERY RESPONSE, READ:
1. ~/.openclaw/workspace/MEMORY.md (core context)
2. ~/.openclaw/workspace/memory/[latest-date].md (current work)
3. ~/.openclaw/workspace/decisions.md (past decisions)
4. ~/.openclaw/workspace/contacts.md (people)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Replace placeholder daily-memory path with deterministic lookup guidance.

[latest-date].md is a literal placeholder, not an actual file path. This can lead to invalid behavior unless resolution logic is explicitly defined.

Suggested fix
-BEFORE EVERY RESPONSE, READ:
-1. ~/.openclaw/workspace/MEMORY.md (core context)
-2. ~/.openclaw/workspace/memory/[latest-date].md (current work)
-3. ~/.openclaw/workspace/decisions.md (past decisions)
-4. ~/.openclaw/workspace/contacts.md (people)
+BEFORE EVERY RESPONSE, READ:
+1. ~/.openclaw/workspace/MEMORY.md (core context)
+2. Latest existing daily file in ~/.openclaw/workspace/memory/YYYY-MM-DD.md (current work; create today's file if missing)
+3. ~/.openclaw/workspace/decisions.md (past decisions)
+4. ~/.openclaw/workspace/contacts.md (people)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
BEFORE EVERY RESPONSE, READ:
1. ~/.openclaw/workspace/MEMORY.md (core context)
2. ~/.openclaw/workspace/memory/[latest-date].md (current work)
3. ~/.openclaw/workspace/decisions.md (past decisions)
4. ~/.openclaw/workspace/contacts.md (people)
BEFORE EVERY RESPONSE, READ:
1. ~/.openclaw/workspace/MEMORY.md (core context)
2. Latest existing daily file in ~/.openclaw/workspace/memory/YYYY-MM-DD.md (current work; create today's file if missing)
3. ~/.openclaw/workspace/decisions.md (past decisions)
4. ~/.openclaw/workspace/contacts.md (people)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@usecases/intelligent-memory-assistant.md` around lines 63 - 67, The
instruction list uses a literal placeholder "[latest-date].md" which is not a
real path; implement deterministic lookup logic instead: add a resolver (e.g.
getLatestMemoryPath or resolveLatestMemoryFile) that scans
~/.openclaw/workspace/memory, finds the most recent memory file by ISO
date-named filenames (YYYY-MM-DD.md) or by filesystem mtime, and returns an
explicit filepath to use in the “BEFORE EVERY RESPONSE, READ:” sequence; update
the text to reference this resolver or the concrete rule (use ISO date filenames
or mtime-based selection) rather than the placeholder "[latest-date].md".

Comment thread usecases/intelligent-memory-assistant.md
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