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

AGENTS.md instructions for Alenryuichi/openmemory-plus, covering openmemory plus - 项目开发指南, 项目概述, 项目结构, 开发命令 and 安装依赖.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/alenryuichi/openmemory-plus/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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
Origin unknown 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 $0.01017 $0.01017
Opus 5 $0.00508 $0.00508
Sonnet 5 $0.00203 $0.00203
Haiku 4.5 $0.00102 $0.00102

Measured today against content hash f6fec51ef5b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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-plusomp
  • 技术栈: 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. today 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 6mo ago), licensed MIT. It adds 1,017 tokens to every session, about $0.0051 per session on Opus 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.