Sephera
Sephera is a local-first Rust CLI for two jobs that are usually split across separate tools:
- repository metrics
- deterministic context export
It currently focuses on three practical commands:
loc: fast, language-aware line counting across project treescontext: deterministic Markdown or JSON bundles with AST compressionmcp: built-in MCP server for direct AI agent integration
Sephera is intentionally narrow in scope. It does not try to be an agent runtime, a hosted service, or a provider-specific AI wrapper.
Install
Quick examples
Count lines of code in the current repository:
Build a focused context pack and export it to JSON:
Compress context excerpts to reduce token usage (supports 8 languages):
Start MCP server for AI agent integration:
Build a review-focused pack from Git changes:
List configured profiles for the current repository:
Why not cloc or tokei?
If you only need line counts, cloc and tokei are excellent tools and already solve that job well.
Sephera is useful when you need more than raw totals:
locis only one half of the workflowcontextturns repository structure into deterministic Markdown or JSON bundlescontext --diffcan center those bundles on a branch, commit, or current working tree.sephera.tomllets teams keep shared context defaults and named profiles in the repository- AST compression reduces token usage by 50-70% while preserving API surface
- focus paths and approximate token budgets make output more practical for LLM use
sephera mcpprovides direct integration with AI agents like Claude Desktop
The goal is not to replace every code metrics tool. The goal is to pair trustworthy repository signals with context export that is actually usable in modern review and AI-assisted workflows.
Learn more
- Documentation: https://sephera.vercel.app
- Repository: https://github.com/Reim-developer/Sephera