mnemos: Instructions file for Codex

AGENTS.md

mnemos AGENTS.md is an instructions file for Codex, OpenCode from ncz-os/mnemos. It costs 3,984 tokens per session, scanned A, original, Apache-2.0.

An installation guide for MNEMOS, a system made of a core package and optional modules. It lists each module's package, role, supported processor types, and installation details.

In plain words
What is it for?
Use it to install or deploy MNEMOS with a chosen set of modules on supported computers.
Why use it?
It prevents common setup mistakes, such as installing the wrong package name or overlooking that some modules are optional or run as separate services.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to ncz-os/mnemos. 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/ncz-os/mnemos/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ncz-os/mnemos

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ncz-os/mnemos/agents-md"><img src="https://agentmods.dev/badge/instructions/ncz-os/mnemos/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,984 This file is loaded in full into every session.
When invoked 3,984 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.03984 $0.03984
Opus 5.5 $0.01594 $0.01594
Sonnet 5.5 $0.00797 $0.00797
Haiku 4.5 $0.00398 $0.00398

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

Security

Grade A, and why

mnemos 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 4d 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 -fsS http://localhost:5002/health # everything/core/enterprise
AGENTS.md · 258 lines

How it starts

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

AGENTS.md — machine-readable install guide for MNEMOS

This file lets an automated agent install/deploy MNEMOS for an operator given a requested set of modules, deterministically. Human guide: docs/INSTALL.md.

The pip package is mnemos-core. mnemos is an image name, not a pip package — never run pip install mnemos or pip install mnemos-os.


Governing rule — ABC-first persistence

MNEMOS has an ABC persistence layer for storage. It is not a style preference; it is the contract that makes "six backends" a real claim instead of five backends plus one and a half. Work must respect both layers:

  1. Repository ABCs declared in mnemos/persistence/base.py (MemoryRepository, KGRepository, VersionRepository, CompressionRepository, WebhookRepository, and the rest — see the file).
  2. A per-backend facade — SqliteBackend, PostgresBackend, OracleBackend, Db2Backend, MysqlBackend, MariadbBackend — which owns those repositories and advertises capability through its supports_* flags.

A new or repaired storage capability is delivered as: ABC method → implementation on all six backends → facade exposure → route calls the ABC.

Raw _lc._pool access outside mnemos/persistence/ is the defect, not the shortcut. require_postgres_pool_or_503 is a symptom of the same mistake and is removed by routing through the ABC, never by deleting the guard.

This is enforced in CI by a ratchet guard — lint:abc-first runs python3 scripts/check_abc_first_guard.py against the committed per-file baseline tests/abc_first_baseline.json. The guard fails when an in-baseline file's raw _lc._pool count goes UP or a new file gains one; it never fails on a reduced count. Remove a reference, then re-run the script with --regen to record the lower count. Full rule text: docs/FEATURES_TO_BE_DONE.md §0b (F-14).


Module registry

# id -> how to obtain it. Subsystems share the mnemos.* namespace and are
# external subsystems are runtime-gated; CHARON portability and STYX are core.
modules:
  core:       { dist: mnemos-core,     extra: null,       kind: kernel,   arch: [amd64, arm64] }
  graeae:     { dist: mnemos-graeae,   extra: graeae,     kind: router,   arch: [amd64, arm64] }
  pantheon:   { dist: mnemos-pantheon, extra: pantheon,   kind: router,   arch: [amd64, arm64] }
  knemon:     { dist: mnemos-knemon,   extra: knemon,     kind: router,   arch: [amd64, arm64] }
  charon:     { dist: mnemos-core,     extra: null,       kind: core-router, arch: [amd64, arm64], note: "first-party MIF/MPF portability, ingest, adapters, and STYX; Docling conversion needs the docling extra" }
  stiphos:    { dist: mnemos-stiphos,  extra: null,       kind: service,  arch: [amd64, arm64], port: 8080, note: "separate service, not in the everything image" }

backends:           # selected at RUNTIME via MNEMOS_DATABASE_DSN, not by image
  sqlite:   { driver: bundled,  dsn: "sqlite:////data/mnemos.db", arch: [amd64, arm64], default: true }
  postgres: { driver: asyncpg,  dsn: "postgres://USER:PASS@HOST:5432/DB", arch: [amd64, arm64] }
  oracle:   { driver: oracledb, extra: oracle, dsn: "oracle://USER:PASS@HOST:1521/SERVICE", arch: [amd64, arm64], thin: true }
  db2:      { driver: ibm_db,   extra: db2,    dsn: "db2://USER:PASS@HOST:50000/DB", arch: [amd64], note: "no arm64 Linux wheel exists and the sdist fails to build there; every other backend, including oracle, is arm64-clean (verified 2026-09-10, O6N, incl. a live query against a real production Oracle DB)" }
  mysql:    { driver: aiomysql, extra: mysql,  dsn: "mysql://USER:PASS@HOST:3306/DB", arch: [amd64, arm64] }
  mariadb:  { driver: aiomysql, extra: mysql,  dsn: "mariadb://USER:PASS@HOST:3306/DB", arch: [amd64, arm64] }

accelerators:       # OPTIONAL embedder accel; default is portable CPU llama-cpp
  openvino: { extra: openvino, arch: [amd64] }          # Intel x86-only
  cuda:     { extra: cuda,     arch: [amd64, arm64] }    # needs PyTorch CUDA index
  amd:      { extra: amd,      arch: [amd64] }           # ROCm, linux-only

images:
  mnemos-enterprise: { ref: "ghcr.io/ncz-os/mnemos-enterprise", contains: [core, graeae, pantheon, knemon, charon, oracle, mysql], contains_amd64_only: [db2], arch: [amd64, arm64], port: 5002, note: "the ONLY published container image (operator directive 2026-09-10) — a single multi-arch OCI manifest under one tag, not two images; docker/podman pull automatically resolves the right platform layer. The mysql driver (aiomysql) also serves the mariadb backend. Db2 support is present on the amd64 layer only — see the db2 backend note above." }

Read the full file on GitHub · 258 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. 4d ago Changed · +31 lines · +401 tokens per session a57fb69bb45f
  2. 1mo ago Changed · -1 lines · +13 tokens per session 780adb20e087
  3. 1mo ago Changed · +10 lines · +192 tokens per session af300c5c2446
  4. 1mo ago Changed · +1 lines · +17 tokens per session b007aa94c3cd
  5. 1mo ago Changed · +42 lines · +742 tokens per session 86e6c1791417
  6. 1mo ago Changed · +31 lines · +449 tokens per session 49fe78db40e9
  7. 2mo ago First seen · 144 lines · 2,170 tokens per session scan A 2b77e9ff66b9

Subscribe to this mod's changes

mnemos AGENTS.md is an instructions file published in the GitHub repository ncz-os/mnemos (35 stars, last pushed yesterday), licensed Apache-2.0. It adds 3,984 tokens to every session, about $0.0159 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-30.

Related

mnemos AGENTS.md compared with instructions from other repositories

mnemos AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mnemos AGENTS.mdncz-os/mnemosInstructions file35yesterdayApache-2.0A3,984Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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