librechat-documentation

librechat-documentation is a cursor rule for Cursor from LibreChat-AI/librechat.ai. It costs 966 tokens per session, scanned A, original, MIT.

A documentation rule for recording new LibreChat configuration versions. LibreChat is a chat application, and its configuration controls how the application is set up.

In plain words
What is it for?
Use it when updating a LibreChat config version to create the required dated page, content file, change list, and documentation links.
Why use it?
It gives each configuration release a predictable changelog page and content file, making changes easier to track and explain.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when updating a LibreChat config version to create the required dated page, content file, change list, and documentation links.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/librechat-ai/librechat.ai/librechat-documentation
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.

Clone the repo
git clone --depth 1 https://github.com/LibreChat-AI/librechat.ai

Made for: Cursor.

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 librechat-documentation

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/librechat-ai/librechat.ai/librechat-documentation"><img src="https://agentmods.dev/badge/rules/librechat-ai/librechat.ai/librechat-documentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 966 This file is loaded in full into every session.
When invoked 966 The same file — it is already loaded in full.
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.00966 $0.00966
Opus 5.5 $0.00386 $0.00386
Sonnet 5.5 $0.00193 $0.00193
Haiku 4.5 $0.00097 $0.00097

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

Security

Grade A, and why

librechat-documentation 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 1mo 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.

.cursor/rules/librechat-documentation.mdc · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LibreChat Documentation Rules

Config Version Updates

When updating the LibreChat config version (e.g., from v1.2.6 to v1.2.7), follow these steps:

1. Create Changelog Files

Main Changelog File

Create: pages/changelog/config_v{VERSION}.mdx

Template:

---
date: YYYY/MM/DD
title: ⚙️ Config v{VERSION}
---

import { ChangelogHeader } from '@/components/changelog/ChangelogHeader'
import Content from '@/components/changelog/content/config_v{VERSION}.mdx'

<ChangelogHeader />

---

<Content />
Content File

Create: components/changelog/content/config_v{VERSION}.mdx

Format:

  • Use bullet points starting with -
  • Group related changes together
  • Include links to detailed documentation using [Feature Name](/docs/configuration/librechat_yaml/object_structure/{feature})
  • Describe what was added/changed and its purpose
  • Keep descriptions concise but informative

Example:

- Added `memory` configuration to control memory functionality for conversations
  - Configure memory persistence and personalization settings
  - Set token limits and message window sizes for memory context
  - Configure agents for memory processing with provider-specific settings
  - Supports both predefined agents (by ID) and custom agent configurations
  - See [Memory Configuration](/docs/configuration/librechat_yaml/object_structure/memory) for details

2. Create Object Structure Documentation

For new root-level configurations, create: pages/docs/configuration/librechat_yaml/object_structure/{feature}.mdx

Structure:

  1. Title: # {Feature} Configuration
  2. Overview: Brief description of the feature
  3. Example: Complete YAML example showing all options
  4. Field Documentation: Use <OptionTable> components for each field
  5. Subsections: For complex nested objects
  6. Notes: Important considerations at the end

3. Update Navigation

Add the new feature to: pages/docs/configuration/librechat_yaml/object_structure/_meta.ts

Read the full file on GitHub · 146 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. 1mo ago First seen · 146 lines · 966 tokens per session scan A c7feb9da821a

Subscribe to this mod's changes

librechat-documentation is a cursor rule published in the GitHub repository LibreChat-AI/librechat.ai (662 stars, last pushed 26d ago), licensed MIT. It adds 966 tokens to every session, about $0.0039 per session on Opus 5.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-30.