Configure multi-project workspaces in GrepAI. Use this skill for monorepos and multiple related projects.
This skill covers using GrepAI workspaces to manage multiple related projects with a unified search index.
Workspaces allow you to:
grepai workspace create my-workspace
Output:
ā
Workspace 'my-workspace' created
Location: ~/.grepai/workspaces/my-workspace/
Next: Add projects with 'grepai workspace add'
# Add first project
grepai workspace add my-workspace /path/to/frontend
# Add more projects
grepai workspace add my-workspace /path/to/backend
grepai workspace add my-workspace /path/to/shared-lib
Output:
ā
Added '/path/to/frontend' to workspace 'my-workspace'
Projects in workspace:
1. frontend (/path/to/frontend)
Run 'grepai watch --workspace my-workspace' to index all projects.
grepai workspace list
Output:
š Workspaces
1. my-workspace
- Projects: 3
- Status: Not indexed
2. work-projects
- Projects: 5
- Status: Indexed (updated 2h ago)
grepai workspace show my-workspace
Output:
š Workspace: my-workspace
Projects:
1. frontend
Path: /path/to/frontend
Files: 450
Last indexed: 2025-01-28 10:30
2. backend
Path: /path/to/backend
Files: 320
Last indexed: 2025-01-28 10:30
3. shared-lib
Path: /path/to/shared-lib
Files: 85
Last indexed: 2025-01-28 10:30
Total: 855 files, 4,200 chunks
# Index all projects in workspace
grepai watch --workspace my-workspace
Output:
š Indexing workspace 'my-workspace'
[1/3] frontend...
...