Context Engine for Openclaw

A smart persistence layer that maintains conversation state and project continuity across multiple AI agent sessions.

deus-pandora
v1.0.0
Mar 6, 2026
0
895
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install context-engine-deus

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-engine-deus 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 Engine?

The Context Engine is a foundational part of the Openclaw Skills library, designed to solve the problem of context loss between coding sessions. It functions as a sophisticated memory management system that tracks active projects, saves the current state of discussion, and records pending tasks. By utilizing these Openclaw Skills, developers can ensure their AI agents have a persistent understanding of project goals, allowing for a seamless transition when returning to work or switching between different codebases.

Context Engine Use Cases

  • Restoring previous progress automatically when starting a new session to avoid re-explaining project goals.
  • Managing and switching between multiple development projects using simple voice or text commands.
  • Tracking pending tasks and project notes to maintain a clear roadmap of development.
  • Retrieving a summary of work completed to quickly get back up to speed after a hiatus.

How Context Engine Works

  1. Initialization: On session_start, the engine scans for the last active project state in the local storage registry.
  2. State Tracking: During the session, it monitors topics, active files, and executed commands to build a real-time context map.
  3. Auto-Saving: The engine performs periodic heartbeats every 30 minutes and a final save on session_end to ensure no data is lost.
  4. Manual Control: Users can trigger specific actions like save_context or switch_project through natural language commands.
  5. Long-term Integration: Project summaries are periodically synced with the MEMORY.md system for archival and long-term retrieval.

Context Engine Setup

The Context Engine is a core utility within the Openclaw Skills ecosystem. To ensure it is active, verify that the scripts are located in your workspace.

# The engine manages data in the following directory:
ls /home/deus/.openclaw/workspace/memory/projects/

# Commands to interact with the engine:
# "save context"
# "switch to [project-name]"
# "show projects"

Context Engine Data Schema & Taxonomy

The skill organizes data using structured JSON files within the user's workspace to ensure portability and readability.

File Name Purpose
projects.json A central repository of all project metadata, status, and history.
session.json A temporary store for the current active session state and variables.

Stored Metadata Attributes:

  • Last topic discussed
  • Last file path modified
  • Last CLI command executed
  • List of pending tasks
  • Project status (active/paused/completed/archived)

Context Engine Advanced Features

  • Intelligent session restoration that presents a "Welcome Back" summary including pending tasks.
  • Automatic heartbeat triggers that protect project state even during unexpected session interruptions.
  • Cross-project switching that saves the current state before loading the new project context.
  • Deep integration with long-term memory systems to provide high-level project summaries over time.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*