mentedb: Instructions file for GitHub Copilot

.github/copilot-instructions.md

mentedb copilot-instructions.md is an instructions file for GitHub Copilot from nambok/mentedb. It costs 1,010 tokens per session, scanned A, original, Apache-2.0.

Repository-specific development instructions for MenteDB, a Rust database engine designed to store and retrieve information for AI-agent memory. They describe its project layout, build process, tests and important subsystems.

In plain words
What is it for?
Use them when developing MenteDB, navigating its Rust workspace, working on storage, search, queries or memory features, and running the project’s checks.
Why use it?
They give coding agents the context needed to work safely in an unfamiliar codebase. This helps them follow the repository’s conventions when changing or testing code.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nambok/mentedb/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/nambok/mentedb/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,010 This file is loaded in full into every session.
When invoked 1,010 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.01010 $0.01010
Opus 5.5 $0.00404 $0.00404
Sonnet 5.5 $0.00202 $0.00202
Haiku 4.5 $0.00101 $0.00101

Measured 18d ago against content hash 8080c8187b68, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mentedb copilot-instructions.md 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 18d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.github/copilot-instructions.md · 85 lines

How it starts

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

MenteDB Development Instructions

Project overview

MenteDB is a purpose built Rust database engine for AI agent memory. It includes custom storage (WAL, buffer pool, pages), HNSW vector indexing, CSR/CSC graph, a custom query language (MQL), context assembly with U curve attention layout, and 7 unique cognitive features (stream cognition, write time inference, trajectory tracking, phantom memories, interference detection, pain signals, speculative pre assembly).

Workspace structure

crates/
  mentedb-core/       Core types, config, error, MVCC, multi agent
  mentedb-storage/    Page manager, WAL, buffer pool, backup/restore
  mentedb-index/      HNSW vector index, bitmap, temporal, salience
  mentedb-graph/      CSR/CSC graph, traversal, belief propagation
  mentedb-query/      MQL lexer, parser, planner
  mentedb-context/    U curve attention layout, delta tracker, serializers
  mentedb-cognitive/  Stream cognition, write inference, trajectory, phantoms, interference, pain, speculative
  mentedb-consolidation/ Decay, archival, extraction, compression, GDPR forget
  mentedb-embedding/  Provider trait, hash/HTTP providers, LRU cache
  mentedb-server/     Axum REST API, JWT auth, rate limiting, WebSocket
  mentedb/            Unified facade (MenteDb struct)
sdks/
  python/             PyO3 bindings + pure Python client
  typescript/         napi-rs bindings + TypeScript client
  python/integrations/langchain/  LangChain memory, retriever, chat history
  python/integrations/crewai/     CrewAI memory and tool adapter

The SDKs are excluded from the Cargo workspace and build independently.

Build, test, and lint

Always run these before committing:

cargo fmt --all
cargo clippy --workspace -- -D warnings
cargo test --workspace

The server binary is mentedb-server and runs on axum with JWT auth, rate limiting, and WebSocket support.

Key types

  • MemoryNode: The fundamental storage unit (id, content, memory_type, embedding, metadata, timestamps)
  • MemoryEdge: Typed relationship between memories (caused, contradicts, relates_to, obsoletes, etc.)
  • MenteDb: The unified facade that coordinates all subsystems
  • MenteConfig: Top level config with sub configs for every subsystem
  • MenteError / MenteResult<T>: Error handling throughout

Read the full file on GitHub · 85 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. 18d ago Changed · +13 tokens per session 8080c8187b68
  2. 2mo ago First seen · 85 lines · 997 tokens per session scan A 11d901aa133e

Subscribe to this mod's changes

mentedb copilot-instructions.md is an instructions file published in the GitHub repository nambok/mentedb (124 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,010 tokens to every session, about $0.0040 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.

Related

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

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