Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/bessouat40/raglight/claude-mdgit clone --depth 1 https://github.com/Bessouat40/RAGLightWrote 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.
[](https://agentmods.dev/instructions/bessouat40/raglight/claude-md)<a href="https://agentmods.dev/instructions/bessouat40/raglight/claude-md"><img src="https://agentmods.dev/badge/instructions/bessouat40/raglight/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00983 | $0.00983 |
| Opus 5 | $0.00491 | $0.00491 |
| Sonnet 5 | $0.00197 | $0.00197 |
| Haiku 4.5 | $0.00098 | $0.00098 |
Grade A, and why
RAGLight CLAUDE.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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Commands
# Install dependencies
make install # uv pip install -r pyproject.toml
# Run all tests
make test # PYTHONPATH=src python3 -m unittest -v
# Run a single test module
PYTHONPATH=src python3 -m unittest tests.tests_rag.test_rag_pipeline
# Format code
uv run black .
Python >= 3.12 required. Uses uv as package manager.
Architecture
RAGLight is a modular RAG library built around the Builder pattern for pipeline composition. The core abstraction is a LangGraph StateGraph (retrieve → generate) that orchestrates embeddings, vector store, and LLM.
Data flow
FolderSource / GitHubSource
→ DocumentProcessorFactory (PDF / Code / Text / VLM-PDF)
→ EmbeddingsModel.embed_documents()
→ VectorStore.ingest()
Query → VectorStore.similarity_search() → [CrossEncoder rerank] → LLM.generate() → Answer
Key abstractions (all use ABC + strategy pattern)
| Abstraction | Location | Implementations |
|---|---|---|
LLM |
src/raglight/llm/llm.py |
Ollama, LMStudio, Mistral, OpenAI, Gemini |
EmbeddingsModel |
src/raglight/embeddings/embeddings_model.py |
HuggingFace, Ollama, OpenAI, Gemini |
VectorStore |
src/raglight/vectorstore/vector_store.py |
ChromaVS (raglight[chroma]), QdrantVS (raglight[qdrant]) |
DocumentProcessor |
src/raglight/document_processing/document_processor.py |
PDF, Code, Text, VLM-PDF |
Extending the library
- New LLM: extend
LLM, implementload()+generate(input: Dict) -> str, register inbuilder.pywith_llm() - New embeddings: extend
EmbeddingsModel, implementload()+embed_documents()+embed_query(), register inbuilder.pywith_embeddings() - New vector store: extend
VectorStore, implement abstract methods, register inbuilder.pywith_vector_store() - New document processor: extend
DocumentProcessor, implementprocess(), register inDocumentProcessorFactory.get_processor()
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.
- 5d ago First seen · 84 lines · 983 tokens per session scan A 40e7fe3e5039
RAGLight CLAUDE.md is an instructions file published in the GitHub repository Bessouat40/RAGLight (673 stars, last pushed 7d ago), licensed MIT. It adds 983 tokens to every session, about $0.0049 per session on Opus 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.
Other instructions, from other repositories
opencrawling CLAUDE.md
Claude Code instructions for opencrawling/opencrawling, covering claude.md, project overview, build commands, full build (all maven modules) and run the embedding microservice (separate process).
rag AGENTS.md
AGENTS.md instructions for NVIDIA-AI-Blueprints/rag, covering nvidia rag blueprint, project structure, development commands, backend (python) and optional: ragas benchmark cli (see scripts/eval/readme.md).
rag CLAUDE.md
Claude Code instructions for NVIDIA-AI-Blueprints/rag, covering nvidia rag blueprint, project structure, development commands, backend (python) and optional: ragas benchmark cli (see scripts/eval/readme.md).
OpenDocuments AGENTS.md
Instructions for joungminsung/OpenDocuments, covering agents.md, project overview, monorepo structure, common commands and 특정 패키지만.
markdown-vdb CLAUDE.md
Instructions for geckse/markdown-vdb, covering markdown vdb, architecture, project structure, core design decisions and key conventions.
nodetool AGENTS.md
AGENTS.md instructions for nodetool-ai/nodetool, covering nodetool — agent rules, communication style, instructions, 1. positive patterns and negative patterns and 2. reference points.