iubcli 4.2.9 → 4.2.10

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.
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # IUB CLI
2
2
 
3
- > **The Autonomous, Lightweight BYOK AI Coding Agent in Your Terminal — Fluent in Bangla, Banglish & English with OpenCode-Style Build & Plan Modes.**
3
+ > Autonomous BYOK terminal coding agent for Bangla, Banglish, and English, with BUILD and PLAN modes, local-first configuration, and resilient free-model failover.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/iubcli.svg?style=flat-square&color=00A3FF)](https://www.npmjs.com/package/iubcli)
6
6
  [![Node.js Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg?style=flat-square)](https://nodejs.org/)
7
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)
8
- [![BYOK](https://img.shields.io/badge/BYOK-100%25%20Serverless-blue.svg?style=flat-square)](#-bring-your-own-key-byok)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](license)
8
+ [![BYOK](https://img.shields.io/badge/BYOK-100%25%20Serverless-blue.svg?style=flat-square)](#bring-your-own-key-byok)
9
9
 
10
10
  ```
11
11
  ██╗ ██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗
@@ -20,49 +20,84 @@
20
20
 
21
21
  ## Overview
22
22
 
23
- **IUB CLI** (`iubcli`) is an open-source, serverless terminal coding assistant designed from the ground up for developers who think, speak, and code in **বাংলা (Bangla)**, **Banglish**, or **English**.
23
+ **IUB CLI** (`iubcli`) is an open-source, serverless terminal coding assistant for developers who think, speak, and code in **Bangla**, **Banglish**, or **English**.
24
24
 
25
- It brings the best of modern agent design (like OpenCode):
26
- - **Smart Auto-Cascade Resilience:** If a model's free token quota or rate limit (429/503) is reached, it seamlessly rotates to the next available intelligent free model in the chain without dropping conversation context!
27
- - **BUILD Mode:** Full autonomous development — reads and writes code, builds packages, runs tests and shell commands.
28
- - **PLAN Mode:** Senior architect mode — read-only codebase exploration, architecture analysis, and concrete step-by-step implementation plans.
29
- - **Live Status Bar:** Displays the currently active model, mode, and cascade indicator directly above your prompt.
25
+ It combines a local terminal UI with provider-backed model calls, giving you an agent that can inspect a workspace, plan changes, edit files, run commands, fetch documentation, and coordinate with other local CLI instances.
30
26
 
31
- It is 100% **BYOK (Bring Your Own Key)** — you don't need costly subscriptions. Connect your free **Google Gemini** API key or **OpenRouter** free models (Particle-1, Nemotron, Gemma 4, ERNIE, Groq) and start building software right inside your terminal.
27
+ Core design points:
28
+
29
+ - **BUILD Mode:** autonomous coding with file reads/writes, edits, shell commands, web search, image input, and project inspection.
30
+ - **PLAN Mode:** read-only architecture and planning mode for senior-engineer style analysis.
31
+ - **BYOK:** bring your own Gemini, OpenRouter, DeepSeek, Groq, Cerebras, Ollama, or custom OpenAI-compatible endpoint.
32
+ - **Auto-cascade:** rotates through available free models when quotas or rate limits are hit.
33
+ - **Local-first:** configuration is stored on your machine through `conf`; there is no hosted middleman.
34
+ - **Zero-key fallback:** if no provider is configured in a non-interactive run, IUB CLI can start with a built-in free starter endpoint or detect local Ollama.
32
35
 
33
36
  ---
34
37
 
35
38
  ## Features
36
39
 
37
- - **Superior Autonomous AI Brain (Outperforming Legacy Agents)**:
38
- - **Self-Healing Codebase:** If a build command or test fails, the agent inspects compiler logs and stack traces, edits the files, and verifies the fix autonomously.
39
- - **Zero Placeholder Code Rule:** Writes 100% complete, production-grade files. No `// TODO`, no skipped code.
40
- - **Intelligent Multi-Model Auto-Cascade**:
41
- - Automatically cascades when tokens run out or rate limits hit (`openrouter/free` ➔ `particle-ai/particle-1:free` ➔ `nvidia/nemotron-3-ultra-550b:free` ➔ `google/gemma-4-31b-it:free` ➔ Gemini 2.0 Flash).
42
- - **Trilingual Native Fluency**:
43
- - **Bangla (বাংলা লিপি):** *"একটি Express.js REST API বানাও JWT auth সহ"*
44
- - **Banglish:** *"Ekta React counter app banaye dao Tailwind CSS diye"*
45
- - **English:** *"Build a full-stack Next.js portfolio website"*
46
- - **OpenCode-Style Build & Plan Modes**:
47
- - `BUILD Mode`: Autonomous builder with tools to create files, install dependencies, and run commands.
48
- - `PLAN Mode`: Safe read-only mode to analyze codebase, design architecture, and formulate plans without modifying files.
49
- - Switch anytime with `/mode`, `/plan`, or `/build`.
50
- - **Real-Time Model & Mode Status Indicator**:
51
- - Displays `[BUILD MODE] [openrouter/free] [Auto-Cascade Active]` right above the prompt so you always know what model you are running.
52
- - **100% BYOK & Serverless**:
53
- - No middleman backend. Your API keys are stored locally on your machine via `conf`.
54
- - Supports **Google Gemini** (`gemini-3.5-flash-lite`, `gemini-3.5-flash`, `gemini-3.8-flash`, `gemini-3.1-flash-lite`).
55
- - Supports **DeepSeek Frontier** (`deepseek-chat` [5M free tokens], `deepseek-reasoner` [R1], `deepseek/deepseek-r1:free`).
56
- - Supports **OpenRouter Free Tier** (`openrouter/free`, `particle-ai/particle-1:free`, `nvidia/nemotron-3-ultra-550b-a55b:free`, `google/gemma-4-31b-it:free`, `dots-studio/dots-3-note-preview:free`).
57
- - Supports **Custom OpenAI-Compatible** endpoints (Groq Cloud, Cerebras, Ollama, DeepSeek API).
58
- - **Autonomous Project Builder (4 Native Tools)**:
59
- - `list_files(dirPath)`: Explores workspace directory hierarchy (auto-ignoring `node_modules` and `.git`).
60
- - `read_file(filePath)`: Inspects existing source code before editing.
61
- - `write_file(filePath, content)`: Creates folders automatically and writes complete, production-ready code.
62
- - `run_command(command)`: Executes terminal commands (`npm install`, `npm test`, `git init`, etc.).
63
- - **Interactive Safety Confirmation**:
64
- - Prompts you `[Y/n/a]` before modifying files or executing shell commands.
65
- - Includes a *"Yes to all (Auto-approve for this session)"* mode for hands-free autonomous building.
40
+ ### Agent Modes
41
+
42
+ - `BUILD Mode` is the default. It can use workspace tools, modify files, install dependencies, run tests, and execute shell commands.
43
+ - `PLAN Mode` is read-only. It analyzes the codebase and produces structured implementation plans without changing files.
44
+ - Switch modes inside chat with `/mode`, `/plan`, `/build`, or at launch with `-M plan` / `-M build`.
45
+
46
+ ### Providers and Models
47
+
48
+ Supported provider paths:
49
+
50
+ - **Google Gemini:** `gemini`, configured through Google AI Studio.
51
+ - **OpenRouter:** `openrouter`, including free `:free` model routes.
52
+ - **Custom OpenAI-compatible:** DeepSeek, Groq, Cerebras, Ollama, local servers, and other compatible APIs.
53
+ - **Zero-key starter:** built-in Pollinations-backed fallback for quick non-interactive use.
54
+
55
+ Useful commands:
56
+
57
+ ```bash
58
+ iubcli config # interactive provider/key/model setup
59
+ iubcli guide # free API key and model guide
60
+ iubcli limits # token, context, and rate-limit reference
61
+ iubcli agent # model selector
62
+ iubcli doctor # environment diagnostics
63
+ ```
64
+
65
+ ### Resilience
66
+
67
+ - Automatic model cascade on rate limits, quota exhaustion, provider errors, or unavailable models.
68
+ - Model explorer can scan candidates for active free tokens.
69
+ - Rolling cooldown keeps long-running tasks alive instead of dropping immediately.
70
+ - Escape key aborts generation and cleans up terminal state.
71
+
72
+ ### Workspace Intelligence
73
+
74
+ The agent has 12 built-in tools:
75
+
76
+ - `list_files`
77
+ - `read_file`
78
+ - `write_file`
79
+ - `edit_file`
80
+ - `run_command`
81
+ - `grep_search`
82
+ - `find_files`
83
+ - `fetch_url`
84
+ - `web_search`
85
+ - `list_peers`
86
+ - `peer_call_tool`
87
+ - `peer_send_message`
88
+
89
+ It also includes project detection for framework, package manager, TypeScript/Tailwind usage, scripts, and workspace structure.
90
+
91
+ ### Terminal UX
92
+
93
+ - Sticky terminal header with provider, model, mode, mesh role, and workspace path.
94
+ - Markdown rendering for model output.
95
+ - Interactive selects, masked inputs, bracketed-paste protection, `@file` mentions, image paste, and URL ingestion.
96
+ - Status commands for session stats, git state, directory tree, diffs, undo, and token renewal countdown.
97
+
98
+ ### Cross-Instance Mesh
99
+
100
+ Multiple IUB CLI instances can discover each other on localhost and exchange structured messages or remote tool calls. This is useful for separate frontend/backend workspaces.
66
101
 
67
102
  ---
68
103
 
@@ -70,47 +105,69 @@ It is 100% **BYOK (Bring Your Own Key)** — you don't need costly subscriptions
70
105
 
71
106
  ### Installation
72
107
 
73
- Install globally via npm:
108
+ Install globally:
74
109
 
75
110
  ```bash
76
111
  npm install -g iubcli
77
112
  ```
78
113
 
79
- Or run directly without installing:
114
+ Or run without installing:
80
115
 
81
116
  ```bash
82
117
  npx iubcli
83
118
  ```
84
119
 
85
- ### First-Time Setup
120
+ ### First Run
86
121
 
87
- Simply type:
122
+ Start the interactive CLI:
88
123
 
89
124
  ```bash
90
125
  iubcli
91
126
  ```
92
127
 
93
- If it's your first time, the interactive setup wizard will guide you to select a provider and enter your API key:
128
+ On first use, the setup wizard walks you through provider selection, API key entry, model choice, and endpoint configuration.
129
+
130
+ Recommended free providers:
131
+
132
+ 1. **Google Gemini** - [aistudio.google.com/apikey](https://aistudio.google.com/apikey)
133
+ 2. **OpenRouter** - [openrouter.ai/keys](https://openrouter.ai/keys)
134
+ 3. **Groq** - [console.groq.com/keys](https://console.groq.com/keys)
135
+ 4. **DeepSeek** - [platform.deepseek.com](https://platform.deepseek.com)
136
+ 5. **Ollama local** - [ollama.com](https://ollama.com), then use `http://localhost:11434/v1`
137
+
138
+ For non-interactive or single-prompt runs, IUB CLI can auto-detect local Ollama or fall back to the built-in zero-key starter model.
94
139
 
95
- 1. **Google Gemini (Free Tier - Recommended)**
96
- - Get key: [aistudio.google.com/apikey](https://aistudio.google.com/apikey)
97
- - Flagship free models: `gemini-3.5-flash-lite` (Flagship Coder), `gemini-3.5-flash` (1M Context), `gemini-3.8-flash` (Latest Preview), `gemini-3.1-flash-lite` (1M token context, 1,500 RPD free)
98
- 2. **OpenRouter (100% Free Coding Models)**
99
- - Get key: [openrouter.ai/keys](https://openrouter.ai/keys)
100
- - Auto-router: `openrouter/free` (zero downtime)
101
- - 1M token free models: `google/lyria-3-pro-preview`, `google/lyria-3-clip-preview`, `particle-ai/particle-1:free`, `nvidia/nemotron-3-ultra-550b-a55b:free`, `baidu/ernie-5.5-flash-preview:free`, `inclusionai/ling-3.2-flash:free`, `google/gemma-4-31b-it:free`
102
- 3. **Custom OpenAI-Compatible (Groq, Ollama, DeepSeek)**
103
- - Groq Cloud (Free): [console.groq.com/keys](https://console.groq.com/keys) (Base URL: `https://api.groq.com/openai/v1`)
104
- - Local Offline (Ollama): `http://localhost:11434/v1` (100% Free & offline)
140
+ ### Common Launches
141
+
142
+ Interactive mode:
105
143
 
106
- To view the interactive free API guide:
107
144
  ```bash
108
- iubcli guide
145
+ iubcli
109
146
  ```
110
147
 
111
- To reconfigure anytime:
148
+ Start in PLAN mode:
149
+
112
150
  ```bash
113
- iubcli config
151
+ iubcli -M plan
152
+ ```
153
+
154
+ Auto-approve file writes and shell commands:
155
+
156
+ ```bash
157
+ iubcli -y
158
+ ```
159
+
160
+ Run one prompt and exit:
161
+
162
+ ```bash
163
+ iubcli -p "Build a small Express REST API with JWT auth" -y
164
+ ```
165
+
166
+ Start a mesh peer:
167
+
168
+ ```bash
169
+ iubcli --role frontend
170
+ iubcli --role backend
114
171
  ```
115
172
 
116
173
  ---
@@ -120,138 +177,165 @@ iubcli config
120
177
  ```text
121
178
  Usage: iubcli [options] [command]
122
179
 
123
- Autonomous BYOK terminal coding agent that speaks Bangla, Banglish & English.
124
-
125
180
  Options:
126
181
  -v, --version Output current version
127
182
  -m, --model <model> Override model for this session
128
- -M, --mode <mode> Agent mode: "build" (default) or "plan"
129
- -p, --prompt <prompt> Run a single prompt and exit directly
183
+ -M, --mode <mode> Execution mode: "build" (default) or "plan"
184
+ -p, --prompt <prompt> Run a single prompt and exit
130
185
  -y, --yes Auto-approve all file writes and shell commands
186
+ -r, --role <role> Instance role for cross-instance mesh
187
+ --mesh-port <port> Local port for mesh broker (default: 49152)
188
+ --mesh-token <token> Shared authentication token for mesh
189
+ --no-mesh Disable cross-instance mesh networking
131
190
  -h, --help Display help for command
132
191
 
133
192
  Commands:
134
193
  config Run interactive setup wizard
135
- guide (alias: keys) Display free API keys & models guide
136
- limits (alias: tokens) Display free token limits & context windows
137
- agent (alias: model) OpenCode-style AI agent & model selector
138
- mode Display agent modes guide
194
+ guide, keys Display free API keys and models guide
195
+ limits, limit, tokens, quota, quotas
196
+ Display token limits and rate-limit reference
197
+ agent, model OpenCode-style agent and model selector
198
+ mode Display BUILD and PLAN mode guide
199
+ about, developer Display creator, GitHub, and project details
200
+ renewal, countdown Display token renewal countdown and schedules
201
+ doctor, check Run environment diagnostics
202
+ stats, cost Display session stats view
203
+ peers, mesh Discover connected mesh peers
139
204
  ```
140
205
 
141
- ### Examples
142
-
143
- **Interactive Mode:**
144
- ```bash
145
- iubcli
146
- ```
206
+ ---
147
207
 
148
- **Launch directly in PLAN Mode:**
149
- ```bash
150
- iubcli -M plan
151
- ```
208
+ ## Slash Commands
152
209
 
153
- **Auto-Approve Autonomous Building:**
154
- ```bash
155
- iubcli -y
156
- ```
210
+ Inside interactive chat:
157
211
 
158
- **Single Command Execution:**
159
- ```bash
160
- iubcli -p "Ekta Node.js CLI tool banaw jeta weather show kore" -y
161
- ```
212
+ | Command | Description |
213
+ | --- | --- |
214
+ | `/mode` | Toggle or select BUILD/PLAN mode |
215
+ | `/plan` | Switch to PLAN mode |
216
+ | `/build` | Switch to BUILD mode |
217
+ | `/agent`, `/model`, `/models`, `/m` | Open model/agent selector or switch model |
218
+ | `/provider` | Change provider configuration |
219
+ | `/config` | Run the full setup wizard |
220
+ | `/explore`, `/find-model`, `/scan`, `/free` | Scan models for active free tokens |
221
+ | `/image`, `/screenshot`, `/pic`, `/paste-image` | Stage clipboard or file image input |
222
+ | `/task`, `/urgent`, `/priority` | Dispatch a priority task |
223
+ | `/limits`, `/limit`, `/tokens`, `/quota` | Show token limits and quotas |
224
+ | `/guide`, `/keys` | Show free API key guide |
225
+ | `/renewal`, `/countdown`, `/renew` | Show quota renewal countdown |
226
+ | `/doctor`, `/check` | Run diagnostics |
227
+ | `/stats`, `/cost` | Show live session stats |
228
+ | `/diff`, `/changes` | Show session file changes |
229
+ | `/undo` | Revert the latest agent file change |
230
+ | `/git` | Show git branch, changes, and recent commits |
231
+ | `/tree` | Show workspace directory tree |
232
+ | `/detect`, `/stack` | Show detected project stack |
233
+ | `/compact` | Compact conversation history |
234
+ | `/session`, `/status` | Show active session status |
235
+ | `/peers`, `/mesh` | Show connected mesh peers |
236
+ | `/role` | View or change mesh role |
237
+ | `/send`, `/msg` | Send a message to a mesh peer |
238
+ | `/about`, `/developer`, `/creator` | Show project and developer info |
239
+ | `/clear`, `/cls`, `/reset` | Clear conversation history |
240
+ | `/exit`, `/quit` | Exit IUB CLI |
241
+ | `/help` | Show slash-command help |
162
242
 
163
243
  ---
164
244
 
165
- ## Slash Commands inside Chat
245
+ ## Bring Your Own Key (BYOK)
166
246
 
167
- | Command | Description |
168
- |---|---|
169
- | `/mode` | **Toggle between BUILD Mode and PLAN Mode** (OpenCode style) |
170
- | `/plan` | Switch directly to **PLAN Mode** (read-only architectural planning) |
171
- | `/build` | Switch directly to **BUILD Mode** (autonomous coding & execution) |
172
- | `/agent` (or `/model`) | **OpenCode-Style Agent Selector** (Free, Flagship, Gemini, Local) |
173
- | `/provider` | Switch between Gemini, OpenRouter, or custom providers |
174
- | `/limits` | View free token quotas, context windows & rate limits |
175
- | `/guide` | Display direct links & guides for free API keys & models |
176
- | `/config` | Full interactive setup to re-configure keys, provider, and endpoint |
177
- | `/clear` | Clear conversation memory and reset token context |
178
- | `/exit` | Exit the CLI session |
247
+ IUB CLI does not require a subscription. You can connect free or paid provider keys depending on your needs.
179
248
 
180
- ---
249
+ ### Google Gemini
250
+
251
+ - Key URL: [aistudio.google.com/apikey](https://aistudio.google.com/apikey)
252
+ - Good for: fast general coding, large context, tool calling.
253
+ - Setup: choose Google Gemini in `iubcli config` or `/config`.
254
+
255
+ ### OpenRouter
256
+
257
+ - Key URL: [openrouter.ai/keys](https://openrouter.ai/keys)
258
+ - Good for: many free `:free` models and easy provider switching.
259
+ - Examples: `openrouter/free`, `particle-ai/particle-1:free`, `nvidia/nemotron-3-ultra-550b-a55b:free`, `google/gemma-4-31b-it:free`.
260
+
261
+ ### DeepSeek
262
+
263
+ - Key URL: [platform.deepseek.com](https://platform.deepseek.com)
264
+ - Setup: choose Custom OpenAI-Compatible and use `https://api.deepseek.com/v1`.
265
+ - Models: `deepseek-chat`, `deepseek-reasoner`, and related DeepSeek endpoints.
266
+
267
+ ### Groq
268
+
269
+ - Key URL: [console.groq.com/keys](https://console.groq.com/keys)
270
+ - Setup: choose Custom OpenAI-Compatible and use `https://api.groq.com/openai/v1`.
271
+ - Good for: very fast inference on supported open models.
272
+
273
+ ### Cerebras
181
274
 
182
- ## Free API Keys & Models Guide (১০০% ফ্রি API গাইড)
183
-
184
- You don't need to spend any money or enter credit cards to use **IUB CLI**. Here are the top free options:
185
-
186
- ### 1. Google Gemini (Google AI Studio) — Recommended
187
- - **Key URL:** [aistudio.google.com/apikey](https://aistudio.google.com/apikey)
188
- - **Steps:** Sign in with Google account ➔ Click **Create API Key** ➔ Copy the key.
189
- - **Recommended Free Model:** `gemini-3.5-flash-lite` (100% Free, active, fast, high rate limits).
190
- - **Alternative Free Models:** `gemini-3.1-flash-lite`, `gemini-3.5-flash`, `gemini-3.8-flash`.
191
- - **Free Limit:** 15 Requests per minute (RPM) and 1,500 Requests per day (RPD) free of charge!
192
-
193
- ### 2. OpenRouter (Access 100% Free Frontier Models)
194
- - **Key URL:** [openrouter.ai/keys](https://openrouter.ai/keys)
195
- - **Steps:** Sign in with GitHub or Google ➔ Click **Create Key** ➔ Copy the key.
196
- - **Top Free Models (`:free`):**
197
- - `openrouter/free` — Automatic zero-downtime routing to the best active free model.
198
- - `particle-ai/particle-1:free` — Specialized 1M token context agentic coding model.
199
- - `nvidia/nemotron-3-ultra-550b-a55b:free` — Massive 550B frontier model with 1M tokens.
200
- - `google/gemma-4-31b-it:free` — Google DeepMind 30.7B dense instruction-tuned model.
201
- - `dots-studio/dots-3-note-preview:free` — 512,000 token context reasoning and code model.
202
- - **Cost:** 100% Free with zero credit card required.
203
-
204
- ### 3. Groq Cloud (Ultra-Fast 500+ tokens/sec)
205
- - **Key URL:** [console.groq.com/keys](https://console.groq.com/keys)
206
- - **Steps:** Choose `Custom OpenAI-Compatible` in **IUB CLI** ➔ Set Base URL to `https://api.groq.com/openai/v1`.
207
- - **Free Models:** `llama-3.3-70b-versatile`, `qwen-2.5-coder-32b`, `deepseek-r1-distill-llama-70b`.
208
-
209
- ### 4. Local Offline Models (100% Private via Ollama)
210
- - **Download:** [ollama.com](https://ollama.com)
211
- - **Run in terminal:** `ollama run qwen2.5-coder` or `ollama run deepseek-r1`
212
- - **Steps in IUB CLI:** Choose `Custom OpenAI-Compatible` ➔ Base URL: `http://localhost:11434/v1` ➔ API key: `ollama` (or any string).
213
- - **Cost:** 100% Free, unlimited, runs entirely on your local machine without internet.
275
+ - Key URL: [cloud.cerebras.ai](https://cloud.cerebras.ai)
276
+ - Setup: choose Custom OpenAI-Compatible and use `https://api.cerebras.ai/v1`.
277
+ - Good for: low-latency inference on supported models.
278
+
279
+ ### Ollama / Local Models
280
+
281
+ - Download: [ollama.com](https://ollama.com)
282
+ - Example:
283
+
284
+ ```bash
285
+ ollama run qwen2.5-coder
286
+ ollama run deepseek-r1
287
+ ```
288
+
289
+ - IUB CLI setup: Custom OpenAI-Compatible, base URL `http://localhost:11434/v1`, API key can be any string such as `ollama`.
290
+ - Benefit: local, private, and not dependent on hosted rate limits.
291
+
292
+ ### Zero-Key Fallback
293
+
294
+ For quick non-interactive use, IUB CLI can start with a built-in free starter endpoint when no key is configured. For serious coding work, configure Gemini, OpenRouter, DeepSeek, Groq, Cerebras, or Ollama for better tool calling and quotas.
214
295
 
215
296
  ---
216
297
 
217
- ### Token Capacities & Free Rate Limits Comparison
298
+ ## Safety Model
218
299
 
219
- | Provider | Model | Context Window | Req / Min (RPM) | Tokens / Min (TPM) | Req / Day (RPD) |
220
- |---|---|---|---|---|---|
221
- | **Google Gemini** | `gemini-3.5-flash-lite` | **1,048,576** tokens | 15 RPM | **1,000,000** TPM | **1,500** RPD |
222
- | **DeepSeek Platform**| `deepseek-chat` (V3) | 128,000 tokens | High Speed | 5M Free Tokens | Free Signup |
223
- | **OpenRouter** | `openrouter/free` | 200,000 tokens | 20 RPM | Generous Free | ~200 RPD |
224
- | **OpenRouter** | `particle-ai/particle-1:free` | **1,048,576** tokens | 20 RPM | Generous Free | ~200 RPD |
225
- | **Groq Cloud** | `llama-3.3-70b-versatile` | 128,000 tokens | 30 RPM | 6,000 TPM | **14,400** RPD |
226
- | **Cerebras Cloud** | `llama3.3-70b` | 128,000 tokens | 30 RPM | Ultra Low-Latency | **14,400** RPD |
227
- | **Ollama (Local)** | `qwen2.5-coder` | Hardware limit | **Unlimited** | **Unlimited** | **Unlimited** |
300
+ In BUILD mode, file writes, edits, and shell commands can require confirmation before execution. Use `-y` or the auto-approve option only in trusted directories.
228
301
 
229
- > **Auto-Failover Protection:** If a model temporarily returns 503 (High Demand) or quota limit, **IUB CLI** automatically cascades to the next best zero-plan free model (`gemini-3.5-flash-lite`, `openrouter/free`, etc.) so your building process never crashes!
302
+ PLAN mode blocks mutation tools entirely, making it safer for architecture review and planning.
230
303
 
231
304
  ---
232
305
 
233
306
  ## Project Architecture
234
307
 
235
- ```
308
+ ```text
236
309
  iubcli/
237
310
  ├── src/
238
- │ ├── index.ts # CLI entry point, commander setup, interactive REPL loop
239
- │ ├── config.ts # Secure local configuration manager (conf & @clack/prompts)
240
- │ ├── agent.ts # Autonomous agent orchestrator (Gemini & OpenAI tool calling)
241
- │ ├── tools.ts # 4 Core workspace tools with interactive safety confirmations
242
- │ └── ui.ts # ASCII banner, terminal markdown rendering, spinners
311
+ │ ├── index.ts # CLI entry point, commander commands, interactive loop
312
+ │ ├── agent.ts # model orchestration, cascade, retries, tool loop
313
+ │ ├── tools.ts # workspace tools and safety confirmations
314
+ │ ├── prompt.ts # terminal input, sticky UI, selects, paste handling
315
+ │ ├── ui.ts # banner, markdown rendering, reports, help
316
+ │ ├── config.ts # local config, provider defaults, verification
317
+ │ ├── models.ts # model presets and interactive selector
318
+ │ ├── explorer.ts # free-model discovery
319
+ │ ├── detector.ts # project stack detection
320
+ │ ├── image.ts # clipboard/file image payload loading
321
+ │ └── mesh.ts # cross-instance peer networking
243
322
  ├── scripts/
244
- │ └── test-tools.ts# End-to-end tool validation suite
245
- ├── package.json # Node 18+ ESM configuration with bin mappings
246
- ├── tsconfig.json # Strict TypeScript configuration
247
- └── tsup.config.ts # Fast zero-config bundler
323
+ │ ├── test-tools.ts
324
+ │ ├── test-image.ts
325
+ │ ├── test-box.ts
326
+ │ └── test-gemini-tools.ts
327
+ ├── public/
328
+ │ └── index.html # project landing page
329
+ ├── package.json
330
+ ├── tsconfig.json
331
+ └── tsup.config.ts
248
332
  ```
249
333
 
250
334
  ---
251
335
 
252
- ## Development & Testing
336
+ ## Development
253
337
 
254
- Clone the repository and install dependencies:
338
+ Clone the repository:
255
339
 
256
340
  ```bash
257
341
  git clone https://github.com/Ifaz2611/iubcli.git
@@ -259,30 +343,32 @@ cd iubcli
259
343
  npm install
260
344
  ```
261
345
 
262
- Run TypeScript type check:
263
- ```bash
264
- npm run typecheck
265
- ```
346
+ Run checks:
266
347
 
267
- Run test suite:
268
348
  ```bash
349
+ npm run typecheck
269
350
  npm test
270
- ```
271
-
272
- Build distribution bundle:
273
- ```bash
274
351
  npm run build
275
352
  ```
276
353
 
277
- Link locally for testing:
354
+ Link locally for manual testing:
355
+
278
356
  ```bash
279
357
  npm link
280
358
  iubcli --help
281
359
  ```
282
360
 
283
- ---
361
+ Package scripts:
284
362
 
363
+ - `npm run build` - bundle with `tsup`
364
+ - `npm run dev` - watch-mode bundling
365
+ - `npm run typecheck` - TypeScript check
366
+ - `npm test` - run local tool/image/box test scripts
367
+ - `npm start` - run the built CLI
368
+ - `npm run prepublishOnly` - typecheck, test, and build before publish
369
+
370
+ ---
285
371
 
286
372
  ## License
287
373
 
288
- [MIT](LICENSE)
374
+ [MIT](license)