---
title: Language Support | CodeWeaver Docs
description: CodeWeaver is a code search engine for AI agents, designed to provide precise results that give agents exactly what they need for their tasks -- no more, no less.
url: "https://docs.knitli.com/concepts/languages"
type: static
generatedAt: "2026-04-17T17:21:09.935Z"
---

# Language Support
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/concepts/languages.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F&text=Language%20Support)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F&text=Language%20Support)[Share on Bluesky](https://bsky.app/intent/compose?text=Language%20Support%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F&title=Language%20Support)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F&t=Language%20Support)[Share on Email](mailto:?subject=Language%20Support&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F)[Share on WhatsApp](https://wa.me/?text=Language%20Support%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fconcepts%2Flanguages%2F&text=Language%20Support)
# Language Support
[Section titled “Language Support”](#language-support)
> **TL;DR:** CodeWeaver supports **166+ languages**. Use it to get deep structural context for 27 core languages (AST-aware) or reliable heuristic search for everything else. It saves agents from “context blindness” by understanding the logical boundaries of almost any codebase.

CodeWeaver is designed to be universal. While it provides the deepest intelligence for modern programming languages, its resilient architecture ensures that even legacy systems or niche configuration formats are searchable and understandable for AI agents.

---

## Deep Understanding (AST-Aware)
[Section titled “Deep Understanding (AST-Aware)”](#deep-understanding-ast-aware)
For **27 core languages**, CodeWeaver uses Abstract Syntax Trees (AST) via `ast-grep`. This allows the system to understand the true structure of your code—identifying functions, classes, and methods as logical units rather than arbitrary chunks of text.

### Supported AST Languages:
[Section titled “Supported AST Languages:”](#supported-ast-languages)
 - **Web:** HTML, CSS, JavaScript, TypeScript, JSX, TSX
 - **Systems:** Rust, Go, C, C++, C#, Swift
 - **Data/Config:** JSON, YAML, HCL (Terraform), Nix
 - **Scripting:** Python, Ruby, Lua, Bash
 - **JVM/Mobile:** Java, Kotlin, Scala
 - **Specialized:** PHP, Elixir, Haskell, Solidity

**Why it matters:** AST awareness means CodeWeaver can pinpoint the exact start and end of a function, ensuring your agent receives a complete, logical snippet without “cutting off” important logic at the edge of a text chunk.

---

## Universal Coverage (Heuristic Fallback)
[Section titled “Universal Coverage (Heuristic Fallback)”](#universal-coverage-heuristic-fallback)
For the other **139+ languages**, CodeWeaver uses **Intelligent Heuristic Chunking**. This system analyzes the file’s syntax to identify common delimiters, indentation patterns, and logical markers.

 - **Broad Support:** From COBOL and Fortran to specialized DSLs and configuration formats.
 - **Smart Boundaries:** Even without a full AST parser, CodeWeaver identifies logical breaks to keep related code together.
 - **Semantic Mapping:** All languages benefit from semantic search (dense embeddings), meaning intent-based queries work even for niche languages.

---

## Language Groups & Heuristics
[Section titled “Language Groups & Heuristics”](#language-groups--heuristics)
CodeWeaver classifies languages into “families” to apply the best chunking strategy automatically:

| Family | Strategy | Examples |
| --- | --- | --- |
| **C-Style** | Braces/Semicolons | C, C++, Java, Rust |
| **Pythonic** | Indentation/Colons | Python, Mojo, GDScript |
| **Lisp-like** | Parentheses | Clojure, Emacs Lisp |
| **Markup** | Tags/Attributes | HTML, XML, SVG |

---

## Workspace Awareness
[Section titled “Workspace Awareness”](#workspace-awareness)
CodeWeaver doesn’t just look at individual files; it understands **Repository Conventions**. It automatically identifies:

 - **Source Directories:** `src/`, `lib/`, `pkg/`
 - **Test Suites:** `tests/`, `spec/`, `__tests__`
 - **Build Artifacts:** `dist/`, `target/`, `bin/` (usually excluded from indexing)

This structural awareness ensures that search results are prioritized based on their role in the codebase, preventing test files from cluttering implementation-focused searches.

---

## Summary: No Context Blindness
[Section titled “Summary: No Context Blindness”](#summary-no-context-blindness)
Whether your project is a modern TypeScript monorepo or a legacy C++ system, CodeWeaver provides the “Exquisite Context” needed for AI agents to be productive. Its combination of deep AST analysis and resilient heuristics ensures you are never “context blind.”