osagent 0.1.16 → 0.1.17

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 (3) hide show
  1. package/README.md +120 -27
  2. package/dist/cli.js +788 -603
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,16 +1,21 @@
1
- # OSAgent
1
+ # OS Agent
2
2
 
3
- An AI-powered coding assistant CLI that runs locally with Ollama or connects to cloud AI providers.
3
+ An AI-powered autonomous coding assistant CLI that runs locally with Ollama or connects to cloud AI providers. Built for developers who want full control over their AI coding assistant.
4
4
 
5
5
  ## Features
6
6
 
7
- - **Local-first AI**: Works with Ollama for completely offline usage
7
+ - **Local-first AI**: Works with Ollama for completely private, offline usage
8
8
  - **Cloud support**: Connect to Ollama Cloud or OpenAI-compatible APIs
9
- - **Interactive CLI**: Beautiful terminal interface with syntax highlighting
10
- - **Code generation**: Generate, edit, and refactor code with natural language
9
+ - **Interactive CLI**: Beautiful terminal interface with monochrome green theme
10
+ - **Autonomous coding**: Generate, edit, and refactor code with natural language
11
11
  - **Multi-file editing**: Make changes across your entire project
12
12
  - **Git integration**: Automatic commits and PR creation
13
+ - **Consultation mode**: AI asks clarifying questions to better understand your needs
14
+ - **Conversation persistence**: Resume previous sessions with `/continue`
15
+ - **System health checks**: Built-in diagnostics with `/doctor`
13
16
  - **Extensible**: MCP (Model Context Protocol) support for custom tools
17
+ - **Custom agents**: Define your own specialized agents in `~/.osagent/agents/`
18
+ - **Custom commands**: Create custom slash commands in `~/.osagent/commands/`
14
19
 
15
20
  ## Installation
16
21
 
@@ -23,8 +28,8 @@ npm install -g osagent
23
28
  ### From source
24
29
 
25
30
  ```bash
26
- git clone https://github.com/osagent/osagent-cli.git
27
- cd osagent-cli
31
+ git clone https://github.com/robertohluna/osagent.git
32
+ cd osagent
28
33
  npm install
29
34
  npm run build
30
35
  npm link
@@ -32,14 +37,14 @@ npm link
32
37
 
33
38
  ## Quick Start
34
39
 
35
- ### Option 1: Use with Ollama (Local)
40
+ ### Option 1: Use with Ollama (Local - Recommended)
36
41
 
37
42
  1. Install [Ollama](https://ollama.com)
38
43
  2. Pull a coding model:
39
44
  ```bash
40
45
  ollama pull qwen2.5-coder:32b
41
46
  ```
42
- 3. Run OSAgent:
47
+ 3. Run OS Agent:
43
48
  ```bash
44
49
  osagent
45
50
  ```
@@ -51,7 +56,7 @@ npm link
51
56
  ```bash
52
57
  export OLLAMA_API_KEY=your-api-key
53
58
  ```
54
- 3. Run OSAgent:
59
+ 3. Run OS Agent:
55
60
  ```bash
56
61
  osagent
57
62
  ```
@@ -75,36 +80,109 @@ osagent "Create a hello world Python script"
75
80
 
76
81
  # Use a specific model
77
82
  osagent --model qwen2.5-coder:32b
83
+
84
+ # Resume last session
85
+ osagent --continue
78
86
  ```
79
87
 
80
88
  ### Slash Commands
81
89
 
82
90
  Once in the interactive mode, you can use these commands:
83
91
 
92
+ #### General
84
93
  - `/help` - Show available commands
94
+ - `/about` - Show version and system info
85
95
  - `/settings` - View and edit settings
86
- - `/model` - Switch AI model
87
- - `/clear` - Clear conversation history
88
- - `/docs` - Open documentation
89
- - `/quit` - Exit OSAgent
96
+ - `/quit` or `/q` - Exit OS Agent
97
+
98
+ #### Model & AI
99
+ - `/model` - Switch AI model (supports local Ollama models)
100
+ - `/agents` - Manage custom agents
101
+ - `/consult` - Toggle consultation mode (AI asks clarifying questions)
102
+
103
+ #### Conversation
104
+ - `/continue` - Resume the most recent conversation
105
+ - `/continue list` - List recent sessions to resume
106
+ - `/reset` - Clear conversation and start fresh
107
+ - `/clear` - Clear the screen
108
+ - `/chat save <tag>` - Save conversation checkpoint
109
+ - `/chat resume <tag>` - Resume from checkpoint
110
+
111
+ #### Safety & Permissions
112
+ - `/dangerously` or `/yolo` - Toggle auto-accept mode for tool executions
113
+ - `/permissions` - View and manage tool permissions
114
+
115
+ #### System
116
+ - `/doctor` - Check system health and updates
117
+ - `/doctor update` - Auto-update to latest version
118
+ - `/doctor init` - Initialize `~/.osagent/` directory structure
119
+
120
+ #### Utilities
121
+ - `/copy` - Copy last response to clipboard
122
+ - `/memory` - View and edit project memory
123
+ - `/tools` - List available tools
124
+ - `/mcp` - Manage MCP servers
125
+
126
+ ### Consultation Mode
127
+
128
+ OS Agent can ask you clarifying questions as it works to better understand your requirements:
129
+
130
+ ```bash
131
+ /consult on # Active mode - questions shown while agent works
132
+ /consult blocking # Blocking mode - high-priority questions pause the agent
133
+ /consult off # Disable consultation
134
+ /consult context # View collected context
135
+ ```
136
+
137
+ Questions appear below the loading indicator during agent operations.
90
138
 
