osagent 0.2.73 → 0.2.74

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/dist/README.md DELETED
@@ -1,478 +0,0 @@
1
- # OS Agent
2
-
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
-
5
- ## Features
6
-
7
- - **Smart Onboarding**: Auto-detects your system, tools, and project on first run
8
- - **Local-first AI**: Works with Ollama for completely private, offline usage
9
- - **Cloud support**: Connect to Ollama Cloud or OpenAI-compatible APIs
10
- - **Interactive CLI**: Beautiful terminal interface with monochrome green theme
11
- - **Autonomous coding**: Generate, edit, and refactor code with natural language
12
- - **Multi-file editing**: Make changes across your entire project
13
- - **Git integration**: Automatic commits and PR creation
14
- - **Consultation mode**: AI asks clarifying questions to better understand your needs
15
- - **Conversation persistence**: Resume previous sessions with `/continue`
16
- - **System health checks**: Built-in diagnostics with `/doctor`
17
- - **Extensible**: MCP (Model Context Protocol) support for custom tools
18
- - **Custom agents**: Define your own specialized agents in `~/.osagent/agents/`
19
- - **Custom commands**: Create custom slash commands in `~/.osagent/commands/`
20
- - **Custom skills**: Create skill plugins for multi-step workflows
21
- - **Multi-agent orchestration**: Automatic skill detection and agent dispatch
22
- - **Episodic memory**: Session tracking and learning from past interactions
23
- - **Vector memory**: Semantic search over session history with ChromaDB
24
- - **Embeddings**: Ollama embeddings with OpenRouter fallback
25
- - **Advanced hooks**: 12 subagent hooks for lifecycle, memory, and skill events
26
-
27
- ## Installation
28
-
29
- ### From npm (recommended)
30
-
31
- ```bash
32
- npm install -g osagent
33
- ```
34
-
35
- ### From source
36
-
37
- ```bash
38
- git clone https://github.com/robertohluna/osagent.git
39
- cd osagent
40
- npm install
41
- npm run build
42
- npm link
43
- ```
44
-
45
- ### Troubleshooting Installation
46
-
47
- **Never use `sudo` with npm!** Using `sudo npm install -g` creates permission problems.
48
-
49
- If you see permission errors:
50
-
51
- ```bash
52
- # Fix npm cache permissions
53
- sudo chown -R $(whoami) ~/.npm
54
-
55
- # If using nvm, also fix nvm directory
56
- sudo chown -R $(whoami) ~/.nvm
57
-
58
- # Clear npm cache
59
- npm cache clean --force
60
-
61
- # Now install without sudo
62
- npm install -g osagent
63
- ```
64
-
65
- If updates don't take effect (old version showing):
66
-
67
- ```bash
68
- npm cache clean --force
69
- npm install -g osagent@latest --force
70
- osagent --version
71
- ```
72
-
73
- **Recommended: Use nvm** to avoid permission issues entirely:
74
-
75
- ```bash
76
- # Install nvm
77
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
78
-
79
- # Restart terminal, then:
80
- nvm install 20
81
- nvm use 20
82
-
83
- # Now npm never needs sudo
84
- npm install -g osagent
85
- ```
86
-
87
- ## Quick Start
88
-
89
- ### Option 1: Use with Ollama (Local - Recommended)
90
-
91
- 1. Install [Ollama](https://ollama.com)
92
- 2. Pull a coding model:
93
- ```bash
94
- ollama pull qwen2.5-coder:32b
95
- ```
96
- 3. Run OS Agent:
97
- ```bash
98
- osagent
99
- ```
100
-
101
- ### Option 2: Use with Ollama Cloud
102
-
103
- 1. Get an API key from [Ollama Cloud](https://ollama.com)
104
- 2. Set your API key:
105
- ```bash
106
- export OLLAMA_API_KEY=your-api-key
107
- ```
108
- 3. Run OS Agent:
109
- ```bash
110
- osagent
111
- ```
112
-
113
- ### Option 3: Use with OpenAI-compatible APIs
114
-
115
- ```bash
116
- osagent --auth openai
117
- ```
118
-
119
- ## Usage
120
-
121
- ### Basic Commands
122
-
123
- ```bash
124
- # Start interactive mode
125
- osagent
126
-
127
- # Start with a prompt
128
- osagent "Explain this codebase"
129
-
130
- # Use a specific model
131
- osagent --model qwen2.5-coder:32b
132
-
133
- # Resume last conversation
134
- osagent --continue
135
-
136
- # Print a file and ask about it
137
- osagent "What does this do?" < src/main.ts
138
-
139
- # Run health check
140
- osagent doctor
141
-
142
- # Dangerous mode (auto-accept all tool executions)
143
- osagent --dangerously
144
- ```
145
-
146
- ### Slash Commands
147
-
148
- Once in the interactive mode, you can use these commands:
149
-
150
- #### General
151
- - `/help` - Show available commands
152
- - `/about` - Show version and system info
153
- - `/settings` - View and edit settings
154
- - `/quit` or `/q` - Exit OS Agent
155
-
156
- #### Model & AI
157
- - `/model` - Switch AI model (supports local Ollama models)
158
- - `/agents` - Manage custom agents
159
- - `/consult` - Toggle consultation mode (AI asks clarifying questions)
160
-
161
- #### Conversation
162
- - `/continue` - Resume the most recent conversation
163
- - `/continue list` - List recent sessions to resume
164
- - `/reset` - Clear conversation and start fresh
165
- - `/clear` - Clear the screen
166
- - `/chat save <tag>` - Save conversation checkpoint
167
- - `/chat resume <tag>` - Resume from checkpoint
168
-
169
- #### Safety & Permissions
170
- - `/dangerously` or `/yolo` - Toggle auto-accept mode for tool executions
171
- - `/permissions` - View and manage tool permissions
172
-
173
- #### System
174
- - `/doctor` - Check system health and updates
175
- - `/doctor update` - Auto-update to latest version
176
- - `/doctor init` - Initialize `~/.osagent/` directory structure
177
- - `/view` - View system architecture and configuration
178
- - `/view config` - Current configuration
179
- - `/view files` - Configuration files
180
- - `/view models` - Supported models
181
- - `/context` or `/ctx` - View context window usage and token stats
182
-
183
- #### Utilities
184
- - `/copy` - Copy last response to clipboard
185
- - `/memory` - View and edit project memory
186
- - `/tools` - List available tools
187
- - `/mcp` - Manage MCP servers
188
-
189
- ### Status Bar
190
-
191
- While OS Agent works, you'll see a real-time status bar showing:
192
- - Current activity with spinner
193
- - Token usage (input ↑ / output ↓)
194
- - Elapsed time
195
- - Task progress and list
196
-
197
- ```
198
- ┌─────────────────────────────────────────────────────────┐
199
- │ ◐ Writing tests for auth module... (2/5) ↑12.3k ↓8.2k 2m 15s │
200
- │ ├─ ○ Create test file │
201
- │ ├─ ◐ Writing unit tests │
202
- │ └─ ○ Run tests and fix errors │
203
- └─────────────────────────────────────────────────────────┘
204
- ```
205
-
206
- ### Consultation Mode
207
-
208
- OS Agent can ask you clarifying questions as it works to better understand your requirements:
209
-
210
- ```bash
211
- /consult on # Active mode - questions shown while agent works
212
- /consult blocking # Blocking mode - high-priority questions pause the agent
213
- /consult off # Disable consultation
214
- /consult context # View collected context
215
- ```
216
-
217
- Questions appear in a dedicated panel below the status bar during agent operations.
218
-
219
- ### Vector Memory (Optional)
220
-
221
- For semantic search over session history, start ChromaDB:
222
-
223
- ```bash
224
- # Start ChromaDB with Docker
225
- docker compose -f docker/docker-compose.yml up -d
226
-
227
- # Ensure Ollama has the embedding model
228
- ollama pull nomic-embed-text
229
- ```
230
-
231
- ### Multi-Agent Orchestration
232
-
233
- OS Agent features an intelligent orchestration system that automatically:
234
-
235
- - **Detects skills** in your prompts (debugging, testing, refactoring, etc.)
236
- - **Selects the best agent** for each task based on capabilities
237
- - **Dispatches execution** to specialized subagents
238
- - **Tracks progress** with real-time status updates
239
-
240
- The orchestrator runs transparently - just describe what you want and OS Agent handles the rest.
241
-
242
- ### Episodic Memory
243
-
244
- OS Agent learns from your sessions:
245
-
246
- - **Records episodes** of your interactions automatically
247
- - **Tracks actions** including tools used and files modified
248
- - **Saves outcomes** for future reference
249
- - **Enables recall** of past patterns and solutions
250
-
251
- Episodes are stored locally in `~/.osagent/episodes/`.
252
-
253
- ### Configuration
254
-
255
- OS Agent stores its configuration in `~/.osagent/` (created automatically on first run):
256
-
257
- ```
258
- ~/.osagent/
259
- ├── settings.json # User settings
260
- ├── agents/ # Custom agent definitions (.md, .yaml, .json)
261
- ├── commands/ # Custom slash commands (.toml)
262
- ├── skills/ # Custom skill plugins (.yaml)
263
- ├── prompts/ # Custom prompts
264
- └── episodes/ # Episodic memory storage
265
- ```
266
-
267
- ### Custom Agents
268
-
269
- Create custom agents in `~/.osagent/agents/`:
270
-
271
- ```yaml
272
- # ~/.osagent/agents/my-agent.yaml
273
- name: my-agent
274
- description: A specialized agent for my use case
275
- systemPrompt: You are an expert in...
276
- model: qwen2.5-coder:32b
277
- ```
278
-
279
- ### Project Memory
280
-
281
- Create an `OSAGENT.md` file in your project root to give OS Agent context:
282
-
283
- ```bash
284
- osagent /init
285
- ```
286
-
287
- ## Supported Models
288
-
289
- ### Cloud Models (Ollama Cloud)
290
- - `qwen3-coder:480b-cloud` - Most powerful (256K context)
291
- - `qwen3-coder:30b` - Efficient (30B params, 3.3B active)
292
-
293
- ### Local Models (Ollama)
294
- - `qwen2.5-coder:32b` - Best local coding model (~20GB VRAM)
295
- - `qwen2.5-coder:14b` - Great balance (~10GB VRAM)
296
- - `qwen2.5-coder:7b` - Good for limited VRAM (~5GB)
297
- - `codellama:34b` - Meta's coding model
298
- - `deepseek-coder-v2:16b` - Efficient MoE model
299
- - `llama3.2:latest` - General purpose
300
-
301
- ## Requirements
302
-
303
- - Node.js >= 20.0.0
304
- - Ollama (for local usage) or API key for cloud providers
305
-
306
- ## Development
307
-
308
- ```bash
309
- # Install dependencies
310
- npm install
311
-
312
- # Build all packages
313
- npm run build
314
-
315
- # Run in development mode
316
- npm run start
317
-
318
- # Run tests
319
- npm run test
320
-
321
- # Type check
322
- npm run typecheck
323
-
324
- # Lint
325
- npm run lint
326
- ```
327
-
328
- ## Architecture
329
-
330
- OS Agent is a monorepo with the following packages:
331
-
332
- ```
333
- packages/
334
- ├── cli/ # Terminal UI and user interaction (React/Ink)
335
- ├── core/ # AI engine, tools, and services
336
- ├── test-utils/ # Shared test utilities
337
- └── vscode-ide-companion/ # VS Code extension
338
- ```
339
-
340
- ## Keyboard Shortcuts
341
-
342
- ### General
343
- - `Ctrl+C` - Cancel current operation / Exit (press twice)
344
- - `Ctrl+D` - Exit
345
- - `Escape` - Cancel operation / Clear input
346
- - `Tab` - Autocomplete commands
347
- - `Up/Down` - Navigate history
348
- - `?` - Show shortcuts help
349
-
350
- ### During Operations
351
- - `Ctrl+O` - Expand/collapse output
352
- - `Ctrl+Y` - Toggle todo list visibility
353
- - `Ctrl+E` - Toggle agent detail level
354
- - `Ctrl+F` - Focus embedded shell
355
-
356
- ### Text Editing
357
- - `Ctrl+L` - Clear screen
358
- - `Ctrl+A` - Move to start of line
359
- - `Ctrl+E` - Move to end of line
360
- - `Ctrl+K` - Delete to end of line
361
- - `Ctrl+U` - Delete to start of line
362
- - `Shift+Enter` - Insert newline
363
-
364
- ## Documentation
365
-
366
- For detailed architecture documentation, see [SYSTEM_ARCHITECTURE.md](SYSTEM_ARCHITECTURE.md). This includes:
367
- - Complete request flow diagrams
368
- - Agent system and tier structure
369
- - Skill detection and auto-dispatch
370
- - Tool system and execution flow
371
- - Memory systems (episodic + vector)
372
- - Context provider hierarchy
373
- - Integration points and key files
374
-
375
- ## Recent Updates
376
-
377
- ### v0.2.0 - Architecture & Orchestration Improvements
378
- - **Roadmap System**: New persistent project tracking system (`roadmap` tool for agents)
379
- - Track work items with priorities, dependencies, and subtasks
380
- - Stored in `.osagent/roadmap.json` - persists across sessions
381
- - Actions: view, add, update, next, summary, note
382
- - **Consultation Integration**: Enhanced orchestrator-consultation bridge
383
- - Generates clarifying questions when prompts are ambiguous
384
- - Context-aware question generation based on skill detection
385
- - Collects enhanced context for better agent selection
386
- - **Codebase Cleanup**: Removed orphaned code and redundant hooks
387
- - Deleted unused memory command hooks
388
- - Consolidated RoadmapContext into core service
389
- - Updated architecture documentation
390
- - **Documentation**: Added comprehensive SYSTEM_ARCHITECTURE.md
391
- - Complete system flow documentation
392
- - Agent tiers and selection rules
393
- - Skill detection process
394
- - Tool registration patterns
395
-
396
- ### v0.1.87 - Test Fixes & Documentation
397
- - Fixed all test failures (3170/3170 tests now passing)
398
- - Updated naming consistency across codebase
399
- - Fixed vision model detection in DashScope provider
400
- - Added gopd dependency troubleshooting documentation
401
- - Improved MCP client transport handling
402
-
403
- ### v0.1.86 - Auto Project Context
404
- - Automatic project context injection on first prompt
405
- - When no OSAGENT.md exists, AI auto-explores project structure before responding
406
- - No manual `/init` required for casual usage
407
-
408
- ### v0.1.85 - Security & Stability Fixes
409
- - Timer now only counts active work time (stops when idle)
410
- - Fixed command injection vulnerability in git co-author feature
411
- - Fixed symlink bypass in path validation
412
- - Fixed VimModeContext re-render loop
413
-
414
- ### v0.1.83 - Enhanced Doctor Command
415
- - Added enhanced installation diagnostics to `/doctor`
416
- - Shows installation method (npm-global, homebrew, native, source)
417
- - Displays binary path and invoked path
418
- - Shows auto-updates status and search/ripgrep status
419
- - Detects and warns about multiple installations
420
- - New "All systems go" summary style
421
-
422
- ### v0.1.81 - Stability & Auto-Initialization
423
- - Fixed "Maximum update depth exceeded" infinite loop (3800+ errors)
424
- - Added automatic `~/.osagent/` directory initialization on startup
425
- - Creates required directories: agents, commands, prompts, skills, episodes
426
- - Auth credentials now properly saved when switching providers
427
-
428
- ### v0.1.80 - Auth Provider Fix
429
- - Fixed auth configuration mismatch when switching providers
430
- - Ensures baseUrl and model are saved correctly to settings
431
-
432
- ### v0.1.79 - IDE Terminal Compatibility
433
- - Migrated all dialogs from custom `useKeypress` to Ink's `useInput` hook
434
- - Fixes arrow key issues in VS Code, Cursor, and other IDE terminals
435
- - Arrow keys no longer print escape sequences (`^[[A^[[B`) in dialogs
436
- - Improved compatibility with IDE terminals that don't support raw mode
437
-
438
- ### v0.1.66 - Focus Management
439
- - New `useFocusedKeypress` hook for enforced focus management
440
- - Prevents keypress conflicts between dialogs and main UI
441
- - Required `isFocused` parameter catches bugs at compile time
442
-
443
- ### v0.1.65 - Input Routing Fix
444
- - Fixed keyboard input routing issues with selectors
445
- - Arrow keys and Enter now properly isolated to focused component
446
- - No more keypress "leakage" between dialogs
447
-
448
- ### v0.1.64 - UI Improvements
449
- - Tree-view style tool display with `├─` `└─` connectors
450
- - Expandable results with `Ctrl+O`
451
- - Token counts and duration stats
452
- - Sleeker ASCII art header
453
- - Minimal init banner
454
-
455
- ### v0.1.63 - Stability Fix
456
- - Fixed infinite loop on startup (Maximum update depth exceeded)
457
- - Improved React effect dependency management
458
-
459
- ### v0.1.59 - Terminal Stability
460
- - Fixed EIO error crash on stdin
461
- - Graceful handling of TTY disconnects
462
- - Stable arrow key navigation in selectors
463
-
464
- See [KNOWN_ISSUES.md](docs/KNOWN_ISSUES.md) for detailed issue tracking.
465
-
466
- ## License
467
-
468
- Apache-2.0
469
-
470
- ## Contributing
471
-
472
- Contributions are welcome! Please read our contributing guidelines before submitting PRs.
473
-
474
- ## Links
475
-
476
- - [GitHub](https://github.com/robertohluna/osagent)
477
- - [npm](https://www.npmjs.com/package/osagent)
478
- - [Issues](https://github.com/robertohluna/osagent/issues)
package/dist/package.json DELETED
@@ -1,40 +0,0 @@
1
- {
2
- "name": "osagent",
3
- "version": "0.2.6",
4
- "description": "OS Agent - AI-powered CLI for autonomous coding with Ollama Cloud and Qwen models",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/robertohluna/osagent.git"
8
- },
9
- "type": "module",
10
- "main": "cli.js",
11
- "bin": {
12
- "osagent": "cli.js"
13
- },
14
- "files": [
15
- "cli.js",
16
- "vendor",
17
- "*.sb",
18
- "README.md",
19
- "LICENSE",
20
- "locales"
21
- ],
22
- "config": {
23
- "sandboxImageUri": "ghcr.io/osagent/osagent:0.1.100"
24
- },
25
- "dependencies": {
26
- "punycode": "^2.3.1"
27
- },
28
- "optionalDependencies": {
29
- "@lydell/node-pty": "1.1.0",
30
- "@lydell/node-pty-darwin-arm64": "1.1.0",
31
- "@lydell/node-pty-darwin-x64": "1.1.0",
32
- "@lydell/node-pty-linux-x64": "1.1.0",
33
- "@lydell/node-pty-win32-arm64": "1.1.0",
34
- "@lydell/node-pty-win32-x64": "1.1.0",
35
- "node-pty": "^1.0.0"
36
- },
37
- "engines": {
38
- "node": ">=20.0.0"
39
- }
40
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes