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 +251 -165
- package/dist/index.js +226 -228
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# IUB CLI
|
|
2
2
|
|
|
3
|
-
>
|
|
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
|
[](https://www.npmjs.com/package/iubcli)
|
|
6
6
|
[](https://nodejs.org/)
|
|
7
|
-
[](
|
|
8
|
-
[](
|
|
7
|
+
[](license)
|
|
8
|
+
[](#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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
- **
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
|
108
|
+
Install globally:
|
|
74
109
|
|
|
75
110
|
```bash
|
|
76
111
|
npm install -g iubcli
|
|
77
112
|
```
|
|
78
113
|
|
|
79
|
-
Or run
|
|
114
|
+
Or run without installing:
|
|
80
115
|
|
|
81
116
|
```bash
|
|
82
117
|
npx iubcli
|
|
83
118
|
```
|
|
84
119
|
|
|
85
|
-
### First
|
|
120
|
+
### First Run
|
|
86
121
|
|
|
87
|
-
|
|
122
|
+
Start the interactive CLI:
|
|
88
123
|
|
|
89
124
|
```bash
|
|
90
125
|
iubcli
|
|
91
126
|
```
|
|
92
127
|
|
|
93
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
|
145
|
+
iubcli
|
|
109
146
|
```
|
|
110
147
|
|
|
111
|
-
|
|
148
|
+
Start in PLAN mode:
|
|
149
|
+
|
|
112
150
|
```bash
|
|
113
|
-
iubcli
|
|
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>
|
|
129
|
-
-p, --prompt <prompt> Run a single prompt and exit
|
|
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
|
|
136
|
-
limits
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
**Interactive Mode:**
|
|
144
|
-
```bash
|
|
145
|
-
iubcli
|
|
146
|
-
```
|
|
206
|
+
---
|
|
147
207
|
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
iubcli -M plan
|
|
151
|
-
```
|
|
208
|
+
## Slash Commands
|
|
152
209
|
|
|
153
|
-
|
|
154
|
-
```bash
|
|
155
|
-
iubcli -y
|
|
156
|
-
```
|
|
210
|
+
Inside interactive chat:
|
|
157
211
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
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
|
-
##
|
|
245
|
+
## Bring Your Own Key (BYOK)
|
|
166
246
|
|
|
167
|
-
|
|
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
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
###
|
|
187
|
-
|
|
188
|
-
-
|
|
189
|
-
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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
|
-
|
|
298
|
+
## Safety Model
|
|
218
299
|
|
|
219
|
-
|
|
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
|
-
|
|
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
|
|
239
|
-
│ ├──
|
|
240
|
-
│ ├──
|
|
241
|
-
│ ├──
|
|
242
|
-
│
|
|
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
|
-
│
|
|
245
|
-
├──
|
|
246
|
-
├──
|
|
247
|
-
└──
|
|
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
|
|
336
|
+
## Development
|
|
253
337
|
|
|
254
|
-
Clone the repository
|
|
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
|
|
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](
|
|
374
|
+
[MIT](license)
|