Xpersona
C

Context Engine

CLAWHUB · Unverified

Maintains and restores conversation and project context across sessions, tracks projects, tasks, and notes, and supports switching and summarizing projects.

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fbpc92sh6w1wv7fr57kk2f9845bs4:deus-context-engine
  1. Install using `clawhub skill install s17fbpc92sh6w1wv7fr57kk2f9845bs4:deus-context-engine` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/deus-pandora/deus-context-engine before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-deus-pandora-deus-context-engine/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

19,833 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: context-engine
description: Smart Context Engine - Maintains conversation state and project continuity across OpenClaw sessions. Tracks active projects, saves/restores context, and provides project management. Use when: (1) starting a new session and wanting to restore previous context, (2) working on a specific project and wanting to track progress, (3) switching between projects, (4) asking "what are we working on" or "where did we leave off", (5) wanting to save current context manually.

metadata:
  claname: context-engine
  category: memory
  tags:
    - memory
    - context
    - projects
    - workflow
  version: 1.0.0
  author: Community
  license: MIT

requires:
  env: []
  bins: []
  config: []

files:
  - scripts/*
  - "*.md"
---

# Context Engine

Smart Context Engine maintains conversation state and project continuity across OpenClaw sessions.

## Quick Start

The context engine automatically:
- Restores your last active project on session start
- Saves context periodically (heartbeat) and on session end
- Tracks pending tasks and notes per project

### Commands

- **"remember" / "save context"** - Manually save current context
- **"switch to [project]"** - Switch to a project (creates if doesn't exist)
- **"show projects" / "what are we working on"** - List all projects
- **"summarize" / "where did we leave off"** - Get project summary

## Storage

Projects are stored in: `/home/deus/.openclaw/workspace/memory/projects/`

- `projects.json` - All project data
- `session.json` - Current session state

## Actions

### save_context

Saves the current context including:
- Last topic discussed
- Last file worked on
- Last command executed
- Pending tasks
- Notes

**Trigger:** Explicit mention ("remember", "save context"), session_end, heartbeat

### restore_context

Restores the previous session's context:
- Loads last active project
- Shows "Welcome back to [project]"
- Lists pending tasks if any

**Trigger:** session_start, explicit request

### switch_project

Switches between projects:
- Saves current project context
- Loads or creates new project
- Sets as active

**Trigger:** Explicit mention ("switch to X")

### list_projects

Lists all projects with status indicators:
- Shows active project highlighted
- Displays status (active/paused/completed/archived)
- Shows last session date

**Trigger:** Explicit mention ("show projects", "what are we working on")

### summarize

Generates a summary of the active project:
- Current status
- Pending tasks
- Last topic
- Session history

**Trigger:** Explicit mention ("summarize", "where did we leave off")

## Triggers

| Trigger | Condition | Priority |
|---------|-----------|----------|
| session_start | New session begins | 1 |
| explicit_mention | User says "remember", "save context", "project", "switch to", "show projects", "summarize" | 2 |
| heartbeat | Every ~30 min when enabled | 3 |

## Integration

Works with the MEMORY.md system - updates long-term memory with project sum

_meta.json

{
  "ownerId": "kn745h519bv0wxnfq9k7334nj181hbr1",
  "slug": "deus-context-engine",
  "version": "2.0.0",
  "publishedAt": 1775209525225
}

references/API.md

# Context Engine API Reference

## Commands

```bash
# List all projects
node context-engine.js list

# Create a new project
node context-engine.js create "Project Name" "Description"

# Switch to a project (creates if doesn't exist)
node context-engine.js switch "Project Name"

# Get active project
node context-engine.js get-active

# Get project by ID
node context-engine.js get "project-id"

# Save context (JSON string)
node context-engine.js save '{"lastTopic": "topic", "lastFile": "file.txt"}'

# Restore context (session start)
node context-engine.js restore

# Summarize active project
node context-engine.js summarize

# Add pending task
node context-engine.js add-task "Task description"

# Remove pending task by index
node context-engine.js remove-task 0

# Set project status
node context-engine.js set-status "paused"

# Heartbeat (periodic save)
node context-engine.js heartbeat
```

## Data Storage

- **Projects:** `/home/deus/.openclaw/workspace/memory/projects/projects.json`
- **Session:** `/home/deus/.openclaw/workspace/memory/projects/session.json`

## Project Schema

```json
{
  "id": "string",
  "name": "string",
  "description": "string",
  "status": "active|paused|completed|archived",
  "createdAt": "ISO8601",
  "updatedAt": "ISO8601",
  "lastSessionAt": "ISO8601",
  "sessionCount": "number",
  "context": {
    "lastTopic": "string",
    "lastFile": "string",
    "lastCommand": "string",
    "pendingTasks": ["string"],
    "notes": "string"
  },
  "metadata": {
    "tags": ["string"],
    "custom": {}
  }
}
```

CHANGELOG.md

# Changelog

## [1.0.0] - 2026-02-19

### Added
- Initial release
- save_context action - saves topic, file, command, pending tasks, notes
- restore_context action - restores project on session start
- switch_project action - switches between projects
- list_projects action - lists all projects with status
- summarize action - generates project summary
- add-task, remove-task, set-status, heartbeat辅助 actions
- Storage in /home/deus/.openclaw/workspace/memory/projects/
- Triggers: session_start, explicit mentions, heartbeat

skill-card.md

## Description:

Maintains conversation state and project continuity across OpenClaw sessions by tracking active projects, saving and restoring context, and supporting project management.

This skill is ready for commercial/non-commercial use.

## Publisher:

[deus-pandora](https://clawhub.ai/user/deus-pandora)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent users use this skill to preserve project context across sessions, restore the last active project, track pending tasks and notes, and switch between active projects.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Saved project context may include sensitive notes, filenames, commands, tasks, or other confidential session details.

Mitigation: Avoid saving secrets or confidential notes, periodically review the persisted JSON files, and clear records that are no longer needed.

Risk: The skill persists memory in local JSON files, so context can remain available across future sessions on the same environment.

Mitigation: Use the skill only when persistent project context is desired and tighten local filesystem permissions where appropriate.

## Reference(s):

- [Context Engine skill page](https://clawhub.ai/deus-pandora/skills/deus-context-engine)
- [Context Engine API Reference](references/API.md)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with command examples and JSON-backed project context records]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Persists project and session context in local JSON files under the documented memory directory.]

## Skill Version(s):

2.0.0 (source: server release metadata; artifact frontmatter and changelog report 1.0.0)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Context Engine and adjacent AI workflows.