memoryweb: Instructions file for Codex

AGENTS.md

memoryweb AGENTS.md is an instructions file for Codex, OpenCode from corbym/memoryweb. It costs 3,609 tokens per session, scanned A, original, MIT.

Instructions for using memoryweb, a persistent project knowledge graph that stores concepts and decisions as connected notes. It explains how an AI assistant should orient itself, search the graph, and file new knowledge.

In plain words
What is it for?
Use it when answering project questions, retrieving past decisions, identifying knowledge gaps, or recording new findings in memoryweb.
Why use it?
It helps the assistant use the project’s recorded decisions and current state instead of relying only on its conversation context or general training.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/corbym/memoryweb/agents-md"><img src="https://agentmods.dev/badge/instructions/corbym/memoryweb/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,609 This file is loaded in full into every session.
When invoked 3,609 The same file — it is already loaded in full.
Security scan A 0 findings. 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.03609 $0.03609
Opus 5.5 $0.01444 $0.01444
Sonnet 5.5 $0.00722 $0.00722
Haiku 4.5 $0.00361 $0.00361

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

Security

Grade A, and why

memoryweb AGENTS.md scanned grade A with 0 findings 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 11d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 337 lines

How it starts

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

AGENTS.md — guidance for AI agents using memoryweb

This file is for agents connected to memoryweb via MCP. It tells you how to use the tools correctly, what the tools will and won't surface, and how to behave around archiving, drift, and knowledge gaps.


What memoryweb is

A persistent knowledge graph for a project or set of projects. You file concepts and decisions as nodes, connect them with typed narrative edges, and retrieve them by searching or following connections.

It is called memoryweb. Nothing else.


Core tool guide

Orientation at session start

Always call orient for the relevant domain before answering questions about a project. Do not rely on your context window or training for project state.

orient returns all live nodes for the domain, recent activity, and a declared_spine — the curated history of key decisions in chronological order. Weigh the spine heavily when synthesising.

If you do not know what domains exist, call domains first.

Filing knowledge

  • remember — file a concept, decision, or finding. Accepts related_to to auto-connect at creation. Returns suggested_connections and possible_duplicates — act on these before filing more nodes. Supply an items array to file multiple nodes in one transaction.
  • revise — update label, description, why_matters, tags, or occurred_at on a live node without archiving it. Supply an items array for batch updates. Writes an audit log entry on every call. When updating a decision, do not paste new source material into its description — file a node_kind=finding for the evidence and connect with depends_on or caused_by.

Before filing a node: search first. Infer the domain from search results; prefer an existing domain over creating a new one. Creating a new domain hides the memory from every other domain's orient and domain-scoped search — only create one when no existing domain covers the topic. If a similar node exists, suggest linking with connect rather than creating a duplicate. Unfiled duplicates are the primary cause of orphan nodes and audit drift.

Read the full file on GitHub · 337 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. 11d ago Changed d1b9970e1037
  2. 18d ago Changed · +29 lines · +351 tokens per session afedc57890bf
  3. 19d ago Changed caf672c9526e
  4. 25d ago Changed 84c6b3cba33a
  5. 27d ago Changed bca8d0e2a762
  6. 1mo ago Changed 76da52f91159
  7. 1mo ago Changed 5a880a67d6d5
  8. 1mo ago Changed c369d11cac32
  9. 1mo ago Changed · +11 lines · +105 tokens per session 6702636d1d64
  10. 1mo ago First seen · 297 lines · 3,153 tokens per session scan A e149ed5a7945

Subscribe to this mod's changes

memoryweb AGENTS.md is an instructions file published in the GitHub repository corbym/memoryweb (14 stars, last pushed yesterday), licensed MIT. It adds 3,609 tokens to every session, about $0.0144 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories