/install enhanced-modes
Enhanced Agent Modes 🦞
Three working modes: Explore (read-only), Plan (think before act), Verify (check results). Plus feature flags for toggling capabilities.
Inspired by Claude Code source leak analysis (v2.1.88)
Installation
npx clawhub install enhanced-modes
# or
npx clawhub install \x3Cthis-skill-repo>
Quick Reference
| Command | Function |
|---|---|
/mode explore |
Switch to read-only exploration mode |
/mode plan |
Switch to planning mode (think before acting) |
/mode verify |
Switch to verification mode (check after doing) |
/mode normal |
Return to normal mode |
/features |
Show available feature flags |
/features enable \x3Cname> |
Enable a feature |
/features disable \x3Cname> |
Disable a feature |
Explore Mode
When user types /mode explore or asks to "search only":
- System prompt: "You are in EXPLORE MODE - READ ONLY. Do NOT modify any files. Do NOT execute commands that change state."
- Tool restrictions:
- ✅ READ: FileRead, Glob, Grep, WebFetch
- ❌ DENY: FileWrite, FileEdit, Bash, exec
- Response format: Provide findings as analysis, not actions
- Exit: User says "exit explore" or
/mode normal
Plan Mode
When user types /mode plan or asks to "plan first":
- System prompt: "You are in PLAN MODE - Think before acting. Analyze the request, consider approaches, then present a plan before executing."
- Behavior:
- Analyze request thoroughly
- Consider 2-3 alternative approaches
- Present pros/cons of each
- Wait for user approval before executing
- Exit: User approves plan or says "exit plan" or
/mode normal
Verify Mode
When user types /mode verify or asks to "verify results":
- System prompt: "You are in VERIFY MODE - Check results after actions. Do not assume success. Verify each step."
- Behavior:
- After any action, verify the outcome
- Check file contents, command output, API responses
- Report actual vs expected results
- Flag any discrepancies
- Exit: User says "exit verify" or
/mode normal
Feature Flags
Features can be enabled/disabled dynamically:
| Feature | Default | Description |
|---|---|---|
deep_thinking |
true | Enable extended reasoning for complex problems |
auto_memory |
false | Automatically consolidate memories periodically |
coordinator_mode |
false | Enable multi-worker coordination |
wal_protocol |
true | Write corrections/decisions before responding |
working_buffer |
true | Log exchanges in danger zone (>60% context) |
explore_agent |
true | Enable built-in Explore Agent |
plan_agent |
true | Enable built-in Plan Agent |
verify_agent |
false | Enable built-in Verification Agent |
proactive_checkins |
false | Periodic proactive suggestions |
autonomous_crons |
false | Background autonomous tasks |
Using Features
/features # Show all features
/features enable auto_memory
/features disable verify_agent
Auto-Memory Consolidation
When auto_memory feature is enabled:
Trigger Conditions
- Context > 60% (danger zone entered)
- Session ends
- User requests consolidation
Process
- Scan daily memory files for important content
- Extract decisions, preferences, context
- Update long-term memory
- Archive raw notes
Background Tasks
When autonomous_crons feature is enabled:
Task Types
| Type | Trigger | Execution |
|---|---|---|
systemEvent |
Timer fires | Prompt to main session |
isolated agentTurn |
Timer fires | Spawn sub-agent |
When to Use Each
- systemEvent: Interactive tasks needing user attention
- isolated agentTurn: Background maintenance, checks, updates
Architecture
skills/enhanced-modes/
├── SKILL.md # This file
└── assets/
└── SESSION-STATE.md # Mode and feature state
Credits
- Inspired by Claude Code source leak (v2.1.88)
- Patterns adapted from Proactive Agent skill
- Feature flag system inspired by GrowthBook
License
MIT - Free to use, modify, distribute
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install enhanced-modes - After installation, invoke the skill by name or use
/enhanced-modes - Provide required inputs per the skill's parameter spec and get structured output
What is Enhanced Agent Modes?
Provides three modes—Explore (read-only), Plan (analyze before acting), and Verify (check results)—plus feature flags to toggle capabilities dynamically. It is an AI Agent Skill for Claude Code / OpenClaw, with 100 downloads so far.
How do I install Enhanced Agent Modes?
Run "/install enhanced-modes" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Enhanced Agent Modes free?
Yes, Enhanced Agent Modes is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Enhanced Agent Modes support?
Enhanced Agent Modes is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Enhanced Agent Modes?
It is built and maintained by Mayiv-Ai (@mayiv-ai); the current version is v1.0.0.