indusagi-coding-agent 0.1.2 → 0.1.3
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 +23 -509
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,540 +1,54 @@
|
|
|
1
1
|
# indusagi-coding-agent
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[Repository](https://github.com/varunisrani/indusagi-ts)
|
|
3
|
+
A terminal-first coding agent with a small core and strong extensibility. Use it interactively, in scripts (print/JSON), over RPC, or as an SDK in your own apps.
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
- CLI commands: `indusagi` and `indus`
|
|
6
|
+
- Node.js >= 20
|
|
7
|
+
- Extensible via extensions, skills, prompt templates, and themes
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
If you want the all-in-one bundle (ai + agent + tui + webui + coding agent), use:
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
- https://www.npmjs.com/package/indusagi
|
|
11
12
|
|
|
12
|
-
##
|
|
13
|
-
|
|
14
|
-
- [Quick Start](#quick-start)
|
|
15
|
-
- [Providers & Models](#providers--models)
|
|
16
|
-
- [Interactive Mode](#interactive-mode)
|
|
17
|
-
- [Editor](#editor)
|
|
18
|
-
- [Commands](#commands)
|
|
19
|
-
- [Keyboard Shortcuts](#keyboard-shortcuts)
|
|
20
|
-
- [Message Queue](#message-queue)
|
|
21
|
-
- [Sessions](#sessions)
|
|
22
|
-
- [Branching](#branching)
|
|
23
|
-
- [Compaction](#compaction)
|
|
24
|
-
- [Settings](#settings)
|
|
25
|
-
- [Context Files](#context-files)
|
|
26
|
-
- [Customization](#customization)
|
|
27
|
-
- [Prompt Templates](#prompt-templates)
|
|
28
|
-
- [Skills](#skills)
|
|
29
|
-
- [Extensions](#extensions)
|
|
30
|
-
- [Themes](#themes)
|
|
31
|
-
- [Indusagi Packages](#indusagi-packages)
|
|
32
|
-
- [Programmatic Usage](#programmatic-usage)
|
|
33
|
-
- [Philosophy](#philosophy)
|
|
34
|
-
- [CLI Reference](#cli-reference)
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## Quick Start
|
|
13
|
+
## Install
|
|
39
14
|
|
|
40
15
|
```bash
|
|
41
16
|
npm install -g indusagi-coding-agent
|
|
42
17
|
```
|
|
43
18
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
export ANTHROPIC_AINDUSAGI_KEY=sk-ant-...
|
|
48
|
-
indusagi
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Or use your existing subscription:
|
|
19
|
+
## Quick Start
|
|
52
20
|
|
|
53
21
|
```bash
|
|
54
22
|
indusagi
|
|
55
|
-
/login # Then select provider
|
|
56
23
|
```
|
|
57
24
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
**Platform notes:** [Windows](docs/windows.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## Providers & Models
|
|
65
|
-
|
|
66
|
-
For each built-in provider, indusagi maintains a list of tool-capable models, updated with every release. Authenticate via subscription (`/login`) or API key, then select any model from that provider via `/model` (or Ctrl+L).
|
|
67
|
-
|
|
68
|
-
**Subscriptions:**
|
|
69
|
-
- Anthropic Claude Pro/Max
|
|
70
|
-
- OpenAI ChatGPT Plus/Pro (Codex)
|
|
71
|
-
- GitHub Copilot
|
|
72
|
-
- Google Gemini CLI
|
|
73
|
-
- Google Antigravity
|
|
74
|
-
|
|
75
|
-
**API keys:**
|
|
76
|
-
- Anthropic
|
|
77
|
-
- OpenAI
|
|
78
|
-
- Azure OpenAI
|
|
79
|
-
- Google Gemini
|
|
80
|
-
- Google Vertex
|
|
81
|
-
- Amazon Bedrock
|
|
82
|
-
- Mistral
|
|
83
|
-
- Groq
|
|
84
|
-
- Cerebras
|
|
85
|
-
- xAI
|
|
86
|
-
- OpenRouter
|
|
87
|
-
- Vercel AI Gateway
|
|
88
|
-
- ZAI
|
|
89
|
-
- OpenCode Zen
|
|
90
|
-
- MiniMax
|
|
91
|
-
|
|
92
|
-
See [docs/providers.md](docs/providers.md) for detailed setup instructions.
|
|
93
|
-
|
|
94
|
-
**Custom providers & models:** Add providers via `~/.indusagi/agent/models.json` if they speak a supported API (OpenAI, Anthropic, Google). For custom APIs or OAuth, use extensions. See [docs/models.md](docs/models.md) and [docs/custom-provider.md](docs/custom-provider.md).
|
|
95
|
-
|
|
96
|
-
---
|
|
97
|
-
|
|
98
|
-
## Interactive Mode
|
|
99
|
-
|
|
100
|
-
<p align="center"><img src="docs/images/interactive-mode.png" alt="Interactive Mode" width="600"></p>
|
|
101
|
-
|
|
102
|
-
The interface from top to bottom:
|
|
103
|
-
|
|
104
|
-
- **Startup header** - Shows shortcuts (`/hotkeys` for all), loaded AGENTS.md files, prompt templates, skills, and extensions
|
|
105
|
-
- **Messages** - Your messages, assistant responses, tool calls and results, notifications, errors, and extension UI
|
|
106
|
-
- **Editor** - Where you type; border color indicates thinking level
|
|
107
|
-
- **Footer** - Working directory, session name, total token/cache usage, cost, context usage, current model
|
|
108
|
-
|
|
109
|
-
The editor can be temporarily replaced by other UI, like built-in `/settings` or custom UI from extensions (e.g., a Q&A tool that lets the user answer model questions in a structured format). [Extensions](#extensions) can also replace the editor, add widgets above/below it, a status line, custom footer, or overlays.
|
|
110
|
-
|
|
111
|
-
### Editor
|
|
112
|
-
|
|
113
|
-
| Feature | How |
|
|
114
|
-
|---------|-----|
|
|
115
|
-
| File reference | Type `@` to fuzzy-search project files |
|
|
116
|
-
| Path completion | Tab to complete paths |
|
|
117
|
-
| Multi-line | Shift+Enter (or Ctrl+Enter on Windows Terminal) |
|
|
118
|
-
| Images | Ctrl+V to paste, or drag onto terminal |
|
|
119
|
-
| Bash commands | `!command` runs and sends output to LLM, `!!command` runs without sending |
|
|
120
|
-
|
|
121
|
-
Standard editing keybindings for delete word, undo, etc. See [docs/keybindings.md](docs/keybindings.md).
|
|
122
|
-
|
|
123
|
-
### Commands
|
|
124
|
-
|
|
125
|
-
Type `/` in the editor to trigger commands. [Extensions](#extensions) can register custom commands, [skills](#skills) are available as `/skill:name`, and [prompt templates](#prompt-templates) expand via `/templatename`.
|
|
126
|
-
|
|
127
|
-
| Command | Description |
|
|
128
|
-
|---------|-------------|
|
|
129
|
-
| `/login`, `/logout` | OAuth authentication |
|
|
130
|
-
| `/model` | Switch models |
|
|
131
|
-
| `/scoped-models` | Enable/disable models for Ctrl+P cycling |
|
|
132
|
-
| `/settings` | Thinking level, theme, message delivery |
|
|
133
|
-
| `/resume` | Pick from previous sessions |
|
|
134
|
-
| `/new` | Start a new session |
|
|
135
|
-
| `/name <name>` | Set session display name |
|
|
136
|
-
| `/session` | Show session info (path, tokens, cost) |
|
|
137
|
-
| `/tree` | Jump to any point in the session and continue from there |
|
|
138
|
-
| `/fork` | Create a new session from the current branch |
|
|
139
|
-
| `/compact [prompt]` | Manually compact context, optional custom instructions |
|
|
140
|
-
| `/copy` | Copy last assistant message to clipboard |
|
|
141
|
-
| `/export [file]` | Export session to HTML file |
|
|
142
|
-
| `/share` | Upload as private GitHub gist with shareable HTML link |
|
|
143
|
-
| `/reload` | Reload extensions, skills, prompts, context files (themes hot-reload automatically) |
|
|
144
|
-
| `/hotkeys` | Show all keyboard shortcuts |
|
|
145
|
-
| `/changelog` | Display version history |
|
|
146
|
-
| `/quit`, `/exit` | Quit indusagi |
|
|
147
|
-
|
|
148
|
-
### Keyboard Shortcuts
|
|
149
|
-
|
|
150
|
-
See `/hotkeys` for the full list. Customize via `~/.indusagi/agent/keybindings.json`. See [docs/keybindings.md](docs/keybindings.md).
|
|
151
|
-
|
|
152
|
-
**Commonly used:**
|
|
153
|
-
|
|
154
|
-
| Key | Action |
|
|
155
|
-
|-----|--------|
|
|
156
|
-
| Ctrl+C | Clear editor |
|
|
157
|
-
| Ctrl+C twice | Quit |
|
|
158
|
-
| Escape | Cancel/abort |
|
|
159
|
-
| Escape twice | Open `/tree` |
|
|
160
|
-
| Ctrl+L | Open model selector |
|
|
161
|
-
| Ctrl+P / Shift+Ctrl+P | Cycle scoped models forward/backward |
|
|
162
|
-
| Shift+Tab | Cycle thinking level |
|
|
163
|
-
| Ctrl+O | Collapse/expand tool output |
|
|
164
|
-
| Ctrl+T | Collapse/expand thinking blocks |
|
|
165
|
-
|
|
166
|
-
### Message Queue
|
|
167
|
-
|
|
168
|
-
Submit messages while the agent is working:
|
|
169
|
-
|
|
170
|
-
- **Enter** queues a *steering* message, delivered after current tool execution (interrupts remaining tools)
|
|
171
|
-
- **Alt+Enter** queues a *follow-up* message, delivered only after the agent finishes all work
|
|
172
|
-
- **Escape** aborts and restores queued messages to editor
|
|
173
|
-
- **Alt+Up** retrieves queued messages back to editor
|
|
174
|
-
|
|
175
|
-
Configure delivery in [settings](docs/settings.md): `steeringMode` and `followUpMode` can be `"one-at-a-time"` (default, waits for response) or `"all"` (delivers all queued at once).
|
|
176
|
-
|
|
177
|
-
---
|
|
178
|
-
|
|
179
|
-
## Sessions
|
|
180
|
-
|
|
181
|
-
Sessions are stored as JSONL files with a tree structure. Each entry has an `id` and `parentId`, enabling in-place branching without creating new files. See [docs/session.md](docs/session.md) for file format.
|
|
25
|
+
Authenticate using `/login` or set provider API keys. See `docs/providers.md` for details.
|
|
182
26
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
Sessions auto-save to `~/.indusagi/agent/sessions/` organized by working directory.
|
|
27
|
+
Example (file-aware prompt):
|
|
186
28
|
|
|
187
29
|
```bash
|
|
188
|
-
indusagi
|
|
189
|
-
indusagi -r # Browse and select from past sessions
|
|
190
|
-
indusagi --no-session # Ephemeral mode (don't save)
|
|
191
|
-
indusagi --session <path> # Use specific session file or ID
|
|
30
|
+
indusagi @src/index.ts "Summarize this file"
|
|
192
31
|
```
|
|
193
32
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
**`/tree`** - Navigate the session tree in-place. Select any previous point, continue from there, and switch between branches. All history preserved in a single file.
|
|
197
|
-
|
|
198
|
-
<p align="center"><img src="docs/images/tree-view.png" alt="Tree View" width="600"></p>
|
|
199
|
-
|
|
200
|
-
- Search by typing, page with ←/→
|
|
201
|
-
- Filter modes (Ctrl+O): default → no-tools → user-only → labeled-only → all
|
|
202
|
-
- Press `l` to label entries as bookmarks
|
|
203
|
-
|
|
204
|
-
**`/fork`** - Create a new session file from the current branch. Opens a selector, copies history up to the selected point, and places that message in the editor for modification.
|
|
205
|
-
|
|
206
|
-
### Compaction
|
|
207
|
-
|
|
208
|
-
Long sessions can exhaust context windows. Compaction summarizes older messages while keeping recent ones.
|
|
209
|
-
|
|
210
|
-
**Manual:** `/compact` or `/compact <custom instructions>`
|
|
211
|
-
|
|
212
|
-
**Automatic:** Enabled by default. Triggers on context overflow (recovers and retries) or when approaching the limit (proactive). Configure via `/settings` or `settings.json`.
|
|
213
|
-
|
|
214
|
-
Compaction is lossy. The full history remains in the JSONL file; use `/tree` to revisit. Customize compaction behavior via [extensions](#extensions). See [docs/compaction.md](docs/compaction.md) for internals.
|
|
215
|
-
|
|
216
|
-
---
|
|
217
|
-
|
|
218
|
-
## Settings
|
|
219
|
-
|
|
220
|
-
Use `/settings` to modify common options, or edit JSON files directly:
|
|
221
|
-
|
|
222
|
-
| Location | Scope |
|
|
223
|
-
|----------|-------|
|
|
224
|
-
| `~/.indusagi/agent/settings.json` | Global (all projects) |
|
|
225
|
-
| `.indusagi/settings.json` | Project (overrides global) |
|
|
226
|
-
|
|
227
|
-
See [docs/settings.md](docs/settings.md) for all options.
|
|
228
|
-
|
|
229
|
-
---
|
|
230
|
-
|
|
231
|
-
## Context Files
|
|
232
|
-
|
|
233
|
-
Indusagi loads `AGENTS.md` (or `CLAUDE.md`) at startup from:
|
|
234
|
-
- `~/.indusagi/agent/AGENTS.md` (global)
|
|
235
|
-
- Parent directories (walking up from cwd)
|
|
236
|
-
- Current directory
|
|
237
|
-
|
|
238
|
-
Use for project instructions, conventions, common commands. All matching files are concatenated.
|
|
239
|
-
|
|
240
|
-
### System Prompt
|
|
33
|
+
## Modes
|
|
241
34
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
35
|
+
- Interactive mode (default)
|
|
36
|
+
- Print/JSON modes for scripting (`docs/json.md`)
|
|
37
|
+
- RPC mode for process integration (`docs/rpc.md`)
|
|
38
|
+
- SDK usage (`docs/sdk.md`)
|
|
245
39
|
|
|
246
40
|
## Customization
|
|
247
41
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
<!-- ~/.indusagi/agent/prompts/review.md -->
|
|
254
|
-
Review this code for bugs, security issues, and performance problems.
|
|
255
|
-
Focus on: {{focus}}
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
Place in `~/.indusagi/agent/prompts/`, `.indusagi/prompts/`, or a [indusagi package](#indusagi-packages) to share with others. See [docs/prompt-templates.md](docs/prompt-templates.md).
|
|
259
|
-
|
|
260
|
-
### Skills
|
|
261
|
-
|
|
262
|
-
On-demand capability packages following the [Agent Skills standard](https://agentskills.io). Invoke via `/skill:name` or let the agent load them automatically.
|
|
263
|
-
|
|
264
|
-
```markdown
|
|
265
|
-
<!-- ~/.indusagi/agent/skills/my-skill/SKILL.md -->
|
|
266
|
-
# My Skill
|
|
267
|
-
Use this skill when the user asks about X.
|
|
268
|
-
|
|
269
|
-
## Steps
|
|
270
|
-
1. Do this
|
|
271
|
-
2. Then that
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
Place in `~/.indusagi/agent/skills/`, `.indusagi/skills/`, or a [indusagi package](#indusagi-packages) to share with others. See [docs/skills.md](docs/skills.md).
|
|
275
|
-
|
|
276
|
-
### Extensions
|
|
277
|
-
|
|
278
|
-
<p align="center"><img src="docs/images/doom-extension.png" alt="Doom Extension" width="600"></p>
|
|
279
|
-
|
|
280
|
-
TypeScript modules that extend indusagi with custom tools, commands, keyboard shortcuts, event handlers, and UI components.
|
|
281
|
-
|
|
282
|
-
```typescript
|
|
283
|
-
export default function (indusagi: ExtensionAPI) {
|
|
284
|
-
indusagi.registerTool({ name: "deploy", ... });
|
|
285
|
-
indusagi.registerCommand("stats", { ... });
|
|
286
|
-
indusagi.on("tool_call", async (event, ctx) => { ... });
|
|
287
|
-
}
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
**What's possible:**
|
|
291
|
-
- Custom tools (or replace built-in tools entirely)
|
|
292
|
-
- Sub-agents and plan mode
|
|
293
|
-
- Custom compaction and summarization
|
|
294
|
-
- Permission gates and path protection
|
|
295
|
-
- Custom editors and UI components
|
|
296
|
-
- Status lines, headers, footers
|
|
297
|
-
- Git checkpointing and auto-commit
|
|
298
|
-
- SSH and sandbox execution
|
|
299
|
-
- MCP server integration
|
|
300
|
-
- Make indusagi look like Claude Code
|
|
301
|
-
- Games while waiting (yes, Doom runs)
|
|
302
|
-
- ...anything you can dream up
|
|
303
|
-
|
|
304
|
-
Place in `~/.indusagi/agent/extensions/`, `.indusagi/extensions/`, or a [indusagi package](#indusagi-packages) to share with others. See [docs/extensions.md](docs/extensions.md) and [examples/extensions/](examples/extensions/).
|
|
305
|
-
|
|
306
|
-
### Themes
|
|
307
|
-
|
|
308
|
-
Built-in: `dark`, `light`. Themes hot-reload: modify the active theme file and indusagi immediately applies changes.
|
|
42
|
+
- Extensions: `docs/extensions.md`
|
|
43
|
+
- Skills: `docs/skills.md`
|
|
44
|
+
- Prompt templates: `docs/prompt-templates.md`
|
|
45
|
+
- Themes: `docs/themes.md`
|
|
46
|
+
- Packages: `docs/packages.md`
|
|
309
47
|
|
|
310
|
-
|
|
48
|
+
## Configuration
|
|
311
49
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
Bundle and share extensions, skills, prompts, and themes via npm or git. Find packages on [npmjs.com](https://www.npmjs.com/search?q=keywords%3Api-package) or [Discord](https://discord.com/channels/1456806362351669492/1457744485428629628).
|
|
315
|
-
|
|
316
|
-
> **Security:** Indusagi packages run with full system access. Extensions execute arbitrary code, and skills can instruct the model to perform any action including running executables. Review source code before installing third-party packages.
|
|
317
|
-
|
|
318
|
-
```bash
|
|
319
|
-
indusagi install npm:@foo/indusagi-tools
|
|
320
|
-
indusagi install npm:@foo/indusagi-tools@1.2.3 # pinned version
|
|
321
|
-
indusagi install git:github.com/user/repo
|
|
322
|
-
indusagi install git:github.com/user/repo@v1 # tag or commit
|
|
323
|
-
indusagi install https://github.com/user/repo
|
|
324
|
-
indusagi remove npm:@foo/indusagi-tools
|
|
325
|
-
indusagi list
|
|
326
|
-
indusagi update # skips pinned packages
|
|
327
|
-
indusagi config # enable/disable extensions, skills, prompts, themes
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
Packages install to `~/.indusagi/agent/git/` (git) or global npm. Use `-l` for project-local installs (`.indusagi/git/`, `.indusagi/npm/`).
|
|
331
|
-
|
|
332
|
-
Create a package by adding a `indusagi` key to `package.json`:
|
|
333
|
-
|
|
334
|
-
```json
|
|
335
|
-
{
|
|
336
|
-
"name": "my-indusagi-package",
|
|
337
|
-
"keywords": ["indusagi-package"],
|
|
338
|
-
"indusagi": {
|
|
339
|
-
"extensions": ["./extensions"],
|
|
340
|
-
"skills": ["./skills"],
|
|
341
|
-
"prompts": ["./prompts"],
|
|
342
|
-
"themes": ["./themes"]
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
Without a `indusagi` manifest, indusagi auto-discovers from conventional directories (`extensions/`, `skills/`, `prompts/`, `themes/`).
|
|
348
|
-
|
|
349
|
-
See [docs/packages.md](docs/packages.md).
|
|
350
|
-
|
|
351
|
-
---
|
|
352
|
-
|
|
353
|
-
## Programmatic Usage
|
|
354
|
-
|
|
355
|
-
### SDK
|
|
356
|
-
|
|
357
|
-
```typescript
|
|
358
|
-
import { AuthStorage, createAgentSession, ModelRegistry, SessionManager } from "indusagi-coding-agent";
|
|
359
|
-
|
|
360
|
-
const { session } = await createAgentSession({
|
|
361
|
-
sessionManager: SessionManager.inMemory(),
|
|
362
|
-
authStorage: new AuthStorage(),
|
|
363
|
-
modelRegistry: new ModelRegistry(authStorage),
|
|
364
|
-
});
|
|
365
|
-
|
|
366
|
-
await session.prompt("What files are in the current directory?");
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
See [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/).
|
|
370
|
-
|
|
371
|
-
### RPC Mode
|
|
372
|
-
|
|
373
|
-
For non-Node.js integrations, use RPC mode over stdin/stdout:
|
|
374
|
-
|
|
375
|
-
```bash
|
|
376
|
-
indusagi --mode rpc
|
|
377
|
-
```
|
|
378
|
-
|
|
379
|
-
See [docs/rpc.md](docs/rpc.md) for the protocol.
|
|
380
|
-
|
|
381
|
-
---
|
|
382
|
-
|
|
383
|
-
## Philosophy
|
|
384
|
-
|
|
385
|
-
Indusagi is aggressively extensible so it doesn't have to dictate your workflow. Features that other tools bake in can be built with [extensions](#extensions), [skills](#skills), or installed from third-party [indusagi packages](#indusagi-packages). This keeps the core minimal while letting you shape indusagi to fit how you work.
|
|
386
|
-
|
|
387
|
-
**No MCP.** Build CLI tools with READMEs (see [Skills](#skills)), or build an extension that adds MCP support. [Why?](https://mariozechner.at/posts/2025-11-02-what-if-you-dont-need-mcp/)
|
|
388
|
-
|
|
389
|
-
**No sub-agents.** There's many ways to do this. Spawn indusagi instances via tmux, or build your own with [extensions](#extensions), or install a package that does it your way.
|
|
390
|
-
|
|
391
|
-
**No permission popups.** Run in a container, or build your own confirmation flow with [extensions](#extensions) inline with your environment and security requirements.
|
|
392
|
-
|
|
393
|
-
**No plan mode.** Write plans to files, or build it with [extensions](#extensions), or install a package.
|
|
394
|
-
|
|
395
|
-
**No built-in to-dos.** They confuse models. Use a TODO.md file, or build your own with [extensions](#extensions).
|
|
396
|
-
|
|
397
|
-
**No background bash.** Use tmux. Full observability, direct interaction.
|
|
398
|
-
|
|
399
|
-
Read the [blog post](https://mariozechner.at/posts/2025-11-30-indusagi-coding-agent/) for the full rationale.
|
|
400
|
-
|
|
401
|
-
---
|
|
402
|
-
|
|
403
|
-
## CLI Reference
|
|
404
|
-
|
|
405
|
-
```bash
|
|
406
|
-
indusagi [options] [@files...] [messages...]
|
|
407
|
-
```
|
|
408
|
-
|
|
409
|
-
### Package Commands
|
|
410
|
-
|
|
411
|
-
```bash
|
|
412
|
-
indusagi install <source> [-l] # Install package, -l for project-local
|
|
413
|
-
indusagi remove <source> [-l] # Remove package
|
|
414
|
-
indusagi update [source] # Update packages (skips pinned)
|
|
415
|
-
indusagi list # List installed packages
|
|
416
|
-
indusagi config # Enable/disable package resources
|
|
417
|
-
```
|
|
418
|
-
|
|
419
|
-
### Modes
|
|
420
|
-
|
|
421
|
-
| Flag | Description |
|
|
422
|
-
|------|-------------|
|
|
423
|
-
| (default) | Interactive mode |
|
|
424
|
-
| `-p`, `--print` | Print response and exit |
|
|
425
|
-
| `--mode json` | Output all events as JSON lines (see [docs/json.md](docs/json.md)) |
|
|
426
|
-
| `--mode rpc` | RPC mode for process integration (see [docs/rpc.md](docs/rpc.md)) |
|
|
427
|
-
| `--export <in> [out]` | Export session to HTML |
|
|
428
|
-
|
|
429
|
-
### Model Options
|
|
430
|
-
|
|
431
|
-
| Option | Description |
|
|
432
|
-
|--------|-------------|
|
|
433
|
-
| `--provider <name>` | Provider (anthropic, openai, google, etc.) |
|
|
434
|
-
| `--model <id>` | Model ID |
|
|
435
|
-
| `--api-key <key>` | API key (overrides env vars) |
|
|
436
|
-
| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh` |
|
|
437
|
-
| `--models <patterns>` | Comma-separated patterns for Ctrl+P cycling |
|
|
438
|
-
| `--list-models [search]` | List available models |
|
|
439
|
-
|
|
440
|
-
### Session Options
|
|
441
|
-
|
|
442
|
-
| Option | Description |
|
|
443
|
-
|--------|-------------|
|
|
444
|
-
| `-c`, `--continue` | Continue most recent session |
|
|
445
|
-
| `-r`, `--resume` | Browse and select session |
|
|
446
|
-
| `--session <path>` | Use specific session file or partial UUID |
|
|
447
|
-
| `--session-dir <dir>` | Custom session storage directory |
|
|
448
|
-
| `--no-session` | Ephemeral mode (don't save) |
|
|
449
|
-
|
|
450
|
-
### Tool Options
|
|
451
|
-
|
|
452
|
-
| Option | Description |
|
|
453
|
-
|--------|-------------|
|
|
454
|
-
| `--tools <list>` | Enable specific built-in tools (default: `read,bash,edit,write`) |
|
|
455
|
-
| `--no-tools` | Disable all built-in tools (extension tools still work) |
|
|
456
|
-
|
|
457
|
-
Available built-in tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`
|
|
458
|
-
|
|
459
|
-
### Resource Options
|
|
460
|
-
|
|
461
|
-
| Option | Description |
|
|
462
|
-
|--------|-------------|
|
|
463
|
-
| `-e`, `--extension <source>` | Load extension from path, npm, or git (repeatable) |
|
|
464
|
-
| `--no-extensions` | Disable extension discovery |
|
|
465
|
-
| `--skill <path>` | Load skill (repeatable) |
|
|
466
|
-
| `--no-skills` | Disable skill discovery |
|
|
467
|
-
| `--prompt-template <path>` | Load prompt template (repeatable) |
|
|
468
|
-
| `--no-prompt-templates` | Disable prompt template discovery |
|
|
469
|
-
| `--theme <path>` | Load theme (repeatable) |
|
|
470
|
-
| `--no-themes` | Disable theme discovery |
|
|
471
|
-
|
|
472
|
-
Combine `--no-*` with explicit flags to load exactly what you need, ignoring settings.json (e.g., `--no-extensions -e ./my-ext.ts`).
|
|
473
|
-
|
|
474
|
-
### Other Options
|
|
475
|
-
|
|
476
|
-
| Option | Description |
|
|
477
|
-
|--------|-------------|
|
|
478
|
-
| `--system-prompt <text>` | Replace default prompt (context files and skills still appended) |
|
|
479
|
-
| `--append-system-prompt <text>` | Append to system prompt |
|
|
480
|
-
| `--verbose` | Force verbose startup |
|
|
481
|
-
| `-h`, `--help` | Show help |
|
|
482
|
-
| `-v`, `--version` | Show version |
|
|
483
|
-
|
|
484
|
-
### File Arguments
|
|
485
|
-
|
|
486
|
-
Prefix files with `@` to include in the message:
|
|
487
|
-
|
|
488
|
-
```bash
|
|
489
|
-
indusagi @prompt.md "Answer this"
|
|
490
|
-
indusagi -p @screenshot.png "What's in this image?"
|
|
491
|
-
indusagi @code.ts @test.ts "Review these files"
|
|
492
|
-
```
|
|
493
|
-
|
|
494
|
-
### Examples
|
|
495
|
-
|
|
496
|
-
```bash
|
|
497
|
-
# Interactive with initial prompt
|
|
498
|
-
indusagi "List all .ts files in src/"
|
|
499
|
-
|
|
500
|
-
# Non-interactive
|
|
501
|
-
indusagi -p "Summarize this codebase"
|
|
502
|
-
|
|
503
|
-
# Different model
|
|
504
|
-
indusagi --provider openai --model gpt-4o "Help me refactor"
|
|
505
|
-
|
|
506
|
-
# Limit model cycling
|
|
507
|
-
indusagi --models "claude-*,gpt-4o"
|
|
508
|
-
|
|
509
|
-
# Read-only mode
|
|
510
|
-
indusagi --tools read,grep,find,ls -p "Review the code"
|
|
511
|
-
|
|
512
|
-
# High thinking level
|
|
513
|
-
indusagi --thinking high "Solve this complex problem"
|
|
514
|
-
```
|
|
515
|
-
|
|
516
|
-
### Environment Variables
|
|
517
|
-
|
|
518
|
-
| Variable | Description |
|
|
519
|
-
|----------|-------------|
|
|
520
|
-
| `INDUSAGI_CODING_AGENT_DIR` | Override config directory (default: `~/.indusagi/agent`) |
|
|
521
|
-
| `INDUSAGI_SKIP_VERSION_CHECK` | Skip version check at startup |
|
|
522
|
-
| `VISUAL`, `EDITOR` | External editor for Ctrl+G |
|
|
523
|
-
|
|
524
|
-
---
|
|
525
|
-
|
|
526
|
-
## Contributing & Development
|
|
527
|
-
|
|
528
|
-
See [CONTRIBUTING.md](../../CONTRIBUTING.md) for guidelines and [docs/development.md](docs/development.md) for setup, forking, and debugging.
|
|
529
|
-
|
|
530
|
-
---
|
|
50
|
+
Settings can be global or project-specific. See `docs/settings.md`.
|
|
531
51
|
|
|
532
52
|
## License
|
|
533
53
|
|
|
534
54
|
MIT
|
|
535
|
-
|
|
536
|
-
## See Also
|
|
537
|
-
|
|
538
|
-
- [indusagi-ai](https://www.npmjs.com/package/indusagi-ai): Core LLM toolkit
|
|
539
|
-
- [@mariozechner/indusagi-agent](https://www.npmjs.com/package/@mariozechner/indusagi-agent): Agent framework
|
|
540
|
-
- [indusagi-tui](https://www.npmjs.com/package/indusagi-tui): Terminal UI components
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "indusagi-coding-agent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"indusagiConfig": {
|
|
@@ -77,9 +77,10 @@
|
|
|
77
77
|
"license": "MIT",
|
|
78
78
|
"repository": {
|
|
79
79
|
"type": "git",
|
|
80
|
-
"url": "git+https://github.com/
|
|
81
|
-
"directory": "
|
|
80
|
+
"url": "git+https://github.com/varunisrani/indusagi-ts.git",
|
|
81
|
+
"directory": "indusagi-coding-agent"
|
|
82
82
|
},
|
|
83
|
+
"homepage": "https://www.npmjs.com/package/indusagi",
|
|
83
84
|
"engines": {
|
|
84
85
|
"node": ">=20.0.0"
|
|
85
86
|
}
|