ragflow: Instructions file for GitHub Copilot

.github/copilot-instructions.md

ragflow copilot-instructions.md is an instructions file for GitHub Copilot from infiniflow/ragflow. It costs 156 tokens per session, scanned A, original, Apache-2.0.

Coding instructions for Copilot when working on a RAGFlow-style project. They outline the basic setup, expected folders, and conventions such as making small changes, logging new flows, and updating tests.

In plain words
What is it for?
Getting oriented in the project, running its Python application, locating API and service code, and adding tests for behavior changes.
Why use it?
They give Copilot a quick operating guide so it knows where code belongs and how changes should be checked. The setup and verification commands are partly placeholders, so they may need completion.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is infiniflow/ragflow's own configuration. It tells GitHub Copilot how to work on ragflow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ragflow configures →

About the project

RAGFlow is an open-source Retrieval-Augmented Generation engine that combines document retrieval, context management, and agent capabilities to help build AI applications. Developers use it to turn complex data into searchable, context-aware systems through workflows, datasets, and agent templates; the catalogue entries support working with RAGFlow.

infiniflow/ragflow · 93,628 stars · on GitHub · ragflow.io

Reuse

Borrowing it

Nothing to install: this file belongs to infiniflow/ragflow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/infiniflow/ragflow/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/infiniflow/ragflow

Made for: GitHub Copilot.

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 ragflow copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/infiniflow/ragflow/copilot-instructions/github.svg)](https://agentmods.dev/instructions/infiniflow/ragflow/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/infiniflow/ragflow/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/infiniflow/ragflow/copilot-instructions/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 ragflow copilot-instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/infiniflow/ragflow/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/infiniflow/ragflow/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 This file is loaded in full into every session.
When invoked 156 The same file — it is already loaded in full.
Security scan A 1 finding. 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.00156 $0.00156
Opus 5.5 $0.00062 $0.00062
Sonnet 5.5 $0.00031 $0.00031
Haiku 4.5 $0.00016 $0.00016

Measured 2mo ago against content hash 0fc68ea78263, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ragflow copilot-instructions.md scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- (fill) curl http://127.0.0.1:8000/health
.github/copilot-instructions.md · 23 lines

What it actually says

Project instructions for Copilot

How to run (minimum)

  • Install:
    • python -m venv .venv && source .venv/bin/activate
    • pip install -r requirements.txt
  • Run:
    • (fill) e.g. uvicorn app.main:app --reload
  • Verify:

Project layout (what matters)

  • app/: API entrypoints + routers
  • services/: business logic
  • configs/: config loading (.env)
  • docs/: documents
  • tests/: pytest

Conventions

  • Prefer small, incremental changes.
  • Add logging for new flows.
  • Add/adjust tests for behavior changes.
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. 2mo ago First seen · 23 lines · 156 tokens per session scan A 0fc68ea78263

Subscribe to this mod's changes

ragflow copilot-instructions.md is an instructions file published in the GitHub repository infiniflow/ragflow (93,628 stars, last pushed yesterday), licensed Apache-2.0. It adds 156 tokens to every session, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ragflow copilot-instructions.md compared with instructions from other repositories

ragflow copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ragflow copilot-instructions.mdinfiniflow/ragflowInstructions file94kyesterdayApache-2.0A156GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode