feat: deploy.sh should copy workspace context files (TOOLS.md, AGENTS.md, etc.) to ~/.cobot/workspace/ #141

Open
opened 2026-02-27 11:33:30 +00:00 by Zeus · 0 comments
Collaborator

Problem

Alpha's workspace context files (TOOLS.md, AGENTS.md, etc.) live in ~/.cobot/workspace/ but are not versioned in git. When we need to update Alpha's instructions (e.g. adding filedrop CLI workaround to TOOLS.md), we have to manually write files on the server.

Proposed Solution

Add a directory in the repo (e.g. workspace/ or context/) containing the CAPITAL.md files that cobot reads as workspace context:

  • TOOLS.md
  • AGENTS.md (if different from repo root)
  • SOUL.md
  • Any other context files

The deploy script should copy these to ~/.cobot/workspace/ after git pull:

# In deploy.sh, after git reset:
for f in workspace/*.md; do
    cp "$f" ~/.cobot/workspace/
done

This way workspace context is versioned, reviewable, and auto-deployed.

Immediate Workaround

Manually created ~/.cobot/workspace/TOOLS.md with filedrop CLI instructions (see #140).

Review Notes

  • Which files should be copied? Only CAPITAL.md files or everything?
  • Should deploy overwrite or merge? (Overwrite is simpler)
  • Should memory/ files be excluded? (Yes — those are runtime state)
## Problem Alpha's workspace context files (TOOLS.md, AGENTS.md, etc.) live in `~/.cobot/workspace/` but are not versioned in git. When we need to update Alpha's instructions (e.g. adding filedrop CLI workaround to TOOLS.md), we have to manually write files on the server. ## Proposed Solution Add a directory in the repo (e.g. `workspace/` or `context/`) containing the CAPITAL.md files that cobot reads as workspace context: - TOOLS.md - AGENTS.md (if different from repo root) - SOUL.md - Any other context files The deploy script should copy these to `~/.cobot/workspace/` after git pull: ```bash # In deploy.sh, after git reset: for f in workspace/*.md; do cp "$f" ~/.cobot/workspace/ done ``` This way workspace context is versioned, reviewable, and auto-deployed. ## Immediate Workaround Manually created `~/.cobot/workspace/TOOLS.md` with filedrop CLI instructions (see #140). ## Review Notes - Which files should be copied? Only CAPITAL.md files or everything? - Should deploy overwrite or merge? (Overwrite is simpler) - Should memory/ files be excluded? (Yes — those are runtime state)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ultanio/cobot#141
No description provided.