91
139
  ### Configuration
92
140
 
93
- OSAgent stores its configuration in `~/.osagent/settings.json`. You can customize:
141
+ OS Agent stores its configuration in `~/.osagent/`:
142
+
143
+ ```
144
+ ~/.osagent/
145
+ ├── settings.json # User settings
146
+ ├── agents/ # Custom agent definitions (.md, .yaml, .json)
147
+ ├── commands/ # Custom slash commands (.toml)
148
+ ├── prompts/ # Custom prompts
149
+ └── system.md # Custom system prompt
150
+ ```
94
151
 
95
- - Default model
96
- - API endpoints
97
- - Theme settings
98
- - Tool permissions
152
+ ### Custom Agents
153
+
154
+ Create custom agents in `~/.osagent/agents/`:
155
+
156
+ ```yaml
157
+ # ~/.osagent/agents/my-agent.yaml
158
+ name: my-agent
159
+ description: A specialized agent for my use case
160
+ systemPrompt: You are an expert in...
161
+ model: qwen2.5-coder:32b
162
+ ```
99
163
 
100
164
  ### Project Memory
101
165
 
102
- Create an `OSAGENT.md` file in your project root to give OSAgent context about your project:
166
+ Create an `OSAGENT.md` file in your project root to give OS Agent context:
103
167
 
104
168
  ```bash
105
169
  osagent /init
106
170
  ```
107
171
 
172
+ ## Supported Models
173
+
174
+ ### Cloud Models (Ollama Cloud)
175
+ - `qwen3-coder:480b-cloud` - Most powerful (256K context)
176
+ - `qwen3-coder:30b` - Efficient (30B params, 3.3B active)
177
+
178
+ ### Local Models (Ollama)
179
+ - `qwen2.5-coder:32b` - Best local coding model (~20GB VRAM)
180
+ - `qwen2.5-coder:14b` - Great balance (~10GB VRAM)
181
+ - `qwen2.5-coder:7b` - Good for limited VRAM (~5GB)
182
+ - `codellama:34b` - Meta's coding model
183
+ - `deepseek-coder-v2:16b` - Efficient MoE model
184
+ - `llama3.2:latest` - General purpose
185
+
108
186
  ## Requirements
109
187
 
110
188
  - Node.js >= 20.0.0
@@ -127,16 +205,31 @@ npm run test
127
205
 
128
206
  # Type check
129
207
  npm run typecheck
208
+
209
+ # Lint
210
+ npm run lint
130
211
  ```
131
212
 
132
213
  ## Architecture
133
214
 
134
- OSAgent is a monorepo with the following packages:
215
+ OS Agent is a monorepo with the following packages:
216
+
217
+ ```
218
+ packages/
219
+ ├── cli/ # Terminal UI and user interaction (React/Ink)
220
+ ├── core/ # AI engine, tools, and services
221
+ ├── test-utils/ # Shared test utilities
222
+ └── vscode-ide-companion/ # VS Code extension
223
+ ```
224
+
225
+ ## Keyboard Shortcuts
135
226
 
136
- - `osagent` - Root package and CLI entry point
137
- - `osagent-cli` - Terminal UI and user interaction
138
- - `osagent-core` - AI engine, tools, and services
139
- - `osagent-test-utils` - Shared test utilities
227
+ - `Ctrl+C` (twice) - Exit
228
+ - `Ctrl+D` (twice) - Exit
229
+ - `Escape` - Cancel current operation
230
+ - `Tab` - Autocomplete commands
231
+ - `Up/Down` - Navigate history
232
+ - `o` (during loading) - Toggle thinking display
140
233
 
141
234
  ## License
142
235
 
@@ -148,6 +241,6 @@ Contributions are welcome! Please read our contributing guidelines before submit
148
241
 
149
242
  ## Links
150
243
 
151
- - [Documentation](https://ollama.com/library/qwen2.5-coder)
152
- - [GitHub](https://github.com/osagent/osagent-cli)
244
+ - [GitHub](https://github.com/robertohluna/osagent)
153
245
  - [npm](https://www.npmjs.com/package/osagent)
246
+ - [Issues](https://github.com/robertohluna/osagent/issues)