Skip to main content

Workspace Management Guide

Complete guide to workspaces, projects, and team collaboration

Overview

Workspaces in Lovelace organize your projects, provide context for AI interactions, and manage team collaboration. This guide covers workspace operations, project integration, and team workflows.

Understanding Workspaces

What are Workspaces?

Workspaces are organizational units that:

  • Group related projects and resources
  • Provide context for AI chat and analysis
  • Enable team collaboration and sharing
  • Sync data across devices and team members
  • Manage permissions and access control

Workspace vs Project

ConceptPurposeScope
WorkspaceOrganizational containerMultiple projects, team collaboration
ProjectIndividual codebase or applicationSingle repository or application

Workspace Operations

List Workspaces

bash
# List all available workspaces
lovelace workspace list

# List with detailed information
lovelace workspace list --detailed

# List only your workspaces
lovelace workspace list --mine

Switch Workspaces

bash
# Switch to a workspace
lovelace workspace switch my-project

# Switch with confirmation
lovelace workspace switch team-workspace --confirm

# Switch and sync immediately
lovelace workspace switch production --sync

Create Workspaces

bash
# Create new workspace
lovelace workspace create my-new-project

# Create with description
lovelace workspace create mobile-app --description "React Native mobile application"

# Create private workspace
lovelace workspace create private-research --private

Workspace Information

bash
# Show current workspace
lovelace workspace current

# Show workspace details
lovelace workspace info my-project

# Show workspace activity
lovelace workspace activity

# Show workspace members
lovelace workspace members

Project Integration

Initialize Project

bash
# Navigate to your project directory
cd /path/to/your/project

# Initialize Lovelace in project
lovelace workspace init

# Initialize with specific workspace
lovelace workspace init --workspace my-workspace

What happens during initialization:

  1. Creates .lovelace/ directory in project root
  2. Generates project configuration file
  3. Analyzes project structure and dependencies
  4. Connects project to workspace

Project Configuration

File: .lovelace/config.json

json
{
  "project": {
    "name": "my-application",
    "workspace": "development-team",
    "type": "web-application",
    "framework": "react-nextjs"
  },
  "analysis": {
    "include_patterns": ["src/**/*", "components/**/*"],
    "exclude_patterns": ["node_modules/**", "build/**"],
    "language": "typescript"
  },
  "integrations": {
    "git": true,
    "package_manager": "npm",
    "ci_cd": "github-actions"
  }
}

Project Status

bash
# Check project integration status
lovelace workspace status

# Validate project configuration
lovelace workspace validate

# Show project analysis summary
lovelace workspace analyze --summary

Synchronization

Manual Sync

bash
# Sync current workspace
lovelace workspace sync

# Sync specific workspace
lovelace workspace sync my-project

# Force complete sync
lovelace workspace sync --force

# Sync with conflict resolution
lovelace workspace sync --resolve-conflicts

Auto Sync

bash
# Enable auto-sync for workspace
lovelace config set workspace.auto_sync true

# Set sync interval (minutes)
lovelace config set workspace.sync_interval 15

# Disable auto-sync
lovelace config set workspace.auto_sync false

Sync Status

bash
# Check sync status
lovelace workspace sync-status

# View sync history
lovelace workspace sync-history

# Check for conflicts
lovelace workspace conflicts

Team Collaboration

Member Management

bash
# Invite team member
lovelace workspace invite user@example.com

# Invite with specific role
lovelace workspace invite developer@company.com --role developer

# List workspace members
lovelace workspace members

# Remove member
lovelace workspace remove-member user@example.com

Roles and Permissions

RolePermissions
OwnerFull access, member management, workspace settings
AdminMost access, member management, limited settings
DeveloperRead/write access to projects, limited admin functions
ViewerRead-only access to projects and conversations
bash
# Change member role
lovelace workspace set-role user@example.com admin

# View member permissions
lovelace workspace permissions user@example.com

Sharing & Collaboration

bash
# Share workspace link
lovelace workspace share

# Generate invite link
lovelace workspace invite-link --role developer

# Export workspace data
lovelace workspace export --format json

