> Graphify: shared context of codebase for agents and developers. Canonical: https://graphify.com/glossary/tree-sitter · Full index: https://graphify.com/llms-full.txt

Glossary

# Tree-sitter / AST

An AST is the parsed structure of source code; tree-sitter is the open-source parser library Graphify runs entirely locally to extract it.

Graphify glossary

An AST (abstract syntax tree) is the parsed structure of source code: not the characters, but the grammar behind them. Where text sees 'processPayment(order)' as a string, the AST sees a call expression with a callee and an argument. Tree-sitter is an open-source parser library that produces these trees fast and reliably; it was built for text editors, which is why it's quick enough to run constantly and forgiving enough to handle code that doesn't fully compile.

The open-source Graphify CLI supports about 40 languages, mostly with tree-sitter, and runs that parsing entirely on your machine. Hosted Graphify lists 63 grammars. Most CLI grammars ship with the package; some, such as SQL and Terraform, are optional extras. Code edges come from walking these ASTs: real parsing, not model output. A relationship written in the source is tagged EXTRACTED; when Graphify has to resolve the target itself, for example a call that no import proves, the edge is tagged INFERRED with a confidence score. This is the deterministic backbone of the graph. A model is only used for docs, PDFs, images and media, in an optional pass.

Local parsing is also a privacy property, not just an engineering choice. Because the AST work happens on-device, Graphify can map your entire codebase without a single API call to read your code. Your source never leaves your machine unless you explicitly point Graphify at a hosted model for the non-code inference step, and even then you choose the provider, or run Ollama and keep everything local. There's no telemetry in either case.

## Related terms

- [Code graph](https://graphify.com/glossary/code-graph): A knowledge graph built from a codebase: functions, classes, config, and docs become nodes; calls, imports, and references become edges.
- [Confidence tags](https://graphify.com/glossary/confidence-tags): Graphify's provenance labels (EXTRACTED, INFERRED, AMBIGUOUS) attached to every edge, so you always know what was read from the source and what was worked out.
- [Node](https://graphify.com/glossary/node): A single entity in the graph (a function, class, file, table, or doc page) carrying attributes like name, path, and kind.

## Go deeper

- [The privacy model](https://graphify.com/security)
- [Docs](https://docs.graphify.com)
- [What is an AST, and how tree-sitter builds one](https://graphify.com/blog/what-is-an-ast-and-how-tree-sitter-builds-one)

## From the blog

- [Tree-sitter code graphs: how Graphify parses code](https://graphify.com/blog/tree-sitter-code-graph-for-ai-agents): Graphify builds its code graph with tree-sitter: syntax trees parsed on your machine, about 40 languages in the CLI, no model and no API key.
- [Codebase indexing explained: how tools index a repo for AI](https://graphify.com/blog/codebase-indexing-explained): Codebase indexing turns a repository into something a tool can query fast. Here are the four kinds of index, what each one answers, and how to keep one current.
- [What is an AST? How tree-sitter builds one](https://graphify.com/blog/what-is-an-ast-and-how-tree-sitter-builds-one): What is tree-sitter? A parser that builds a syntax tree for each file. Here is what an AST is and how tree-sitter trees become a code graph.

[← All glossary terms](https://graphify.com/glossary)

## Try Graphify now.

[Try for free](https://graphify.com/signup)

[Graphify](https://graphify.com/)

Shared context of codebase for agents and developers. Hosted, or open source on your own machine.

[SOC 2 Type II Audit in progress](https://trust.graphify.com)

Ask AI about Graphify

- [ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Perplexity](https://www.perplexity.ai/search?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Google AI](https://www.google.com/search?udm=50&q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Grok](https://grok.com/?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [DeepSeek](https://chat.deepseek.com/?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)

© 2026 Graphify Labs. All rights reserved.

Hosted or on-device · Apache 2.0
