Skip to content

codeknit

Parse source code into compact structural maps that LLMs can actually use.

codeknit reads your source code and writes a compact map of its structure: functions, classes, methods, variables, and how they relate. LLMs can read that map directly, so they can plan refactors across hundreds of files without loading every file into context.

Compact Output

Extracts functions, classes, methods, variables, and their relationships into .skt files designed for LLM context windows. Dictionary-based minification saves more tokens. Choose from inline, directory-flat, or directory-tree output modes.

Graph Analysis

22 algorithms find cycles, hubs, dead code, god classes, and bottlenecks. An interactive HTML graph shows how symbols connect. See the graph commands guide.

Duplicate Detection

CTPH fingerprinting finds duplicate and near-duplicate code across files and across languages. See the fingerprint guide.