memo-server: Instructions file for Codex

AGENTS.md

memo-server AGENTS.md is an instructions file for Codex, OpenCode from ngabzar02/memo-server. It costs 1,150 tokens per session, scanned C, original, MIT.

Repository instructions for memo, a local server that supplies versioned library documentation to coding agents. They describe the project, important files, commands, and development conventions.

In plain words
What is it for?
Use them to orient work on memo, locate its server, search index, ingestion, and registry code, and follow its documented commands and rules.
Why use it?
They help an agent understand the repository structure and use its documentation-search system correctly.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to ngabzar02/memo-server. 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/ngabzar02/memo-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ngabzar02/memo-server

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 memo-server AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ngabzar02/memo-server/agents-md"><img src="https://agentmods.dev/badge/instructions/ngabzar02/memo-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,150 This file is loaded in full into every session.
When invoked 1,150 The same file — it is already loaded in full.
Security scan C 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.01150 $0.01150
Opus 5.5 $0.00460 $0.00460
Sonnet 5.5 $0.00230 $0.00230
Haiku 4.5 $0.00115 $0.00115

Measured 2mo ago against content hash 8db8d5c6ce74, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

memo-server AGENTS.md scanned grade C 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 2mo 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- JANGAN pernah tulis secret/token/API key ke file, log, commit, atau chat — cukup `[REDACTED: ~/.git-credentials]`
AGENTS.md · 54 lines

How it starts

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

AGENTS.md — memo

Apa repo ini

memo adalah MCP server lokal peniru Context7: memberikan dokumentasi library versi-terbaru ke agent (opencode/Claude/Cursor) lewat resolve_library_id / get_docs / versions. Gratis, tanpa API key, tanpa rate limit, offline-capable (index pre-built ~16 MB), Python 3.10+, jalan di ARM. Data tersimpan di satu file SQLite ~/.local/share/memo/docs.db (hybrid BM25 FTS5 + embeddings bge-small via fastembed, fusion + token-budget trim).

Struktur kunci

  • src/memo/server.py — entry point MCP (memo = memo.server:main), resolve/get_docs/versions, CLI --warmup / --build-cache / --fetch-cache
  • src/memo/store.py — SQLite + FTS5 + sqlite-vec, trim_to_tokens (waspada Bug 1: oversize chunk → break)
  • src/memo/ingest.py — crawl (llms.txt/sitemap/README) + trafilatura + chunking
  • src/memo/registry.py — resolusi nama library (aliases.json, builtins.json, npm/PyPI/GitHub)
  • src/memo/rerank.py — cross-encoder rerank (optional)
  • docs.db (+.bak) — index SQLite; JANGAN diubah langsung, hanya lewat kode
  • cache-libs.txt — daftar library (satu per baris); PR satu baris → CI build index baru
  • .github/workflows/cache.yml — CI ingest semua lib tiap push → release asset docs.db; bench.yml — CI selfcheck
  • bench/ — protokol benchmark, queries, score, state, research
  • tools/fetch-cache.sh — unduh docs.db pre-built dari GitHub release

Perintah penting

  • Install dev: uv tool install --editable . (venv di ~/.local/share/uv/tools/memo/)
  • Daemon HTTP (RAM ketat): ~/.local/bin/mcp-boot.sh (port memo 4041, free-search 4040) atau memo --transport http --port 4041; log di /tmp/mcp-memo.log
  • Selfcheck tiap modul (smoke test _demo): python -m memo.store, python -m memo.ingest, python -m memo.registry
  • Warmup lib: memo --warmup flask nextjs httpx [--force]
  • Build/ambil cache: memo --build-cache (ingest cache-libs.txt) / memo --fetch-cache [--force]
  • Benchmark: MCP langsung per bench/BRUTAL.md (daemon :4041) + bench/bench.py (20 query vs Context7 API, tanpa key); skor via bench/score.py
  • Verify sistem CC-SYS: bash /root/contextclone/_sys/verify.sh — WAJIB PASS sebelum klaim fase selesai

Read the full file on GitHub · 54 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. 2mo ago First seen · 54 lines · 1,150 tokens per session scan C 8db8d5c6ce74

Subscribe to this mod's changes

memo-server AGENTS.md is an instructions file published in the GitHub repository ngabzar02/memo-server (1 stars, last pushed 3mo ago), licensed MIT. It adds 1,150 tokens to every session, about $0.0046 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

memo-server AGENTS.md compared with instructions from other repositories

memo-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memo-server AGENTS.mdngabzar02/memo-serverInstructions file13mo agoMITC1,150Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode