Feed code to an LLM as plain text and a naive splitter cuts on token count, handing the model half a function, an import torn from its body, a class split down the middle.
Xberg parses code with tree-sitter across 426 languages and splits on the syntax tree instead of token counts. Every chunk stays a coherent unit and carries its enclosing symbol, ready to embed for code search, assistants, and RAG.