Search

PythonReactSEOPDF
OpenClaw

openclaw-memories

Agent memory with ALMA meta-learning, LLM fact extraction, and full-text search. Observer calls remote LLM APIs (OpenAI/Anthropic/Gemini). ALMA and Indexer work offline.

arosstale0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install arosstale/openclaw-memories

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

OpenClaw Memory System

Three components for agent memory:

  1. ALMA — Evolves memory designs through mutation + evaluation (offline)
  2. Observer — Extracts structured facts from conversations via LLM API (requires API key)
  3. Indexer — Full-text search over workspace Markdown files (offline)

Environment Variables

Observer requires one of:

  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY
  • Or pass apiKey in config

ALMA and Indexer require no keys or network access.

How It Works

ALMA (Algorithm Learning via Meta-learning Agents)

Proposes memory system designs, evaluates them, keeps the best. Uses gaussian mutation and simulated annealing to explore the design space.

alma.propose() → design
alma.evaluate(design.id, metrics) → score  
alma.best() → top design
alma.top(5) → leaderboard
Observer

Sends conversation history to an LLM, gets back structured facts:

  • Kind: world fact / biographical / opinion / observation
  • Priority: high / medium / low
  • Entities: mentioned people/places
  • Confidence: 0.0–1.0 for opinions

Fails gracefully — returns empty array if LLM is unavailable.

Indexer

