vibe-workspace 0.0.5

Extremely lightweight CLI for managing multiple git repositories and workspace configurations
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
# Vibe Workspace App Integration Guide

This guide explains how to configure and use app integrations in Vibe Workspace to quickly open repositories in your favorite development tools and install additional developer tools.

## Quick Start

**Menu Mode** (recommended): Just run `vibe` with no arguments to access the interactive menu:
```bash
vibe
```

**CLI Commands**: Use specific commands for automation:
```bash
# Initialize workspace
vibe init

# Configure apps for repositories  
vibe apps configure <repo-name> <app>

# Open repositories quickly
vibe open <repo-name> --app <app>

# Install additional developer tools
vibe apps install
```

## Applications Overview

Vibe Workspace supports two types of applications:

### Apps for Opening Repositories (6 apps)
These apps support full integration with repository opening, templates, and advanced configuration:
- **Warp Terminal** - Modern terminal with AI features
- **iTerm2** - Powerful macOS terminal emulator  
- **WezTerm** - GPU-accelerated cross-platform terminal
- **Visual Studio Code** - Microsoft's code editor
- **Cursor** - AI-first code editor with built-in AI assistance
- **Windsurf** - Agentic IDE powered by AI Flow paradigm

### Additional Developer Tools (9+ apps)
These tools can be installed via the app installer but don't support repository opening:
- **GitHub CLI** - GitHub's official command line tool
- **GitUI** - Terminal-based git interface
- **Just** - Command runner and task automation
- **Claude Squad** - Claude conversation management
- **Container Use** - Agent sandbox launcher
- **Weztermocil** - WezTerm session manager
- **iTermocil** - iTerm2 session manager

## Repository Opening Apps (Detailed)

### 1. Warp Terminal
- **Documentation**: https://docs.warp.dev/terminal/sessions/launch-configurations
- **Configuration Format**: YAML
- **Features**: Multi-pane layouts, custom commands, color themes, AI assistance
- **Usage**: `vibe open <repo> --app warp`

### 2. iTerm2
- **Documentation**: https://iterm2.com/documentation-dynamic-profiles.html
- **Configuration Format**: JSON (Dynamic Profiles)
- **Features**: Custom profiles, badges, initial commands, color schemes
- **Usage**: `vibe open <repo> --app iterm2`

### 3. WezTerm
- **Documentation**: https://wezfurlong.org/wezterm/
- **Configuration Format**: YAML (via Weztermocil integration)
- **Features**: GPU acceleration, cross-platform, multiplexing, programmable
- **Usage**: `vibe open <repo> --app wezterm`

### 4. Visual Studio Code
- **Documentation**: https://code.visualstudio.com/docs/editor/workspaces
- **Configuration Format**: JSON (Workspace files)
- **Features**: Multi-root workspaces, extensions, tasks, settings
- **Usage**: `vibe open <repo> --app vscode`

### 5. Cursor
- **Documentation**: https://cursor.sh/
- **Configuration Format**: JSON (Workspace files, VSCode-compatible)
- **Features**: AI-first editing, built-in AI chat, code generation, VSCode compatibility
- **Usage**: `vibe open <repo> --app cursor`

### 6. Windsurf
- **Documentation**: https://codeium.com/windsurf
- **Configuration Format**: JSON (Workspace files, VSCode-compatible)
- **Features**: Agentic IDE, AI Flow paradigm, intelligent code assistance, collaborative AI
- **Usage**: `vibe open <repo> --app windsurf`

## Additional Developer Tools

The following tools can be installed via `vibe apps install` but don't support repository opening. They're useful development tools that can be used independently:

### CLI Development Tools
- **GitHub CLI (gh)** - GitHub's official command line tool
  - Features: Repository management, pull requests, issues, actions
  - Installation: Available via Homebrew formula
  - Usage: `gh repo clone`, `gh pr create`, etc.

- **GitUI** - Blazing fast terminal-based git client
  - Features: Fast git operations, terminal-based interface
  - Installation: Available via Homebrew formula
  - Usage: Run `gitui` in any git repository

