Agentic RAG.For developers.With your sources.

Give your agent precise context from code, specs, Office files, and PDFs. Ragmir indexes locally and returns exact citations. Your agent searches, refines, and answers with the model you choose.

Fewer tokens Retrieve only cited passages.
Verifiable citations Source, excerpt, and location.
Your agent, your model Local, self-hosted, or remote.
Library + CLI + MCP One local retrieval layer.
Claude Code / Codex | ~/projects/account-recoveryAgentic RAG

Ask Claude Code or Codex to build a feature from project documents. The agent searches, reads, refines, then codes.

Use cases

Four workflows. One cited evidence layer.

Build features, investigate incidents, prepare migrations, or make a confidential decision with a local or self-hosted chat.

Build a feature with Claude Code or Codex.

Your coding agent searches the specification, checks exceptions, then changes code and tests.

1 / 4

  1. 01 · Trigger

    Ask Claude Code or Codex to add account recovery.

  2. Project documents

    The selected Word specification and authentication ADR.

  3. 02 · Retrieval

    The agent finds rules, opens sources, and searches for exceptions.

  4. 03 · Cited result

    The agent updates code and tests, citing the rules it applied.

Diagnose an incident before changing production code.

Your coding agent grounds a regression fix in the runbook, incident report, and relevant source.

2 / 4

  1. 01 · Trigger

    Ask Claude Code or Codex to diagnose a checkout timeout.

  2. Project documents

    The timeout runbook, incident report, and retry implementation.

  3. 02 · Retrieval

    The agent verifies retry rules and opens the cited implementation.

  4. 03 · Cited result

    The agent fixes the regression and adds a test from the evidence.

Prepare a safe API migration with Claude Code or Codex.

Your coding agent checks compatibility, architecture constraints, and callers before updating code.

3 / 4

  1. 01 · Trigger

    Ask Claude Code or Codex to prepare the API v2 migration.

  2. Project documents

    The migration plan, versioning ADR, and current call sites.

  3. 02 · Retrieval

    The agent finds compatibility rules and the affected paths.

  4. 03 · Cited result

    The agent updates callers and migration tests with cited constraints.

Make an architecture decision with a confidential chat.

Discuss internal constraints with a chat and model running locally or on infrastructure you operate.

4 / 4

  1. Project documents

    Internal architecture notes and constraints on attachment storage.

  2. 01 · Retrieval

    Ragmir finds the storage requirements and their sources.

  3. 02 · Agent action

    The selected model runs on this machine or on your own server.

  4. 03 · Cited result

    A cited decision: files in object storage, metadata in PostgreSQL.

Install

Install once. Retrieve through CLI, TypeScript, or MCP.

Add Ragmir Core to the repository that owns the files, using Node.js 22.12 or later. Choose the sources, then ingest. Local-hash retrieval needs no account, API key, or model download.

Set up Ragmir

Let your coding agent tailor the setup, or choose your package manager and run the commands yourself.

Let your coding agent configure Ragmir

Paste this prompt into your coding agent. It inspects the repository, asks before making choices, installs the right packages, and verifies cited retrieval.

Build your agentic RAG workflow

Connect your agent. Keep your choice of model.

Your agent chooses when to search, expand a citation, or refine a query. MCP starts with at most three compact citations by default. The agent handles reasoning, generation, and actions.

Connect Claude Code, Codex, Kimi, OpenCode, or Cline

Connect your chat or model

Use an MCP-capable client or a small TypeScript application. The guide covers local Ollama, a self-hosted model endpoint, and cloud APIs.

Read the model integration guide

Choose your operating mode

The same cited retrieval, whichever application consumes it.

On your machine

Run Ragmir, your chat or agent, and a downloaded model on the same machine, for example with Ollama. Keep inference local and disable remote calls in the consumer when passages must stay on that machine.

On your own server

Use a model you host on a server or private cloud infrastructure. Retrieved passages travel to that server. You manage who can access them, the connection, and retained logs.

With a cloud provider

Connect a compatible chat or coding agent to Ragmir through MCP or your application. Passages sent to the model leave your environment and are subject to its provider’s data policy.

Focused on retrieval

Index useful sources. Retrieve precise evidence.

One library for project knowledge, with document parsing and OCR included. Add semantic embeddings when your corpus needs them.

Included

Project retrieval

Turn selected files into cited context for agents, scripts, and TypeScript applications.

Prepare

Run

  • Index changes incrementally and resume interrupted work.
  • Search code, specs, and Office rows with cited headers.
  • Expand a cited passage and verify its indexed version.
  • Use the same local index through CLI, MCP, or TypeScript.
Optional

Scanned documents

Keep useful evidence in scanned PDFs accessible through the integrated local OCR workflow.

