codegpt-ai 2.9.0 → 2.11.0

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 (2) hide show
  1. package/README.md +122 -125
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,169 +6,168 @@
6
6
  npm i -g codegpt-ai
7
7
  ```
8
8
 
9
- Then type `ai`.
9
+ Then type `code`.
10
10
 
11
11
  ```
12
- ██████╗ ██████╗ ██████╗ ███████╗ ██████╗ ██████╗ ████████╗
13
- ██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔════╝ ██╔══██╗╚══██╔══╝
14
- ██║ ██║ ██║██║ ██║█████╗ ██║ ███╗██████╔╝ ██║
15
- ██║ ██║ ██║██║ ██║██╔══╝ ██║ ██║██╔═══╝ ██║
16
- ╚██████╗╚██████╔╝██████╔╝███████╗╚██████╔╝██║ ██║
17
- ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝
12
+ ╔══════════════════════════════════════════════════╗
13
+ ║ ║
14
+ ║ C o d e G P T v2.0 ║
15
+ ║ local ai · powered by ollama ║
16
+ ║ ║
17
+ ╚══════════════════════════════════════════════════╝
18
18
  ```
19
19
 
20
20
  ## What is it?
21
21
 
22
- A fully-featured AI chat CLI that runs locally on your machine using [Ollama](https://ollama.com). No API keys needed. No cloud. No subscription.
22
+ CodeGPT is a full-featured AI CLI that runs entirely on your machine using [Ollama](https://ollama.com). 123 commands, 8 AI agents, 26 tools, no cloud needed.
23
23
 
24
- - **80+ slash commands** — chat, code, search, export, and more
25
- - **8 AI agents** — coder, debugger, reviewer, architect, pentester, explainer, optimizer, researcher
26
- - **29 AI tool integrations** — Claude, Codex, Gemini, Copilot, Cline, and more
27
- - **Multi-AI system** — swarm, vote, race, team chat with multiple AIs
28
- - **AI training** — train your own custom Ollama models from conversations
29
- - **Security** — PIN lock, audit log, sandboxed tools, shell blocklist
30
- - **Works anywhere** — Windows, macOS, Linux, Termux (Android)
24
+ **Works on Windows, macOS, Linux, and Termux (Android).**
31
25
 
32
26
  ## Install
33
27
 
34
- ### npm (recommended)
35
28
  ```bash
36
29
  npm i -g codegpt-ai
37
- ai
30
+ code
38
31
  ```
39
32
 
40
- Works with just Node.js. If Python is installed, you get the full 80+ command experience. Without Python, you get a lightweight Node.js chat client.
33
+ No Python? No problem — a built-in Node.js chat client runs automatically. With Python installed, you get the full 123-command experience.
34
+
35
+ ### Other install methods
41
36
 
42
- ### pip
43
37
  ```bash
44
- pip install -e git+https://github.com/CCguvycu/codegpt.git#egg=codegpt
38
+ # pip
39
+ pip install git+https://github.com/CCguvycu/codegpt.git
45
40
  ai
46
- ```
47
-
48
- ### PowerShell (Windows)
49
- ```powershell
50
- irm https://raw.githubusercontent.com/CCguvycu/codegpt/main/install.ps1 | iex
51
- ```
52
41
 
53
- ### Termux (Android)
54
- ```bash
42
+ # Termux (Android)
55
43
  curl -sL https://raw.githubusercontent.com/CCguvycu/codegpt/main/install-termux.sh | bash
44
+ code
45
+
46
+ # Windows (PowerShell)
47
+ irm https://raw.githubusercontent.com/CCguvycu/codegpt/main/install.ps1 | iex
56
48
  ```
57
49
 
58
50
  ## Requirements
59
51
 
60
- - **Node.js 16+** (for npm install) OR **Python 3.10+** (for pip install)
61
- - **Ollama** — install from [ollama.com](https://ollama.com), then `ollama pull llama3.2`
62
- - Or connect to a remote Ollama server with `/connect IP`
63
-
64
- ## Quick Start
52
+ - **Node.js 16+** or **Python 3.10+**
53
+ - **Ollama** — [ollama.com](https://ollama.com) then `ollama pull llama3.2`
54
+ - Or connect to a remote Ollama with `/connect IP`
65
55
 
66
- ```bash
67
- # Install
68
- npm i -g codegpt-ai
56
+ ## Features
69
57
 
70
- # Pull a model
71
- ollama pull llama3.2
58
+ ### 123 Commands
72
59
 
