# Code Fundi | The Codebase Context Layer for Agents, Teams and Applications > The Data Layer for Autonomous Engineering Stop wasting 50% of your context window on raw code noise. Code Fundi turns any repository into LLM-ready, searchable Markdown. Give your agents the high-density context they need to ship code, not hallucinations. ## Agent-readable pages Append `?view=raw` to any internal URL for token-optimized Markdown. Use the Human / Agent toggle in the site header to switch views in a browser. Support: hi@codefundi.app - [Home (full landing)](/?view=raw): Complete product overview in one file. - [llms.txt](/llms.txt/?view=raw): This file. ## Burn 50% Less Tokens Today When agents ingest entire files, 90% of what they read is boilerplate noise. This saturates the context window, triggers hallucinations, and skyrockets your API costs. Reduce your token consumption by up to 50% and eliminate the 'context rot' caused by cluttered context windows. We bridge the gap between raw source code and agentic intelligence. Lower costs. Higher accuracy. Zero hallucinations. Highlight: 50% Token Savings ## Built for Agents and Applications High-density data for high-performance engineering. Raw code creates noise. Code Fundi generates the signal. - **Turn Repos into Markdown**: Automatically convert entire repos into token-optimized Markdown. Perfect for RAG, documentation, and prompt engineering. - **Universal Search**: Execute sub-second queries across multiple public repos simultaneously. Find the needle in the AST. - **Real-Time Observability**: Stay informed as your codebase evolves, ensuring human teams and agents never lose track as it scales. - **AST-Aware Logic Mapping**: We map code structure and flow, not just text. Ensure your agents understand the 'Why', not just the 'What'. - **Agentic Data Layer**: The primary API for parallel agent teams. Scale your infrastructure to handle QA, documentation, and complex refactoring. - **Training Data Generation**: Generate high-quality datasets directly from your codebases for custom model fine-tuning and post-training. ## Connect. Index. Automate. How we turn raw codebases into context in minutes. 1. **Connect the Source**: Paste a URL or connect GitHub. We automatically ingest, map the AST, and clean the boilerplate. 2. **Distill to Markdown**: We convert massive codebases into token-optimized, searchable Markdown ready for your agents' context windows. 3. **Search & Link to Agents**: Run high-speed queries and deploy agents with grounded context. Plug this context anywhere via MCP, or API. ## Tools - [Convert Repo to Markdown](/tools/repo-to-md/?view=raw): Convert any GitHub or GitLab repository into a token-optimized Markdown file. Perfect for ChatGPT, Claude, and AI Agent context windows. - [Convert Repo to Image](/tools/repo-to-image-context/?view=raw): Convert any GitHub or GitLab repository into token efficient PNG images optimized for LLMs. Maximize context compression while keeping full context in your agent. - [Semantic Code Search](/tools/search-codebases/?view=raw): The fastest semantic search for public and private code. Query logic, architectures, and implementations across thousands of repos in sub-seconds. - [Convert Repo to Agent Prompt](/tools/prompt-builder/?view=raw): Combine structured role-based prompts with live repository context. Generate perfect Markdown briefs for Staff Engineers, QA, and SecOps agents. ## Available On - [VS Code / Cursor](https://marketplace.visualstudio.com/items?itemName=code-fundi.code-fundi): Use Code Fundi right from your Visual Studio Code editor - [Frontend](https://www.npmjs.com/package/@codefundi/webpack-plugin): Super Charge your Terminal with Code Fundi AI (Coming Soon) - [CLI](https://npmjs.com/package/@codefundi/cli) ## Built for High-Performance Teams - **🤖 AI Agent Builders**: Feed your autonomous agents structured, token-optimized code data instead of noisy raw files. - **🏢 Enterprise Engineering**: Modernize legacy stacks and enforce architectural standards across 1000s of microservices. - **🧰 Indie Hackers & Devs**: Ship full-stack apps faster by querying implementations and debugging via a unified coding AI. ## Infrastructure for every scale - [Full pricing page](/pricing/?view=raw) ### Free — $0 ($0/mo yearly) For Basic Tasks and Queries ✅ 500 Credits ✅ Public Repo Index ✅ 24-Hour Usage Logs ✅ Simple Markdown Data ✅ Single Codebase Search/Chat ✅ Email Support ### Dev — $25 ($21/mo yearly) For Advanced Workflow Automation ✅ 5,000 Credits/Mo ✅ 10 Private Repo Indexes ✅ 7-Day Usage Logs ✅ Detailed Markdown Data ✅ Multi-Codebase Search/Chat ✅ Priority Support ### Pro — $250 ($210/mo yearly) For Building Agentic Infrastructure ✅ 50,000 Credits/Mo ✅ 50 Private Repo Indexes ✅ 60-Day Usage Logs ✅ Enteprise-Grade Markdown Data ✅ Multi-Codebase Search/Chat ✅ Dedicated Support ### Enterprise — Contact Us For Teams and Production ✅ Customizable Storage & Usage ✅ Zero-Data Retention (ZDR) ✅ On-Premise / VPC Deployment ✅ Dedicated Account Manager ✅ Centralized Billing & Auditing ✅ Service Level Agreements ## Site navigation - [Product](/?view=raw) - [Pricing](/pricing/?view=raw) - [Blog](/blog/?view=raw) - [About Us](/about/?view=raw) - [Documentation](https://docs.codefundi.app/docs/introduction) - [Terms of Service](/terms/?view=raw) - [Privacy Policy](/privacy/?view=raw) - [EULA](/eula/?view=raw) - [Sign in](/auth/?view=raw) - [Search](/search/?view=raw) - [Repositories](/repo/?view=raw) - [API v2](https://docs.codefundi.app/api/v2) - [llms.txt](/llms.txt/?view=raw): Curated agent manifest - [Sitemap](/sitemap.xml/?view=raw) - [Get started for free](/auth/?view=raw) - [Talk to Sales](/contact/team/?view=raw) - [📚 Read our Docs](https://docs.codefundi.app) ## Solutions by industry & use case - [AI Agent RAG](/industry/ai-agent-builders/?view=raw): Stop wasting 50% of your context window on raw noise. Our API provides agents with structure-aware, searchable Markdown to solve complex tickets instantly. - [Legacy Modernization](/industry/enterprise-legacy/?view=raw): Turn decades of technical debt into actionable insights. Map dependencies, identify logic clusters, and automate your migration to modern stacks in days. - [Engineering Velocity](/industry/software-engineering/?view=raw): Bridge the gap between documentation and code. Index once, then search logic patterns across your entire GitHub or GitLab organization with sub-second latency. - [Technical Due Diligence](/industry/technical-m-and-a/?view=raw): Evaluate technical assets in hours, not weeks. Code Fundi provides private, structure-aware indexing to help investment teams identify technical debt and IP risks during due diligence. - [Customer Support AI](/industry/customer-support-ai/?view=raw): Stop support hallucinations. Index your product's code and technical docs to provide AI support agents with the exact context needed to solve complex developer tickets. - [Product Intelligence](/industry/product-intelligence/?view=raw): Understand how the market builds. Use Code Fundi to index public repos and developer portals, turning complex codebases into readable strategic briefs for product leaders. - [DevRel & Docs](/industry/devrel-docs/?view=raw): Your code is your documentation. Code Fundi distills your latest repository changes into high-density Markdown, perfect for updating docs or feeding community AI assistants. - [Semantic Code Review](/usecases/code-review/?view=raw): Don't just review lines of code; review the impact. Instantly find prior art and architectural patterns across your organization to ensure every merge is high-quality. - [Fine-Tuning Data](/usecases/synthetic-data/?view=raw): Your private code is your competitive advantage. Extract and structure your best patterns into high-density training data for custom LLMs and agents. - [Agentic QA](/usecases/automated-qa/?view=raw): Accelerate your QA pipeline. Provide autonomous agents with the repo maps they need to generate comprehensive test coverage and catch regressions instantly. ## Get Started Wire Code Fundi into your workflow. Install Code Fundi for VS Code, Cursor, Windsurf, and other editors from the marketplace. - [VS Code / Cursor extension](https://marketplace.visualstudio.com/items?itemName=code-fundi.code-fundi) - VS Code - Cursor - Windsurf ## Code Fundi MCP MCP server id: `code-fundi` Command: `npx -y @codefundi/code-fundi-mcp` Environment: `CODEFUNDI_API_KEY`, `CODEFUNDI_BASE_URL` Setup: - `npm install` - `npm run build` Verify (shell): ```bash CODEFUNDI_API_KEY="YOUR_CODEFUNDI_API_KEY" CODEFUNDI_BASE_URL="https://api.codefundi.app" npx "-y" "@codefundi/code-fundi-mcp" ``` ### Cursor - Config path: `.cursor/mcp.json` - Guide: https://docs.cursor.com/context/mcp ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### Windsurf - Config path: `.codeium/windsurf/mcp_config.json` - Guide: https://docs.codeium.com/windsurf ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### Claude - Config path: `claude_desktop_config.json` - Guide: https://modelcontextprotocol.io ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### GitHub Copilot - Config path: `settings.json` - Guide: https://code.visualstudio.com/docs/copilot/chat/mcp-servers ```json { "mcp": { "servers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } } ``` ### Cline - Config path: `.cline/mcp.json` - Guide: https://docs.cline.bot/ ```json { "mcp": { "servers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } } ``` ### VS Code - Config path: `settings.json` - Guide: https://code.visualstudio.com/docs/copilot/chat/mcp-servers ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" }, "type": "stdio" } } } ``` ### Zed - Config path: `settings.json` - Guide: https://zed.dev/docs/ai/mcp ```json { "context_servers": { "code-fundi": { "command": { "path": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ] }, "settings": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### Augment Code - Config path: `settings.json` - Guide: https://docs.augmentcode.com/ ```json { "augment.advanced": { "mcpServers": [ { "name": "codefundi", "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } ] } } ``` ### Roo Code - Config path: `settings.json` - Guide: https://docs.roocode.com/ ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### Gemini CLI - Config path: `~/.gemini/settings.json` - Guide: https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### Claude Desktop - Config path: `claude_desktop_config.json` - Guide: https://modelcontextprotocol.io/quickstart/user ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### Opencode - Config path: `opencode.json` - Guide: https://opencode.ai/docs ```json { "mcp": { "code-fundi": { "type": "local", "command": [ "npx", "-y", "@codefundi/code-fundi-mcp" ], "enabled": true } } } ``` ### Kiro - Config path: `kiro.json` - Guide: https://kiro.dev/docs/mcp/ ```json { "mcpServers": { "CodeFundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": {}, "disabled": false, "autoApprove": [] } } } ``` ### Trae - Config path: `trae.json` - Guide: https://www.trae.ai/ ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### Amazon Q CLI - Config path: `amazon-q.json` - Guide: https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-mcp.html ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### Warp - Config path: `warp.json` - Guide: https://docs.warp.dev/features/warp-ai/mcp ```json { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" }, "working_directory": null, "start_on_launch": true } } ``` ### Perplexity Desktop - Config path: `perplexity.json` - Guide: https://www.perplexity.ai/help-center ```json { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } ``` ### LM Studio - Config path: `mcp.json` - Guide: https://lmstudio.ai/docs ```json { "mcpServers": { "CodeFundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ] } } } ``` ### Visual Studio 2022 - Config path: `visualstudio-mcp.json` - Guide: https://learn.microsoft.com/visualstudio/ide/mcp-servers ```json { "mcp": { "servers": { "code-fundi": { "type": "stdio", "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } } ``` ### Crush - Config path: `crush.json` - Guide: https://github.com/charmbracelet/crush ```json { "mcp": { "code-fundi": { "type": "stdio", "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### BoltAI - Config path: `boltai.json` - Guide: https://boltai.com/docs ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### Rovo Dev CLI - Config path: `rovo.json` - Guide: https://support.atlassian.com/rovo/docs/ ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` ### Zencoder - Config path: `zencoder.json` - Guide: https://zencoder.ai/docs ```json { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ] } ``` ### Qodo Gen - Config path: `qodo-gen.json` - Guide: https://docs.qodo.ai/ ```json { "mcpServers": { "code-fundi": { "command": "npx", "args": [ "-y", "@codefundi/code-fundi-mcp" ], "env": { "CODEFUNDI_API_KEY": "YOUR_CODEFUNDI_API_KEY", "CODEFUNDI_BASE_URL": "https://api.codefundi.app" } } } } ``` - [Documentation](https://docs.codefundi.app) ## Repositories The full crawlable repository list is in the [sitemap](/sitemap.xml). Append `?view=raw` to any repo or file URL for raw markdown, e.g. `/repo/karpathy/nanoGPT/?view=raw`. ## Community - GitHub: https://github.com/Code-Fundi - X (Twitter): https://twitter.com/code_fundi - Discord: https://discord.gg/6RJTWCuWZj