# Import shared workspace
lovelace workspace import shared-workspace.json

Backup & Restore

Backup Workspace

bash
# Backup current workspace
lovelace workspace backup

# Backup to specific location
lovelace workspace backup --output ./backups/

# Backup with compression
lovelace workspace backup --compress

# Scheduled backup
lovelace workspace backup --schedule daily

Restore Workspace

bash
# List available backups
lovelace workspace backups

# Restore from backup
lovelace workspace restore backup-2024-01-15.tar.gz

# Restore specific components
lovelace workspace restore --projects-only backup.tar.gz

Backup Configuration

bash
# Configure backup settings
lovelace config set backup.auto_backup true
lovelace config set backup.retention_days 30
lovelace config set backup.location ~/.lovelace/backups/

Advanced Workspace Features

Workspace Templates

bash
# List available templates
lovelace workspace templates

# Create from template
lovelace workspace create web-app --template react-typescript

# Create custom template
lovelace workspace template create my-template

Environment Management

bash
# List workspace environments
lovelace workspace environments

# Switch environment
lovelace workspace env production

# Create new environment
lovelace workspace env create staging

Workspace Settings

bash
# View workspace settings
lovelace workspace settings

# Update workspace settings
lovelace workspace settings set description "New description"
lovelace workspace settings set privacy private

# Configure AI settings
lovelace workspace settings ai --provider anthropic
lovelace workspace settings ai --model claude-3-5-sonnet

Integration Patterns

Git Integration

bash
# Connect git repository
lovelace workspace git connect origin

# Sync with git branches
lovelace workspace git sync-branches

# Auto-link commits to conversations
lovelace config set git.auto_link_commits true

CI/CD Integration

bash
# Connect CI/CD pipeline
lovelace workspace cicd connect github-actions

# View pipeline status
lovelace workspace cicd status

# Trigger workspace sync on deployment
lovelace workspace cicd hook deploy

External Tools

bash
# Connect issue tracker
lovelace workspace connect linear
lovelace workspace connect jira

# Connect documentation
lovelace workspace connect notion
lovelace workspace connect confluence

# Connect monitoring
lovelace workspace connect datadog
lovelace workspace connect newrelic

Troubleshooting

Sync Issues

Sync Conflicts

bash
# Check for conflicts
lovelace workspace conflicts

# Resolve conflicts manually
lovelace workspace resolve-conflicts

# Force resolution (use local)
lovelace workspace sync --force-local

# Force resolution (use remote)
lovelace workspace sync --force-remote

Sync Failures

bash
# Check sync logs
lovelace workspace sync-logs

# Retry failed sync
lovelace workspace sync --retry

# Reset sync state
lovelace workspace sync --reset

Permission Issues

Access Denied

bash
# Check your permissions
lovelace workspace permissions

# Request access from workspace owner
lovelace workspace request-access

# Switch to accessible workspace
lovelace workspace list --accessible

Performance Issues

Large Workspaces

bash
# Optimize workspace
lovelace workspace optimize

# Clean up old data
lovelace workspace cleanup

# Archive inactive projects
lovelace workspace archive-inactive

Slow Sync

bash
# Use incremental sync
lovelace workspace sync --incremental

# Exclude large files
lovelace config set sync.exclude_patterns "*.log,*.tmp"

# Limit sync bandwidth
lovelace config set sync.bandwidth_limit 1MB

Best Practices

Workspace Organization

  1. Use descriptive names - mobile-app-ios vs project1
  2. Separate by team/purpose - Different workspaces for different teams
  3. Keep projects related - Group related projects in same workspace
  4. Regular cleanup - Archive completed projects

Collaboration

  1. Set clear roles - Assign appropriate permissions to team members
  2. Regular sync - Keep workspace data synchronized
  3. Document conventions - Establish naming and organization conventions
  4. Use templates - Create templates for common project types

Performance

  1. Exclude unnecessary files - Configure sync patterns appropriately
  2. Regular maintenance - Clean up old data and optimize workspace
  3. Monitor usage - Keep track of workspace size and activity
  4. Use environments - Separate development, staging, and production

Next Steps: