roowet-semantic-vault-search: Instructions file for Codex

AGENTS.md

roowet-semantic-vault-search AGENTS.md is an instructions file for Codex, OpenCode from brodewa369/roowet-semantic-vault-search. It costs 1,700 tokens per session, scanned A, original, MIT.

Project instructions for connecting a semantic vault—a searchable store of notes and agent memory—to the Hermes agent system.

In plain words
What is it for?
Use them to configure the vault server, search memory during session startup, and read full files when search results need more context.
Why use it?
They provide the configuration and startup steps needed to retrieve relevant vault context before an agent begins work.

Instructions file for CodexOpenCode

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

This is brodewa369/roowet-semantic-vault-search's own configuration. It tells Codex and OpenCode how to work on roowet-semantic-vault-search 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 roowet-semantic-vault-search configures →

Reuse

Borrowing it

Nothing to install: this file belongs to brodewa369/roowet-semantic-vault-search. 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/brodewa369/roowet-semantic-vault-search/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/brodewa369/roowet-semantic-vault-search

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 roowet-semantic-vault-search AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/brodewa369/roowet-semantic-vault-search/agents-md"><img src="https://agentmods.dev/badge/instructions/brodewa369/roowet-semantic-vault-search/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,700 This file is loaded in full into every session.
When invoked 1,700 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.01700 $0.01700
Opus 5.5 $0.00680 $0.00680
Sonnet 5.5 $0.00340 $0.00340
Haiku 4.5 $0.00170 $0.00170

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

Security

Grade A, and why

roowet-semantic-vault-search 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 · 185 lines

How it starts

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

AGENTS.md — Hermes Agent Integration

For Hermes users: how to wire semantic vault into your agent's init flow. Copy relevant sections to your own AGENTS.md / SOUL.md / CLAUDE.md.


MCP Server Config

Add this to your config.yaml:

semantic-vault:
  args: []
  command: python
  connect_timeout: 30
  env:
    VAULT_ROOT: C:/Users/you/path/to/vault
    LANCEDB_PATH: C:/Users/you/data/lancedb
    OLLAMA_BASE_URL: http://localhost:11434
    EMBED_MODEL: bge-m3
  timeout: 60
  working_directory: C:/Users/you/semantic-vault-mcp

Windows note: If python doesn't resolve to the right venv, use a .bat wrapper:

@echo off
call C:\path\to\venv\Scripts\activate.bat
python -m mcp_server.server %*

Init Flow Integration

Add these steps to your session init (in SOUL.md or your init protocol):

### Session Init — REQUIRED

1. **`search_vault()`** — semantic context retrieval
   - Query: `"vault structure agent memory error log decisions lessons learned"`
   - Returns: top-10 relevant chunks (~10-15KB)
   - Replaces read_file() for large files

2. **`read_vault_file()`** — if search result needs full context
   - Read specific file from search_vault result
   - Example: `read_vault_file("path/to/file.md")`

3. **`vault_stats()`** — check vault condition
   - Total chunks, unique files, db path

Query Classification (Stage 5)

Before any vault lookup, the agent MUST classify the query:

  • NO (SIMPLE): general knowledge, chit-chat, obvious answer → answer directly, no search_vault().
  • YES (MEDIUM/COMPLEX): project status, past errors, design decisions, concepts, tools, scripts, workflow, user preferences/config → call search_vault() without waiting for the user to say "search the vault".

Flow:

User asks → Stage 5: "Need vault detail?"
  ├── NO → answer directly
  └── YES → search_vault(query)
              → relevant? → answer from vault
              → empty (score < 0.5)? → answer from own knowledge, state "not found in vault"

Read the full file on GitHub · 185 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 · +8 lines · +126 tokens per session 6cf14e36b2cb
  2. 1mo ago Changed · +32 lines · +353 tokens per session ed2b5b1a0428
  3. 1mo ago First seen · 145 lines · 1,221 tokens per session scan A 698b840908cd

Subscribe to this mod's changes

roowet-semantic-vault-search AGENTS.md is an instructions file published in the GitHub repository brodewa369/roowet-semantic-vault-search (5 stars, last pushed 12d ago), licensed MIT. It adds 1,700 tokens to every session, about $0.0068 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-31.

Related

Other instructions, from other repositories