Arachne

•
54
•

Automatically assembles the perfect code context for AI workflows by intelligently curating relevant code snippets to fit context windows without noise.

AI coding assistants often struggle with large codebases, akin to a doctor reading a patient's entire medical history for a simple ailment. Arachne solves this by acting as a local MCP server that reads your entire codebase once, understands its structure, dependencies, and semantics, and then intelligently extracts only the most relevant code context for any given AI query. This leads to significant token savings (up to 98.5%), faster responses, and more accurate AI-generated fixes by preventing AI from being overwhelmed or missing critical information. Built for efficiency and scale, it supports multiple programming languages and integrates seamlessly with existing AI agents and the N2 ecosystem.

Key Features

01Achieves up to 98.5% token savings for LLM API calls, reducing costs and increasing efficiency.
02Employs a smart 4-layer context assembly strategy to mitigate 'Lost in the Middle' syndrome in LLMs.
03Operates locally with zero external dependencies, using SQLite for secure and private data handling.
04Provides blazing fast incremental indexing and hybrid search (BM25 + optional Ollama semantic embeddings).
05Offers first-class multi-language support, including advanced Java class sub-chunking and import resolution.
0636 GitHub stars

Use Cases

01Enhancing the efficiency and accuracy of AI coding assistants and agents in large codebases.
02Reducing token usage and improving response times for LLM-powered code analysis and generation tasks.
03Providing precise, noise-free code context for AI-driven debugging, refactoring, or new feature development.