How jbellis/llmap works
Key Components to Include:
Input Processing Layer
• CLI interface accepting file paths and search queries
• File type detection system (currently Java and Python)
• Tree-sitter parsing component (implied by the .scm files)
Analysis Pipeline (Core Architecture)
a. Skeleton Analysis Stage
• Connection to language-specific queries (./queries/{java,python})
• To DeepSeek-V3 API
b. Full Source Analysis Stage
• Connection to DeepSeek-V3 API
c. Refinement Stage
• Connection to DeepSeek-R1 API
External Services
• DeepSeek API Services (both V3 and R1)
• Local Cache System (located at ~/.cache/llmap)
Data Flow Components
• File input stream
• Concurrent processing manager
• Results aggregator
• Output formatter
• [Input] → [Stage 1] → [Stage 2] → [Stage 3] → [Output]
Component Relationships
• Double lines: API boundaries
Technical Details
• Concurrent processing capability (default 500 files)
• Cache read/write paths
• Language-specific components
The configuration flexibility
Keep the abstraction level focused on the architectural components while showing enough detail to understand the unique features of LLMap, particularly its efficient use of LLM APIs and caching strategy.
Remember to indicate the extensibility points where new language support can be added, as mentioned in the README's limitations section.