by Houseofmvps
Universal AI context generator. Saves thousands of tokens per conversation in Claude Code, Cursor, Copilot, Codex, and more.
# Add to your Claude Code skills
git clone https://github.com/Houseofmvps/codesightGuides for using mcp servers skills like codesight.
codesight is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Houseofmvps. Universal AI context generator. Saves thousands of tokens per conversation in Claude Code, Cursor, Copilot, Codex, and more. It has 1,433 GitHub stars.
codesight's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Houseofmvps/codesight" and add it to your Claude Code skills directory (see the Installation section above).
codesight is primarily written in TypeScript. It is open-source under Houseofmvps on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh codesight against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
4,000+ downloads and counting.
Zero dependencies. AST precision. 30+ framework detectors. 14 ORM parsers. 14 MCP tools. One npx call.
Works with TypeScript, JavaScript, Python, Go, Ruby, Elixir, Java, Kotlin, Rust, PHP, Dart, Swift, C#, and BrightScript/BrighterScript ( Roku). TypeScript projects get full AST precision. Everything else uses battle-tested regex detection across the same 30+ frameworks.
Built by Kailesk Khumar, founder of HouseofMVPs and Kailxlabs
Also: ultraship (39 expert skills for Claude Code) · claude-rank (SEO/GEO/AEO plugin for Claude Code)
0 dependencies · Node.js >= 18 · 149 tests · 14 MCP tools · MIT · tested on 25+ OSS projects across 14 languages
Claude Code, Cursor, GitHub Copilot, OpenAI Codex, Windsurf, Cline, Aider, and anything that reads markdown.
npx codesight
That's it. Run it in any project root. No config, no setup, no API keys.
npx codesight --wiki # Generate wiki knowledge base (.codesight/wiki/)
npx codesight --init # Generate CLAUDE.md, .cursorrules, codex.md, AGENTS.md
npx codesight --open # Open interactive HTML report in browser
npx codesight --mcp # Start as MCP server (14 tools) for Claude Code / Cursor
npx codesight --blast src/lib/db.ts # Show blast radius for a file
npx codesight --profile claude-code # Generate optimized config for a specific AI tool
npx codesight --benchmark # Show detailed token savings breakdown
npx codesight --native-ast # Opt-in: AST plugins for more languages (see docs/wasm-plugins.md)
npx codesight --mode knowledge # Map knowledge base (.md notes → KNOWLEDGE.md)
npx codesight --mode knowledge ~/vault # Map Obsidian vault, ADRs, meeting notes, retros
Inspired by Karpathy's LLM wiki pattern — but compiled from AST, not an LLM. Zero API calls. 200ms.
npx codesight --wiki
Generates .codesight/wiki/ — a persistent knowledge base of your codebase that survives across every session:
.codesight/wiki/
index.md — catalog of all articles (~200 tokens) — read this at session start
overview.md — architecture, subsystems, high-impact files (~500 tokens)
auth.md — auth routes, middleware, session flow
payments.md — payment routes, webhook handling, billing flow
database.md — all models, fields, relations, high-impact DB files
users.md — user management routes and related models
ui.md — UI components with props
log.md — append-only record of every wiki operation
Why this cuts token usage further:
Instead of loading the full 5K token context map every conversation, your AI reads one targeted article:
| Question | Without wiki | With wiki |
|---|---|---|
| "How does auth work?" | ~12K tokens (reads 8+ files) | ~300 tokens (auth.md) |
| "What models exist?" | ~5K tokens (CODESIGHT.md) | ~400 tokens (database.md) |
| New session start | ~5K tokens (full reload) | ~200 tokens (index.md) |
Persistent across sessions. The wiki lives in .codesight/wiki/, committed to git. Every new Claude Code, Cursor, or Codex session
starts with full codebase knowledge from the first message.
Auto-regenerates. Use --watch to keep the wiki current as you code. Use --hook to regenerate on every commit.
3 new MCP tools for wiki access:
| Tool | What it does |
|---|---|
codesight_get_wiki_index |
Get the wiki catalog (~200 tokens) at session start |
codesight_get_wiki_article |
Read one article by name: auth, database, payments, etc. |
codesight_lint_wiki |
Health check: orphan articles, missing cross-links, stale content |
The key difference from general-purpose wiki tools: codesight already knows your routes, schema, blast radius, and middleware from AST — no LLM needed to extract code structure. The wiki is a narrative layer on top of data your codebase already contains.
Not just code — your decisions, meeting notes, ADRs, and retrospectives carry as much context as the codebase itself. --mode knowledge maps
them the same way codesight maps code.
npx codesight --mode knowledge # Scan current directory for .md files
npx codesight --mode knowledge ~/vault # Scan an Obsidian vault
npx codesight --mode knowledge ./docs # Scan a project docs folder
Outputs .codesight/KNOWLEDGE.md — a compact AI context primer:
# Knowledge Map — my-project
> 47 notes · 12 decisions · 8 open questions · 2025-09-01 → 2026-04-01
## Key Decisions (12)
- [2026-03-20] Going with Polar.sh over Stripe Connect — simpler global payments
- [2026-03-15] Decided to use PostgreSQL — better JSON support and Drizzle compatibility
- [2026-02-10] Will use Redis for rate limiting — BullMQ already in stack
## Open Questions (8)
- Should we support PayPal later?
- When do we start the Stripe marketplace application?
## Note Index (47)
### Decision Records (8)
- `decisions/adr-002-payments.md` — 2026-03-20 — Going with Polar.sh over Stripe Connect
- `decisions/adr-001-database.md` — 2026-03-15 — We need a relational database...
### Meeting Notes (14)
### Retrospectives (6)
### Specs & PRDs (5)
### Research (4)
What it detects automatically:
| Note type | Signals |
|---|---|
| Decision records | ADR format (## Decision), "decided to", "going with", "chose X over Y" |
| Meeting notes | Attendees:, Action items:, filename: standup, sync, 1on1 |
| Retrospectives | "What went well", "Stop doing", filename: retro, retrospective |
| Specs / PRDs | ## Goals, ## Requirements, filename: prd, spec, roadmap |
| Research | filename: research, analysis, benchmark, comparison |
| Session logs | filename: session, daily, weekly |
Supports:
[[backlinks]], #tags).md files with frontmatter)adr-tools, Log4brains, raw markdown)Used together:
Read .codesight/CODESIGHT.md → what the code does
Read .codesight/KNOWLEDGE.md → why decisions were made
CI: add npx codesight --mode knowledge alongside your existing codesight step. Both files stay current on every push.
Every number below comes from running codesight on real production codebases — both small SaaS projects (v1.6.2) and large open-source platforms with 4K–10K+ files (v1.6.4). Output tokens are measured from actual file size (chars / 4). Exploration tokens are estimated from what was extracted — routes × 400, models × 300, components × 250, etc. Route counts and model counts are cross-checked against actual source files.
codesight saves tokens at two distinct layers. The wiki (v1.6.2) adds a second layer on top of the base savings:
| Project | Manual exploration | codesight scan | codesight --wiki (targeted) | Total reduction |
|---|---|---|---|---|
| SaaS A | 46,020 tokens | 3,936 tokens (11.7x) | ~550 tokens | 83.7x |
| SaaS B | 26,130 tokens | 3,629 tokens (7.2x) | ~440 tokens | 59.4x |
| SaaS C | 47,450 tokens | 4,162 tokens (11.4x) | ~360 tokens | 131.8x |