You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ws): add --team flag for agent teams integration
- Add --team flag to workspace commands for Claude Code Agent Teams
- Include default team prompt for generic multi-agent collaboration
- Support custom team prompts via --team "prompt"
- Update help and cheat sheet with team examples
- Bump version to 0.6.0
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/crabcode
+46-3Lines changed: 46 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,17 @@
27
27
28
28
set -e
29
29
30
-
VERSION="0.5.0"
30
+
VERSION="0.6.0"
31
31
CONFIG_DIR="$HOME/.crabcode"
32
32
CONFIG_FILE="$CONFIG_DIR/config.yaml"
33
33
WIP_BASE="$CONFIG_DIR/wip"
34
34
PROJECTS_DIR="$CONFIG_DIR/projects"
35
35
GLOBAL_CONFIG="$CONFIG_DIR/config.yaml"
36
36
PROJECT_ALIAS=""
37
+
TEAM_PROMPT=""
38
+
39
+
# Default team prompt (used when --team is passed without a custom prompt)
40
+
DEFAULT_TEAM_PROMPT="Create an agent team to help with this task. You are the team lead working in a crabcode workspace. Spawn teammates as needed for parallel work - research, implementation, review, or debugging. Coordinate the team, assign tasks, and synthesize results. The shared codebase is in this directory."
37
41
38
42
# Colors
39
43
RED='\033[0;31m'
@@ -1297,6 +1301,14 @@ open_workspace() {
1297
1301
local dev_cmd=$(get_pane_command "server")
1298
1302
local claude_cmd=$(get_pane_command "main")
1299
1303
1304
+
# If team mode, append the team prompt to claude command
1305
+
if [ -n"${TEAM_PROMPT:-}" ];then
1306
+
# Escape single quotes in team prompt for shell
1307
+
local escaped_prompt="${TEAM_PROMPT//\'/\'\\\'\'}"
0 commit comments