openclaw-memory-vectorize: Instructions file for Codex

AGENTS.md

openclaw-memory-vectorize AGENTS.md is an instructions file for Codex, OpenCode from Atlas-Os1/openclaw-memory-vectorize. It costs 1,081 tokens per session, scanned A, original, MIT.

Setup instructions for an OpenClaw and Hermes plugin that stores agent memories in Cloudflare Vectorize, a service for searching data by meaning.

In plain words
What is it for?
Setting up persistent memory for agents, including deploying the Cloudflare worker and connecting it to OpenClaw or Hermes.
Why use it?
They describe the commands needed to install dependencies, create the memory database indexes, deploy the worker, and install the integrations.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; built for openclaw.

This is Atlas-Os1/openclaw-memory-vectorize's own configuration. It tells Codex and OpenCode how to work on openclaw-memory-vectorize itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openclaw-memory-vectorize configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Atlas-Os1/openclaw-memory-vectorize. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Atlas-Os1/openclaw-memory-vectorize/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Atlas-Os1/openclaw-memory-vectorize

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openclaw-memory-vectorize AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/atlas-os1/openclaw-memory-vectorize/agents-md/github.svg)](https://agentmods.dev/instructions/atlas-os1/openclaw-memory-vectorize/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/atlas-os1/openclaw-memory-vectorize/agents-md"><img src="https://agentmods.dev/badge/instructions/atlas-os1/openclaw-memory-vectorize/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openclaw-memory-vectorize AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/atlas-os1/openclaw-memory-vectorize/agents-md"><img src="https://agentmods.dev/badge/instructions/atlas-os1/openclaw-memory-vectorize/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,081 This file is loaded in full into every session.
When invoked 1,081 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01081 $0.01081
Opus 5.5 $0.00432 $0.00432
Sonnet 5.5 $0.00216 $0.00216
Haiku 4.5 $0.00108 $0.00108

Measured 2mo ago against content hash 34a46b8a6143, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openclaw-memory-vectorize AGENTS.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:8787/health
AGENTS.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

For AI agents (Claude Code, Cursor, Copilot, etc.): This file tells you how to work with this repo.


Quick Setup (Execute These Commands)

# 1. Install dependencies
cd worker && npm install && cd ..

# 2. Create Vectorize index (skip if exists)
npx wrangler vectorize create agent-memories --dimensions=768 --metric=cosine
npx wrangler vectorize create-metadata-index agent-memories --property-name=agent --type=string
npx wrangler vectorize create-metadata-index agent-memories --property-name=type --type=string

# 3. Deploy worker
cd worker && npx wrangler deploy && cd ..

# 4. Install plugin (for OpenClaw users)
mkdir -p ~/.openclaw/extensions/memory-vectorize
cp plugin/index.ts ~/.openclaw/extensions/memory-vectorize/
cp plugin/openclaw.plugin.json ~/.openclaw/extensions/memory-vectorize/

# 5. Install memory provider (for Hermes users)
mkdir -p "$HERMES_HOME/plugins/openclaw-memory-vectorize"
cp __init__.py plugin.yaml "$HERMES_HOME/plugins/openclaw-memory-vectorize/"

Project Overview

OpenClaw and Hermes plugin for persistent agent memory using Cloudflare Vectorize + Workers AI.

What it does:

  • Stores memories as vector embeddings
  • Auto-recalls relevant context before agent responses
  • Auto-captures decisions, corrections, preferences after responses
  • Registers as the openclaw-memory-vectorize Hermes memory provider

Structure

├── worker/                    # Cloudflare Worker (API)
│   ├── src/index.ts          # ← MAIN FILE: All endpoints
│   ├── wrangler.jsonc        # Cloudflare config
│   └── package.json
├── plugin/                    # OpenClaw integration
│   ├── index.ts              # ← MAIN FILE: Lifecycle hooks
│   └── openclaw.plugin.json  # Plugin manifest
├── scripts/                   # CLI
│   └── memory_cli.py          # search / index / index-all / health / stats
├── README.md                  # User documentation
└── AGENTS.md                  # This file

Key Files to Modify

Read the full file on GitHub · 152 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 152 lines · 1,081 tokens per session scan A 34a46b8a6143

Subscribe to this mod's changes

openclaw-memory-vectorize AGENTS.md is an instructions file published in the GitHub repository Atlas-Os1/openclaw-memory-vectorize (2 stars, last pushed 2mo ago), licensed MIT. It adds 1,081 tokens to every session, about $0.0043 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

openclaw-memory-vectorize AGENTS.md compared with instructions from other repositories

openclaw-memory-vectorize AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openclaw-memory-vectorize AGENTS.mdAtlas-Os1/openclaw-memory-vectorizeInstructions file22mo agoMITA1,081Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode