DevMind Integration for OpenClaw
DevMind provides your agent with persistent memory, context slicing, and deep codebase understanding.
Canonical Flow
Always operate in this order:
- Design system
- Overall context
- Database checks
Setup
Ensure devmind is available in your environment.
npm install -g devmind
devmind openclaw-plugin --force
devmind design-system --init
devmind generate --all
Capabilities
1. Design System First
Initialize and enforce UI consistency before code/database work.
devmind design-system --init
devmind audit
devmind retrieve -q "design tokens and wrappers" --type design-system --json
2. Overall Context (Codebase Navigation)
Instead of reading all files, use devmind context to get a map.
# Get high-level map
devmind context
# Focus on a specific module
devmind context --focus src/database
# Search generated context
devmind context --query runbook
# Retrieve focused section context
devmind retrieve -q "auth middleware flow" --type architecture --json
3. Persistent Memory (Learning)
When you make a decision or learn a pattern, save it.
devmind learn "Always use repository pattern for DB access" --category "architecture"
Note: This saves to LEARN.md so future agents (including you) can access it.
4. Database Awareness
Before writing SQL or modifying schema, analyze usage.
devmind analyze
5. History Tracking
See what changed recently to understand current state.
devmind history
Workflow Example
- Design system first:
- Ensure
.devmind/design-system.jsonexists (devmind design-system --init).
- Ensure
- Preflight:
- Run
devmind status --json. - If stale/missing, run the returned
recommendedCommand. - Re-run
devmind status --json.
- Run
- Start task:
- Use
devmind retrieveordevmind contextfor focused context.
- Use
- Execute:
- If modifying DB:
devmind analyze(anddevmind validateif needed).
- If modifying DB:
- Finish:
devmind learnany new patterns.devmind autosave --source task-endfor crash-safe persistence.devmind scanwhen structure changed.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.