- **Just** - Command runner and task automation tool
  - Features: Simple task runner, cross-platform, fast
  - Installation: Available via Homebrew formula
  - Usage: Create `justfile` with tasks, run `just <task>`

- **Claude Squad** - Tool for managing Claude conversations
  - Features: Conversation management, session tracking
  - Installation: Available via Homebrew formula

### Container & Development Tools
- **Container Use** - Tool for launching agent sandboxes
  - Features: Containerized development environments
  - Installation: Available via Homebrew cask

### Terminal Session Managers
- **Weztermocil** - WezTerm session manager
  - Features: Complex terminal layouts, session persistence
  - Installation: Available via custom Homebrew tap
  - Integration: Used by WezTerm repository opening feature

- **iTermocil** - iTerm2 session manager  
  - Features: iTerm2 window/pane management
  - Installation: Available via custom Homebrew tap
  - Integration: Can be used with iTerm2 repository opening (disabled with `--no-itermocil`)

### Installing Additional Tools

Use the interactive installer to browse and install any of these tools:

```bash
vibe apps install
```

The installer will:
1. Show available applications with descriptions
2. Check if tools are already installed
3. Install selected tools using appropriate package managers
4. Verify successful installation

## Configuration Overview

App integrations are configured at two levels:

1. **Global Configuration** (`~/.toolprint/vibe-workspace/config.yaml`):
   - App-specific settings (config directories, template paths)
   - Default template names

2. **Per-Repository Configuration**:
   - Which apps are enabled for each repository
   - Which template to use for each app

## Template System

Templates define how repositories are opened in each app. They support variable substitution for dynamic configuration.

### Template Locations
```
~/.toolprint/vibe-workspace/templates/
├── warp/
│   ├── default.yaml
│   └── custom-dev.yaml
├── iterm2/
│   ├── default.json
│   └── production.json
├── wezterm/
│   ├── default.yaml
│   └── development.yaml
├── vscode/
│   ├── default.json
│   └── react-project.json
├── cursor/
│   ├── default.json
│   └── ai-project.json
└── windsurf/
    ├── default.json
    └── agentic-project.json
```

### Template Variables

All templates support these variables:
- `{{workspace_name}}` - The vibe workspace name
- `{{repo_name}}` - Repository name
- `{{repo_path}}` - Full path to repository
- `{{repo_branch}}` - Default branch (or "main" if not set)
- `{{repo_url}}` - Repository URL (if available)

### Default Templates

#### Warp Default Template
```yaml
---
name: {{workspace_name}} - {{repo_name}}
windows:
  - tabs:
      - title: {{repo_name}}
        layout:
          cwd: {{repo_path}}
          split_direction: vertical
          panes:
            - cwd: {{repo_path}}
              commands:
                - exec: git status
            - cwd: {{repo_path}}
              commands:
                - exec: echo "Ready for development!"
        color: blue
```

#### iTerm2 Default Template
```json
{
  "Profiles": [{
    "Name": "{{workspace_name}} - {{repo_name}}",
    "Guid": "vibe-{{workspace_name}}-{{repo_name}}",
    "Working Directory": "{{repo_path}}",
    "Custom Directory": "Yes",
    "Badge Text": "📁 {{repo_name}}",
    "Tab Color": {
      "Red Component": 0.2,
      "Green Component": 0.4,
      "Blue Component": 0.8
    },
    "Initial Text": "clear\\necho '🚀 Welcome to {{repo_name}}'\\ngit status"
  }]
}
```

#### WezTerm Default Template
```yaml
---
name: {{workspace_name}}-{{repo_name}}
root: "{{repo_path}}"
windows:
  - name: {{repo_name}}
    root: "{{repo_path}}"
    layout: main-vertical
    panes:
      - root: "{{repo_path}}"
        commands:
          - git status
      - root: "{{repo_path}}"
        commands:
          - echo "🚀 Welcome to {{repo_name}}"
```