Prepare

Run

  • Extract embedded text first; OCR only blank pages.
  • Keep page citations attached to retrieved passages.
  • Reuse cached OCR results in bounded batches.
  • Choose an installed Tesseract or OCRmyPDF engine.
Optional

Semantic retrieval

Add meaning-based matching with a local embedding model when keyword evidence is not enough.

Prepare

Run

  • Install Transformers only when you need it.
  • Download the chosen model explicitly, then use its local cache.
  • Combine lexical and vector evidence with source filters.
  • Measure retrieval quality with your own golden queries.

Control your data

Local retrieval. An explicit data path.

Ragmir keeps its index on the machine where it runs and returns source text without masking. Confidentiality also depends on the chat or agent, the model host, and their logs and network settings.

Documents on disk

Select the folders Ragmir can read. Ragmir does not upload your source files to a hosted document store.

Git-ignored state

The index, reports, and generated integrations stay in the local git-ignored .ragmir/ folder.

Selected sources

Include useful folders and exclude credentials, generated output, and unrelated data.

Explicit consumption

Your application decides where retrieved passages go. A cloud model provider receives those you include in its requests; self-hosting requires access, transport, and logging controls.

Useful by design

Built for the documents your code search does not see.

Ragmir turns private, scattered project documents into a local evidence layer that coding agents and scripts can query offline through MCP, CLI, or TypeScript.

Where Ragmir fits best

01

Project knowledge beyond code

Search PDFs, DOCX, XLSX, specifications, contracts, and runbooks alongside the repository they explain.

02

More context, fewer tokens

Start with at most three compact citations, then expand only the selected evidence instead of pasting a large or fragmented corpus into one prompt.

03

A corpus that stays yours

Keep the index local and pair Ragmir with a local consumer when no cited passage may leave the workstation.

04

Evidence agents and scripts can reuse

Give coding agents and local scripts traceable passages with file, line, chunk, and PDF page references.

FAQ

Frequently asked questions

Sources, local models, OCR, and integration with your development tools.

What is Ragmir?

Ragmir is the retrieval layer for agentic RAG: it indexes selected project files and returns exact cited passages through TypeScript, CLI, or MCP. Your agent decides when to search again, reasons over the evidence, and generates the answer. Default retrieval works offline without a model download.

Does Ragmir send my confidential code or documents?

Ragmir has no telemetry or hosted document store. It indexes on the machine where it runs and returns unmasked passages. Your chat or agent can forward those passages to a model provider. For confidential work, control the whole path: client, local or self-hosted model, connection, access, and logs. Optional semantic setup explicitly downloads model weights.

Which AI agents and tools does Ragmir work with?

Ragmir Core is model-agnostic. Integrations cover Claude Code, Codex, Kimi, OpenCode, and Cline. Other MCP clients, local scripts, desktop tools, and CI jobs use the same cited results.

How does a team share the same knowledge base?

Share reviewed source documents through your normal Git or file-sharing workflow, then run rgr ingest on each workstation. Each developer keeps a local index. Ragmir does not manage branches or synchronize peers.

Does Ragmir require an API key, a model download, or an internet connection?

The default local-hash provider works offline with no API key or model download. Semantic retrieval needs the optional Transformers package and a model preload. A fully local workflow also uses a local consuming model; Ollama is one option.

Can I see where ingestion time and memory are spent?

Optional ingestion metrics report phase timings, throughput, queues, OCR cache hits, and memory use. These local diagnostics omit document content and queries; there is no usage-tracking service.

How does Ragmir differ from IDE code indexing or hosted RAG?

Native code search handles structured code well. Ragmir targets project documents that need citations, keeps its index local, and exposes bounded passages through non-destructive MCP tools. Small output budgets keep exact citations and return typed summaries with omission counts.

Does Ragmir write the answers for me?

Ragmir supplies the search and citation tools for agentic RAG. Your agent, chat, or application chooses when to call them and sends the evidence to its model. The integration guide covers local Ollama, self-hosted servers, and cloud providers.

Which file formats can Ragmir index?

Source code, text, Markdown, PDF, Office and OpenDocument, EPUB, HTML, CSV, JSON, and YAML, plus the custom text extensions you enable. Unsupported files are flagged explicitly. Scanned PDFs can use optional local OCR with bounded page batches and a private resumable cache.

Does Ragmir run as a web server or use a fixed port?

No. Use the local stdio MCP server for coding agents or embed the TypeScript client in a stateful Node.js process. Ragmir opens no HTTP port; a network-facing application owns authentication, authorization, rate limits, and transport security.

Start with the core

Give your agents the context your project needs.

Give your developer agents useful project evidence through MCP, CLI, or TypeScript. Keep the model and workflow you choose.

Copied to clipboard