Chunks workspace Markdown files and indexes them for search:

  • MEMORY.md — core facts
  • memory/YYYY-MM-DD.md — daily logs
  • bank/entities/*.md — entity summaries
  • bank/opinions.md — beliefs with confidence
indexer.index() → count of chunks indexed
indexer.search('query') → ranked results
indexer.rebuild() → re-index from scratch

Install

npm install @artale/openclaw-memory

Limitations

  • Indexer uses an in-memory mock database, not real SQLite FTS5. Search works but ranking is simplified.
  • Observer calls remote APIs — not offline. Only ALMA and Indexer work without network.
  • No dashboard — removed in v2 for simplicity.

Source

5 files, 578 lines, 0 runtime dependencies.

https://github.com/arosstale/openclaw-memory

Source information

Source
github
Repository
openclaw/skills
Path
skills/arosstale/openclaw-memories
Version
—
Commit
ef3cedf214b6a3712c38e6a8f01a4809527c20bc
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

openclaw-memory

Memory system for OpenClaw agents. Three components:

  • ALMA — meta-learning optimizer that evolves memory designs
  • Observer — extracts structured facts from conversations via LLM (OpenAI/Anthropic/Gemini)
  • Indexer — full-text search over workspace Markdown files

Install

npm install @artale/openclaw-memory

Usage

import { ALMAAgent, ObserverAgent, MemoryIndexer } from '@artale/openclaw-memory';

// ALMA: evolve memory designs
const alma = new ALMAAgent({
  constraints: { chunkSize: { min: 100, max: 1000, type: 'number' } }
});
const design = alma.propose();
alma.evaluate(design.id, { accuracy: 0.9, speed: 0.8 });
console.log(alma.best());

// Observer: extract facts (requires LLM API key)
const observer = new ObserverAgent({
  provider: 'anthropic',  // or 'openai' or 'gemini'
  apiKey: process.env.ANTHROPIC_API_KEY,
});
const facts = await observer.extract([
  { role: 'user', content: 'Alice prefers TypeScript over Python' }
]);

// Indexer: search workspace files
const indexer = new MemoryIndexer({ workspace: './my-workspace' });
indexer.index();
const results = indexer.search('TypeScript');

Environment Variables

Observer requires an LLM API key (one of):

  • OPENAI_API_KEY — for OpenAI provider
  • ANTHROPIC_API_KEY — for Anthropic provider

ALMA and Indexer work fully offline with zero dependencies.

OpenClaw Skill

Drop into your workspace to use as a skill:

cd ~/.openclaw/workspace/skills
git clone https://github.com/arosstale/openclaw-memory

Architecture

  • 5 source files, 578 lines, 0 runtime dependencies
  • In-memory database (no native modules, works everywhere)
  • Observer calls remote LLM APIs when configured — not offline
  • ALMA and Indexer are fully offline

License

MIT

Extracted content

SKILL.md
# OpenClaw Memory System

Three components for agent memory:

1. **ALMA** — Evolves memory designs through mutation + evaluation (offline)
2. **Observer** — Extracts structured facts from conversations via LLM API (requires API key)
3. **Indexer** — Full-text search over workspace Markdown files (offline)

## Environment Variables

Observer requires one of:
- `OPENAI_API_KEY`
- `ANTHROPIC_API_KEY`
- Or pass `apiKey` in config

ALMA and Indexer require no keys or network access.

## How It Works

### ALMA (Algorithm Learning via Meta-learning Agents)
Proposes memory system designs, evaluates them, keeps the best. Uses gaussian mutation and simulated annealing to explore the design space.

```
alma.propose() → design
alma.evaluate(design.id, metrics) → score  
alma.best() → top design
alma.top(5) → leaderboard
```

### Observer
Sends conversation history to an LLM, gets back structured facts:
- Kind: world fact / biographical / opinion / observation
- Priority: high / medium / low
- Entities: mentioned people/places
- Confidence: 0.0–1.0 for opinions

Fails gracefully — returns empty array if LLM is unavailable.

### Indexer
Chunks workspace Markdown files and indexes them for search:
- `MEMORY.md` — core facts
- `memory/YYYY-MM-DD.md` — daily logs
- `bank/entities/*.md` — entity summaries
- `bank/opinions.md` — beliefs with confidence

```
indexer.index() → count of chunks indexed
indexer.search('query') → ranked results
indexer.rebuild() → re-index from scratch
```

## Install

```bash
npm install @artale/openclaw-memory
```

## Limitations

- Indexer uses an in-memory mock database, not real SQLite FTS5. Search works but ranking is simplified.
- Observer calls remote APIs — not offline. Only ALMA and Indexer work without network.
- No dashboard — removed in v2 for simplicity.

## Source

5 files, 578 lines, 0 runtime dependencies.

https://github.com/arosstale/openclaw-memory
README
# openclaw-memory

Memory system for OpenClaw agents. Three components:

- **ALMA** — meta-learning optimizer that evolves memory designs
- **Observer** — extracts structured facts from conversations via LLM (OpenAI/Anthropic/Gemini)
- **Indexer** — full-text search over workspace Markdown files

## Install

```bash
npm install @artale/openclaw-memory
```

## Usage

```typescript
import { ALMAAgent, ObserverAgent, MemoryIndexer } from '@artale/openclaw-memory';

// ALMA: evolve memory designs
const alma = new ALMAAgent({
  constraints: { chunkSize: { min: 100, max: 1000, type: 'number' } }
});
const design = alma.propose();
alma.evaluate(design.id, { accuracy: 0.9, speed: 0.8 });
console.log(alma.best());

// Observer: extract facts (requires LLM API key)
const observer = new ObserverAgent({
  provider: 'anthropic',  // or 'openai' or 'gemini'
  apiKey: process.env.ANTHROPIC_API_KEY,
});
const facts = await observer.extract([
  { role: 'user', content: 'Alice prefers TypeScript over Python' }
]);

// Indexer: search workspace files
const indexer = new MemoryIndexer({ workspace: './my-workspace' });
indexer.index();
const results = indexer.search('TypeScript');
```

## Environment Variables

Observer requires an LLM API key (one of):
- `OPENAI_API_KEY` — for OpenAI provider
- `ANTHROPIC_API_KEY` — for Anthropic provider

ALMA and Indexer work fully offline with zero dependencies.

## OpenClaw Skill

Drop into your workspace to use as a skill:
```bash
cd ~/.openclaw/workspace/skills
git clone https://github.com/arosstale/openclaw-memory
```

## Architecture

- **5 source files, 578 lines, 0 runtime dependencies**
- In-memory database (no native modules, works everywhere)
- Observer calls remote LLM APIs when configured — not offline
- ALMA and Indexer are fully offline

## License

MIT

Related skills

OpenClaw

ai-maestro

23blocks-os

AI Agent Orchestrator with Skills System - Give AI Agents superpowers: memory search, code graph queries, agent-to-agent messaging. Manage Claude, Codex or any AI Agent from one dashboard. Move Agents between c...

OpenClaw

registry-broker-skills

hashgraph-online

AI agent skills for the Universal Registry - search, chat, and register 72,000+ agents across 14+ protocols. Works with Claude, Codex, Cursor, OpenClaw, and any AI assistant.

OpenClaw

skills-manager

rito-w

A cross-platform skills manager for AI IDEs. Search marketplace, download locally, and install to Claude, Cursor, Windsurf, and more with one click.