SovereignPrompt
Deterministic prompt optimization.
Built in Rust. Runs locally. Zero telemetry.
The first MCP-native prompt optimization engine. Strip 30–75% of wasted tokens through 9 heuristic checks, generate 3 strategic variants, and get cryptographically signed audit trails.
MCP Tools
Passing Tests
Heuristic Checks
Network Egress
Built for precision
Every feature designed around one goal: make your prompts measurably better without leaving your machine.
9 Heuristic Checks
Redundancy, vagueness, filler words, passive voice, over-qualification, nested clauses, token waste, ambiguity, and structural issues.
3 Strategic Variants
Precision (max specificity), Creative (exploratory framing), and Concise (minimal tokens) — generated deterministically.
30-75% Token Savings
Strips wasted tokens while preserving semantic intent. Measurable savings on every prompt.
MCP-Native
15 tools exposed via Model Context Protocol. Drop into Claude Desktop or Claude Code with zero config friction.
Cryptographic Signing
SHA-256 content hashes + HMAC-SHA256 signatures on every optimization. Full audit trail, tamper-evident.
100% Local
Zero network egress. Zero telemetry. Zero cloud dependencies. Your prompts never leave your machine.
How it works
A deterministic pipeline from raw prompt to signed, optimized output.
Input
Raw prompt submitted via MCP tool call
Analyze
9 heuristic checks score the prompt
Optimize
Strip waste, preserve semantic intent
Generate
3 strategic variants (Precision, Creative, Concise)
Sign
SHA-256 hash + HMAC-SHA256 signature
Return
Optimized prompt + audit receipt via MCP
Get started in minutes
Build from source, then drop into Claude Desktop or Claude Code.
1. Build
git clone https://github.com/ExecLayer/sovereign-prompt.git
cd sovereign-prompt
cargo build --release2. Claude Desktop Config
Add to claude_desktop_config.json
{
"mcpServers": {
"sovereign-prompt": {
"command": "/path/to/sovereign-prompt/target/release/sovereign-prompt",
"args": ["--mcp"]
}
}
}3. Claude Code
claude mcp add sovereign-prompt /path/to/sovereign-prompt/target/release/sovereign-prompt -- --mcp