Cortex Entertainment - 决定性的大脑项目
停止AI幻觉. 给你的AI 确切的代码它需要, 而不是整个项目.
Cortex是一个本地第一的高性能代码智能平台,它扫描了您的代码库,构建了依赖性图表,并为AI代理(如克洛德,GPT,或Cursor)提供了经过验证的上下文 无幻觉。 。 。 .
为什么是Cortex企业?
- QQ快闪: 由本地SQLite公司提供电力(
better-sqlite3),搜索结果为 < 10ms. - 零幻觉: 在 AI 使用前验证任何符号(函数,类,文件) 。 如是图中所出所出所出所出所出所出所出所出所出所出所出.
- 爆炸半径 : 在修改一个函数之前, 请确切看到哪些文件会断开 .
- 互动依赖地图 : 你整个密码库的视觉图.
- QQ 多语言支持 : 电源
tree-sitter用于精确分析 JavaScript 、 TypeScript 和 蟒。 。 。 . - 死亡代码和安全审计: 检测未使用的代码和高压安全漏洞.
- AI 环境导出器 : 导出完美格式化的Markdown代码块直接粘贴到克洛德或ChatGPT.
- * 土著MCP支助: 作为MCP服务器直接连接到克洛德桌面和光标.
- 本地第一: 你的密码从不离开机器.
* 安装
npm install -g @almosawy/cortex-brain
🎯 Quick Start
Go to your project directory:
bash
cd /path/to/your/project
Scan your codebase (builds the AST graph):
bash
cortex scan
Start the Enterprise Dashboard:
bash
cortex serve
Open your browser at http://localhost:3000.
🛠️ CLI Commands
cortex scan - Build the AST graph, dependency edges, and call graph.
cortex serve - Start the Cortex Enterprise Dashboard (API + UI).
cortex ask "<query>" - Search the codebase from terminal.
cortex verify <type> <name> [file] - Verify if a symbol exists.
cortex context - Generate AI context (Markdown) for the project.
cortex mcp - Start the MCP server for Claude Desktop / Cursor integration.
🔌 MCP Integration (Claude Desktop / Cursor)
Add this to your claude_desktop_config.json or Cursor MCP settings:
json
{
"mcpServers": {
"cortex": {
"command": "cortex",
"args": ["mcp"]
}
}
}
🏗️ Architecture
Scanner: Uses tree-sitter to parse JavaScript/TypeScript/Python into a precise AST.
Graph: Stores nodes (functions, classes, files), edges (imports, defines), and call-graphs in SQLite.
Server: Express.js with Helmet, CORS, Rate Limiting, and Zod validation.
UI: Enterprise dashboard with Dependency Map (D3.js/Canvas), Syntax Highlighting, and Impact Analysis.
📄 License
MI