enowx-rag: Instructions file for Codex

AGENTS.md

enowx-rag AGENTS.md is an instructions file for Codex, OpenCode from enowdev/enowx-rag. It costs 1,652 tokens per session, scanned B, original, Apache-2.0.

Project instructions for setting up enowx-rag, a retrieval system that stores and finds project-specific information for coding agents.

In plain words
What is it for?
They help install enowx-rag, configure its MCP server, and onboard a project with agent instruction files and a memory collection.
Why use it?
They explain which setup path to use and prevent missing steps when installing the skill, server, embeddings, and project memory.

Instructions file for CodexOpenCode

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

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/enowdev/Project/enowx-rag/skill/enowx-rag.md.

Reuse

Borrowing it

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

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 enowx-rag AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/enowdev/enowx-rag/agents-md"><img src="https://agentmods.dev/badge/instructions/enowdev/enowx-rag/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,652 This file is loaded in full into every session.
When invoked 1,652 The same file — it is already loaded in full.
Security scan B 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.01652 $0.01652
Opus 5.5 $0.00661 $0.00661
Sonnet 5.5 $0.00330 $0.00330
Haiku 4.5 $0.00165 $0.00165

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

Security

Grade B, and why

enowx-rag AGENTS.md scanned grade B 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| Codex (OpenAI) | TOML | `[mcp_servers.*]` | `~/.codex/config.toml` |
AGENTS.md · 115 lines

How it starts

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

Agent instructions: install enowx-rag skill and MCP server

This project includes a per-project RAG memory MCP server (enowx-rag) and a skill.

When asked to install, set up, or configure RAG memory, first decide which of two paths applies:

  • Path A — Full setup from scratch: enowx-rag is not installed yet. Do the full flow below (skill, build the Go server, choose embedder, install the MCP server in every tool, then onboard the project). Start at section 1.
  • Path B — Onboard a new project: the enowx-rag MCP server is already installed and its tools are available (e.g. you can call rag_create_project / rag_retrieve_context). Skip the build/backend/tool-install steps and jump straight to section 5 (generate AGENTS.md + CLAUDE.md and create the project collection), plus install the skill (section 1). This is the common case for every project after the first.

To tell them apart: check whether the enowx-rag MCP tools are already available. If they are, use Path B. If they are not (or you are unsure and the binary isn't built), use Path A.

1. Install the skill

The skill lives at skill/enowx-rag.md in this repository. It is not Factory-Droid-only — install it into whatever skill directory your tool reads. The skill can be global (shared across projects) or project-local.

Pick the destination directory for the current tool. Common locations:

  • Factory Droid (global): ~/.factory/skills/enowx-rag/skill.md
  • Project-local skill: .agents/skills/enowx-rag/skill.md or .factory/skills/enowx-rag/skill.md in the project root
  • Any other skill folder your tool loads — do not assume ~/.factory. Ask the user if you are unsure which directory their tool uses.

Copy the skill into the chosen directory, e.g. (global Factory Droid):

mkdir -p ~/.factory/skills/enowx-rag
cp /Users/enowdev/Project/enowx-rag/skill/enowx-rag.md ~/.factory/skills/enowx-rag/skill.md

Or project-local:

mkdir -p .agents/skills/enowx-rag
cp /Users/enowdev/Project/enowx-rag/skill/enowx-rag.md .agents/skills/enowx-rag/skill.md

Read the full file on GitHub · 115 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 · 115 lines · 1,652 tokens per session scan B d027079d435b

Subscribe to this mod's changes

enowx-rag AGENTS.md is an instructions file published in the GitHub repository enowdev/enowx-rag (41 stars, last pushed 7d ago), licensed Apache-2.0. It adds 1,652 tokens to every session, about $0.0066 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

enowx-rag AGENTS.md compared with instructions from other repositories

enowx-rag AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
enowx-rag AGENTS.mdenowdev/enowx-ragInstructions file417d agoApache-2.0B1,652Codex, 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