ctxgraph-code 0.5.0__tar.gz → 0.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/PKG-INFO +31 -9
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/README.md +30 -8
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/pyproject.toml +1 -1
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/cli.py +1 -1
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code.egg-info/PKG-INFO +31 -9
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/setup.cfg +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/__init__.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/__main__.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/analyzers/__init__.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/analyzers/python/__init__.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/analyzers/python/importer.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/analyzers/python/semantic.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/analyzers/python/symbols.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/analyzers/treesitter/__init__.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/analyzers/treesitter/analyzer.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/analyzers/treesitter/languages.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/config/__init__.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/config/build_status.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/config/global_paths.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/config/hooks.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/config/init.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/config/settings.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/exclude/__init__.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/exclude/patterns.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/graph/__init__.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/graph/builder.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/graph/models.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/graph/query.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/graph/storage.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/render.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/view/__init__.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/view/visualizer.py +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code.egg-info/SOURCES.txt +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code.egg-info/dependency_links.txt +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code.egg-info/entry_points.txt +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code.egg-info/requires.txt +0 -0
- {ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ctxgraph-code
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Code knowledge graph for Claude Code. Build a relationship graph of your Python codebase and query it during coding sessions.
|
|
5
5
|
Author: ctxgraph-code contributors
|
|
6
6
|
License: MIT
|
|
@@ -30,6 +30,8 @@ Requires-Dist: pytest>=7.0; extra == "dev"
|
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
pip install ctxgraph-code
|
|
33
|
+
# For multi-language support (C, Go, Rust, JS, TS, Java, etc.):
|
|
34
|
+
pip install 'ctxgraph-code[full]'
|
|
33
35
|
cd my-project
|
|
34
36
|
ctxgraph-code setup
|
|
35
37
|
```
|
|
@@ -52,10 +54,10 @@ These questions require running multiple `grep` commands or reading dependency c
|
|
|
52
54
|
## Quick Start
|
|
53
55
|
|
|
54
56
|
```bash
|
|
55
|
-
# Install
|
|
56
|
-
pip install ctxgraph-code
|
|
57
|
+
# Install (add [full] for multi-language support)
|
|
58
|
+
pip install 'ctxgraph-code[full]'
|
|
57
59
|
|
|
58
|
-
# Navigate to your
|
|
60
|
+
# Navigate to your project
|
|
59
61
|
cd my-project
|
|
60
62
|
|
|
61
63
|
# One-command setup: init + build + configure Claude Code
|
|
@@ -80,7 +82,14 @@ Interactive walkthrough — prompts for:
|
|
|
80
82
|
Does everything in one step:
|
|
81
83
|
1. Creates `.ctxgraph/config.toml` with your chosen extensions and excludes
|
|
82
84
|
2. Installs the `/ctxgraph-code` slash command globally (works in every Claude Code session)
|
|
83
|
-
3. Builds the knowledge graph from all matching files
|
|
85
|
+
3. Builds the knowledge graph from all matching files — shows live per-graph progress:
|
|
86
|
+
```
|
|
87
|
+
Building 5 graphs with 8 workers...
|
|
88
|
+
✔ src/ (42 files, 156 nodes, 34 edges, 0.8s)
|
|
89
|
+
✔ api/ (18 files, 73 nodes, 12 edges, 0.4s)
|
|
90
|
+
✔ tests/ (31 files, 89 nodes, 0 edges, 0.6s)
|
|
91
|
+
Built all 5 graphs in 2.1s
|
|
92
|
+
```
|
|
84
93
|
|
|
85
94
|
Non-interactive mode:
|
|
86
95
|
```bash
|
|
@@ -122,6 +131,15 @@ Scans all matching files in the project, runs AST analysis. Extensions are read
|
|
|
122
131
|
- `--verbose` / `-v` — show per-file progress
|
|
123
132
|
- `--no-summary` — skip docstring extraction for faster builds
|
|
124
133
|
|
|
134
|
+
Shows live per-graph progress as each completes:
|
|
135
|
+
```
|
|
136
|
+
Building 5 graphs with 8 workers...
|
|
137
|
+
✔ src/ (42 files, 156 nodes, 34 edges, 0.8s)
|
|
138
|
+
✔ api/ (18 files, 73 nodes, 12 edges, 0.4s)
|
|
139
|
+
✔ tests/ (31 files, 89 nodes, 0 edges, 0.6s)
|
|
140
|
+
Built all 5 graphs in 2.1s
|
|
141
|
+
```
|
|
142
|
+
|
|
125
143
|
Stores graphs in `.ctxgraph/graphs/<dir>.db` (per-directory) or `.ctxgraph/graph.db` (combined).
|
|
126
144
|
|
|
127
145
|
> The graph is a **static snapshot**. If code changes, run `ctxgraph-code build` again to refresh. Use `--incremental` to only reprocess changed files.
|
|
@@ -225,10 +243,10 @@ ctxgraph-code probe "database connection pool"
|
|
|
225
243
|
ctxgraph-code probe "user authentication" --max 3
|
|
226
244
|
```
|
|
227
245
|
|
|
228
|
-
Searches the graph for relevant nodes **and reads the actual source code** inline. Claude gets paths + source in one command, saving 1–2 tool calls. Shows the first
|
|
246
|
+
Searches the graph for relevant nodes **and reads the actual source code** inline. Claude gets paths + source in one command, saving 1–2 tool calls. Shows the first N lines of matched files with automatic syntax highlighting per language.
|
|
229
247
|
|
|
230
248
|
- `--max` / `-m` — max files to probe (default: 5)
|
|
231
|
-
- `--context` / `-c` — lines
|
|
249
|
+
- `--context` / `-c` — lines to show per file (default: 40, use 0 for full file)
|
|
232
250
|
|
|
233
251
|
### `install-hooks`
|
|
234
252
|
|
|
@@ -317,7 +335,10 @@ This catches the common case where you edit a file after building the graph and
|
|
|
317
335
|
| **Multiprocessing** | Combined graphs split files across CPU cores via `multiprocessing.Pool` |
|
|
318
336
|
| **`--jobs`** | Control parallelism level (default: CPU count) |
|
|
319
337
|
| **Incremental builds** | `--incremental` caches file mtimes, only reprocesses changed files |
|
|
320
|
-
| **Trivial file skip** | `_quick_scan()` pre-checks
|
|
338
|
+
| **Trivial file skip** | `_quick_scan()` pre-checks all files (Python and non-Python) — skips full parse for files with no code |
|
|
339
|
+
| **`follow_symlinks` config** | Respects `follow_symlinks = false` setting to avoid duplicate/broken symlinks |
|
|
340
|
+
| **`max_file_size_mb` config** | Skips files exceeding the configured size limit before reading |
|
|
341
|
+
| **Live build progress** | Per-graph status + timing as each completes during parallel builds |
|
|
321
342
|
| **Cached excludes** | `lru_cache` on `should_exclude()` during `os.walk` |
|
|
322
343
|
| **Batch SQLite inserts** | `executemany` instead of per-row `INSERT` statements |
|
|
323
344
|
| **`--no-summary`** | Skips docstring extraction (fastest rebuilds) |
|
|
@@ -389,7 +410,7 @@ Built-in default exclusion patterns (always applied): `__pycache__`, `*.pyc`, `.
|
|
|
389
410
|
|
|
390
411
|
| Feature | ctxgraph | ctxgraph-code |
|
|
391
412
|
|---------|----------|---------------|
|
|
392
|
-
| CLI commands | 9+ |
|
|
413
|
+
| CLI commands | 9+ | 17 (init, build, query, deps, usedby, overview, symbols, context, setup, view, info, install-slash, build-status, probe, install-hooks, uninstall-hooks, version) |
|
|
393
414
|
| LLM integration | Built-in (Ollama, Claude, OpenAI, Azure) | None (delegates to Claude Code) |
|
|
394
415
|
| Chat sessions | Yes | No |
|
|
395
416
|
| Visualizer | D3.js HTML + SVG | D3.js HTML (`view` opens in browser, `--tree` for text) |
|
|
@@ -404,6 +425,7 @@ Built-in default exclusion patterns (always applied): `__pycache__`, `*.pyc`, `.
|
|
|
404
425
|
|
|
405
426
|
- Python 3.10+
|
|
406
427
|
- A Claude Code subscription (for the `/ctxgraph-code` slash command — the graph itself works standalone)
|
|
428
|
+
- For multi-language analysis (C, Go, Rust, JS, TS, Java, etc.): `pip install 'ctxgraph-code[full]'` to install tree-sitter support
|
|
407
429
|
|
|
408
430
|
---
|
|
409
431
|
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
pip install ctxgraph-code
|
|
7
|
+
# For multi-language support (C, Go, Rust, JS, TS, Java, etc.):
|
|
8
|
+
pip install 'ctxgraph-code[full]'
|
|
7
9
|
cd my-project
|
|
8
10
|
ctxgraph-code setup
|
|
9
11
|
```
|
|
@@ -26,10 +28,10 @@ These questions require running multiple `grep` commands or reading dependency c
|
|
|
26
28
|
## Quick Start
|
|
27
29
|
|
|
28
30
|
```bash
|
|
29
|
-
# Install
|
|
30
|
-
pip install ctxgraph-code
|
|
31
|
+
# Install (add [full] for multi-language support)
|
|
32
|
+
pip install 'ctxgraph-code[full]'
|
|
31
33
|
|
|
32
|
-
# Navigate to your
|
|
34
|
+
# Navigate to your project
|
|
33
35
|
cd my-project
|
|
34
36
|
|
|
35
37
|
# One-command setup: init + build + configure Claude Code
|
|
@@ -54,7 +56,14 @@ Interactive walkthrough — prompts for:
|
|
|
54
56
|
Does everything in one step:
|
|
55
57
|
1. Creates `.ctxgraph/config.toml` with your chosen extensions and excludes
|
|
56
58
|
2. Installs the `/ctxgraph-code` slash command globally (works in every Claude Code session)
|
|
57
|
-
3. Builds the knowledge graph from all matching files
|
|
59
|
+
3. Builds the knowledge graph from all matching files — shows live per-graph progress:
|
|
60
|
+
```
|
|
61
|
+
Building 5 graphs with 8 workers...
|
|
62
|
+
✔ src/ (42 files, 156 nodes, 34 edges, 0.8s)
|
|
63
|
+
✔ api/ (18 files, 73 nodes, 12 edges, 0.4s)
|
|
64
|
+
✔ tests/ (31 files, 89 nodes, 0 edges, 0.6s)
|
|
65
|
+
Built all 5 graphs in 2.1s
|
|
66
|
+
```
|
|
58
67
|
|
|
59
68
|
Non-interactive mode:
|
|
60
69
|
```bash
|
|
@@ -96,6 +105,15 @@ Scans all matching files in the project, runs AST analysis. Extensions are read
|
|
|
96
105
|
- `--verbose` / `-v` — show per-file progress
|
|
97
106
|
- `--no-summary` — skip docstring extraction for faster builds
|
|
98
107
|
|
|
108
|
+
Shows live per-graph progress as each completes:
|
|
109
|
+
```
|
|
110
|
+
Building 5 graphs with 8 workers...
|
|
111
|
+
✔ src/ (42 files, 156 nodes, 34 edges, 0.8s)
|
|
112
|
+
✔ api/ (18 files, 73 nodes, 12 edges, 0.4s)
|
|
113
|
+
✔ tests/ (31 files, 89 nodes, 0 edges, 0.6s)
|
|
114
|
+
Built all 5 graphs in 2.1s
|
|
115
|
+
```
|
|
116
|
+
|
|
99
117
|
Stores graphs in `.ctxgraph/graphs/<dir>.db` (per-directory) or `.ctxgraph/graph.db` (combined).
|
|
100
118
|
|
|
101
119
|
> The graph is a **static snapshot**. If code changes, run `ctxgraph-code build` again to refresh. Use `--incremental` to only reprocess changed files.
|
|
@@ -199,10 +217,10 @@ ctxgraph-code probe "database connection pool"
|
|
|
199
217
|
ctxgraph-code probe "user authentication" --max 3
|
|
200
218
|
```
|
|
201
219
|
|
|
202
|
-
Searches the graph for relevant nodes **and reads the actual source code** inline. Claude gets paths + source in one command, saving 1–2 tool calls. Shows the first
|
|
220
|
+
Searches the graph for relevant nodes **and reads the actual source code** inline. Claude gets paths + source in one command, saving 1–2 tool calls. Shows the first N lines of matched files with automatic syntax highlighting per language.
|
|
203
221
|
|
|
204
222
|
- `--max` / `-m` — max files to probe (default: 5)
|
|
205
|
-
- `--context` / `-c` — lines
|
|
223
|
+
- `--context` / `-c` — lines to show per file (default: 40, use 0 for full file)
|
|
206
224
|
|
|
207
225
|
### `install-hooks`
|
|
208
226
|
|
|
@@ -291,7 +309,10 @@ This catches the common case where you edit a file after building the graph and
|
|
|
291
309
|
| **Multiprocessing** | Combined graphs split files across CPU cores via `multiprocessing.Pool` |
|
|
292
310
|
| **`--jobs`** | Control parallelism level (default: CPU count) |
|
|
293
311
|
| **Incremental builds** | `--incremental` caches file mtimes, only reprocesses changed files |
|
|
294
|
-
| **Trivial file skip** | `_quick_scan()` pre-checks
|
|
312
|
+
| **Trivial file skip** | `_quick_scan()` pre-checks all files (Python and non-Python) — skips full parse for files with no code |
|
|
313
|
+
| **`follow_symlinks` config** | Respects `follow_symlinks = false` setting to avoid duplicate/broken symlinks |
|
|
314
|
+
| **`max_file_size_mb` config** | Skips files exceeding the configured size limit before reading |
|
|
315
|
+
| **Live build progress** | Per-graph status + timing as each completes during parallel builds |
|
|
295
316
|
| **Cached excludes** | `lru_cache` on `should_exclude()` during `os.walk` |
|
|
296
317
|
| **Batch SQLite inserts** | `executemany` instead of per-row `INSERT` statements |
|
|
297
318
|
| **`--no-summary`** | Skips docstring extraction (fastest rebuilds) |
|
|
@@ -363,7 +384,7 @@ Built-in default exclusion patterns (always applied): `__pycache__`, `*.pyc`, `.
|
|
|
363
384
|
|
|
364
385
|
| Feature | ctxgraph | ctxgraph-code |
|
|
365
386
|
|---------|----------|---------------|
|
|
366
|
-
| CLI commands | 9+ |
|
|
387
|
+
| CLI commands | 9+ | 17 (init, build, query, deps, usedby, overview, symbols, context, setup, view, info, install-slash, build-status, probe, install-hooks, uninstall-hooks, version) |
|
|
367
388
|
| LLM integration | Built-in (Ollama, Claude, OpenAI, Azure) | None (delegates to Claude Code) |
|
|
368
389
|
| Chat sessions | Yes | No |
|
|
369
390
|
| Visualizer | D3.js HTML + SVG | D3.js HTML (`view` opens in browser, `--tree` for text) |
|
|
@@ -378,6 +399,7 @@ Built-in default exclusion patterns (always applied): `__pycache__`, `*.pyc`, `.
|
|
|
378
399
|
|
|
379
400
|
- Python 3.10+
|
|
380
401
|
- A Claude Code subscription (for the `/ctxgraph-code` slash command — the graph itself works standalone)
|
|
402
|
+
- For multi-language analysis (C, Go, Rust, JS, TS, Java, etc.): `pip install 'ctxgraph-code[full]'` to install tree-sitter support
|
|
381
403
|
|
|
382
404
|
---
|
|
383
405
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ctxgraph-code"
|
|
7
|
-
version = "0.5.
|
|
7
|
+
version = "0.5.1"
|
|
8
8
|
description = "Code knowledge graph for Claude Code. Build a relationship graph of your Python codebase and query it during coding sessions."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "MIT"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ctxgraph-code
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Code knowledge graph for Claude Code. Build a relationship graph of your Python codebase and query it during coding sessions.
|
|
5
5
|
Author: ctxgraph-code contributors
|
|
6
6
|
License: MIT
|
|
@@ -30,6 +30,8 @@ Requires-Dist: pytest>=7.0; extra == "dev"
|
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
pip install ctxgraph-code
|
|
33
|
+
# For multi-language support (C, Go, Rust, JS, TS, Java, etc.):
|
|
34
|
+
pip install 'ctxgraph-code[full]'
|
|
33
35
|
cd my-project
|
|
34
36
|
ctxgraph-code setup
|
|
35
37
|
```
|
|
@@ -52,10 +54,10 @@ These questions require running multiple `grep` commands or reading dependency c
|
|
|
52
54
|
## Quick Start
|
|
53
55
|
|
|
54
56
|
```bash
|
|
55
|
-
# Install
|
|
56
|
-
pip install ctxgraph-code
|
|
57
|
+
# Install (add [full] for multi-language support)
|
|
58
|
+
pip install 'ctxgraph-code[full]'
|
|
57
59
|
|
|
58
|
-
# Navigate to your
|
|
60
|
+
# Navigate to your project
|
|
59
61
|
cd my-project
|
|
60
62
|
|
|
61
63
|
# One-command setup: init + build + configure Claude Code
|
|
@@ -80,7 +82,14 @@ Interactive walkthrough — prompts for:
|
|
|
80
82
|
Does everything in one step:
|
|
81
83
|
1. Creates `.ctxgraph/config.toml` with your chosen extensions and excludes
|
|
82
84
|
2. Installs the `/ctxgraph-code` slash command globally (works in every Claude Code session)
|
|
83
|
-
3. Builds the knowledge graph from all matching files
|
|
85
|
+
3. Builds the knowledge graph from all matching files — shows live per-graph progress:
|
|
86
|
+
```
|
|
87
|
+
Building 5 graphs with 8 workers...
|
|
88
|
+
✔ src/ (42 files, 156 nodes, 34 edges, 0.8s)
|
|
89
|
+
✔ api/ (18 files, 73 nodes, 12 edges, 0.4s)
|
|
90
|
+
✔ tests/ (31 files, 89 nodes, 0 edges, 0.6s)
|
|
91
|
+
Built all 5 graphs in 2.1s
|
|
92
|
+
```
|
|
84
93
|
|
|
85
94
|
Non-interactive mode:
|
|
86
95
|
```bash
|
|
@@ -122,6 +131,15 @@ Scans all matching files in the project, runs AST analysis. Extensions are read
|
|
|
122
131
|
- `--verbose` / `-v` — show per-file progress
|
|
123
132
|
- `--no-summary` — skip docstring extraction for faster builds
|
|
124
133
|
|
|
134
|
+
Shows live per-graph progress as each completes:
|
|
135
|
+
```
|
|
136
|
+
Building 5 graphs with 8 workers...
|
|
137
|
+
✔ src/ (42 files, 156 nodes, 34 edges, 0.8s)
|
|
138
|
+
✔ api/ (18 files, 73 nodes, 12 edges, 0.4s)
|
|
139
|
+
✔ tests/ (31 files, 89 nodes, 0 edges, 0.6s)
|
|
140
|
+
Built all 5 graphs in 2.1s
|
|
141
|
+
```
|
|
142
|
+
|
|
125
143
|
Stores graphs in `.ctxgraph/graphs/<dir>.db` (per-directory) or `.ctxgraph/graph.db` (combined).
|
|
126
144
|
|
|
127
145
|
> The graph is a **static snapshot**. If code changes, run `ctxgraph-code build` again to refresh. Use `--incremental` to only reprocess changed files.
|
|
@@ -225,10 +243,10 @@ ctxgraph-code probe "database connection pool"
|
|
|
225
243
|
ctxgraph-code probe "user authentication" --max 3
|
|
226
244
|
```
|
|
227
245
|
|
|
228
|
-
Searches the graph for relevant nodes **and reads the actual source code** inline. Claude gets paths + source in one command, saving 1–2 tool calls. Shows the first
|
|
246
|
+
Searches the graph for relevant nodes **and reads the actual source code** inline. Claude gets paths + source in one command, saving 1–2 tool calls. Shows the first N lines of matched files with automatic syntax highlighting per language.
|
|
229
247
|
|
|
230
248
|
- `--max` / `-m` — max files to probe (default: 5)
|
|
231
|
-
- `--context` / `-c` — lines
|
|
249
|
+
- `--context` / `-c` — lines to show per file (default: 40, use 0 for full file)
|
|
232
250
|
|
|
233
251
|
### `install-hooks`
|
|
234
252
|
|
|
@@ -317,7 +335,10 @@ This catches the common case where you edit a file after building the graph and
|
|
|
317
335
|
| **Multiprocessing** | Combined graphs split files across CPU cores via `multiprocessing.Pool` |
|
|
318
336
|
| **`--jobs`** | Control parallelism level (default: CPU count) |
|
|
319
337
|
| **Incremental builds** | `--incremental` caches file mtimes, only reprocesses changed files |
|
|
320
|
-
| **Trivial file skip** | `_quick_scan()` pre-checks
|
|
338
|
+
| **Trivial file skip** | `_quick_scan()` pre-checks all files (Python and non-Python) — skips full parse for files with no code |
|
|
339
|
+
| **`follow_symlinks` config** | Respects `follow_symlinks = false` setting to avoid duplicate/broken symlinks |
|
|
340
|
+
| **`max_file_size_mb` config** | Skips files exceeding the configured size limit before reading |
|
|
341
|
+
| **Live build progress** | Per-graph status + timing as each completes during parallel builds |
|
|
321
342
|
| **Cached excludes** | `lru_cache` on `should_exclude()` during `os.walk` |
|
|
322
343
|
| **Batch SQLite inserts** | `executemany` instead of per-row `INSERT` statements |
|
|
323
344
|
| **`--no-summary`** | Skips docstring extraction (fastest rebuilds) |
|
|
@@ -389,7 +410,7 @@ Built-in default exclusion patterns (always applied): `__pycache__`, `*.pyc`, `.
|
|
|
389
410
|
|
|
390
411
|
| Feature | ctxgraph | ctxgraph-code |
|
|
391
412
|
|---------|----------|---------------|
|
|
392
|
-
| CLI commands | 9+ |
|
|
413
|
+
| CLI commands | 9+ | 17 (init, build, query, deps, usedby, overview, symbols, context, setup, view, info, install-slash, build-status, probe, install-hooks, uninstall-hooks, version) |
|
|
393
414
|
| LLM integration | Built-in (Ollama, Claude, OpenAI, Azure) | None (delegates to Claude Code) |
|
|
394
415
|
| Chat sessions | Yes | No |
|
|
395
416
|
| Visualizer | D3.js HTML + SVG | D3.js HTML (`view` opens in browser, `--tree` for text) |
|
|
@@ -404,6 +425,7 @@ Built-in default exclusion patterns (always applied): `__pycache__`, `*.pyc`, `.
|
|
|
404
425
|
|
|
405
426
|
- Python 3.10+
|
|
406
427
|
- A Claude Code subscription (for the `/ctxgraph-code` slash command — the graph itself works standalone)
|
|
428
|
+
- For multi-language analysis (C, Go, Rust, JS, TS, Java, etc.): `pip install 'ctxgraph-code[full]'` to install tree-sitter support
|
|
407
429
|
|
|
408
430
|
---
|
|
409
431
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/analyzers/treesitter/__init__.py
RENAMED
|
File without changes
|
{ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/analyzers/treesitter/analyzer.py
RENAMED
|
File without changes
|
{ctxgraph_code-0.5.0 → ctxgraph_code-0.5.1}/src/ctxgraph_code/analyzers/treesitter/languages.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|