Platos RAG

Platos RAG is a skill for Claude Code, Codex from winsenlabs/platos. It costs 70 tokens per session (1,087 once invoked), scanned A, original, Apache-2.0.

A document retrieval system that stores text in long-term memory and finds relevant passages later. RAG, or retrieval-augmented generation, means giving an agent selected source text when it answers a question.

In plain words
What is it for?
Importing documents or URLs, searching them by meaning, filtering results with tags, and maintaining the stored sources.
Why use it?
It helps an agent use large document collections without loading every document into each conversation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Importing documents or URLs, searching them by meaning, filtering results with tags, and maintaining the stored sources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/winsenlabs/platos/platos_rag
Install

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.

Any agent
npx skills add winsenlabs/platos --skill platos_rag
Clone the repo
git clone --depth 1 https://github.com/winsenlabs/platos

Made for: Claude Code, Codex.

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 Platos RAG

README.md
[![agentmods](https://agentmods.dev/badge/skills/winsenlabs/platos/platos_rag/github.svg)](https://agentmods.dev/skills/winsenlabs/platos/platos_rag)
Your own site
<a href="https://agentmods.dev/skills/winsenlabs/platos/platos_rag"><img src="https://agentmods.dev/badge/skills/winsenlabs/platos/platos_rag/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 Platos RAG

Your own site · 80×15
<a href="https://agentmods.dev/skills/winsenlabs/platos/platos_rag"><img src="https://agentmods.dev/badge/skills/winsenlabs/platos/platos_rag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,087 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.00070 $0.01087
Opus 5 $0.00035 $0.00544
Sonnet 5 $0.00014 $0.00217
Haiku 4.5 $0.00007 $0.00109

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

Security

Grade A, and why

Platos RAG 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 8d 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.

apps/agent/src/skills/official/platos_rag.skill.md · 64 lines

What it actually says

You have a retrieval-augmented-generation (RAG) toolbelt backed by Platos long-term memory. Every chunk is scoped to (org, project, env, user) — other users and other scopes never see it.

rag_ingest_document — bring content into memory.

  • source accepts a single URL, a single attachmentId:<id> ref, or an array.
  • URLs are fetched via the built-in fetch_url path (or parallel_extract when PARALLEL_API_KEY is set).
  • attachmentId:* pulls the bytes from the agent's MinIO workspace.
  • Content is split sentence-aware into chunkSize blocks with overlap carried forward.
  • If more than 5 sources are passed, the call is queued via agent_batch and returns { batchRunId } immediately — check the batch progress stream for completion.

rag_retrieve — fetch the top matching chunks for a query.

  • Returns { chunks: [{ content, sourceUrl, chunkIndex, score }], totalChunks, reranked }.
  • filterTags narrows to chunks that were ingested with at least one of the supplied tags.
  • rerank: true is a no-op today (returns a warning) — the simple cosine search still runs.

rag_delete_source / rag_list_sources / rag_reindex — housekeeping.

When to use:

  • The user asks a question that depends on specific documents ("given the handbook above…").
  • You want to ground your answer in user-supplied material rather than the model's training data.

Guidelines:

  • Cite every chunk you rely on with [1](sourceUrl) footnotes.
  • Prefer topK=8 for exploratory queries, drop to 3–5 for tight factual lookups.
  • Use filterTags when the user has multiple document sets — keeps retrieval relevant.
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. 8d ago First seen · 64 lines · 70 tokens per session scan A c33a6bcd8dc5

Subscribe to this mod's changes

Platos RAG is a skill published in the GitHub repository winsenlabs/platos (24 stars, last pushed yesterday), licensed Apache-2.0. It adds 70 tokens to every session and 1,087 once invoked, about $0.0003 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-09-04.

Related

Other skills, from other repositories

molecular-rag

Retrieve structurally similar compounds with known properties from ChEMBL/ZINC to ground predictions and inform optimization. Based on MolRAG (Xian 2025, ACL).

synthetic-sciences/openscience · 40 tokens

browserwing-admin

Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.

MemTensor/MemOS · 47 tokens

wegent-knowledge

Knowledge base management and search tools for Wegent. Provides capabilities to list, create, update, and search knowledge bases and documents using RAG retrieval. Use this skill when the user wants to manage knowledge bases, documents, or search for information programmatically.

wecode-ai/Wegent · 51 tokens

local-embedding

Run embedding on-device with ONNX Runtime. Build from source, model selection, offline mode. Use when setting up local embedding without an API key.

matrixorigin/memoria · 34 tokens

memori

You have access to Memori, agent-native memory infrastructure: an LLM-agnostic layer that structures memory from not just natural language, but also from agent trace that comes from execution.

MemoriLabs/Memori · 0 tokens

dify

Use when building LLM applications with visual workflow — RAG knowledge bases, AI agents, chatbots with drag-and-drop orchestration. Dify: open-source LLM app platform supporting 30+ models (OpenAI, Claude, DeepSeek, Ollama, Qwen, GLM) with Docker deployment.

znlgis/opengis-skills · 66 tokens