73
- # Start chatting
74
- ai
75
- ```
60
+ | Category | Commands |
61
+ |----------|----------|
62
+ | **Chat** | `/new` `/save` `/load` `/copy` `/regen` `/edit` `/history` `/export` |
63
+ | **Model** | `/model` `/temp` `/think` `/tokens` `/params` `/compact` |
64
+ | **AI Agents** | `/agent` `/all` `/vote` `/swarm` `/team` `/room` `/spectate` |
65
+ | **AI Lab** | `/lab bench` `/lab chain` `/lab prompt` `/race` `/compare` |
66
+ | **Tools** | `/tools` `/bg` `/split` `/grid` 26 AI CLI integrations |
67
+ | **Connect** | `/connect` `/server` `/qr` `/scan` `/disconnect` |
68
+ | **Files** | `/file` `/run` `/code` `/shell` `/browse` `/open` |
69
+ | **Memory** | `/mem` `/train` `/pin` `/search` `/fork` `/rate` |
70
+ | **Skills** | `/skill` `/skills` `/auto` `/cron` |
71
+ | **Comms** | `/broadcast` `/inbox` `/dm` `/monitor` `/hub` |
72
+ | **System** | `/github` `/weather` `/spotify` `/volume` `/sysinfo` |
73
+ | **Security** | `/pin-set` `/lock` `/audit` `/security` `/permissions` |
74
+ | **Profile** | `/profile` `/persona` `/usage` `/setname` `/setbio` |
76
75
 
77
- Type `/help` inside for all commands.
76
+ ### 8 AI Agents
78
77
 
79
- ## Features
78
+ Specialized agents with custom system prompts:
80
79
 
81
- ### Chat
82
- | Command | Description |
83
- |---------|-------------|
84
- | `/new` | New conversation |
85
- | `/save` | Save conversation |
86
- | `/load` | Load saved conversation |
87
- | `/model` | Switch model |
88
- | `/persona` | Switch personality (hacker, teacher, roast, architect, minimal) |
89
- | `/think` | Toggle deep reasoning mode |
90
- | `/file path` | Read a file into context |
91
- | `/run` | Execute last code block |
92
- | `/compact` | Summarize conversation to save context |
93
-
94
- ### AI Agents
95
- ```
96
- /agent coder build a REST API
80
+ ```
81
+ /agent coder build a REST API with auth
97
82
  /agent debugger why does this crash
98
- /agent reviewer check this code
83
+ /agent reviewer check this code for bugs
99
84
  /agent architect design a microservices system
85
+ /agent pentester find security vulnerabilities
86
+ /agent optimizer make this code faster
87
+ /agent explainer explain kubernetes simply
88
+ /agent researcher deep-dive into WebSockets
100
89
  ```
101
90
 
102
- 8 specialized agents: `coder` `debugger` `researcher` `reviewer` `architect` `pentester` `explainer` `optimizer`
91
+ ### Multi-AI System
103
92
 
104
- ### Multi-AI
105
93
  ```
106
94
  /all what's the best database? # All 8 agents answer in parallel
107
95
  /vote Flask or FastAPI? # Agents vote with consensus
108
- /swarm build a CLI password manager # 6-agent pipeline
109
- /team claude codex # Group chat with 2 AIs + you
110
- /race explain recursion # Race all models for speed
96
+ /swarm build a CLI password manager # 6-agent collaborative pipeline
97
+ /team claude codex # Group chat: you + 2 AIs
98
+ /room coder reviewer architect # Chat room with 3+ AIs
99
+ /spectate claude gemini debate AI # Watch AIs debate without you
111
100
  ```
112
101
 
113
- ### AI Tools (29 integrations)
102
+ ### 26 AI Tool Integrations
103
+
104
+ Launch any AI CLI from CodeGPT. Auto-installs on first use. All sandboxed.
105
+
114
106
  ```
115
- /tools # See all tools
116
- /claude # Launch Claude Code
117
- /codex # Launch Codex
118
- /gemini # Launch Gemini CLI
119
- /split claude codex # Side-by-side split screen
120
- /grid claude codex gemini cline # 2x2 grid
107
+ /claude /codex /gemini /copilot /cline
108
+ /aider /shellgpt /llm /litellm /opencommit
109
+ /gorilla /chatgpt /cursor /ollama /jq
110
+ /vercel /netlify /supabase /railway /wrangler
121
111
  ```
122
112
 
123
- All tools auto-install on first use. Sandboxed for security.
113
+ Split screen multiple tools:
124
114
 
125
- ### AI Training
126
115
  ```
127
- /rate good # Rate a response
128
- /train collect # Save chat as training data
129
- /train build mymodel # Create custom Ollama model
130
- /model mymodel # Use your trained model
116
+ /split claude codex # Side by side
117
+ /grid claude codex gemini cline # 2x2 grid
131
118
  ```
132
119
 
133
- ### Remote Connect
120
+ ### Custom Skills
121
+
122
+ Create your own commands — like OpenClaw's self-extending skills:
123
+
134
124
  ```
135
- /connect 192.168.1.100 # Connect to PC's Ollama
136
- /qr # Show QR code to connect from phone
137
- /server # Check connection status
125
+ /skill poet Write all responses as poetry
126
+ /auto a brutal code reviewer that finds every bug
127
+ /cron 5m /weather # Scheduled tasks
138
128
  ```
