Context Switcher for Openclaw

A smart context management tool that dynamically adjusts your AI agent's behavior and environment based on your current life mode.

taha2053
v1.0.0
Feb 20, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install context-switcher

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install context-switcher using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Context Switcher?

The Context Switcher is a specialized utility designed to align your AI experience with your immediate goals. By defining specific modes like Work, Personal, Creative, and Do Not Disturb, this skill allows OpenClaw to intelligently filter notifications, load relevant memory contexts, and adjust its communication style. It ensures that when you are in deep work, your AI assistant isn't a distraction, but a focused collaborator, and when you transition to personal time, it respects your boundaries and shifts its tone accordingly.

This system is a prime example of how Openclaw Skills can transform a standard AI interface into a truly context-aware personal assistant. By maintaining local state and utilizing trigger-based logic, it provides a seamless transition between different phases of your day without manual overhead.

Context Switcher Use Cases

  • Transitioning into deep work or "Heads Down" sessions to eliminate digital noise and mute non-urgent notifications.
  • Switching to personal mode after work hours to silence professional channels and surface personal tasks or errands.
  • Engaging in creative brainstorming where the agent adopts an expansive, "yes-and" response style to encourage exploration.
  • Enabling Do Not Disturb (DND) during meetings or sleep, while maintaining a silent log of important events for later review.
  • Automatically triggering mode changes based on calendar event titles such as "standup", "sprint", or "dinner".

How Context Switcher Works

  1. The skill detects a trigger via natural language input (e.g., "focus mode") or a calendar event match.
  2. It takes a snapshot of the current state, saving active memory focus to a local pre-switch-state.json file.
  3. The target mode profile is applied by loading specific Markdown files from the modes directory and applying notification filtering rules.
  4. OpenClaw confirms the switch with a brief, mode-appropriate message to the user.
  5. An auto-restore timer is established based on calendar event end times or a user-specified duration.
  6. Upon session completion, the system restores the previous context and delivers a "while you were away" summary of tasks and messages.

Context Switcher Setup

To install and configure the Context Switcher, follow these steps to integrate it with your existing Openclaw Skills environment:

  1. Customize Profiles: Edit the markdown files located in ~/.openclaw/skills/context-switcher/modes/ to include your specific projects and priorities.
  2. Set Default Durations: Define fallback timers for each mode if no calendar data is available.
  3. Calendar Integration: Optionally connect your calendar to enable autonomous mode switching based on scheduled events.

To reconfigure the skill at any time, use the following command:

# Trigger the reconfiguration process
openclaw call context-switcher "reconfigure context-switcher"

Context Switcher Data Schema & Taxonomy

The skill maintains a local file structure to ensure privacy and persistence. No data is transmitted to external servers.

File/Folder Description
current-context.json Tracks the active mode and its live state tracker.
modes/*.md Markdown profiles (work.md, personal.md, creative.md) defining mode-specific context.
snapshots/pre-switch-state.json Stores the environment state before a context shift occurs.
snapshots/dnd-log.json A silent log of messages and tasks received during Do Not Disturb sessions.
scripts/*.sh Core logic scripts for switching, restoring, and generating catch-up summaries.

Context Switcher Advanced Features

  • Intelligent Auto-Restore: Automatically returns to previous states based on calendar event end times or custom timers.
  • Catch-up Summarization: Generates a concise report of missed notifications and tasks during focused sessions so you never miss a beat.
  • Autonomous Triggering: Monitors calendar titles for keywords like "sprint", "brainstorm", or "gym" to switch modes without manual input.
  • Local-First Privacy: All data processing and state storage occur entirely on your machine, maintaining the high security standards of Openclaw Skills.
  • Custom Mode Logic: Users can define unique response styles and notification filters by modifying the mode-specific configuration files.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*