codebase-retrieval-context-engine 2.0.0__py3-none-any.whl

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.
Files changed (46) hide show
  1. codebase_retrieval_context_engine-2.0.0.dist-info/METADATA +505 -0
  2. codebase_retrieval_context_engine-2.0.0.dist-info/RECORD +46 -0
  3. codebase_retrieval_context_engine-2.0.0.dist-info/WHEEL +4 -0
  4. codebase_retrieval_context_engine-2.0.0.dist-info/entry_points.txt +3 -0
  5. codebase_retrieval_context_engine-2.0.0.dist-info/licenses/LICENSE +201 -0
  6. corbell/__init__.py +6 -0
  7. corbell/cli/__init__.py +1 -0
  8. corbell/cli/commands/__init__.py +1 -0
  9. corbell/cli/commands/index.py +86 -0
  10. corbell/cli/commands/query.py +71 -0
  11. corbell/cli/main.py +57 -0
  12. corbell/core/__init__.py +1 -0
  13. corbell/core/constants.py +52 -0
  14. corbell/core/embeddings/__init__.py +6 -0
  15. corbell/core/embeddings/base.py +68 -0
  16. corbell/core/embeddings/extractor.py +201 -0
  17. corbell/core/embeddings/factory.py +48 -0
  18. corbell/core/embeddings/model.py +401 -0
  19. corbell/core/embeddings/search_cache.py +95 -0
  20. corbell/core/embeddings/sqlite_store.py +271 -0
  21. corbell/core/gitignore.py +76 -0
  22. corbell/core/graph/__init__.py +1 -0
  23. corbell/core/graph/builder.py +696 -0
  24. corbell/core/graph/method_graph.py +1077 -0
  25. corbell/core/graph/providers/__init__.py +6 -0
  26. corbell/core/graph/providers/aws_patterns.py +62 -0
  27. corbell/core/graph/providers/azure_patterns.py +64 -0
  28. corbell/core/graph/providers/gcp_patterns.py +59 -0
  29. corbell/core/graph/schema.py +175 -0
  30. corbell/core/graph/sqlite_store.py +500 -0
  31. corbell/core/indexing/__init__.py +1 -0
  32. corbell/core/indexing/builder.py +608 -0
  33. corbell/core/indexing/lock.py +150 -0
  34. corbell/core/indexing/tracker.py +245 -0
  35. corbell/core/llm_client.py +677 -0
  36. corbell/core/mcp/__init__.py +1 -0
  37. corbell/core/mcp/server.py +214 -0
  38. corbell/core/query/__init__.py +1 -0
  39. corbell/core/query/diagnostics.py +38 -0
  40. corbell/core/query/engine.py +321 -0
  41. corbell/core/query/enhancer.py +102 -0
  42. corbell/core/query/formatter.py +98 -0
  43. corbell/core/query/graph_expander.py +284 -0
  44. corbell/core/query/merger.py +171 -0
  45. corbell/core/query/reranker.py +131 -0
  46. corbell/core/workspace.py +408 -0