139
129
 
140
130
  ### Security
141
- ```
142
- /pin-set # Set login PIN
143
- /audit # View security log
144
- /security # Security dashboard
145
- ```
146
131
 
147
- ### Integrations
132
+ - **Permission system** — asks before every action with risk level (CRITICAL/HIGH/MEDIUM/LOW)
133
+ - **PIN lock** — SHA-256 hashed, auto-locks after 10min idle
134
+ - **Sandbox** — non-coding tools run in isolated directories, API keys stripped
135
+ - **Rate limiting** — blocks rapid-fire command spam
136
+ - **Input sanitization** — strips null bytes and control characters
137
+ - **Shell blocklist** — blocks dangerous commands + injection patterns
138
+ - **Audit log** — every action logged
139
+ - **Pre-commit hook** — blocks secrets from being committed
140
+
141
+ ### Remote Connect
142
+
148
143
  ```
149
- /github repos # Your GitHub repos
150
- /spotify play # Control Spotify
151
- /weather London # Get weather
152
- /sysinfo # System info
144
+ /connect 192.168.1.100 # Connect to PC's Ollama from phone
145
+ /qr # Show QR code to scan
146
+ /server # Check connection status
153
147
  ```
154
148
 
155
- ## CLI Args (non-interactive)
149
+ ### Token Counter
150
+
151
+ Tracks lifetime tokens and messages across all sessions. Visible on startup.
152
+
153
+ ## CLI Args
156
154
 
157
155
  ```bash
158
- ai --ask "explain kubernetes"
159
- ai --agent coder "build a flask app"
160
- ai --team claude codex "discuss auth"
161
- ai --tools
162
- ai --models
163
- ai --status
164
- ai doctor
165
- ai update
166
- echo "what is rust?" | ai
156
+ code # Interactive chat
157
+ code --ask "explain recursion" # One-shot question
158
+ code --agent coder "flask app" # Run an agent
159
+ code --team claude codex "auth"# Two AIs respond
160
+ code --tools # List tools
161
+ code --models # List Ollama models
162
+ code --status # Show status
163
+ code doctor # System diagnostics
164
+ code update # Self-update
165
+ echo "question" | code # Pipe input
167
166
  ```
168
167
 
169
168
  ## Aliases
170
169
 
171
- Type faster with 30+ shortcuts:
170
+ 30+ shortcuts for fast typing:
172
171
 
173
172
  | Short | Full | Short | Full |
174
173
  |-------|------|-------|------|
@@ -178,33 +177,31 @@ Type faster with 30+ shortcuts:
178
177
  | `/m` | `/model` | `/h` | `/help` |
179
178
  | `/f` | `/file` | `/con` | `/connect` |
180
179
 
181
- ## Architecture
180
+ ## Personas
181
+
182
+ 6 built-in AI personalities:
182
183
 
183
184
  ```
184
- codegpt/
185
- chat.py 6,200 lines Main CLI (Python)
186
- bin/chat.js 300 lines Node.js fallback
187
- bin/ai.js 50 lines Entry point (routes to Python or Node)
188
- ai_cli/ Package (updater, doctor)
189
- app.py TUI app (Textual)
190
- bot.py Telegram bot
191
- web.py Web app (Flask PWA)
192
- server.py Backend API
185
+ /persona hacker # Cybersecurity expert, dark humor
186
+ /persona teacher # Patient, step-by-step explanations
187
+ /persona roast # Brutal code reviewer
188
+ /persona architect # System design, ASCII diagrams
189
+ /persona minimal # One-line answers, code only
190
+ /persona default # Standard helpful assistant
193
191
  ```
194
192
 
195
- ## Data
193
+ ## Architecture
196
194
 
197
- All data stored locally at `~/.codegpt/`:
198
- - `profiles/` — user profile
199
- - `memory/` persistent AI memories
200
- - `security/` — PIN hash, audit log
201
- - `training/` — training data, custom models
202
- - `chats/` — saved conversations
195
+ ```
196
+ codegpt/
197
+ chat.py 6,500+ lines Main CLI (Python)
198
+ bin/chat.js 300 lines Node.js fallback
199
+ ai_cli/ Package (updater, doctor)
200
+ app.py TUI app (Textual)
201
+ bot.py Telegram bot
202
+ web.py Web app (Flask PWA)
203
+ ```
203
204
 
204
205
  ## License
205
206
 
206
- MIT
207
-
208
- ## Author
209
-
210
- Built by [ArukuX](https://github.com/CCguvycu)
207
+ MIT — Built by [ArukuX](https://github.com/CCguvycu)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codegpt-ai",
3
- "version": "2.9.0",
3
+ "version": "2.11.0",
4
4
  "description": "Local AI Assistant Hub — 80+ commands, 29 tools, 8 agents, training, security",
5
5
  "author": "ArukuX",
6
6
  "license": "MIT",