Vault-Agent-Memory: Instructions file for Codex

AGENTS.md

Vault-Agent-Memory AGENTS.md is an instructions file for Codex, OpenCode from zycaskevin/Vault-Agent-Memory. It costs 1,618 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Vault Agent Memory, a tool for storing and retrieving an AI agent's project memories. They describe installation, optional features, configuration, and verification.

In plain words
What is it for?
Use them to install and configure the vault, choose its project scope and tool profile, and test searching, reading, and proposing memories.
Why use it?
They prevent agents from stopping at installation advice and provide a consistent, testable setup across different agent systems.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 Vault-Agent-Memory AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zycaskevin/vault-agent-memory/agents-md"><img src="https://agentmods.dev/badge/instructions/zycaskevin/vault-agent-memory/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,618 This file is loaded in full into every session.
When invoked 1,618 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.01618 $0.01618
Opus 5.5 $0.00647 $0.00647
Sonnet 5.5 $0.00324 $0.00324
Haiku 4.5 $0.00162 $0.00162

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

Security

Grade A, and why

Vault-Agent-Memory 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 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.

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 · 183 lines

How it starts

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

Agent Instructions For Vault Agent Memory

This repository is designed to be installed, configured, and modified by agent runtimes as well as by humans. If you are an agent working in this repo, treat this file and agent_manifest.json as the operational source of truth.

If you can run shell commands for the user, do not stop at telling them how to install Vault Agent Memory manually. Ask the required scope/feature questions, run the install/configuration steps yourself, and finish with a smoke test.

Common Install Architecture

Hermes Agent, Codex, OpenCode, Claude Code, OpenClaw, n8n, and other MCP-capable or shell-capable agents should use the same basic shape:

choose projectDir -> choose optional features -> install vault -> configure CLI or stdio MCP -> verify search/read/propose

Only add runtime-specific adapters when the host needs custom tool registration or UI metadata. The stable cross-agent contract is projectDir, the vault CLI, vault-mcp, and candidate-first memory writes.

For MCP-capable agents, prefer the smallest tool profile that fits the job:

vault-mcp --project-dir /path/to/project --tool-profile core

core exposes only vault_search, vault_read_range, vault_memory_propose, and vault_stats. Use review, remote, maintenance, or full only when those extra tools are needed.

Second Decision: Optional Features

After choosing database scope, ask which optional capabilities the user wants. Do not install heavyweight or cloud-connected extras silently.

Recommended prompts:

Feature Default Ask when Install command
core yes Always. Local SQLite, Markdown, keyword search. python -m pip install vault-for-llm
mcp yes for MCP-capable agents The runtime supports local stdio MCP. python -m pip install "vault-for-llm[mcp]"
obsidian_import no User has an existing Obsidian vault to import and search through Vault. built into core CLI
semantic no User wants embedding-backed semantic/hybrid retrieval. python -m pip install "vault-for-llm[semantic]"
supabase no User wants optional remote sync/read paths. python -m pip install "vault-for-llm[supabase]"
dev no You are modifying the repo, running benchmarks, or validating a PR. python -m pip install -e ".[dev]"

Read the full file on GitHub · 183 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 · 183 lines · 1,618 tokens per session scan A a69840771cca

Subscribe to this mod's changes

Vault-Agent-Memory AGENTS.md is an instructions file published in the GitHub repository zycaskevin/Vault-Agent-Memory (50 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 1,618 tokens to every session, about $0.0065 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

Vault-Agent-Memory AGENTS.md compared with instructions from other repositories

Vault-Agent-Memory AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Vault-Agent-Memory AGENTS.mdzycaskevin/Vault-Agent-MemoryInstructions file502mo agoApache-2.0A1,618Codex, 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