#### VS Code Default Template
```json
{
  "folders": [
    {
      "name": "{{repo_name}}",
      "path": "{{repo_path}}"
    }
  ],
  "settings": {
    "window.title": "{{repo_name}} - {{workspace_name}}"
  },
  "extensions": {
    "recommendations": [
      "eamodio.gitlens",
      "ms-vscode.vscode-json"
    ]
  }
}
```

#### Cursor Default Template
```json
{
  "folders": [
    {
      "name": "{{repo_name}}",
      "path": "{{repo_path}}"
    }
  ],
  "settings": {
    "window.title": "{{repo_name}} - {{workspace_name}}",
    "cursor.aiCodeActionsEnabled": true,
    "cursor.aiChatEnabled": true
  },
  "extensions": {
    "recommendations": [
      "eamodio.gitlens",
      "ms-vscode.vscode-json"
    ]
  }
}
```

#### Windsurf Default Template
```json
{
  "folders": [
    {
      "name": "{{repo_name}}",
      "path": "{{repo_path}}"
    }
  ],
  "settings": {
    "window.title": "{{repo_name}} - {{workspace_name}}",
    "windsurf.aiFlowEnabled": true,
    "windsurf.agenticMode": true
  },
  "extensions": {
    "recommendations": [
      "eamodio.gitlens",
      "ms-vscode.vscode-json"
    ]
  }
}
```

## Configuration Examples

### Basic Configuration
```yaml
repositories:
  - name: "frontend"
    path: "./frontend"
    apps:
      warp: true        # Uses default template
      vscode: true      # Uses default template
```

### Advanced Configuration
```yaml
repositories:
  - name: "backend"
    path: "./backend"
    apps:
      warp:
        template: "microservices"
      vscode:
        template: "python-dev"
      cursor:
        template: "ai-assisted"
      windsurf:
        template: "agentic-dev"
      iterm2:
        template: "production"
      wezterm:
        template: "development"
```

### Global App Settings
```yaml
apps:
  warp:
    enabled: true
    config_dir: ~/.warp/launch_configurations
    template_dir: ~/.toolprint/vibe-workspace/templates/warp
    default_template: "default"
  iterm2:
    enabled: true
    config_dir: ~/Library/Application Support/iTerm2/DynamicProfiles
    template_dir: ~/.toolprint/vibe-workspace/templates/iterm2
    default_template: "default"
  wezterm:
    enabled: true
    config_dir: ~/.config/wezterm
    template_dir: ~/.toolprint/vibe-workspace/templates/wezterm
    default_template: "default"
  vscode:
    enabled: true
    workspace_dir: ~/.vscode/workspaces
    template_dir: ~/.toolprint/vibe-workspace/templates/vscode
    default_template: "default"
  cursor:
    enabled: true
    workspace_dir: ~/.cursor/workspaces
    template_dir: ~/.toolprint/vibe-workspace/templates/cursor
    default_template: "default"
  windsurf:
    enabled: true
    workspace_dir: ~/.windsurf/workspaces
    template_dir: ~/.toolprint/vibe-workspace/templates/windsurf
    default_template: "default"
```

## Creating Custom Templates

### Step 1: Create Template File
Create a new file in the appropriate template directory:
```bash
# For Warp
~/.toolprint/vibe-workspace/templates/warp/my-template.yaml

# For iTerm2
~/.toolprint/vibe-workspace/templates/iterm2/my-template.json

# For WezTerm
~/.toolprint/vibe-workspace/templates/wezterm/my-template.yaml

# For VS Code
~/.toolprint/vibe-workspace/templates/vscode/my-template.json

# For Cursor
~/.toolprint/vibe-workspace/templates/cursor/my-template.json

# For Windsurf
~/.toolprint/vibe-workspace/templates/windsurf/my-template.json
```

### Step 2: Customize Template
Use the default template as a starting point and modify as needed.

