codeprint
An MCP server that indexes your git history and serves your personal coding style back to Claude as style rules, exemplars, and refinement patterns for style-conditioned code generation.
README
codeprint
An afternoon experiment: index your own git history and serve your coding style back to Claude over MCP, in the spirit of "write code like your favorite author," except the author is you.
This is more novelty than daily tool. It works, but it is not something reached for on every task; treat it as a proof of concept for style-conditioned code generation, not a production pipeline.
What it does
codeprint walks your authored commits, uses tree-sitter to snapshot each touched
function as it existed at that commit, dedupes to the latest version per symbol, and
drops anything you contributed less than half of (--min-contribution) so lightly
touched code never enters the profile. Each surviving function gets a one-line summary
from Claude, an embedding from Voyage, and a home in a local SQLite database
(sqlite-vec for the vector search). Everything is keyed by content hash, so
re-running only pays for new or changed code.
From that corpus, an LLM distills a tiered style rulebook (universal rules, then per-language, then per-stack) and a separate pass classifies how you revise your own code across successive commits into a refinement profile.
Serve it to Claude
A local MCP server exposes the profile as tools:
get_style_rules(language?): the rulebook, filtered to the target language.find_exemplars(task, language?, k?): your prior code most similar to a task, as few-shot exemplars.get_refinement_patterns(): how you revise and refactor your own code.
A companion skill (skill/codeprint-style/) wires these into Claude Code. It never
auto-triggers (disable-model-invocation: true); invoke it explicitly with
/codeprint-style when you want code written in your style.
Setup
Requires Node 22+, VOYAGE_API_KEY for embeddings, and either ANTHROPIC_API_KEY or a
logged-in local claude CLI (LLM calls default to whichever is available; the
claude-CLI path runs headless claude -p so it bills against a Claude subscription
instead of API rates).
npm install && npm run build
Index a repo
codeprint index ~/Documents/GitHub/myrepo \
--profile matt \
--author me@example.com me@work.com \
--since 2024-01-01
Serve to Claude
.mcp.json (or Claude Code MCP settings):
{
"mcpServers": {
"codeprint": {
"command": "codeprint",
"args": ["serve", "--profile", "matt"]
}
}
}
Install the skill by copying skill/codeprint-style/ into ~/.claude/skills/.
Other commands
codeprint distill: re-run rulebook distillation without re-indexing.codeprint refine: classify revision history and distill refinement patterns.codeprint eval: a blind A/B harness that generates styled vs. baseline solutions to built-in tasks and has a separate judge model score and guess which is which.codeprint site: renders a shareable "coding personality" HTML page from the distilled profile.
White paper
report/ holds a longer write-up: architecture, the rulebook, honesty checks against
project-specific residue, blind eval results, and refinement findings, with a small
Bun static server (report/server.ts) to view it locally.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.