Frequently Asked Questions¶
General¶
What is Tenets?¶
Tenets is an intelligent code context platform that automatically finds, ranks, and aggregates relevant code for AI coding assistants. It works as a CLI tool, Python library, and MCP server.
What is MCP?¶
Model Context Protocol (MCP) is an open standard that allows AI assistants to interact with external tools and data sources. Tenets implements an MCP server so AI assistants like Claude and Cursor can directly access its functionality.
Is Tenets free?¶
Yes! Tenets is 100% free and open source under the MIT license. There are no usage limits, API costs, or premium tiers for the core functionality.
Does my code leave my machine?¶
No. All processing happens locally. Tenets never sends your code to external servers. This is a core design principle.
Installation¶
How do I install Tenets?¶
# Basic installation
pip install tenets
# With MCP server support
pip install tenets[mcp]
# Everything included
pip install tenets[all]
What Python versions are supported?¶
Tenets supports Python 3.9 through 3.13. We recommend Python 3.11 for best performance.
Do I need GPU for ML features?¶
No. ML features (semantic search, embeddings) work on CPU. GPU acceleration is optional and automatic if available.
MCP Server¶
How do I start the MCP server?¶
How do I configure Claude Desktop?¶
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
See the full MCP documentation for more configuration options.
How do I configure Cursor?¶
In Cursor Settings → MCP Servers, add:
What tools does the MCP server provide?¶
| Tool | Purpose |
|---|---|
distill | Build optimized code context for a task |
rank_files | Preview file relevance without fetching content |
examine | Analyze codebase structure and complexity |
chronicle | Analyze git history and patterns |
momentum | Track development velocity |
session_create | Create stateful development sessions |
tenet_add | Add guiding principles for consistency |
Usage¶
How does ranking work?¶
Tenets uses multi-factor ranking:
- BM25 scoring — Text relevance to your prompt
- Keyword extraction — Important terms from your query
- Import centrality — Files that many others depend on
- Git signals — Recently modified, frequently changed
- Path relevance — Filename/path matches query terms
- Complexity metrics — Weighted by code significance
What's the difference between modes?¶
| Mode | Speed | Accuracy | Use Case |
|---|---|---|---|
fast | ~1s | Good | Quick exploration |
balanced | ~3s | Better | Most tasks (default) |
thorough | ~10s | Best | Complex refactoring |
How do I include/exclude files?¶
# Include only Python files
tenets distill "find auth" --include "*.py"
# Exclude tests and generated files
tenets distill "find auth" --exclude "test_*" --exclude "*.min.js"
What's a session?¶
Sessions let you: - Pin files for guaranteed inclusion in context - Track history across multiple prompts - Maintain state for long-running tasks
tenets session create auth-feature
tenets session pin auth/ --session auth-feature
tenets distill "implement OAuth" --session auth-feature
What are tenets (guiding principles)?¶
Tenets are rules injected into every context to prevent "drift" in AI responses:
tenets tenet add "Always validate user input before database queries" --priority high
tenets tenet add "Use type hints in all Python functions" --category style
Troubleshooting¶
"MCP dependencies not installed"¶
Run: pip install tenets[mcp]
"No files found"¶
- Check your path is correct
- Ensure files aren't in
.gitignore - Try
--include-testsif looking for test files
"Token limit exceeded"¶
- Reduce
--max-tokens - Use
--mode fastfor less content - Add
--excludepatterns for large generated files
Server not connecting to IDE¶
- Verify installation:
tenets-mcp --version - Check config path is correct
- Restart the IDE after config changes
- Try absolute path to
tenets-mcpbinary
Contributing¶
How can I contribute?¶
- Report bugs: GitHub Issues
- Submit PRs: Fork, branch, and open a pull request
- Improve docs: Documentation PRs are always welcome
- Share feedback: Discord or email
Where's the roadmap?¶
See our Architecture Roadmap for planned features.
Still have questions?¶
- Discord: Join our community
- Email: team@tenets.dev
- GitHub: Open an issue
Need enterprise support or custom development?
Contact manic.agency →