~/.comis/agents/<agentId>/workspace, and the workspace files (SOUL.md, IDENTITY.md, AGENTS.md, etc.) shape that agent’s personality and behavior; see Identity for the concept.
Who it’s for: authors editing an agent’s persona without leaving the dashboard, and operators who need a quick rollback after a bad change.
Route
/agents/:id/workspace— opens the workspace manager for the named agent. You arrive here by clicking Workspace on the agent detail page.
Backing RPC
workspace.status(agentId)— overall workspace status (git init state, bootstrap state)workspace.init(agentId)— initialize the workspace git repositoryworkspace.listDir(agentId, path?)— file treeworkspace.readFile(agentId, filePath)— file contentworkspace.writeFile(agentId, filePath, content)— saveworkspace.deleteFile(agentId, filePath)— deleteworkspace.resetFile(agentId, filePath)— restore template contentworkspace.git.status(agentId)— branch, changed filesworkspace.git.log(agentId)— recent commit historyworkspace.git.diff(agentId, filePath?)— diffworkspace.git.commit(agentId, message)— commitworkspace.git.restore(agentId, filePath)— discard local edits
What You See
The Workspace view has a status bar at the top and two tabs — Files and Git — that organize the workspace into file management and version control. Status bar at the top of the page shows the workspace directory path (for example,~/.comis/agents/{agentId}/workspace), a git repo status tag indicating whether a git repository has been initialized, and a bootstrap status tag showing whether the workspace has been bootstrapped with template files.
Tab bar below the status bar lets you switch between the Files tab and the Git tab.
Files Tab
The Files tab is split into two panels. Left panel — The file tree sidebar lists all workspace files in two sections:- Template Files — The 9 core workspace files that shape your agent’s personality and behavior:
SOUL.md,IDENTITY.md,USER.md,AGENTS.md,ROLE.md,TOOLS.md,HEARTBEAT.md,BOOTSTRAP.md, andBOOT.md. Each file shows a presence dot indicating whether it exists in the workspace. - Directories — The 6 standard subdirectories for organizing agent content:
projects,scripts,documents,media,data, andoutput.
- A filename header showing the current file name
- An unsaved-changes indicator (a dot next to the filename) when you have modified content that has not been saved
- A textarea where you edit the file content
- An action bar at the bottom with three buttons: Save (writes your changes), Reset to Default (restores a template file to its original content), and Delete (removes the file)
| Column | What It Shows |
|---|---|
| Name | The file or subdirectory name |
| Type | Whether the entry is a file or directory |
| Size | The file size in bytes |
| Modified | When the entry was last changed |
Git Tab
The Git tab provides version control for your workspace files. It has four sections: Status section — Shows the current branch name, the number of changed files, and a list of each changed file. Every file has a status badge indicating its state:- M — Modified (changed since last commit)
- A — Added (new file staged for commit)
- D — Deleted (removed since last commit)
- ?? — Untracked (new file not yet tracked by git)
Common Tasks
Editing a Workspace File
Navigate to the workspace
Go to Agents in the sidebar, click the agent you want to edit, then click the Workspace button in the agent detail header.
Select a file
In the file tree on the left, click the file you want to edit. The file content loads in the editor on the right.
Make your changes
Edit the content in the textarea. An unsaved-changes dot appears next to the filename to remind you that changes have not been saved.
Resetting a File to Default
Select a template file
Click one of the 9 template files in the file tree (
SOUL.md, IDENTITY.md, USER.md, AGENTS.md, ROLE.md, TOOLS.md, HEARTBEAT.md, BOOTSTRAP.md, or BOOT.md).Reset to Default only works for the 9 template files. Custom files you create do not have a default to reset to.
Deleting a File
Template files cannot be deleted. If you want to remove a template file’s content, use Reset to Default instead.
Committing Changes
Review changed files
Check the status section for a list of all changed files and their status badges. Click any file to view its diff.
Viewing a Diff
Restoring a File
Untracked files (status ??) cannot be restored because no committed version exists to revert to.
Security and Limits
The workspace enforces several safety measures:
- Path traversal protection — Files cannot escape the workspace directory. Any attempt to access paths outside the workspace is blocked.
- 1 MB read limit — Individual file reads are capped at 1 MB.
- 512 KB write limit — Individual file writes are capped at 512 KB.
- 512 KB diff cap — Git diffs are truncated at 512 KB.
- 500-character commit message limit — Commit messages longer than 500 characters are rejected.
- Stale git lock cleanup — Stale
.git/index.lockfiles are automatically cleaned up to prevent git operations from hanging.
Related Pages
Identity
How workspace files shape your agent’s personality.
Agents View
Navigate to the Workspace view from an agent’s detail page.
JSON-RPC Methods
Workspace RPC methods for programmatic access.