@@ -0,0 +1,505 @@
1
+ Metadata-Version: 2.4
2
+ Name: codebase-retrieval-context-engine
3
+ Version: 2.0.0
4
+ Summary: Code retrieval engine — hybrid embedding + graph search for LLM context injection.
5
+ Project-URL: Homepage, https://github.com/nullmastermind/local-context-engine
6
+ Project-URL: Repository, https://github.com/nullmastermind/local-context-engine
7
+ Project-URL: Issues, https://github.com/nullmastermind/local-context-engine/issues
8
+ Author: nullmastermind
9
+ License: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: LLM,MCP,code-search,codebase-retrieval,context,embeddings,retrieval
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
16
+ Classifier: Topic :: Software Development :: Libraries
17
+ Requires-Python: >=3.11
18
+ Requires-Dist: mcp>=1.1.2
19
+ Requires-Dist: numpy>=2.0
20
+ Requires-Dist: pydantic>=2.0
21
+ Requires-Dist: python-dotenv>=1.0
22
+ Requires-Dist: rich>=13.0
23
+ Requires-Dist: typer>=0.12
24
+ Provides-Extra: anthropic
25
+ Requires-Dist: anthropic>=0.25; extra == 'anthropic'
26
+ Provides-Extra: aws
27
+ Requires-Dist: boto3>=1.34; extra == 'aws'
28
+ Provides-Extra: azure
29
+ Requires-Dist: openai>=1.0; extra == 'azure'
30
+ Provides-Extra: dev
31
+ Requires-Dist: httpx; extra == 'dev'
32
+ Requires-Dist: mypy; extra == 'dev'
33
+ Requires-Dist: pytest-asyncio; extra == 'dev'
34
+ Requires-Dist: pytest-cov; extra == 'dev'
35
+ Requires-Dist: pytest>=8.0; extra == 'dev'
36
+ Requires-Dist: respx; extra == 'dev'
37
+ Requires-Dist: ruff; extra == 'dev'
38
+ Provides-Extra: gcp
39
+ Requires-Dist: anthropic[vertex]>=0.25; extra == 'gcp'
40
+ Requires-Dist: google-cloud-aiplatform>=1.38; extra == 'gcp'
41
+ Provides-Extra: google
42
+ Requires-Dist: google-genai>=2.7.0; extra == 'google'
43
+ Provides-Extra: local
44
+ Requires-Dist: sentence-transformers>=3.0; extra == 'local'
45
+ Requires-Dist: transformers<5.0.0; extra == 'local'
46
+ Provides-Extra: openai
47
+ Requires-Dist: openai>=1.0; extra == 'openai'
48
+ Provides-Extra: treesitter
49
+ Requires-Dist: tree-sitter-c-sharp>=0.21; extra == 'treesitter'
50
+ Requires-Dist: tree-sitter-go>=0.21; extra == 'treesitter'
51
+ Requires-Dist: tree-sitter-java>=0.21; extra == 'treesitter'
52
+ Requires-Dist: tree-sitter-javascript>=0.21; extra == 'treesitter'
53
+ Requires-Dist: tree-sitter-php>=0.21; extra == 'treesitter'
54
+ Requires-Dist: tree-sitter-python>=0.21; extra == 'treesitter'
55
+ Requires-Dist: tree-sitter-ruby>=0.21; extra == 'treesitter'
56
+ Requires-Dist: tree-sitter-rust>=0.21; extra == 'treesitter'
57
+ Requires-Dist: tree-sitter-typescript>=0.21; extra == 'treesitter'
58
+ Requires-Dist: tree-sitter>=0.21; extra == 'treesitter'
59
+ Provides-Extra: voyage
60
+ Requires-Dist: voyageai>=0.3; extra == 'voyage'
61
+ Description-Content-Type: text/markdown
62
+
63
+ <div align="center">
64
+ <img src="assets/logo.png" width="300" alt="Corbell Logo" />
65
+ <h1>Corbell</h1>
66
+ <p><strong>Multi-repo architecture graph, AI-powered spec generation, and architecture review — for backend teams that ship to production.</strong></p>
67
+ <p>
68
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License"/></a>
69
+ <a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"/></a>
70
+ <a href="https://agentseal.org/mcp/corbell"><img src="https://agentseal.org/api/v1/mcp/corbell/badge" alt="AgentSeal MCP"/></a>
71
+ </p>
72
+ </div>
73
+
74
+ ---
75
+
76
+ ## What problem does this solve?
77
+
78
+ You're a staff engineer or architect at a company where features touch 5–10 repositories.<br/>
79
+ Every quarter your team re-litigates the same architectural decisions: "should we use Kafka or SQS?", "why do we have three different auth patterns?", "who owns the rate-limiting layer?"
80
+
81
+ The decisions live in Confluence pages nobody reads, Slack messages nobody can find, and the memories of engineers who've since left.
82
+
83
+ When a new engineer joins—or even when you return to a service you haven't touched in 6 months—you're starting from scratch.
84
+
85
+ **Corbell gives your team a living knowledge graph of your architecture** — built from the actual code in your repos and your team's past design docs. When you need a new spec, Corbell generates one that respects your established patterns instead of inventing new ones. When you push to Linear, each task carries the exact method signatures, call paths, and cross-service impacts an AI coding agent needs to work autonomously.
86
+
87
+ ---
88
+
89
+ ## How it looks
90
+
91
+ <p align="center">
92
+ <img src="assets/corbell_ui.png" width="48%" alt="Corbell UI" />
93
+ <img src="assets/mermaid_diagram.png" width="48%" alt="Mermaid Diagram" />
94
+ </p>
95
+
96
+ ## Star History (thank you)
97
+ <p align="center">
98
+ <img src="assets/star_history.png" width="70%" alt="Corbell Star History" />
99
+ </p>
100
+
101
+ ## How it works
102
+
103
+ ```
104
+ Your repos → [graph:build] → Service graph (SQLite)
105
+ Your docs → [docs:scan] → Design pattern extraction
106
+
107
+ [spec new --feature "Payment Retry" --prd-file prd.md]
108
+ → Generates 3-4 PRD-driven code search queries (LLM or regex)
109
+ → Auto-discovers relevant services via embedding similarity
110
+ → Injects graph topology + real code snippets
111
+ → Applies your team's established design patterns
112
+ → Calls Claude / GPT-4o to write the full design doc
113
+ → Displays token usage and estimated cost
114
+ → specs/payment-retry.md ✓
115
+
116
+ [spec review] → Checks claims against graph → .review.md
117
+ [spec decompose] → Parallel task tracks YAML
118
+ [export linear] → Linear issues with full method/service context
119
+ [export jira] → Jira issues via REST API v3 (reads from workspace.yaml)
120
+ ```
121
+
122
+ No servers. No cloud setup. Runs entirely from your laptop against local repos.
123
+
124
+ ---
125
+
126
+ ## Installation
127
+
128
+ ```bash
129
+ pip install corbell
130
+
131
+ # With LLM support (pick one):
132
+ pip install "corbell[anthropic]" # Claude (recommended)
133
+ pip install "corbell[openai]" # GPT-4o
134
+
135
+ # With exports:
136
+ pip install "corbell[notion,linear,jira]"
137
+
138
+ # Everything:
139
+ pip install "corbell[anthropic,openai,notion,linear,jira]"
140
+ ```
141
+
142
+ **Requirements**: Python ≥ 3.11
143
+
144
+ ---
145
+
146
+ ## 🚀 Quick Setup (2 minutes)
147
+
148
+ ### Prerequisites
149
+ - Python 3.8+ or Node.js 16+ or Go 1.19+ (based on your project)
150
+ - Git repository with source code
151
+
152
+ ### Essential Steps
153
+
154
+ 1. **Initialize Corbell workspace**
155
+ ```bash
156
+ corbell init
157
+ ```
158
+ ✅ Creates `workspace.yaml` in your project root
159
+
160
+ 2. **Generate your first design document**
161
+ ```bash
162
+ corbell spec new --prd "Add user authentication feature"
163
+ ```
164
+ ✅ Creates design document with auto-discovered services
165
+
166
+ 3. **View architecture graph** (optional)
167
+ ```bash
168
+ corbell ui serve
169
+ ```
170
+ ✅ Opens browser at http://localhost:7433
171
+
172
+ ### Verify Setup
173
+ - [ ] `workspace.yaml` exists in your project
174
+ - [ ] Design document generated successfully
175
+ - [ ] Architecture graph loads (if using UI)
176
+
177
+ **Need more details?** See [Full Documentation](#full-documentation) below.
178
+
179
+ ---
180
+
181
+ ## 📖 Full Documentation
182
+
183
+ <details>
184
+ <summary><strong>Advanced Usage Guide</strong></summary>
185
+
186
+ ### 1. Initialize a workspace
187
+
188
+ ```bash
189
+ cd ~/my-platform # wherever your repos live
190
+ corbell init
191
+ ```
192
+
193
+ Edit `corbell-data/workspace.yaml`:
194
+
195
+ ```yaml
196
+ workspace:
197
+ name: my-platform
198
+
199
+ services:
200
+ - id: payments-service
201
+ repo: ../payments-service
202
+ language: python # python | javascript | typescript | go | java | csharp | rust | ruby | php
203
+
204
+ - id: auth-service
205
+ repo: ../auth-service
206
+ language: go
207
+
208
+ llm:
209
+ provider: anthropic # or: openai, ollama, aws, azure, gcp
210
+ model: claude-sonnet-4-5-20250929
211
+ api_key: ${ANTHROPIC_API_KEY}
212
+ context_budget: 100000 # Token limit for prompt context
213
+
214
+ integrations:
215
+ jira:
216
+ url: https://yourcompany.atlassian.net
217
+ email: you@yourcompany.com
218
+ api_token: ${CORBELL_JIRA_API_TOKEN} # or paste directly
219
+ project_key: ENG
220
+ issue_type: Task # Task | Story | Bug
221
+ linear:
222
+ api_key: ${CORBELL_LINEAR_API_KEY}
223
+ team_id: ${CORBELL_LINEAR_TEAM_ID}
224
+ ```
225
+
226
+ ### 2. Build the knowledge graph
227
+
228
+ ```bash
229
+ corbell graph build --methods # service + dependency graph + call graph, typed signatures, flows
230
+ corbell embeddings build # code chunk index for semantic search
231
+ corbell docs scan && corbell docs learn # extract patterns from existing RFCs/ADRs
232
+ ```
233
+
234
+ ### 3. Generate a design document
235
+
236
+ ```bash
237
+ export ANTHROPIC_API_KEY="sk-ant-..."
238
+
239
+ # From a PRD file — services are auto-discovered, no --service flag needed
240
+ corbell spec new \
241
+ --feature "Payment Retry with Exponential Backoff" \
242
+ --prd-file docs/payment-retry-prd.md
243
+
244
+ # Spec with full call graph and infrastructure context
245
+ corbell spec new --feature "Auth Flow" --prd-file prd.md --full-graph
246
+
247
+ # Inline PRD
248
+ corbell spec new --feature "Rate Limiting" --prd "Tier 1: 100 req/min..."
249
+
250
+ # Document your existing codebase with no PRD at all
251
+ corbell spec new --existing
252
+
253
+ # Add existing design docs as context (ADRs, Confluence exports, RFCs)
254
+ corbell spec new --feature "Auth Token Refresh" --prd-file prd.md \
255
+ --design-doc docs/auth-design-2023.md
256
+ ```
257
+
258
+ Token usage and estimated cost are shown after every LLM call. Template mode (no LLM key) generates a structured skeleton with graph context filled in.
259
+
260
+ ### 4. Document architecture constraints
261
+
262
+ Add a constraints block to any spec and all future specs will respect it:
263
+
264
+ ```markdown
265
+ <!-- CORBELL_CONSTRAINTS_START -->
266
+ - **Cloud provider**: Only Azure — no AWS services permitted
267
+ - **Latency SLO**: p99 < 200ms for all synchronous API calls
268
+ - **Security**: All PII encrypted at rest (AES-256) and in transit (TLS 1.2+)
269
+ <!-- CORBELL_CONSTRAINTS_END -->
270
+ ```
271
+
272
+ `corbell spec review` checks proposed designs against these constraints. The `corbell ui serve` graph browser also surfaces them in a persistent bar at the bottom.
273
+
274
+ ### 5. Review, approve, decompose, export
275
+
276
+ ```bash
277
+ corbell spec review specs/payment-retry.md # → .review.md sidecar
278
+ corbell spec approve specs/payment-retry.md
279
+
280
+ corbell spec decompose specs/payment-retry.md # → .tasks.yaml
281
+
282
+ # Export to Linear
283
+ export CORBELL_LINEAR_API_KEY="lin_api_..."
284
+ corbell export linear specs/payment-retry.tasks.yaml
285
+
286
+ # Export to Jira (credentials in workspace.yaml)
287
+ corbell export jira specs/payment-retry.tasks.yaml
288
+ ```
289
+
290
+ </details>
291
+
292
+ <details>
293
+ <summary><strong>Architecture graph browser</strong></summary>
294
+
295
+ ```bash
296
+ corbell ui serve # opens http://localhost:7433 · Ctrl+C to stop
297
+ corbell ui serve --port 8080 --no-browser
298
+ ```
299
+
300
+ An interactive local graph view — no cloud, no sign-in, reads from your existing SQLite store:
301
+
302
+ - **Force-directed graph** — services (sized by method count), data stores, queues, execution flows. Zoom, pan, drag.
303
+ - **Detail panel** — click any service to see: language, dependencies, HTTP callers, typed method signatures, execution flows (e.g. `LoginFlow`), git change coupling pairs with strength %.
304
+ - **Constraints bar** — all `CORBELL_CONSTRAINTS_START` blocks from your spec files shown as persistent amber pills at the bottom. Click to expand.
305
+ - **Sidebar** — filterable service list, stores, queues, flows with search.
306
+
307
+ </details>
308
+
309
+ <details>
310
+ <summary><strong>CLI Reference</strong></summary>
311
+
312
+ ```
313
+ graph Service dependency graph
314
+ build --methods for call graph + typed signatures + git coupling + flows
315
+ services List discovered services
316
+ deps Show service dependencies
317
+ callpath Find call paths between methods
318
+
319
+ embeddings Code embedding index
320
+ build Index code chunks
321
+ query Semantic search
322
+
323
+ docs Design doc patterns
324
+ scan / learn / patterns
325
+
326
+ spec Design spec lifecycle
327
+ new --feature --prd-file --prd --design-doc --existing --no-llm
328
+ lint Validate structure (--ci exits 1)
329
+ review Check spec vs graph → .review.md
330
+ approve / decompose / context
331
+
332
+ export notion | linear | jira
333
+
334
+ ui Architecture graph browser
335
+ serve --port (default 7433) --no-browser
336
+
337
+ mcp Model Context Protocol server
338
+ serve stdio transport for Claude Desktop / Cursor
339
+
340
+ init Create workspace.yaml
341
+ ```
342
+
343
+ </details>
344
+
345
+ <details>
346
+ <summary><strong>MCP – Model Context Protocol</strong></summary>
347
+
348
+ Corbell exposes its architecture graph, code embeddings, and spec tools via MCP, so external AI platforms (Cursor, Claude Desktop, Antigravity) can query your codebase context directly.
349
+
350
+ ### Available Tools
351
+
352
+ | Tool | Description |
353
+ |---|---|
354
+ | `graph_query` | Query service dependencies, methods, and call paths |
355
+ | `get_architecture_context` | Auto-discover relevant services for a feature description |
356
+ | `code_search` | Semantic search across the code embedding index |
357
+ | `list_services` | List all services in the workspace graph |
358
+
359
+ ### Usage
360
+
361
+ ```bash
362
+ # Default: stdio transport (for IDE integrations)
363
+ corbell mcp serve
364
+
365
+ # SSE transport (for web-based MCP clients / MCP Inspector)
366
+ corbell mcp serve --transport sse --port 8000
367
+ ```
368
+
369
+ ### IDE Configuration
370
+
371
+ **Cursor** (`~/.cursor/mcp.json`):
372
+ ```json
373
+ {
374
+ "mcpServers": {
375
+ "corbell": {
376
+ "command": "corbell",
377
+ "args": ["mcp", "serve"]
378
+ }
379
+ }
380
+ }
381
+ ```
382
+
383
+ **Claude Desktop** (`~/Library/Application Support/Claude/claude_desktop_config.json`):
384
+ ```json
385
+ {
386
+ "mcpServers": {
387
+ "corbell": {
388
+ "command": "corbell",
389
+ "args": ["mcp", "serve"]
390
+ }
391
+ }
392
+ }
393
+ ```
394
+
395
+ If your IDE overrides the working directory, set the `CORBELL_WORKSPACE` environment variable:
396
+
397
+ ```bash
398
+ env CORBELL_WORKSPACE=/path/to/my-platform corbell mcp serve
399
+ ```
400
+
401
+ </details>
402
+
403
+ <details>
404
+ <summary><strong>Auto service discovery</strong></summary>
405
+
406
+ When you run `corbell spec new`, Corbell discovers which services are relevant to your PRD **automatically** — without you having to specify `--service`:
407
+
408
+ 1. Generates 3-4 natural-language code search queries from your PRD (using LLM or regex fallback)
409
+ 2. Encodes them with the same `sentence-transformers/all-MiniLM-L6-v2` model used for indexing
410
+ 3. Runs similarity search against all indexed code chunks
411
+ 4. Ranks services by how many of their chunks appear in the top results
412
+ 5. Auto-includes any services tagged as `infrastructure` (e.g. AWS CDK repos) to provide comprehensive context
413
+ 6. Selects the top-scoring services and builds context from them
414
+
415
+ Preview what would be discovered without generating a spec:
416
+
417
+ ```bash
418
+ corbell spec context "Add exponential backoff retry to payment processing"
419
+ ```
420
+
421
+ </details>
422
+
423
+ <details>
424
+ <summary><strong>LLM providers</strong></summary>
425
+
426
+ | Provider | Models | Key env var |
427
+ |---|---|---|
428
+ | `anthropic` | `claude-sonnet-4-5`, `claude-haiku-4-5` | `ANTHROPIC_API_KEY` |
429
+ | `openai` | `gpt-4o`, `gpt-4o-mini`, `gpt-4-turbo` | `OPENAI_API_KEY` |
430
+ | `ollama` | `llama3`, `mistral`, any local model | (none) |
431
+ | `aws` | `us.anthropic.claude-sonnet-4-*` | `BEDROCK_API_KEY` or IAM |
432
+ | `azure` | `gpt-4o`, any deployment | `AZURE_OPENAI_API_KEY` + `AZURE_OPENAI_ENDPOINT` |
433
+ | `gcp` | `claude-sonnet-4-5@20250514` | `GOOGLE_APPLICATION_CREDENTIALS` |
434
+
435
+ </details>
436
+
437
+ ---
438
+
439
+ ## Advanced Topics
440
+
441
+ <details>
442
+ <summary><strong>Architecture Details</strong></summary>
443
+
444
+ Corbell runs entirely locally, no cloud required:
445
+
446
+ - **Graph store**: SQLite (default). Optional: Neo4j for large multi-repo topologies.
447
+ - **Embeddings**: `sentence-transformers/all-MiniLM-L6-v2` (local). Storage backend is pluggable via `storage.embeddings.backend` in `workspace.yaml`.
448
+ - **UI**: Python stdlib `http.server` + D3.js via CDN. Zero extra dependencies.
449
+ - **LLM**: Not required for graph/embedding/UI commands. Claude/GPT-4o/Ollama for spec generation.
450
+
451
+ ### What `graph build --methods` extracts
452
+
453
+ | Signal | Languages | Result |
454
+ |---|---|---|
455
+ | Typed method signatures | Python, TS, Go, Java, C#, Rust, Ruby, PHP | `MethodNode.typed_signature` |
456
+ | Call edges | All 9 | `method_call` edges |
457
+ | DB/queue/HTTP dependencies | All 9 | `DataStoreNode`, `QueueNode`, `http_call` |
458
+ | Git change coupling | Any git repo | `git_coupling` edges with strength score |
459
+ | Execution flow traces | All 9 | `FlowNode` + `flow_step` edges |
460
+ | Infrastructure as Code | TS / JS | Auto-tags CDK/Terraform as `infrastructure` |
461
+
462
+ </details>
463
+
464
+ <details>
465
+ <summary><strong>CI integration</strong></summary>
466
+
467
+ ```yaml
468
+ # .github/workflows/spec-lint.yml
469
+ - name: Lint architecture specs
470
+ run: |
471
+ pip install corbell
472
+ corbell spec lint specs/my-feature.md --ci
473
+ ```
474
+
475
+ </details>
476
+
477
+ <details>
478
+ <summary><strong>Development</strong></summary>
479
+
480
+ ```bash
481
+ git clone https://github.com/your-org/corbell && cd Corbell
482
+ pip install -e ".[dev]"
483
+ pytest tests/ -q
484
+ corbell --help
485
+ ```
486
+
487
+ </details>
488
+
489
+ ---
490
+
491
+ ## Roadmap
492
+
493
+ We are moving away from hardcoded procedural flows toward a fully **agentic architecture**. Instead of a fixed pipeline, Corbell will treat its core capabilities as dynamic tools:
494
+
495
+ - **Features as Tools**: Enabling agents to autonomously select when to query the graph, search embeddings, or analyze patterns based on the specific complexity of a feature request.
496
+ - **Dynamic Reasoning**: Moving the orchestration logic into the agentic layer so it can backtrack, refine queries, and cross-reference services without hardcoded sequence constraints.
497
+ - **Agentic Review Flow**: Self-correcting design docs where the agent uses the architecture graph as a real-time validator during the generation process.
498
+
499
+ ---
500
+
501
+ [![MseeP.ai Security Assessment Badge](https://mseep.net/pr/corbell-ai-corbell-badge.png)](https://mseep.ai/app/corbell-ai-corbell)
502
+
503
+ ## License
504
+
505
+ Apache 2.0 — see [LICENSE](LICENSE).
@@ -0,0 +1,46 @@
1
+ corbell/__init__.py,sha256=ECnnvynYrlq_niQjMhnC171R8q2axnwhEGqVRoWu50E,124
2
+ corbell/cli/__init__.py,sha256=5-MP6JIWgp4nDLNIhqP6Gtx97GESaIYg3NGxtRGaMv0,28
3
+ corbell/cli/main.py,sha256=anYpXiyQD6_1wMS0Dtef6Rxtxd0NEFe7HHnerHxf3J4,1835
4
+ corbell/cli/commands/__init__.py,sha256=0mAOs3RWC7XMZnGRN677hjPCHHQKDq9ASjIr_GQM3js,37
5
+ corbell/cli/commands/index.py,sha256=pdtGr0dNy3OdxqMBwUjkhOXxxR0N966T3MqIGweZHQI,3021
6
+ corbell/cli/commands/query.py,sha256=Sh-xnVj4n3zAI2hTxVyMTqFEPsq3vkWucfljnCEaGyU,2310
7
+ corbell/core/__init__.py,sha256=VS9PnhHr4NXYlWs1TLCyllnVCNsiwVZ1Xj-AOBhZpAU,29
8
+ corbell/core/constants.py,sha256=HTGYpShlp9pP2_a4WngHtTujUQfHcypFAYoaczmkBdQ,1061
9
+ corbell/core/gitignore.py,sha256=VS7_s6NwZWQAwgLiaRzPHdBRIj86XdnPm_P_x_e0hvI,2266
10
+ corbell/core/llm_client.py,sha256=2MDwe6kr_EyY3DFv3fNO91WCig8ER021ogzdLGH3IN8,26219
11
+ corbell/core/workspace.py,sha256=v9H56MxhI2iHPr3P9fU5DnIiniGehozWScfcd6TG2gQ,14189
12
+ corbell/core/embeddings/__init__.py,sha256=RCekvfNkFuMGEDLnls78i3znR84cTdnj4KJ_PeQrMNg,213
13
+ corbell/core/embeddings/base.py,sha256=udPW4XmcPhCpNQA6n8KqMcu2JXvVNv1JjdRJmFq5ZRA,2175
14
+ corbell/core/embeddings/extractor.py,sha256=hOolMX6JX3sVBf062h2zUQpr9SVt81S0hzhNCeJoV1I,7180
15
+ corbell/core/embeddings/factory.py,sha256=Lonjbk8Lsxykz-2ZEgFCWoH9zZ005Qm4dXVdA6P4qJY,1817
16
+ corbell/core/embeddings/model.py,sha256=5guf3qpqOaC7fSp-OZlQjBUQt7jOf_3eE3w6X6yNY2I,15224
17
+ corbell/core/embeddings/search_cache.py,sha256=FHzO3mu4m4MJGy2jOFwb9GCEypcT11CcVrLts4Ib0ho,3351
18
+ corbell/core/embeddings/sqlite_store.py,sha256=8rv89WOMqMm-JhJO36-FdRiC68Ija3TwHkrmRrPr1os,10158
19
+ corbell/core/graph/__init__.py,sha256=VaxDKeXMgMEBBMC0dglwj68A_aNYRI5O8VM6oMC1GIM,29
20
+ corbell/core/graph/builder.py,sha256=8BtUVvh_3Sq_XQiYf3yZifRygTrc-_hE770luqwZ3e0,30423
21
+ corbell/core/graph/method_graph.py,sha256=XJpojhBVXon2RNMIaOqE3NgRjUdP0IAnRQuKYGhO5js,49753
22
+ corbell/core/graph/schema.py,sha256=swy1VZZpL88LPEj6zihl5bglQLrGD-ohOYjFeNC31a0,5253
23
+ corbell/core/graph/sqlite_store.py,sha256=D9que8zHV68x_tiFY-q09Ipk-dXR9LWM3hFPQLGNDto,20019
24
+ corbell/core/graph/providers/__init__.py,sha256=__ZVe1uwIHSyFh_t-V4MyT5MsM5hooTOrxxkm9Txt7o,268
25
+ corbell/core/graph/providers/aws_patterns.py,sha256=w2iF5qQJcV7S6J64ZYb3IzGPdXjCc37YX5sNnHz8mXY,2818
26
+ corbell/core/graph/providers/azure_patterns.py,sha256=tJ9AQQXW2xYzJ36wNOxTHHhaivaCv3RYEMJUjw8WjeQ,3515
27
+ corbell/core/graph/providers/gcp_patterns.py,sha256=vIofjanvRWGhFftuGdzt9YgTIGZRJz7lLG0abUNjFdA,2789
28
+ corbell/core/indexing/__init__.py,sha256=VczeSHUfKR3YVowGCleFjo2pIpDHfl9kl-OkEl8szow,47
29
+ corbell/core/indexing/builder.py,sha256=l1Hj9Lrze2zuBvwtauDgmjAWWVvKbKXWKMgtv8uA-TQ,21967
30
+ corbell/core/indexing/lock.py,sha256=uUMelIrtrp6Ww9rTfbl2OvomByc-IJyiHIMnptfA4xI,4743
31
+ corbell/core/indexing/tracker.py,sha256=mbL1M-EeYf6KoIT5qoz7LCHwSHL6UlZNX7mjm4DczR0,8469
32
+ corbell/core/mcp/__init__.py,sha256=DDzfuVbX_GBTM5Nqy34JVgDUMeFd2_5ZcVMVuvjOddU,32
33
+ corbell/core/mcp/server.py,sha256=nTiPQ9yyenL7uhgLCsGwEm7yyoqk1tUPTsZYFAAmPBU,7270
34
+ corbell/core/query/__init__.py,sha256=OCyVRZOyh_eLGhOxR_JYyH6zp8O7qy_-rC3fqGHm7Bc,56
35
+ corbell/core/query/diagnostics.py,sha256=ObQyZWmMVRXEHFYGXBP2-EMBmM8SYr0H6cCi95uFnIk,1406
36
+ corbell/core/query/engine.py,sha256=4PRW3R0Wws7BPAqDD4hrWjpqOq8mx9dCrtABWA-Wmus,11635
37
+ corbell/core/query/enhancer.py,sha256=w5mvm1B8qQZpL6RVhMuhq_rls77hakGSNUyanfkyNEU,3934
38
+ corbell/core/query/formatter.py,sha256=xMr8HE-oxBSEKb514aixY7aoUWGeYoK1w5wnaIlCYEc,2813
39
+ corbell/core/query/graph_expander.py,sha256=Y-yKnr6db-OM2Gh8ukYgVIcUZa6-wfWA-GhdvOwf_yA,9184
40
+ corbell/core/query/merger.py,sha256=fs6PL7X7EweXnSnDRnpzmpaU8JjwJpL0akzm4hSwLJk,6168
41
+ corbell/core/query/reranker.py,sha256=HYckYiUVZ80mbLGHhK4IHxNI7uUqNaztwXLbYgdnoWU,4298
42
+ codebase_retrieval_context_engine-2.0.0.dist-info/METADATA,sha256=SVKzXFoaizz5EyBgOZbmwdtsKI72ZcKgjzCyes_8mJY,17408
43
+ codebase_retrieval_context_engine-2.0.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
44
+ codebase_retrieval_context_engine-2.0.0.dist-info/entry_points.txt,sha256=vFB4a4Qb7Ty182usK8deJXiis0UYnGIUDusw0V3Jya8,115
45
+ codebase_retrieval_context_engine-2.0.0.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
46
+ codebase_retrieval_context_engine-2.0.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.30.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ codebase-retrieval-context-engine = corbell.core.mcp.server:main
3
+ corbell = corbell.cli.main:main