Tenets is a free open‑source MCP server, Python library and CLI that builds intelligent, LLM-ready code context for AI coding assistants; it uses NLP and multi‑factor relevance scoring (BM25, TF‑IDF, import graphs and optional semantic embeddings) to analyze, rank and distill the most relevant files, auto-injects project "tenets" (guiding principles) into prompts, and offers session/stateful context management and summaries—all 100% local with native MCP support for Cursor, Claude and Windsurf so you can feed high‑signal, privacy-preserving context to LLMs, speed onboarding, reduce context drift, and enforce consistent AI-driven code guidance.
BM25 + TF-IDF + import graphs find the right files automatically.
Comments will not be approved to be posted if they are SPAM, abusive, off-topic, use profanity, contain a personal attack, or promote hate of any kind.