aiduMEI: Instructions file for Codex

AGENTS.md

aiduMEI AGENTS.md is an instructions file for Codex, OpenCode from monkey2jack/aiduMEI. It costs 1,538 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

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to monkey2jack/aiduMEI. 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/monkey2jack/aiduMEI/main/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/github.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/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 aiduMEI AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/monkey2jack/aidumei/agents-md"><img src="https://agentmods.dev/badge/instructions/monkey2jack/aidumei/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,538 This file is loaded in full into every session.
When invoked 1,538 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.01538 $0.01538
Opus 5.5 $0.00615 $0.00615
Sonnet 5.5 $0.00308 $0.00308
Haiku 4.5 $0.00154 $0.00154

Measured 7d ago against content hash e04cb283e062, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 7d 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 -s -H "Authorization: Bearer $AIDUMEM_API_TOKEN" http://127.0.0.1:8767/health | jq '.health_status, .degraded, .probes.runtime_paths'
AGENTS.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 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; uses the native single-SQLite kernel unless AIDUMEI_MEMORY_KERNEL says otherwise (raw text + full-text recall, distillation needs an LLM)

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

Fetched model files are verified file-by-file against the sha256 manifest scripts/local_embed_model_sha256.json — a mismatch is deleted and the script exits non-zero; entries marked unverified are skipped with a WARNING and never block deployment.

Read the full file on GitHub · 127 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. 7d ago Changed · +35 tokens per session e04cb283e062
  2. 27d ago Changed · +45 tokens per session 1c46aa10a193
  3. 1mo ago Changed · +6 lines · +103 tokens per session b3be278651d1
  4. 1mo ago Changed · +4 lines · +63 tokens per session 114532046891
  5. 1mo ago Changed · +4 lines · +160 tokens per session 0b82a39188ec
  6. 2mo ago Changed · +1 lines · +17 tokens per session 77429e00018e
  7. 2mo ago 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 (21 stars, last pushed 2d ago), licensed MIT. It adds 1,538 tokens to every session, about $0.0062 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-09-04.

Related

aiduMEI AGENTS.md compared with instructions from other repositories

aiduMEI AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aiduMEI AGENTS.mdmonkey2jack/aiduMEIInstructions file212d agoMITA1,538Codex, 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