infomesh: Instructions file for GitHub Copilot

.github/copilot-instructions.md

infomesh copilot-instructions.md is an instructions file for GitHub Copilot from dotnetpower/infomesh. It costs 16,254 tokens per session, scanned B, original, MIT.

A project guide for InfoMesh, a decentralized peer-to-peer search engine designed for AI assistants. It explains the project’s purpose, principles, technology choices, and code layout.

In plain words
What is it for?
Use it when working on InfoMesh’s crawling, indexing, search, peer-to-peer networking, or Model Context Protocol integration.
Why use it?
It gives coding agents the project context they need to make changes that fit InfoMesh’s architecture and goals.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: built for cline.

This is dotnetpower/infomesh's own configuration. It tells GitHub Copilot how to work on infomesh 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 infomesh configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dotnetpower/infomesh. 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/dotnetpower/infomesh/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/dotnetpower/infomesh

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dotnetpower/infomesh/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/dotnetpower/infomesh/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16,254 This file is loaded in full into every session.
When invoked 16,254 The same file — it is already loaded in full.
Security scan B 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.16254 $0.16254
Opus 5.5 $0.06502 $0.06502
Sonnet 5.5 $0.03251 $0.03251
Haiku 4.5 $0.01625 $0.01625

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

Security

Grade B, and why

infomesh copilot-instructions.md scanned grade B 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 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- WSL startup reads the effective `wslinfo --networking-mode`. Mirrored mode checks port-specific inbound TCP Hyper-V rules in ActiveStore and prints scoped administrator commands, never NAT portproxy setup. Unknown mode
.github/copilot-instructions.md · 869 lines

How it starts

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

InfoMesh — Copilot Instructions

Project Overview

InfoMesh is a fully decentralized P2P search engine designed exclusively for LLMs. It crawls, indexes, and searches the web via a peer-to-peer network and exposes results through MCP (Model Context Protocol) — no human-facing UI required.

The static EN/KO project website is in site/, deployed separately by .github/workflows/pages.yml. It is a project introduction and MCP setup guide, not a hosted search interface. Keep asset URLs relative, client-specific MCP configuration correct, EN/KO text paired, and keyboard/reduced-motion support. Its network illustration is conceptual; never imply live peer counts or privacy guarantees for distributed queries. Validate desktop/mobile interactions and run node --check site/app.js plus actionlint after website/workflow changes. Keep social-preview metadata in the initial HTML with absolute HTTPS image URLs, matching PNG dimensions and alt text for OG/Twitter. Verify with uv run pytest tests/test_site.py -q; external previews require public deployment.

Mission: InfoMesh does not compete with commercial search providers. These companies serve human search at massive scale with ads-based monetization. InfoMesh provides minimal, sufficient search capabilities for LLMs — for free, via MCP — democratizing real-time web access for AI assistants without per-query billing. It is a community-driven public utility, complementary to existing search providers.

Core Principles

Principle Description
Fully Decentralized No central server. Every node is both a hub and a participant.
LLM-First No browser UI. Pure text API optimized for LLM consumption.
Contribute = Reward More crawling contribution → more search quota (cooperative tit-for-tat model).
Offline-Capable Local index is searchable without internet.
Privacy Search queries are never recorded centrally.

Tech Stack

Layer Technology Notes
Language Python 3.12+ Use modern Python features (type hints, match, type statement, StrEnum, etc.)
P2P Network libp2p (py-libp2p) Optional (pip install 'infomesh[p2p]'). DHT, Noise encryption built-in. Uses trio, not asyncio — see note below
DHT Kademlia Distributed hash table for index & crawl coordination
Crawling httpx + asyncio Async-first HTTP client
HTML Parsing trafilatura Best accuracy for main-content extraction
Keyword Index SQLite FTS5 Zero-install, embedded full-text search
Vector Index ChromaDB Semantic search with embeddings
MCP Server mcp-python-sdk VS Code / Claude / Cursor / Windsurf integration
Admin API FastAPI Local status & config endpoints
Serialization msgpack Faster and smaller than JSON
Compression zstd Level-tunable compression; dictionary mode for similar documents
Local LLM ollama / llama.cpp Optional local summarization (Qwen 2.5, Llama 3.x, etc.)
Logging structlog Structured logging for all library code
Package Manager uv Fast Python package/project manager (replaces pip/venv)
Build Backend hatchling PEP 517 build backend for PyPI distribution
JS Rendering Playwright Optional headless Chromium (pip install 'infomesh[browser]')
CJK Tokenization jieba Optional Chinese segmentation (pip install 'infomesh[cjk]')

Read the full file on GitHub · 869 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 Changed · +57 lines · +2,572 tokens per session scan A → B c8c075869416
  2. 2mo ago First seen · 812 lines · 13,682 tokens per session scan A 77bc01122659

Subscribe to this mod's changes

infomesh copilot-instructions.md is an instructions file published in the GitHub repository dotnetpower/infomesh (7 stars, last pushed 1mo ago), licensed MIT. It adds 16,254 tokens to every session, about $0.0650 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

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

infomesh copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
infomesh copilot-instructions.mddotnetpower/infomeshInstructions file71mo agoMITB16,254GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode