openmemory-plus: Instructions file for Codex

AGENTS.md

openmemory-plus AGENTS.md is an instructions file for Codex, OpenCode from Alenryuichi/openmemory-plus. It costs 1,017 tokens per session, scanned A, original, MIT.

Project instructions for OpenMemory Plus, a TypeScript and Node.js command-line tool that installs and configures a two-layer memory system for AI agents. The guide describes its structure, commands, and development setup.

In plain words
What is it for?
Installing dependencies, developing, building, testing, and checking the OpenMemory Plus CLI and its templates.
Why use it?
It gives coding agents the project context and commands they need to work on the repository consistently.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is Alenryuichi/openmemory-plus's own configuration. It tells Codex and OpenCode how to work on openmemory-plus 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 openmemory-plus configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Alenryuichi/openmemory-plus. 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/Alenryuichi/openmemory-plus/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Alenryuichi/openmemory-plus

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 openmemory-plus AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/alenryuichi/openmemory-plus/agents-md/github.svg)](https://agentmods.dev/instructions/alenryuichi/openmemory-plus/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/alenryuichi/openmemory-plus/agents-md"><img src="https://agentmods.dev/badge/instructions/alenryuichi/openmemory-plus/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 openmemory-plus AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/alenryuichi/openmemory-plus/agents-md"><img src="https://agentmods.dev/badge/instructions/alenryuichi/openmemory-plus/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,017 This file is loaded in full into every session.
When invoked 1,017 The same file — it is already loaded in full.
Security scan A 0 findings. 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.01017 $0.01017
Opus 5.5 $0.00407 $0.00407
Sonnet 5.5 $0.00203 $0.00203
Haiku 4.5 $0.00102 $0.00102

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

Security

Grade A, and why

openmemory-plus AGENTS.md scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 123 lines

How it starts

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

OpenMemory Plus - 项目开发指南

本文件为 AI Agent 在 openmemory-plus 仓库中工作时提供上下文。

项目概述

OpenMemory Plus 是一个 CLI 工具,用于为 AI Agent 安装和配置双层记忆系统。

  • npm 包名: openmemory-plus
  • CLI 命令: openmemory-plus 或 omp
  • 技术栈: TypeScript, Node.js (>=18), ESM

项目结构

openmemory-plus/
├── cli/                        # CLI 工具源码
│   ├── src/
│   │   ├── index.ts            # 入口文件
│   │   ├── commands/           # 命令实现
│   │   │   ├── install.ts      # 主安装命令 (3 阶段)
│   │   │   ├── status.ts       # 系统状态检查
│   │   │   └── doctor.ts       # 诊断修复
│   │   └── lib/                # 核心库
│   │       ├── detector.ts     # 依赖检测 (Docker, Ollama, Qdrant)
│   │       └── platform.ts     # 跨平台工具
│   ├── templates/              # 导出模板
│   │   └── shared/_omp/        # 用户项目模板
│   └── tests/                  # 测试文件
├── AGENTS.md                   # 本文件 (不导出)
├── README.md                   # 用户文档
└── CONTRIBUTING.md             # 贡献指南

开发命令

cd cli

# 安装依赖
npm install

# 本地开发 (使用 tsx)
npm run dev -- install --help

# 构建
npm run build

# 测试
npm test                    # 运行所有测试
npm run test:watch          # 监听模式
npm run test:coverage       # 覆盖率报告

# 本地测试 CLI
node dist/index.js install --help

CLI 命令

命令 描述
install 一键安装 (默认命令)
status 检查系统依赖状态
doctor 诊断并修复问题

install 命令选项

  • -y, --yes: 跳过确认提示
  • -i, --ide <type>: 指定 IDE (augment/claude/cursor/gemini/common)
  • --skip-deps: 跳过依赖安装
  • --show-mcp: 显示 MCP 配置
  • -f, --force: 强制覆盖

安装流程 (3 阶段)

  1. Phase 1: 检测并安装依赖 (Docker, Ollama, Qdrant, BGE-M3)
  2. Phase 2: 初始化项目 (复制模板到 _omp/, 配置 IDE)
  3. Phase 3: 显示完成信息和 MCP 配置

模板管理

cli/templates/shared/_omp/ 包含导出到用户项目的文件:

目录 内容
commands/ /memory 命令入口
workflows/ 记忆管理工作流 (7 个步骤)
skills/ memory-extraction Skill
memory/ 项目记忆模板文件

注意: AGENTS.md 等根目录配置文件不会被导出。

测试

测试文件位于 cli/tests/:

  • cli.test.ts - CLI 入口测试
  • install.test.ts - 安装命令测试
  • detector.test.ts - 依赖检测测试
  • doctor.test.ts - 诊断命令测试
  • status.test.ts - 状态命令测试

Read the full file on GitHub · 123 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 · 123 lines · 1,017 tokens per session scan A f6fec51ef5b7

Subscribe to this mod's changes

openmemory-plus AGENTS.md is an instructions file published in the GitHub repository Alenryuichi/openmemory-plus (20 stars, last pushed 8mo ago), licensed MIT. It adds 1,017 tokens to every session, about $0.0041 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

openmemory-plus AGENTS.md compared with instructions from other repositories

openmemory-plus AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openmemory-plus AGENTS.mdAlenryuichi/openmemory-plusInstructions file208mo agoMITA1,017Codex, 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