Context Tree (ctx3)

Context Tree (ctx3) is a free and openβsource CLI tool written in Go that helps both developers and Large Language Models understand a codebase by generating structured metadata about files, dependencies, and project structure.
It is designed to be:
- Lightweight
- Deterministic
- LLMβfriendly
- Scriptable and automatable
ctx3 is built around two core ideas with commands and features related to these two core ideas.
Contextβ
Analyze files to extract metadata, and outs them as structured data, so you can prompt to your favorite LLM or codeing agent.
ctx3 context
π Project: .
Files: 150, Dirs: 109
File Treeβ
Inspect and print the directory structure of a project so you could have a more understnading of the project before you dive deep in it.
ctx3 print
βββ π Project structure:
βββ context.cmd.go (1455 bytes)
βββ help.cmd.go (627 bytes)
βββ pack.cmd.go (4797 bytes)
βββ pack.cmd_test.go (1812 bytes)
βββ percentage.cmd.go (530 bytes)
βββ print.cmd.go (462 bytes)
βββ root.cmd.go (1901 bytes)
These Two core Ideas, lead to creation of Context Tree(ctx3) we will demonstrate the packages, command and sub-commands forther in this documentation.