-
Notifications
You must be signed in to change notification settings - Fork 4
Add initial documentation on workspaces #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b215677
Add initial documentation on workspaces
JAORMX a02669d
Language and style updates, add rename command
danbarr 5ca2944
Fix code block languages
danbarr 4e7da0f
CLI updates
danbarr 7ce9731
Fix plaintext code blocks language
danbarr f5723af
Add workspaces UI docs and update descriptions
danbarr 439b575
Add GitHub-style theme switch support
danbarr 3c471a8
Add workspaces to changelog
danbarr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
--- | ||
title: Workspaces | ||
description: Organize and customize your project environments | ||
sidebar_position: 40 | ||
--- | ||
|
||
## Overview | ||
|
||
_Workspaces_ in CodeGate allow you to organize and customize your interactions | ||
with large language models (LLMs). Each workspace is a distinct environment with | ||
its own configurations and resources, enabling personalized settings and | ||
efficient management of different projects or tasks. | ||
|
||
## Key features | ||
|
||
- **Custom configurations**: Each workspace can have its own settings and system | ||
prompts for interacting with LLMs, enabling tailored responses and behaviors. | ||
- **Resource management**: Workspaces act as containers for organizing resources | ||
within CodeGate, making it easier to manage and switch between different | ||
projects. | ||
- **Isolation and independence**: Configurations in one workspace do not affect | ||
others, providing clarity and precision in how settings are applied. | ||
|
||
## Working with workspaces | ||
|
||
:::info Default workspace | ||
|
||
CodeGate ships with a default workspace named `default`. This workspace cannot | ||
be renamed, archived, or deleted. | ||
|
||
::: | ||
|
||
You can manage workspaces using `codegate workspace` commands sent through your | ||
AI assistant's chat interface. To see all available commands: | ||
|
||
```plain | ||
codegate workspace -h | ||
``` | ||
|
||
:::note | ||
|
||
Currently, workspaces are not shown in the CodeGate dashboard. Stay tuned! | ||
|
||
::: | ||
JAORMX marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Create a workspace {#add} | ||
|
||
To create a new workspace: | ||
|
||
```plain | ||
codegate workspace add WORKSPACE_NAME | ||
``` | ||
|
||
Replace `WORKSPACE_NAME` with a name for the new workspace. Names can only | ||
contain alphanumeric characters, hyphens (`-`), and underscores (`_`). | ||
|
||
:::note | ||
|
||
Workspace names are case-sensitive. | ||
|
||
::: | ||
JAORMX marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### List workspaces {#list} | ||
|
||
Get a list of all non-archived workspaces: | ||
|
||
```plain | ||
codegate workspace list | ||
``` | ||
|
||
The currently active workspace is indicated as **(active)** in the list. | ||
|
||
### Activate a workspace {#activate} | ||
|
||
Switch between workspaces using the `activate` command. The active workspace is | ||
the current environment for commands and configuration. | ||
|
||
```plain | ||
codegate workspace activate WORKSPACE_NAME | ||
``` | ||
|
||
Replace `WORKSPACE_NAME` with the name of the workspace to activate | ||
(case-sensitive). | ||
|
||
### Customize the system prompt {#system-prompt} | ||
|
||
One of the key advantages of workspaces is the ability to customize the system | ||
prompt with extra project-specific context or instructions. | ||
|
||
```plain | ||
codegate system-prompt [-w WORKSPACE_NAME] set SYSTEM_PROMPT | ||
danbarr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
|
||
Replace `SYSTEM_PROMPT` with your custom prompt text. | ||
|
||
Optionally, specify the workspace to modify with `-w WORKSPACE_NAME`. If you | ||
don't explicitly set a workspace, the currently active workspace is modified. | ||
|
||
**Example**: Set a custom system prompt for the workspace named "project-alpha": | ||
|
||
```plain | ||
codegate system-prompt -w project-alpha set Start each conversation with "Welcome to Project Alpha Assistant. How can I help today?" | ||
``` | ||
|
||
### Rename a workspace {#rename} | ||
danbarr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
To change the name of an existing workspace: | ||
|
||
```plain | ||
codegate workspace rename WORKSPACE_NAME NEW_WORKSPACE_NAME | ||
``` | ||
|
||
Replace `WORKSPACE_NAME` with the current name of the workspace, and | ||
`NEW_WORKSPACE_NAME` with the new name to set. | ||
|
||
### Archive a workspace {#archive} | ||
|
||
You can mark a workspace as archived without permanently deleting it. This is | ||
useful in situations when you are not actively working on a project but may want | ||
to come back to it later. | ||
|
||
```plain | ||
codegate workspace remove WORKSPACE_NAME | ||
danbarr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
|
||
Replace `WORKSPACE_NAME` with the name of the workspace to archive. Archived | ||
workspaces can be [restored](#restore) later or [permanently deleted](#delete). | ||
|
||
### List archived workspaces {#list-archived} | ||
|
||
Get a list of all archived workspaces: | ||
|
||
```plain | ||
codegate workspace list-archived | ||
``` | ||
|
||
Archived workspaces can be [restored](#restore) or | ||
[permanently deleted](#delete), but cannot be activated. | ||
|
||
### Restore an archived workspace {#restore} | ||
|
||
Use the `restore` command to recover an [archived](#archive) workspace. Once | ||
restored, a workspace will appear in your available [workspace list](#list) and | ||
can be [activated](#activate). | ||
|
||
```bash | ||
codegate workspace restore WORKSPACE_NAME | ||
``` | ||
|
||
Replace `WORKSPACE_NAME` with the name of the workspace to restore. | ||
|
||
### Permanently delete a workspace {#delete} | ||
|
||
The `delete-archived` command permanently deletes an archived workspace. | ||
|
||
```bash | ||
codegate workspace delete-archived WORKSPACE_NAME | ||
``` | ||
|
||
Replace `WORKSPACE_NAME` with the name of the workspace to delete. | ||
|
||
:::warning | ||
|
||
Deletion is permanent. Ensure that the workspace is no longer needed and can be | ||
safely removed. There is no confirmation when you run this command. | ||
|
||
::: | ||
|
||
## Recommendations | ||
|
||
- Use workspaces to separate different projects or objectives, ensuring each has | ||
a dedicated configuration. | ||
- Regularly review and update the system prompts to align with the evolving | ||
needs of your projects. | ||
- Use resource bucketing to keep assets organized and easily accessible within | ||
their respective workspaces. | ||
danbarr marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.