LLM Context Compiler - Universal context builder for any language and document type
Project description
llmcc
"Prompts are the modern assembly language, models are the modern CPU."
llmcc is a universal context builder for any language, any document.
abstract
llmcc explores automated context generation through symbolic graph analysis. bridging the semantic gap between human-written code/documents and AI model understanding, using modern compiler design principles.
design
examples
llmcc --dir codex/codex-rs --lang rust --design-graph --pagerank --top-k 100
codex: graph
llmcc --dir kimi-cli --lang python --design-graph --pagerank --top-k 80
kimi-cli: graph
run
llmcc [OPTIONS] < --file <FILE>...|--dir <DIR>... >
Input (required, one of):
-f, --file <FILE>...— Individual files to compile (repeatable)-d, --dir <DIR>...— Directories to scan recursively (repeatable)
Language (optional):
--lang <LANG>— Language: 'rust' or 'python' [default: rust]
Analysis (optional):
--design-graph— Generate high-level design graph--pagerank --top-k <K>— Rank by importance (PageRank) and limit to top K--query <NAME>— Symbol/function to analyze--depends— Show what the symbol depends on--dependents— Show what depends on the symbol--recursive— Include transitive dependencies (vs. direct only)
Output format (optional):
--summary— Show file paths and line ranges (vs. full code texts)--print-ir— Internal: print intermediate representation--print-block— Internal: print basic block graph
Examples:
# Design graph with PageRank ranking
llmcc --dir crates --lang rust --design-graph --pagerank --top-k 100
# Dependencies and dependents of a symbol
llmcc --dir crates --lang rust --query CompileCtxt --depends
llmcc --dir crates --lang rust --query CompileCtxt --dependents --recursive
# Cross-directory analysis
llmcc --dir crates/llmcc-core/src --dir crates/llmcc-rust/src --lang rust --design-graph --pagerank --top-k 25
# Multiple files
llmcc --file crates/llmcc/src/main.rs --file crates/llmcc/src/lib.rs --lang rust --query run_main
python
Install the published package from PyPI:
pip install llmcc
With the package available, invoke the API directly:
import llmcc
graph = llmcc.run(
dirs=["crates/llmcc-core/src"],
lang="rust",
query="CompileCtxt",
design_graph=True,
)
print(graph)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llmcc-0.2.41-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: llmcc-0.2.41-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c33dff041c3273e74a04ec74da9ced0ee6962e5e2e225260fe0d24b8cec312b0
|
|
| MD5 |
feaba5aa0363ee8d2c29c1971d7522d4
|
|
| BLAKE2b-256 |
4e08fde8705365ca681941090be30c10c8f8a238fbdfa175c4bafbed24fa9688
|
File details
Details for the file llmcc-0.2.41-cp38-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: llmcc-0.2.41-cp38-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.8+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69ff67f701f13d5ea5481200f03a0de7e8a1a6194234f235d8d07b21ba24896b
|
|
| MD5 |
dca69bbf4f8845ad31caada28ab3a62a
|
|
| BLAKE2b-256 |
20eed23977beb84f244c0266f9366d8be3ce32709b2723471f1201a532efdfef
|
File details
Details for the file llmcc-0.2.41-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: llmcc-0.2.41-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20cf94263f3f4ca3f701a3d67f442989426f6c2abd9b6aeaa979df80ab6834f2
|
|
| MD5 |
c04e721c42117c3bb8fb06031b88b167
|
|
| BLAKE2b-256 |
e80e48470ca7575c5465ff0e088cec0b2c979647834218cec1774545eeef035c
|