@gokulvenkatareddy/cortex 0.1.18 → 0.1.20

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 (5) hide show
  1. package/CORTEX.md +22 -0
  2. package/LICENSE +21 -0
  3. package/README.md +47 -10
  4. package/dist/cli.mjs +11926 -8187
  5. package/package.json +3 -2
package/CORTEX.md ADDED
@@ -0,0 +1,22 @@
1
+ # CORTEX — Zero-Command Routing
2
+
3
+ Infer user intent from plain English and act directly using available tools. Do not ask the user to run slash commands.
4
+
5
+ ## Core Behavior
6
+ - Read/search first, then fix. Never describe what you'd do — just do it.
7
+ - Chain steps for multi-part requests (implement → test → commit).
8
+ - Be proactive. If you see an obvious improvement, mention it briefly.
9
+ - Ask only when truly ambiguous; make sensible defaults.
10
+
11
+ ## Safety
12
+ - NEVER push/deploy without explicit user approval
13
+ - NEVER delete files without confirmation (temp/build files excluded)
14
+ - NEVER modify `.env` or secrets
15
+ - NEVER install system packages automatically
16
+ - ALWAYS verify after changes; prefer minimal targeted edits
17
+
18
+ ## Agents
19
+ 162 specialist agents in `src/skills/agency/`. Use the `Agent` tool with `subagent_type` for domain work. Run `/agents` to list them.
20
+
21
+ ## Tone
22
+ Concise. Markdown. Cite file:line. No filler. One-line summary at end.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Gokul Venkata Reddy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -12,18 +12,14 @@
12
12
 
13
13
  <p align="center">
14
14
  <strong>An open-source, agentic AI coding assistant for your terminal, desktop, and editor.</strong><br/>
15
- Runs entirely on free HuggingFace models. No Anthropic / OpenAI subscription required.
15
+ Connect to any LLM provider — OpenRouter, Groq, HuggingFace, NVIDIA, OpenAI, Anthropic, Gemini, and more.
16
16
  </p>
17
17
 
18
18
  <p align="center">
19
- <a href="#-quick-start"><img src="https://img.shields.io/badge/Quick%20Start-5%20min-brightgreen" /></a>
20
- <a href="#-architecture"><img src="https://img.shields.io/badge/Architecture-Full%20Diagram-blue" /></a>
21
- <a href="#-command-reference-50-total"><img src="https://img.shields.io/badge/Commands-50+-purple" /></a>
22
- <a href="#-153-specialist-agents"><img src="https://img.shields.io/badge/Agents-153-orange" /></a>
23
- <a href="#-mcp-servers-38-registered"><img src="https://img.shields.io/badge/MCP%20Servers-38-cyan" /></a>
24
- <a href="#-quick-start"><img src="https://img.shields.io/badge/Install-1%20command-green" /></a>
25
- <a href="#-docker"><img src="https://img.shields.io/badge/Docker-ready-2496ED?logo=docker&logoColor=white" /></a>
26
- <a href="https://www.npmjs.com/package/@gitlawb/cortex"><img src="https://img.shields.io/badge/npm-%40gitlawb%2Fcortex-red?logo=npm" /></a>
19
+ <a href="ARCHITECTURE.md"><img src="https://img.shields.io/badge/Architecture-View-blue" /></a>
20
+ <a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/Contributing-Guide-green" /></a>
21
+ <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/Changelog-View-purple" /></a>
22
+ <a href="SECURITY.md"><img src="https://img.shields.io/badge/Security-Policy-orange" /></a>
27
23
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow" /></a>
28
24
  </p>
29
25
 
@@ -83,7 +79,7 @@ A fully-agentic AI coding assistant with **everything built-in** — 50+ slash c
83
79
  | 🔄 | **Auto-failover** | Primary `zai-org/GLM-5:together` → fallback `:novita` on 5xx errors |
84
80
  | 🦙 | **Offline mode** | Ollama detected automatically at `localhost:11434` — zero config |
85
81
  | ⚡ | **50+ slash commands** | Smart commits, PR reviews, RAG, agents, voice, media, diagrams |
