Memory Pill for Openclaw

An AI-native operating system that transforms stateless agents into disciplined orchestrators with persistent memory and structured delegation patterns.

7d-codes
v0.8.0
Feb 25, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install memory-pill

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 memory-pill 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 Memory Pill?

Memory Pill acts as a sophisticated behavioral and memory framework designed for the Openclaw Skills ecosystem. It shifts the AI from a simple chat interface to a structured orchestrator that utilizes external markdown files to maintain state, personality, and execution rules. By implementing the Main claw decides, subagents execute philosophy, it ensures that complex work is delegated efficiently while the main session remains focused on routing and decision-making.

The system is built around a collection of specialized files like SOUL.md, which defines personality and boundaries, and AGENTS.md, which acts as a technical rulebook. This structure prevents common AI issues such as corporate boilerplate, lack of boundaries, and session-to-session amnesia, providing a consistent and high-functioning developer experience.

Memory Pill Use Cases

  • Orchestrating complex coding tasks by spawning specialized subagents for execution.
  • Maintaining long-term user preferences and project facts across multiple AI sessions.
  • Enforcing strict behavioral guidelines to eliminate generic AI 'corporate speak' and assistant platitudes.
  • Managing multi-project workspaces with dedicated BRAIN.md files for task tracking and state management.

How Memory Pill Works

  1. Audit: Upon activation, the skill audits the existing workspace to identify broken patterns or missing files.
  2. Smart Merge: It enhances existing personality and rule files without destroying previous user customizations.
  3. Infrastructure Setup: The skill creates a standardized directory structure for projects, memory, facts, and tasks.
  4. Activation: Through the 'Take the Pill' flow, the agent internalizes the new rules and begins acting as an orchestrator.
  5. Execution: The main agent manages routing and routing while spawning subagents for 'real work' like file creation or research.
  6. Memory Retention: All decisions and facts are logged in daily files and extracted into a long-term knowledge base.

Memory Pill Setup

To initialize the system within your environment, use the following activation command in your chat session:

# Trigger the activation flow
Take the pill

The agent will then execute the directory creation automatically:

mkdir -p ~/.openclaw/workspace/{projects,people,areas,clients,decisions,skills,resources,tasks,archives,memory/{daily,facts}}

Memory Pill Data Schema & Taxonomy

The skill organizes data through a specific hierarchy of Markdown and JSON files within the workspace:

File/Folder Purpose
SOUL.md Defines personality, beliefs, and behavioral boundaries.
AGENTS.md Contains technical rules, session initialization steps, and safety protocols.
BRAIN.md Acts as short-term working memory for specific complex tasks.
/projects/ Contains summary.md and items.json for tracking project milestones.
/memory/daily/ Stores time-stamped logs of activities and decisions for each day.
/memory/facts/ Stores extracted universal truths and user preferences in JSON format.

Memory Pill Advanced Features

  • Orchestrator Spawning: Automatically generates detailed prompts for subagents to handle implementation work.
  • Smart Pattern Recognition: Detects and removes 'corporate' AI phrases to maintain a clean, professional voice.
  • Wiki-Link Compatibility: Uses obsidian-style links for cross-referencing files and projects.
  • Fact Extraction: Automatically parses daily logs to move permanent user preferences into a structured data store.
  • Execution Discipline: Implements Objective Lock and Task Decomposition before any non-trivial work begins.
  • Heartbeat Monitoring: Uses a specialized task file to track pending items and stuck subagents across the Openclaw Skills environment.

SKILL.md


Loading

Related Openclaw Skills

Featured*