rlm-factory-init-agent

rlm-factory-init-agent is an agent for Claude Code from richfrem/agent-plugins-skills. It costs 247 tokens per session (2,691 once invoked), scanned A, original, MIT.

A setup wizard for RLM Factory, a tool that creates short summaries of project files and lets agents search them by keywords. It can run by itself or form the first part of a larger search-and-notes setup.

In plain words
What is it for?
Use it to initialize RLM Factory, create its profile file, choose standalone or expanded search modes, and configure the project's learning directory.
Why use it?
It guides configuration without requiring extra packages and asks which setup is needed before creating files. This helps avoid installing or configuring components that are not required.

Agent for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions Gemini CLI.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python .agents/skills/rlm-init/scripts/inventory.py --profile project 2>&1 | head -20.

Part of the agent-memory plugin — 13 skills, 2 commands, 9 agents shipped together

Good fit Use it to initialize RLM Factory, create its profile file, choose standalone or expanded search modes, and configure the project's learning directory.

Compare 6 agents from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills
agentmods
npx agentmods add agents/richfrem/agent-plugins-skills/rlm-factory-init-agent

Made for: Claude Code.

Or install agent-memory, the plugin that ships this one along with the rest of its 13 skills, 2 commands, 9 agents.

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 rlm-factory-init-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/richfrem/agent-plugins-skills/rlm-factory-init-agent.svg)](https://agentmods.dev/agents/richfrem/agent-plugins-skills/rlm-factory-init-agent)
Your own site
<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>
Per session 247 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,691 The whole file, excluding the scripts and references it only reads on demand.
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.00247 $0.02691
Opus 5 $0.00123 $0.01345
Sonnet 5 $0.00049 $0.00538
Haiku 4.5 $0.00025 $0.00269

Measured 7d ago against content hash c010c3fe1942, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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.

plugins/agent-memory/agents/rlm-factory-init-agent.md · 284 lines

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. The plugins/ 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):

Read the full file on GitHub · 284 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. 7d ago First seen · 284 lines · 247 tokens per session scan A c010c3fe1942

Subscribe to this mod's changes

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.