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.
curl -O https://raw.githubusercontent.com/ncz-os/mnemos/master/AGENTS.mdgit clone --depth 1 https://github.com/ncz-os/mnemosWrote 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.
[](https://agentmods.dev/instructions/ncz-os/mnemos/agents-md)<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.
<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>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.
| Model | Per session | Once 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 |
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 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:
- Repository ABCs declared in
mnemos/persistence/base.py(MemoryRepository,KGRepository,VersionRepository,CompressionRepository,WebhookRepository, and the rest — see the file). - A per-backend facade —
SqliteBackend,PostgresBackend,OracleBackend,Db2Backend,MysqlBackend,MariadbBackend— which owns those repositories and advertises capability through itssupports_*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._poolaccess outsidemnemos/persistence/is the defect, not the shortcut.require_postgres_pool_or_503is 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." }
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.
- 4d ago Changed · +31 lines · +401 tokens per session a57fb69bb45f
- 1mo ago Changed · -1 lines · +13 tokens per session 780adb20e087
- 1mo ago Changed · +10 lines · +192 tokens per session af300c5c2446
- 1mo ago Changed · +1 lines · +17 tokens per session b007aa94c3cd
- 1mo ago Changed · +42 lines · +742 tokens per session 86e6c1791417
- 1mo ago Changed · +31 lines · +449 tokens per session 49fe78db40e9
- 2mo ago First seen · 144 lines · 2,170 tokens per session scan A 2b77e9ff66b9
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.
mnemos AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mnemos AGENTS.mdncz-os/mnemos | Instructions file | 35 | yesterday | Apache-2.0 | A | 3,984 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |