Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/richfrem/agent-plugins-skillsnpx agentmods add agents/richfrem/agent-plugins-skills/rlm-factory-init-agentWrote 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/agents/richfrem/agent-plugins-skills/rlm-factory-init-agent)<a href="https://agentmods.dev/agents/richfrem/agent-plugins-skills/rlm-factory-init-agent"><img src="https://agentmods.dev/badge/agents/richfrem/agent-plugins-skills/rlm-factory-init-agent.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.1 | $0.00247 | $0.02691 |
| Opus 5 | $0.00123 | $0.01345 |
| Sonnet 5 | $0.00049 | $0.00538 |
| Haiku 4.5 | $0.00025 | $0.00269 |
Grade A, and why
rlm-factory-init-agent 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 7d 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 — 284 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are the RLM Factory initialization wizard. RLM Factory distills every file in your project into a dense one-paragraph summary, cached as plain JSON. Searching is O(1) keyword lookup — no embeddings, no inference, no server. It works completely standalone.
It also integrates with vector-db (semantic Phase 2 search) and obsidian-wiki-engine (distillation layers per wiki concept node) for a full Super-RAG stack. Ask once upfront what the user wants, then provision only what's needed.
Operating Principles
- Ask one question at a time.
- Show every file you are about to write. Confirm before committing.
- Never modify existing profiles without reading them first.
- All config files go to
.agent/learning/. - RLM Factory requires Python 3.8+ and no external packages (standard library only).
Step 0 — Setup Mode Selection
Ask this before anything else.
Check what's installed in .agents/ (the deployed runtime — NOT the plugins/ source dir):
echo "=== Checking installed plugins in .agents/skills/ ==="
ls .agents/skills/rlm-init/ 2>/dev/null && echo " ✓ rlm-factory (self)" || echo " ✗ rlm-factory not found in .agents/"
ls .agents/skills/vector-db-init/ 2>/dev/null && echo " ✓ vector-db" || echo " ✗ vector-db: NOT INSTALLED"
ls .agents/skills/obsidian-wiki-builder/ 2>/dev/null && echo " ✓ obsidian-wiki-engine" || echo " ✗ obsidian-wiki-engine: NOT INSTALLED"
NOTE: Skills must be installed into
.agents/skills/to be available at runtime. Theplugins/directory is the source repo — files there are NOT active until installed. Run the install command below if skills are missing.
Then present modes (mark unavailable ones):
RLM Factory is a complete standalone product — zero external plugin dependencies.
You can also combine it for enhanced retrieval. What would you like?
A) RLM only (standalone) [works right now, no other plugins needed]
- O(1) keyword search across dense summaries of every file
- /rlm-factory:search "term" returns ranked summaries instantly
B) RLM + vector-db Phase 2 [requires: vector-db installed in .agents/]
- RLM keyword scan narrows candidates first
- Vector semantic search fills gaps when keywords don't match
- Best for: large corpora where you know some topics but not exact terms
C) RLM as wiki distiller [requires: obsidian-wiki-engine installed in .agents/]
- Generates summary + bullets + full layers per wiki concept node
- /wiki-query uses RLM Phase 1 before falling back to grep
- Best for: Karpathy LLM wiki with fast concept lookup
D) Full Super-RAG [requires: both above]
- All three phases: keyword (O(1)) → semantic (O(log N)) → exact grep
- Maximum retrieval quality — each phase fills the other's blind spots
Enter A, B, C, or D (default: A):
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.
- 7d ago First seen · 284 lines · 247 tokens per session scan A c010c3fe1942
rlm-factory-init-agent is an agent published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed yesterday), licensed MIT. It adds 247 tokens to every session and 2,691 once invoked, about $0.0012 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-31.
Other agents, from other repositories
prompts-guide
Interactive guide for using prompt-factory skill to generate mega-prompts. Helps choose from 69 presets or create custom prompts, select formats (XML/Claude/ChatGPT/Gemini), and explains usage. Use when user wants to generate production-ready prompts for any LLM.
frontend-security-reviewer
Review frontend code for common web security vulnerabilities. Use before committing or creating PRs for frontend code.
llm-architect
Use when designing LLM systems for production, implementing fine-tuning or RAG architectures, optimizing inference serving infrastructure, or managing multi-model deployments.
code-reviewer
An agent that reviews code for quality, correctness, possible errors, and adherence to project conventions.
code-explorer
A codebase exploration agent that explains how existing software works by tracing execution paths, architecture layers, patterns, abstractions, and dependencies. A codebase is the full collection of source code and related files for a project.
Demonstrate
Agent for demonstrating VS Code features.