Agent Workspace Maintenance

lesson workflow active workflow/agent-workspace-maintenance.md View on GitHub

Agent Workspace Maintenance

Rule

When doing periodic workspace maintenance, update the gptme-contrib submodule and verify that shared infrastructure symlinks are intact.

Context

Applies when maintaining an existing agent workspace — running routine upkeep, noticing the submodule is behind, or verifying symlinks after a pull/merge. Does NOT apply to initial workspace creation (see agent-workspace-setup-maintenance.md).

Detection

Pattern

# 1. Update submodule to latest
git submodule update --remote gptme-contrib

# 2. Review what changed
git -C gptme-contrib log --oneline -10

# 3. Commit if there are changes (update may be a no-op if already at latest)
git add gptme-contrib
git diff --cached --quiet || git commit -m "chore: update gptme-contrib submodule"

# 4. Verify key symlinks still point to gptme-contrib
ls -la dotfiles/install.sh
ls -la dotfiles/.config/git/hooks
ls -la scripts/runs/autonomous/autonomous-loop.sh

# If a symlink is broken, recreate it:
# ln -sf ../gptme-contrib/dotfiles/install.sh dotfiles/install.sh

Outcome

Related

Match Keywords

updating gptme-contrib submodule verify workspace symlinks agent workspace maintenance workspace symlink verification update submodule to latest submodule out of sync