Component indexing
Kombai indexes your codebase to understand your team’s specific tech stack, coding patterns, and component structure. It uses Agent Swarm methodology where multiple agents work together to perform specific tasks that are required to index your components. This helps Kombai to generate code that matches your conventions and fits perfectly into the existing codebase. Component indexing indexes your local codebase components and external packages to improve the accuracy of the Agent using the indexed components while generating code.How It Works
When you start the component indexing process, the following steps are performed:Benefits over Vector DB
Higher component reusability
Component indexing improves the accuracy of the Agent to reuse the indexed components rather than creating duplicate ones.
Lower token usage
Subagents match relevant components during indexing, allowing the main Agent to avoid processing extra files and significantly reduce token consumption.
Speed
Caching enables repeated or related queries to be handled nearly instantaneously by retrieving data directly from memory.
Contextual accuracy
Indexing provides the Agent with a comprehensive component map before query processing, improving the initial context quality.
Reduced iterations
Users need fewer follow-up messages or corrections to complete tasks compared to Vector DB.
Visual attributes
Component indexing captures layout, styling, and behavior of each component, which is difficult to extract through Vector DB alone.
Deep research
Deep research on each component allows the Agent to distinguish between components with similar use cases and select the correct one for each task.
Lower computational burden
Subagents share the computational baggage of indexing components and matching the relevant indexed components after receiving the user query, so the main Agent only handles the user task workload.