ctxrank
Copyright 2026 Duncan Bentley

Licensed under the Apache License, Version 2.0 (see LICENSE).

The ranking method follows the repository map in aider (https://github.com/Aider-AI/aider,
aider/repomap.py, Apache License 2.0): tree-sitter definition/reference tags, a file reference
graph, personalised PageRank, and a token-budgeted rendering of the top-ranked signatures.
ctxrank is an independent Rust implementation of that idea; it contains no aider source code.

Most tags queries are the tags.scm files shipped inside the tree-sitter grammar crates it links
(MIT licence, copyright their authors). queries/scala.scm is copied from tree-sitter-scala
(MIT, Copyright (c) 2018 Max Brunsfeld and GitHub). The other files in queries/ were written
for ctxrank.
