Files
ai-workflow-course/modules/07-worktrees-running-agents-in-parallel/lab/setup-worktrees.sh
T
claude 389ac2e460 style(no-slop): remove every em-dash + banned words across all modules + capstone
Apply the no-ai-slop standard (now binding in AGENTS.md): the em-dash character is
banned outright (restructured, not blind-replaced), plus the banned word/phrase
list (delve, leverage, robust, seamless, truly, unlock, etc.). 0 em-dashes remain
in modules + capstone; the only "robust" left is the planted M10 ai-change.patch
trap. Module H1 titles use a colon separator.

All deliberate teaching devices preserved; labs compile/parse (py/sh/yaml/json);
no junk. AGENTS.md updated with the hard no-slop rules.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TfzV5QvtPDz8LJS3Pu5VLT
2026-06-22 23:21:09 -04:00

28 lines
1.1 KiB
Bash

#!/usr/bin/env bash
#
# Module 7 lab: create two linked worktrees off the tasks-app repo, each on its own branch.
# This is the tool the coordinating AI session (the one already pointed at tasks-app) can run to
# set up the worktrees. Hand it to your agent, or copy it into tasks-app and let the agent run it:
#
# cp ~/ai-workflow-course/modules/07-worktrees-running-agents-in-parallel/lab/setup-worktrees.sh .
# bash setup-worktrees.sh
#
# It places the new worktree folders next to the repo, so you end up with:
#
# <parent>/tasks-app (your existing repo, on its current branch)
# <parent>/tasks-app-wipe (new worktree on branch feature/wipe)
# <parent>/tasks-app-remaining (new worktree on branch feature/remaining)
#
set -euo pipefail
# The directory that contains the repo, so the new worktrees become siblings of it.
ROOT="$(git rev-parse --show-toplevel)"
PARENT="$(cd "$ROOT/.." && pwd)"
git worktree add "$PARENT/tasks-app-wipe" -b feature/wipe
git worktree add "$PARENT/tasks-app-remaining" -b feature/remaining
echo
echo "Worktrees created. One repo, three checked-out branches:"
git worktree list