cortexcode 0.2.2__tar.gz → 0.4.0__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.
- {cortexcode-0.2.2 → cortexcode-0.4.0}/PKG-INFO +80 -4
- {cortexcode-0.2.2 → cortexcode-0.4.0}/README.md +79 -3
- cortexcode-0.4.0/cortexcode/advanced_analysis.py +816 -0
- cortexcode-0.4.0/cortexcode/docs/__init__.py +19 -0
- cortexcode-0.4.0/cortexcode/docs/generator.py +573 -0
- cortexcode-0.4.0/cortexcode/docs/html_generators.py +114 -0
- cortexcode-0.4.0/cortexcode/docs/javascript.py +373 -0
- cortexcode-0.4.0/cortexcode/docs/templates.py +174 -0
- cortexcode-0.4.0/cortexcode/docs.py +38 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/indexer.py +28 -4
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/mcp_server.py +142 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode.egg-info/PKG-INFO +80 -4
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode.egg-info/SOURCES.txt +7 -1
- {cortexcode-0.2.2 → cortexcode-0.4.0}/pyproject.toml +1 -1
- cortexcode-0.2.2/cortexcode/docs.py +0 -1266
- {cortexcode-0.2.2 → cortexcode-0.4.0}/LICENSE +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/__init__.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/analysis.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/cli.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/context.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/dashboard.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/git_diff.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/lsp_server.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/plugins.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/semantic_search.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/vuln_scan.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/watcher.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode/workspace.py +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode.egg-info/dependency_links.txt +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode.egg-info/entry_points.txt +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode.egg-info/requires.txt +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/cortexcode.egg-info/top_level.txt +0 -0
- {cortexcode-0.2.2 → cortexcode-0.4.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cortexcode
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: Lightweight code indexing for AI assistants — save 90%+ tokens with structured context
|
|
5
5
|
Author-email: Naveen <naveen_joshi07@outlook.com>
|
|
6
6
|
License: MIT
|
|
@@ -228,6 +228,42 @@ npm install && npm run compile
|
|
|
228
228
|
|
|
229
229
|
## How AI Agents Use This
|
|
230
230
|
|
|
231
|
+
### Windsurf / Cursor Configuration
|
|
232
|
+
|
|
233
|
+
To make AI agents in Windsurf or Cursor automatically use CortexCode:
|
|
234
|
+
|
|
235
|
+
**Option 1: Auto-detect prompt file**
|
|
236
|
+
|
|
237
|
+
Create `.cortexcode/prompt.md` in your project root. AI agents will automatically read this file and use the CortexCode index for code understanding.
|
|
238
|
+
|
|
239
|
+
**Option 2: Add to agent rules**
|
|
240
|
+
|
|
241
|
+
Add to your project's `.windsurf/rules.md` or Cursor rules:
|
|
242
|
+
|
|
243
|
+
```
|
|
244
|
+
Always use CortexCode index (.cortexcode/index.json) to understand the codebase before making changes. Use:
|
|
245
|
+
- cortexcode search <symbol> to find symbols
|
|
246
|
+
- cortexcode impact <symbol> to see what uses a function
|
|
247
|
+
- cortexcode context <query> to get relevant code context
|
|
248
|
+
|
|
249
|
+
Run 'cortexcode index' first if the index doesn't exist.
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
**Option 3: Configure MCP in Windsurf**
|
|
253
|
+
|
|
254
|
+
Add to `~/.windsurf/config.json`:
|
|
255
|
+
|
|
256
|
+
```json
|
|
257
|
+
{
|
|
258
|
+
"mcpServers": {
|
|
259
|
+
"cortexcode": {
|
|
260
|
+
"command": "cortexcode",
|
|
261
|
+
"args": ["mcp"]
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
```
|
|
266
|
+
|
|
231
267
|
### 1. Context Command (simplest)
|
|
232
268
|
|
|
233
269
|
```bash
|
|
@@ -296,16 +332,31 @@ cortexcode mcp
|
|
|
296
332
|
}
|
|
297
333
|
```
|
|
298
334
|
|
|
299
|
-
Available MCP tools:
|
|
335
|
+
Available MCP tools (17 tools):
|
|
336
|
+
|
|
337
|
+
**Search & Navigation:**
|
|
300
338
|
- **`cortexcode_search`** — Search symbols by name
|
|
339
|
+
- **`cortexcode_fuzzy_search`** — Fuzzy/approximate search (handles typos)
|
|
340
|
+
- **`cortexcode_regex_search`** — Regex pattern search (e.g. `^get.*`)
|
|
301
341
|
- **`cortexcode_context`** — Get rich context with callers/callees
|
|
302
342
|
- **`cortexcode_file_symbols`** — List all symbols in a file
|
|
303
343
|
- **`cortexcode_call_graph`** — Trace call graph for a symbol
|
|
304
|
-
|
|
305
|
-
|
|
344
|
+
|
|
345
|
+
**Analysis:**
|
|
306
346
|
- **`cortexcode_deadcode`** — Find potentially unused symbols
|
|
307
347
|
- **`cortexcode_complexity`** — Find most complex functions
|
|
308
348
|
- **`cortexcode_impact`** — Analyze change impact of a symbol
|
|
349
|
+
- **`cortexcode_duplicates`** — Detect duplicate/copy-paste code
|
|
350
|
+
- **`cortexcode_circular_deps`** — Find circular dependencies
|
|
351
|
+
|
|
352
|
+
**Security & Quality:**
|
|
353
|
+
- **`cortexcode_security_scan`** — Scan for hardcoded secrets, SQL injection, XSS
|
|
354
|
+
- **`cortexcode_endpoints`** — Extract API endpoints (Express, Flask, Django, Next.js, etc.)
|
|
355
|
+
- **`cortexcode_api_docs`** — Auto-generate API docs from signatures
|
|
356
|
+
|
|
357
|
+
**Project Info:**
|
|
358
|
+
- **`cortexcode_stats`** — Get project statistics
|
|
359
|
+
- **`cortexcode_diff`** — Get changed symbols since last commit
|
|
309
360
|
- **`cortexcode_file_deps`** — Get file dependency graph
|
|
310
361
|
|
|
311
362
|
### 4. LSP Server
|
|
@@ -431,6 +482,31 @@ CortexCode respects `.gitignore` files (including nested ones) and has built-in
|
|
|
431
482
|
- [x] Django / Flask framework detection
|
|
432
483
|
- [x] VS Code Marketplace publishing
|
|
433
484
|
|
|
485
|
+
### Future Improvements
|
|
486
|
+
|
|
487
|
+
#### Features
|
|
488
|
+
- [ ] More language support (Ruby, PHP, C++)
|
|
489
|
+
- [ ] Cloud index for team sharing
|
|
490
|
+
- [ ] Graph visualization for call chains
|
|
491
|
+
- [ ] Auto-indexing on git push
|
|
492
|
+
- [ ] Index versioning (compare across commits)
|
|
493
|
+
- [ ] Config file (`.cortexcode.yaml`) for project settings
|
|
494
|
+
|
|
495
|
+
#### Integrations
|
|
496
|
+
- [ ] JetBrains IDEs plugin (IntelliJ, PyCharm)
|
|
497
|
+
- [ ] GitHub Copilot native integration
|
|
498
|
+
- [ ] Claude Code integration
|
|
499
|
+
|
|
500
|
+
#### AI/Search
|
|
501
|
+
- [ ] Semantic embeddings for meaning-based search
|
|
502
|
+
- [ ] AI-powered code review
|
|
503
|
+
- [ ] Bug detection (pattern matching)
|
|
504
|
+
|
|
505
|
+
#### Performance
|
|
506
|
+
- [ ] Compressed index format
|
|
507
|
+
- [ ] Faster search with caching
|
|
508
|
+
- [ ] Parallel multi-threaded indexing
|
|
509
|
+
|
|
434
510
|
## Contributing
|
|
435
511
|
|
|
436
512
|
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
@@ -181,6 +181,42 @@ npm install && npm run compile
|
|
|
181
181
|
|
|
182
182
|
## How AI Agents Use This
|
|
183
183
|
|
|
184
|
+
### Windsurf / Cursor Configuration
|
|
185
|
+
|
|
186
|
+
To make AI agents in Windsurf or Cursor automatically use CortexCode:
|
|
187
|
+
|
|
188
|
+
**Option 1: Auto-detect prompt file**
|
|
189
|
+
|
|
190
|
+
Create `.cortexcode/prompt.md` in your project root. AI agents will automatically read this file and use the CortexCode index for code understanding.
|
|
191
|
+
|
|
192
|
+
**Option 2: Add to agent rules**
|
|
193
|
+
|
|
194
|
+
Add to your project's `.windsurf/rules.md` or Cursor rules:
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
Always use CortexCode index (.cortexcode/index.json) to understand the codebase before making changes. Use:
|
|
198
|
+
- cortexcode search <symbol> to find symbols
|
|
199
|
+
- cortexcode impact <symbol> to see what uses a function
|
|
200
|
+
- cortexcode context <query> to get relevant code context
|
|
201
|
+
|
|
202
|
+
Run 'cortexcode index' first if the index doesn't exist.
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**Option 3: Configure MCP in Windsurf**
|
|
206
|
+
|
|
207
|
+
Add to `~/.windsurf/config.json`:
|
|
208
|
+
|
|
209
|
+
```json
|
|
210
|
+
{
|
|
211
|
+
"mcpServers": {
|
|
212
|
+
"cortexcode": {
|
|
213
|
+
"command": "cortexcode",
|
|
214
|
+
"args": ["mcp"]
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
184
220
|
### 1. Context Command (simplest)
|
|
185
221
|
|
|
186
222
|
```bash
|
|
@@ -249,16 +285,31 @@ cortexcode mcp
|
|
|
249
285
|
}
|
|
250
286
|
```
|
|
251
287
|
|
|
252
|
-
Available MCP tools:
|
|
288
|
+
Available MCP tools (17 tools):
|
|
289
|
+
|
|
290
|
+
**Search & Navigation:**
|
|
253
291
|
- **`cortexcode_search`** — Search symbols by name
|
|
292
|
+
- **`cortexcode_fuzzy_search`** — Fuzzy/approximate search (handles typos)
|
|
293
|
+
- **`cortexcode_regex_search`** — Regex pattern search (e.g. `^get.*`)
|
|
254
294
|
- **`cortexcode_context`** — Get rich context with callers/callees
|
|
255
295
|
- **`cortexcode_file_symbols`** — List all symbols in a file
|
|
256
296
|
- **`cortexcode_call_graph`** — Trace call graph for a symbol
|
|
257
|
-
|
|
258
|
-
|
|
297
|
+
|
|
298
|
+
**Analysis:**
|
|
259
299
|
- **`cortexcode_deadcode`** — Find potentially unused symbols
|
|
260
300
|
- **`cortexcode_complexity`** — Find most complex functions
|
|
261
301
|
- **`cortexcode_impact`** — Analyze change impact of a symbol
|
|
302
|
+
- **`cortexcode_duplicates`** — Detect duplicate/copy-paste code
|
|
303
|
+
- **`cortexcode_circular_deps`** — Find circular dependencies
|
|
304
|
+
|
|
305
|
+
**Security & Quality:**
|
|
306
|
+
- **`cortexcode_security_scan`** — Scan for hardcoded secrets, SQL injection, XSS
|
|
307
|
+
- **`cortexcode_endpoints`** — Extract API endpoints (Express, Flask, Django, Next.js, etc.)
|
|
308
|
+
- **`cortexcode_api_docs`** — Auto-generate API docs from signatures
|
|
309
|
+
|
|
310
|
+
**Project Info:**
|
|
311
|
+
- **`cortexcode_stats`** — Get project statistics
|
|
312
|
+
- **`cortexcode_diff`** — Get changed symbols since last commit
|
|
262
313
|
- **`cortexcode_file_deps`** — Get file dependency graph
|
|
263
314
|
|
|
264
315
|
### 4. LSP Server
|
|
@@ -384,6 +435,31 @@ CortexCode respects `.gitignore` files (including nested ones) and has built-in
|
|
|
384
435
|
- [x] Django / Flask framework detection
|
|
385
436
|
- [x] VS Code Marketplace publishing
|
|
386
437
|
|
|
438
|
+
### Future Improvements
|
|
439
|
+
|
|
440
|
+
#### Features
|
|
441
|
+
- [ ] More language support (Ruby, PHP, C++)
|
|
442
|
+
- [ ] Cloud index for team sharing
|
|
443
|
+
- [ ] Graph visualization for call chains
|
|
444
|
+
- [ ] Auto-indexing on git push
|
|
445
|
+
- [ ] Index versioning (compare across commits)
|
|
446
|
+
- [ ] Config file (`.cortexcode.yaml`) for project settings
|
|
447
|
+
|
|
448
|
+
#### Integrations
|
|
449
|
+
- [ ] JetBrains IDEs plugin (IntelliJ, PyCharm)
|
|
450
|
+
- [ ] GitHub Copilot native integration
|
|
451
|
+
- [ ] Claude Code integration
|
|
452
|
+
|
|
453
|
+
#### AI/Search
|
|
454
|
+
- [ ] Semantic embeddings for meaning-based search
|
|
455
|
+
- [ ] AI-powered code review
|
|
456
|
+
- [ ] Bug detection (pattern matching)
|
|
457
|
+
|
|
458
|
+
#### Performance
|
|
459
|
+
- [ ] Compressed index format
|
|
460
|
+
- [ ] Faster search with caching
|
|
461
|
+
- [ ] Parallel multi-threaded indexing
|
|
462
|
+
|
|
387
463
|
## Contributing
|
|
388
464
|
|
|
389
465
|
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|