aiduMEI AGENTS.md

aiduMEI AGENTS.md is an instructions file for Codex, OpenCode from monkey2jack/aiduMEI. It costs 1,115 tokens per session, scanned A, original, MIT.

Repository instructions for deploying, configuring, and verifying aiduMEI, a self-hosted long-term memory service for AI agents.

In plain words
What is it for?
Installing aiduMEI, choosing its engine mode, restarting it after configuration changes, and proving that memory recall works.
Why use it?
They explain the available cloud, fallback, and fully local modes so the service can be operated with the intended memory and model setup.

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/monkey2jack/aidumei/agents-md
Clone the repo
git clone --depth 1 https://github.com/monkey2jack/aiduMEI

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 aiduMEI AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/monkey2jack/aidumei/agents-md.svg)](https://agentmods.dev/instructions/monkey2jack/aidumei/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/monkey2jack/aidumei/agents-md"><img src="https://agentmods.dev/badge/instructions/monkey2jack/aidumei/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,115 This file is loaded in full into every session.
When invoked 1,115 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
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 $0.01115 $0.01115
Opus 5 $0.00558 $0.00558
Sonnet 5 $0.00223 $0.00223
Haiku 4.5 $0.00112 $0.00112

Measured today against content hash 16eb39ed6f51, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aiduMEI 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 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.

Makes network callslowCapability

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

curl -s -H "Authorization: Bearer $AIDUMEM_API_TOKEN" http://127.0.0.1:8767/health | jq '.health_status, .degraded, .probes.runtime_paths'
AGENTS.md · 112 lines

How it starts

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

AGENTS.md — Deploy, Verify, Operate aiduMEI

aiduMEI is a self-hosted long-term memory and wisdom engine for AI agents. It stores extracted facts, raw records, core memory, and recall traces behind a local HTTP API. It works with your host's native memory as the durable long-term layer; the host remains responsible for short-term conversation state.

Choose your engine mode

Need Mode Requires Effect
Lowest footprint AIDUMEI_ENGINE_MODE=cloud Cloud LLM + embedding keys No local model; during an outage recall is honestly degraded
Default resilience AIDUMEI_ENGINE_MODE=auto Cloud keys + pip install .[local-embed] + model fetch Cloud-first, automatic local fallback and recovery
Fully local AIDUMEI_ENGINE_MODE=local Local embed dependencies and model; no API keys Zero cloud tokens and zero outbound model calls

One-Line Prompt (canonical)

Send the canonical deployment text (all of prompts/install.txt, 13 lines) to your Agent — do not paraphrase it. Every step is judged by script exit codes and JSON evidence only.

Changing mode requires a service restart. If you previously ran cloud, run the local-vector backfill before expecting the local gear to recall older memories.

Install and start

git clone https://github.com/monkey2jack/aiduMEI.git
cd aiduMEI
python3.12 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp mem0_config_local.json.example mem0_config_local.json
cp .env.example .env
# Edit mem0_config_local.json: set llm.config and embedder.config.
# Edit .env: set AIDUMEM_ENTITY_KEYWORDS and, if exposing beyond loopback, AIDUMEM_API_TOKEN.
python api_server.py

For auto or local, also run:

pip install .[local-embed]
python scripts/fetch_local_embed_model.py

Prove memory is actually working

Run the end-to-end smoke after the service starts:

python scripts/e2e_smoke.py --json

Expected output: JSON ending with "status": "PASS", zero failures, and zero warnings; process exit code 0. /health: ok alone is not sufficient — this script writes a nonce, recalls it from a new request, checks trace visibility, and cleans up its temporary tenant.

Read the full file on GitHub · 112 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 · 112 lines · 1,115 tokens per session scan A 16eb39ed6f51

Subscribe to this mod's changes

aiduMEI AGENTS.md is an instructions file published in the GitHub repository monkey2jack/aiduMEI (18 stars, last pushed yesterday), licensed MIT. It adds 1,115 tokens to every session, about $0.0056 per session on Opus 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-09-04.