#### Example: Warp Template for React Development
```yaml
---
name: {{workspace_name}} - {{repo_name}}
windows:
  - tabs:
      - title: {{repo_name}}
        layout:
          cwd: {{repo_path}}
          split_direction: horizontal
          panes:
            - cwd: {{repo_path}}
              split_direction: vertical
              panes:
                - commands:
                    - exec: npm run dev
                - commands:
                    - exec: npm test -- --watch
            - cwd: {{repo_path}}
              commands:
                - exec: git status
        color: cyan
```

### Step 3: Configure Repository
Update your repository configuration to use the custom template:
```yaml
repositories:
  - name: "my-react-app"
    path: "./my-react-app"
    apps:
      warp:
        template: "my-template"
```

## App-Specific Features

### Warp Features
- **Multi-pane Layouts**: Split terminals horizontally/vertically
- **Pre-configured Commands**: Run commands on startup
- **Tab Organization**: Multiple tabs per window
- **Color Coding**: Visual distinction between projects

### iTerm2 Features
- **Dynamic Profiles**: Automatically appear in iTerm2
- **Badge System**: Visual indicators on tabs
- **Color Schemes**: Custom colors per project
- **Initial Commands**: Setup commands on launch

### WezTerm Features
- **GPU Acceleration**: Hardware-accelerated rendering
- **Cross-platform**: Works on macOS, Linux, and Windows
- **Multiplexing**: Built-in terminal multiplexing
- **Session Management**: Integration with Weztermocil for complex layouts

### VS Code Features
- **Multi-root Workspaces**: Open multiple folders
- **Extension Recommendations**: Project-specific extensions
- **Task Definitions**: Pre-configured build/test tasks
- **Settings Override**: Workspace-specific settings

### Cursor Features
- **AI-First Editing**: Built-in AI assistance and code generation
- **VSCode Compatibility**: Full compatibility with VSCode extensions and settings
- **AI Chat Interface**: Integrated AI chat for code questions and assistance
- **Smart Code Actions**: AI-powered code suggestions and improvements

### Windsurf Features
- **Agentic IDE**: AI Flow paradigm with intelligent code assistance
- **Collaborative AI**: Multi-agent AI system for complex development tasks
- **VSCode Compatibility**: Full compatibility with VSCode extensions and settings
- **Intelligent Workflows**: AI-powered development workflows and automation

## Troubleshooting

### Common Issues

1. **Template Not Found**
   - Ensure template file exists in correct directory
   - Check file extension (.yaml for Warp/WezTerm, .json for iTerm2/VS Code)
   - Verify template name in configuration

2. **App Won't Open**
   - Ensure app is installed and in PATH
   - Check app integration is enabled in global config
   - Try manual launch instructions provided

3. **Variables Not Substituted**
   - Use double braces: `{{variable}}`
   - Ensure variable names are spelled correctly
   - Check if repository has required fields (url, branch)

### Manual Launch Instructions

If automatic launching fails, each app provides manual instructions:

**Warp**:
1. Open Warp
2. Press Cmd+Shift+L
3. Select the generated configuration

**iTerm2**:
1. Open iTerm2
2. Profile should appear in Profiles menu
3. May need to restart iTerm2 for dynamic profiles

**WezTerm**:
1. Open WezTerm
2. Configuration uses Weztermocil for session management
3. Sessions should launch automatically with generated config

**VS Code**:
1. Open VS Code
2. File → Open Workspace from File
3. Navigate to generated workspace file

**Cursor**:
1. Open Cursor
2. File → Open Workspace from File
3. Navigate to generated workspace file

**Windsurf**:
1. Open Windsurf
2. File → Open Workspace from File
3. Navigate to generated workspace file

## Best Practices

1. **Template Organization**
   - Use descriptive template names
   - Create templates for different project types
   - Document custom templates

2. **Repository Configuration**
   - Configure apps based on project needs
   - Use consistent templates across similar projects
   - Consider team conventions

3. **Performance**
   - Limit startup commands to essentials
   - Avoid heavy operations in initial commands
   - Use appropriate pane counts

4. **Security**
   - Don't include sensitive data in templates
   - Be cautious with startup commands
   - Review templates from others before use