86
- | 👥 | **153 specialist agents** | Engineering · Marketing · Security · Design · Testing · Compliance · XR |
82
+ | 👥 | **162 specialist agents** | Engineering · Marketing · Security · Design · Testing · Compliance · XR |
87
83
  | 🔌 | **38 MCP servers** | GitHub, Slack, Linear, Context7, Serena, Playwright, Jupyter, Git, Exa, Tavily, DuckDuckGo, Time, Everything, Postgres, SQLite, Puppeteer, Fetch, Memory, Filesystem, Seq-Thinking, Docker, Kubernetes, Chroma, Excel, Pandoc, PDF-Reader, Wikipedia, ArXiv, HackerNews, Reddit, YouTube-Transcript, RepoMix, OSM, AppleScript, Apple-Shortcuts, Automation-Mac, Calculator |
88
84
  | 🎤 | **Voice I/O** | Whisper (STT) + Bark (TTS) + Web Speech API |
89
85
  | 👁 | **Screen vision** | Electron `desktopCapturer` → vision LLM every 10s |
@@ -934,6 +930,32 @@ ollama serve # listens on :11434
934
930
 
935
931
  Dashboard → **Overview** tab shows green Ollama indicator when reachable.
936
932
 
933
+ ### Free Models (No API key required)
934
+
935
+ CORTEX supports multiple free model providers:
936
+
937
+ | Provider | Model | How to Use |
938
+ |---|---|---|
939
+ | **OpenRouter** (default) | MiniMax M2.5, Gemma, Llama | Set `OPENAI_MODEL=minimax/minimax-m2.5:free` |
940
+ | **NVIDIA NIM** | DeepSeek V4 Pro, Qwen3 Coder | Use `/model` to select |
941
+ | **Ollama** (local) | llama3.2:3b, moondream | Automatic fallback when offline |
942
+
943
+ **Model Commands:**
944
+ ```
945
+ /model # Show NVIDIA NIM models only
946
+ /model openrouter # Show OpenRouter free models
947
+ ```
948
+
949
+ **Environment Variables (`.env`):**
950
+ ```bash
951
+ # Default: OpenRouter MiniMax (free)
952
+ OPENAI_MODEL=minimax/minimax-m2.5:free
953
+
954
+ # NVIDIA models (for /model selection)
955
+ NVIDIA_MODEL_ID=deepseek-ai/deepseek-v4-pro
956
+ NVIDIA_CODE_MODEL_ID=qwen/qwen3-coder-480b-a35b-instruct
957
+ ```
958
+
937
959
  ---
938
960
 
939
961
  ## 🖥 Tier A — Floating Desktop UI with Screen Watcher
@@ -1264,6 +1286,21 @@ All contributions welcome — new agents, new commands, new MCPs, UI polish, bug
1264
1286
 
1265
1287
  ---
1266
1288
 
1289
+ ## 🆕 Recent Changes
1290
+
1291
+ | Change | Description |
1292
+ |--------|-------------|
1293
+ | **45+ Provider Registry** | Connect to OpenRouter, Groq, HuggingFace, NVIDIA, Cerebras, Together AI, Deep Infra, Fireworks, OpenAI, Anthropic, Google Gemini, DeepSeek, Mistral, xAI, Ollama, LM Studio, and more |
1294
+ | **`/connect` command** | Interactive provider setup — pick a category, pick a provider, paste API key, done |
1295
+ | **`/tools` command** | Toggle extra tools on/off. 7 default tools (Bash, Read, Edit, Write, Glob, Grep, WebFetch) + optional extras (Agent, WebSearch, NotebookEdit, TodoWrite, etc.) |
1296
+ | **`/model` picker** | Now shows only your active provider's models (not all mixed together) |
1297
+ | **Startup provider picker** | First-run wizard when no API key is configured — pick a provider, paste your key, it persists |
1298
+ | **Persistent API keys** | Keys saved to provider profile → remembered across restarts |
1299
+ | **Token optimization** | 162-agent list moved out of tool description (saves ~5K tokens/turn), CORTEX.md trimmed 85%, Bash git instructions compacted |
1300
+ | **162 specialist agents** | All game engine agents (Godot, Unity, Unreal, Roblox, Blender) now properly loaded |
1301
+
1302
+ ---
1303
+
1267
1304
  ## 📜 License
1268
1305
 
1269
1306
  MIT — do whatever you want, just don't sue me.