qmcp: Instructions file for Codex

AGENTS.md

qmcp AGENTS.md is an instructions file for Codex, OpenCode from BigKAA/qmcp. It costs 2,759 tokens per session, scanned C, original, Apache-2.0.

An AGENTS.md instruction file for developing qmcp, an MCP server that searches code and documentation using Qdrant. Qdrant is a database that finds similar text or code by meaning rather than exact words.

In plain words
What is it for?
Use it when maintaining qmcp's indexing, semantic search, file watching, cleanup, parsing, or test workflows.
Why use it?
It explains the project structure and commands needed to install, develop, test, lint, format, and run the server.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions OpenCode.

This is BigKAA/qmcp's own configuration. It tells Codex and OpenCode how to work on qmcp 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 qmcp configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/user/shared-docs,/home/user/shared-snippets.

View source ↗ BigKAA/qmcp
Reuse

Borrowing it

Nothing to install: this file belongs to BigKAA/qmcp. 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/BigKAA/qmcp/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/BigKAA/qmcp

Made for: Codex, OpenCode.

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 qmcp AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bigkaa/qmcp/agents-md"><img src="https://agentmods.dev/badge/instructions/bigkaa/qmcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,759 This file is loaded in full into every session.
When invoked 2,759 The same file — it is already loaded in full.
Security scan C 2 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.02759 $0.02759
Opus 5.5 $0.01104 $0.01104
Sonnet 5.5 $0.00552 $0.00552
Haiku 4.5 $0.00276 $0.00276

Measured today against content hash 8807aa4d0bf7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

qmcp AGENTS.md scanned grade C with 2 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 today.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

make test && rm -rf dist/ && uv build

Makes network callslowCapability

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

1. Verify Qdrant is running: `curl http://192.168.218.190:6333`
AGENTS.md · 381 lines

How it starts

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

AGENTS.md - Instructions for AI Agents

This file contains instructions for AI agents working on or with this project.

Project Overview

  • Project Name: qmcp (QDrant MCP Server)
  • Purpose: Semantic search server for code and documentation using Qdrant vector database
  • Language: Python 3.11+
  • Framework: FastMCP (MCP Python SDK)

Key Commands

Quick Start

# Install dependencies
make install

# Install as MCP server for OpenCode
make mcp-install

# Run tests
make test

# Lint code
make lint

Development

# Run in development mode (with MCP inspector)
make mcp-dev

# Run with coverage
make test-cov

# Format code
make format

Architecture

See ARCHITECTURE.md for detailed system architecture.

File Structure

qmcp/
├── src/
│   ├── qmcp/
│   │   ├── server.py      # FastMCP server, tools definition
│   │   ├── client.py     # Qdrant client wrapper
│   │   ├── config.py     # Pydantic settings
│   │   ├── indexer.py    # Code indexing logic
│   │   ├── watcher.py    # File system watcher
│   │   ├── cleanup.py    # Stale vector cleanup
│   │   ├── logging_config.py  # Logging configuration
│   │   ├── parser/       # Multi-language parsers
│   │   │   ├── base.py   # Parser interface
│   │   │   ├── python.py # AST parser
│   │   │   └── multi.py  # tree-sitter parsers
│   │   └── models.py     # Pydantic models
│   └── main.py           # Entry point
├── tests/
│   ├── test_server.py
│   ├── test_indexer.py
│   ├── test_parser.py
│   ├── test_watcher.py
│   └── test_cleanup.py
├── chart/                # Helm chart (optional, for production)
├── Makefile
└── pyproject.toml

Adding New Features

Adding a New Tool

  1. Add tool function to src/qmcp/server.py:

    @mcp.tool()
    async def my_new_tool(param: str = Field(...)) -> dict:
        """Tool description for LLM."""
        # Implementation
        return result
    
  2. Add tests to tests/test_server.py

Read the full file on GitHub · 381 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. today Changed · +8 lines · +230 tokens per session scan A → C 8807aa4d0bf7
  2. 2mo ago First seen · 373 lines · 2,529 tokens per session scan A 68becda12301

Subscribe to this mod's changes

qmcp AGENTS.md is an instructions file published in the GitHub repository BigKAA/qmcp (1 stars, last pushed today), licensed Apache-2.0. It adds 2,759 tokens to every session, about $0.0110 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

qmcp AGENTS.md compared with instructions from other repositories

qmcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
qmcp AGENTS.mdBigKAA/qmcpInstructions file1todayApache-2.0C2,759Codex, OpenCode
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,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot